You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.3 KiB
60 lines
2.3 KiB
|
2 months ago
|
<template>
|
||
|
|
<el-dialog title="分批" append-to-body :modelValue="showBatches" @close="closeDialog">
|
||
|
|
<el-form :model="batchesForm" :rules="batchesRules" label-width="100px">
|
||
|
|
<el-form-item label="分批数量" prop="makeQty">
|
||
|
|
<el-input placeholder="请输入分批数量" v-model="batchesForm.makeQty" oninput="value=value.replace(/[^\d]/g,'')"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
<el-form-item label="车间订单号" prop="woCode">
|
||
|
|
<el-input disabled placeholder="请输入车间订单号" v-model="batchesForm.woCode"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
<el-form-item label="流程卡号" prop="cardNo">
|
||
|
|
<el-input disabled placeholder="请输入流程卡号" v-model="batchesForm.cardNo"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
<el-form-item label="批次号" prop="batchNo">
|
||
|
|
<el-input disabled placeholder="请输入批次号" v-model="batchesForm.batchNo"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
<el-form-item label="备注" prop="memo">
|
||
|
|
<el-input type="textarea" placeholder="请输入备注" v-model="batchesForm.memo"></el-input>
|
||
|
|
</el-form-item>
|
||
|
|
</el-form>
|
||
|
|
<template #footer>
|
||
|
|
<span class="dialog-footer">
|
||
|
|
<el-button @click="closeDialog">取 消</el-button>
|
||
|
|
<el-button type="primary" @click="closeDialog">保 存</el-button>
|
||
|
|
</span>
|
||
|
|
</template>
|
||
|
|
</el-dialog>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
props: {
|
||
|
|
showBatches: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
},
|
||
|
|
},
|
||
|
|
data(){
|
||
|
|
return{
|
||
|
|
batchesForm:{},
|
||
|
|
batchesRules:{
|
||
|
|
makeQty:[{required:true,message:'请输入分批数量',trigger:'blur'}],
|
||
|
|
woCode:[{required:true,message:'请输入车间订单号',trigger:'blur'}],
|
||
|
|
cardNo:[{required:true,message:'请输入流程卡号',trigger:'blur'}],
|
||
|
|
batchNo:[{required:true,message:'请输入批次号',trigger:'blur'}],
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
mounted(){
|
||
|
|
|
||
|
|
},
|
||
|
|
methods:{
|
||
|
|
// 关闭弹窗
|
||
|
|
closeDialog() {
|
||
|
|
this.$emit('closeDialog');
|
||
|
|
},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style></style>
|