fix:物料选择查询条件添加mtaskx

This commit is contained in:
shijing 2024-11-07 11:09:44 +08:00
parent ce3e4becc6
commit 1b297de7bb
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -22,6 +22,7 @@
placeholder="关联任务"
clearable
style="width: 100%"
@change="getMaterial"
>
<el-option
v-for="item in options"
@ -29,7 +30,6 @@
:label="item.number"
:value="item.id"
>
<!-- <span>{{ item.material_out_name }}</span>/ -->
</el-option>
</el-select>
</el-form-item>
@ -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,