From 9f35d7942459dcaeae28e17e675975e3db3ac020 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 20 Aug 2025 17:18:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BF=AB=E9=80=9F=E6=8A=A5=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E9=97=B4=E6=89=AB=E7=A0=81=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_form2.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index efb3254e..49c6a111 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -173,6 +173,7 @@ export default { route_code:"", visible: false, isSaveing: false, + batchCountCando:0, materialTracking:10, options: [], bwItemForms: [], @@ -275,6 +276,7 @@ export default { that.form.wm_in = arr[0].id; that.form.count_use = arr[0].count_cando; that.wm_in = arr[0].batch; + that.batchCountCando = Number(arr[0].count_cando);; that.materialTracking = arr[0].material_.tracking; if(that.routeOptions.length==0){ that.routeOriginOptions.forEach((item)=>{ @@ -326,6 +328,7 @@ export default { if(that.form.batch==''||that.form.batch==batch){ that.form.batch = batch; that.form.wm_in = arr[0].id; + that.batchCountCando = Number(arr[0].count_cando); that.materialTracking = arr[0].material_.tracking; let arr1 = that.bwItemForms.filter((item)=>{ return item.number == bwitem.number; @@ -360,7 +363,7 @@ export default { that.isSaveing = true; that.form.mgroup = that.mgroup; that.$API.wpm.mlog.quick.req(that.form).then((res) => { - if(that.bwItemForms.length>0){ + if(that.bwItemForms.length>0&&that.batchCountCando!==that.bwItemForms.length){ that.bwItemForms.forEach(item=>{ item.mlogb = res.mlogbin; })