diff --git a/src/views/wpm_bx/inm_record_form.vue b/src/views/wpm_bx/inm_record_form.vue index 1c48cf04..2bf773b3 100644 --- a/src/views/wpm_bx/inm_record_form.vue +++ b/src/views/wpm_bx/inm_record_form.vue @@ -375,12 +375,15 @@ export default { let that = this; that.wbatchOptions.forEach((item) => { if (item.batch == val) { + that.form.wm = item.id; that.form.material = item.material; that.form.count = item.count; this.isSaveing = true; + this.form.mioitemw = []; that.$API.wpm.wpr.list.req({wm: item.id,page:0}).then((res) => { res.forEach((itemwpr) => { let obj={}; + obj.wpr = itemwpr.id; obj.number = itemwpr.number; this.form.mioitemw.push(obj) })