From 10d651956858e68598831caa9d872a41238758fc Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 19 Nov 2025 09:07:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=88=86=E6=89=B9=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=9D=BF=E6=AE=B5=E5=8F=B7=E8=BF=9B=E5=8E=BB?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=B0=86=E4=B8=8D=E5=9C=A8?= =?UTF-8?q?=E6=9C=AC=E6=89=B9=E6=AC=A1=E7=9A=84=E5=8F=B7=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form2.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/wpm_bx/handover_form2.vue b/src/views/wpm_bx/handover_form2.vue index 993d710e..d6d2c92b 100644 --- a/src/views/wpm_bx/handover_form2.vue +++ b/src/views/wpm_bx/handover_form2.vue @@ -209,8 +209,8 @@ export default { }, formWminChange(index,number){ let that = this; - // console.log('number',number.split(" ")); let arrs = number.split(" "); + let barchArrs = []; that.form.handoverb[index].wm_in = ""; if(arrs.length>1){ that.form.handoverb[index].wpr = ''; @@ -221,12 +221,17 @@ export default { let obj = {}; obj.number = item.number; obj.wpr = item.id; + barchArrs.push(arr); that.form.handoverb[index].handoverbw.push(obj); that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length; } }) }) - + //如果arrs里有不是这个批次的wpr,提示错误 + let diff = arrs.filter(item => !barchArrs.includes(item)); + if(diff.length>0){ + that.$confirm("物料"+diff.join(",")+"不在该批次中", "提示", {type: "warning",}).then(() => {}); + } }else{ //放入对应的行中的handoverb中,并且在列表中disabled that.wprOptions.forEach(item=>{