diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue index fd21c3e8..a8f1b412 100644 --- a/src/views/wpm_gx/f_mlogs_form.vue +++ b/src/views/wpm_gx/f_mlogs_form.vue @@ -464,7 +464,7 @@ export default { //获取车间物料 getMaterial() { let that = this; - that.$API.wpm.wmaterial.list.req({mgroupx: that.mgroup,material: that.material_in,page: 0,}).then((res) => { + that.$API.wpm.wmaterial.list.req({mtaskx:that.mtask,mgroupx: that.mgroup,material: that.material_in,page: 0,}).then((res) => { that.materialOptions = res; }); }, diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue index 9b1808b2..d2700323 100644 --- a/src/views/wpm_gx/mlogb_form.vue +++ b/src/views/wpm_gx/mlogb_form.vue @@ -22,6 +22,7 @@ placeholder="关联任务" clearable style="width: 100%" + @change="getMaterial" > - @@ -159,6 +159,7 @@ export default { let that = this; this.$API.wpm.wmaterial.list .req({ + mtaskx: that.form.mtask, mgroupx: that.mgroup, material: that.materialIn, page: 0,