From 295ed27bac7da95075ea14dab97763c584df61cf Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 7 Jan 2025 09:47:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/inm_record_form.vue | 2 ++ src/views/wpm_bx/mlog_detail.vue | 24 +++++++++---- src/views/wpm_bx/mlogb_form.vue | 9 +++-- src/views/wpm_bx/mlogbw_check.vue | 51 ++++++++++++++++++++++++++-- 4 files changed, 75 insertions(+), 11 deletions(-) diff --git a/src/views/wpm_bx/inm_record_form.vue b/src/views/wpm_bx/inm_record_form.vue index 8b2236e0..872843e2 100644 --- a/src/views/wpm_bx/inm_record_form.vue +++ b/src/views/wpm_bx/inm_record_form.vue @@ -241,6 +241,7 @@ export default { }, selectBatchChange(item) { this.form.batch = item.batch; + this.form.mb = item.id; this.form.warehouse = item.warehouse; }, //选择车间库存物料后的处理 @@ -254,6 +255,7 @@ export default { }, selectBatchClear() { this.form.batch = ""; + this.form.mb = ""; this.form.warehouse = ""; }, //显示 diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index b97d87de..4f60ce78 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -82,7 +82,7 @@ row-key="id" stripe :params="paramsIn" - hidePagination + hidePagination > 编辑 + 详情 @@ -228,7 +233,7 @@ 详情 @@ -263,6 +268,7 @@ ref="saveDialog" :mlog="mlogId" :mgroup="mgroup" + :tracking="tracking" :materialIn="materialIn" @success="handleSaveSuccess" @closed="dialog.save = false" @@ -280,6 +286,7 @@ v-if="dialog.check_single" ref="checkDialogSingle" :mlogb="mlogb" + :wm = "wm" @success="handlesCheckSuccess" @closed="dialog.check_single = false" > @@ -349,6 +356,7 @@ export default { mlog: "", material_out__isnull: 0, }, + tracking:'10', mlogb:"", mgroup: "", mlogItem: {}, @@ -378,6 +386,7 @@ export default { }, ], }, + wm:'', materialOut:'', batchContains:'', apiObjPrint:this.$API.cm.labelmat.fromWm, @@ -402,6 +411,8 @@ export default { let that = this; that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.mlogItem = res; + console.log('that.mlogItem',that.mlogItem); + this.tracking = this.mlogItem.material_in_.tracking; if(res.test_file!==null){ that.fileList = [{name:res.test_file,url:res.test_file}]; that.form.test_file = res.test_file; @@ -495,14 +506,15 @@ export default { this.$refs.checkDialog.open(obj); }); }, - table_out_check_single(row){ + table_out_check_single(row,type){ this.dialog.check_single = true; this.mlogb = row.id; + this.wm = row.wm_in; let obj = {}; Object.assign(obj, row); obj.mgroup_name = this.mlogItem.mgroup_name; this.$nextTick(() => { - this.$refs.checkDialogSingle.open(obj); + this.$refs.checkDialogSingle.open(type); }); }, //表单提交方法 diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue index d86183d3..3af29d03 100644 --- a/src/views/wpm_bx/mlogb_form.vue +++ b/src/views/wpm_bx/mlogb_form.vue @@ -40,7 +40,7 @@ - + 提交 取消 @@ -68,6 +68,10 @@ export default { type: String, default: "", }, + tracking:{ + type: Number, + default: 10, + }, materialIn: { type: String, default: "", @@ -142,7 +146,8 @@ export default { }); if (arr.length > 0) { that.form.wm_in = arr[0].id; - if(that.mgroup_code == 'paiyicibang'||that.mgroup_code == 'paiercibang'){}else{ + that.form.count_use = arr[0].count; + if(that.tracking==10){}else{ that.submit();//提交 } }else{ diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 145eb825..66bb1215 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -1,6 +1,6 @@