From 9399fd3b17d699c7a78a193ae0ce5c9b5a2a2dfa Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 22 Jan 2025 16:33:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BA=A4=E6=8E=A5=E6=89=B9=E7=89=A9?= =?UTF-8?q?=E6=96=99=E6=97=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index 55d7e58d..30be9fae 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -689,15 +689,24 @@ export default { obj.batch = item.batch; obj.count_cando = item.count; obj.count = item.count; - that.form.handoverb.push(obj); - // console.log('4',that.form); + obj.handoverbw = []; + that.$API.wpm.wpr.list.req({wm:item.id}).then((res) => { + let handoverbw = []; + let list = res.results; + list.forEach(item1=>{ + let obj1 = {}; + obj1.wpr = item1.id; + obj1.number = item1.number; + handoverbw.push(obj1); + }) + obj.handoverbw = handoverbw; + that.form.handoverb.push(obj); + }) } }) } }) } - //根据扫描内容,获取物料详情匹配当前库存物料 - // this.scanVisible = false; }, }, };