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; }, }, };