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() { getMaterial() {
let that = this; 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; that.materialOptions = res;
}); });
}, },

View File

@ -22,6 +22,7 @@
placeholder="关联任务" placeholder="关联任务"
clearable clearable
style="width: 100%" style="width: 100%"
@change="getMaterial"
> >
<el-option <el-option
v-for="item in options" v-for="item in options"
@ -29,7 +30,6 @@
:label="item.number" :label="item.number"
:value="item.id" :value="item.id"
> >
<!-- <span>{{ item.material_out_name }}</span>/ -->
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -159,6 +159,7 @@ export default {
let that = this; let that = this;
this.$API.wpm.wmaterial.list this.$API.wpm.wmaterial.list
.req({ .req({
mtaskx: that.form.mtask,
mgroupx: that.mgroup, mgroupx: that.mgroup,
material: that.materialIn, material: that.materialIn,
page: 0, page: 0,