From 37eeb4524254243e3647074f93e8b81cef0ded73 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 7 Feb 2025 15:16:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A0=B9=E6=8D=AE=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E7=89=A9=E6=96=99=E9=99=90=E5=88=B6=E4=BA=A4=E6=8E=A5=E5=B7=A5?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form.vue | 88 +++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 7 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index b6ce9d2d..4edeba10 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -58,7 +58,7 @@ - + - - - - - + + + + + @@ -238,6 +238,63 @@
总计:{{ totalCount }}
+ + + + + + + + + + + + + + + + + + + + + + + 确定 @@ -536,6 +593,15 @@ export default { let data = that.materialOptions.filter((item) => { return that.selectItems.indexOf(item.id)>-1; }); + let materialId = data[0].material; + let params = { + material: materialId, + type: that.type, + }; + console.log('params',params); + that.$API.wpm.handover.mgroups.req(params).then((res) => { + that.mgroupOptions = res; + }) data.forEach((item,index)=>{ item.wm = item.id; item.count = item.count_cando; @@ -679,6 +745,10 @@ export default { // console.log('2',that.form); } }else{//handoverb里没有有这个物料批次 + let params = {material: res.material,type: that.type,}; + that.$API.wpm.handover.mgroups.req(params).then((res) => { + that.mgroupOptions = res; + }) that.materialOptions.forEach((item) => { if(item.id == res.wm){ let obj2 = {}; @@ -706,6 +776,10 @@ export default { if(arr.length>0){ that.$message.error("该批次已存在") }else{ + let params = {material: res.material,type: that.type,}; + that.$API.wpm.handover.mgroups.req(params).then((res) => { + that.mgroupOptions = res; + }) that.materialOptions.forEach((item) => { if(item.batch == res.batch){ let obj = {};