From a10f7975699b51b22b9653d7a22fae0c8a549d83 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 20 May 2026 14:52:58 +0800 Subject: [PATCH] =?UTF-8?q?teat:=E7=A6=85=E9=81=93416?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form2.vue | 13 ++++++-- src/views/wpm_bx/wprList.vue | 52 ++++++++++++++++++++++++----- 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/src/views/wpm_bx/handover_form2.vue b/src/views/wpm_bx/handover_form2.vue index 3f25fe2e..a748f0cb 100644 --- a/src/views/wpm_bx/handover_form2.vue +++ b/src/views/wpm_bx/handover_form2.vue @@ -154,6 +154,7 @@ export default { }, route_code:"", batchOrign:{}, + preselected:[], wprOptions: [], materialOptions: [], loading: false, @@ -179,6 +180,7 @@ export default { that.$API.wpm.wpr.list.req({page:0,wm:id}).then((res) => { res.forEach(item=>{ item.checked = false; + item.disabled = that.preselected.some(r => r.id === item.id); }) that.wprOptions = res; }); @@ -197,17 +199,22 @@ export default { obj.wm = that.batchOrign.id; obj.batch = that.batchOrign.batch+"-"+that.addBactchNum; that.addBactchNum++; - obj.count = 0; obj.wm_in = ""; - obj.handoverbw=[]; + obj.handoverbw = that.preselected.map(r => ({ number: r.number, wpr: r.id })); + obj.count = obj.handoverbw.length; that.form.handoverb.push(obj); }) }, //显示 - open(mode = "add",data,mtype) { + open(mode = "add", data, mtype, preselected = []) { this.mode = mode; this.form.mtype = mtype; this.batchOrign = data; + this.preselected = preselected; + this.form.handoverb = []; + this.wprOptions = []; + this.lastBatchNum = 1; + this.addBactchNum = 1; this.getWpr(data.id); this.getNum(data.batch); this.visible = true; diff --git a/src/views/wpm_bx/wprList.vue b/src/views/wpm_bx/wprList.vue index a43fd34f..ece135b2 100644 --- a/src/views/wpm_bx/wprList.vue +++ b/src/views/wpm_bx/wprList.vue @@ -9,12 +9,19 @@

关联产品

发货编号 清空编号 + 拆批 批量喷码 + >批量喷数字码 + 批量喷二维码 @@ -75,6 +83,12 @@ + @@ -100,8 +114,10 @@