fix:禅道125

This commit is contained in:
shijing 2025-10-14 13:45:51 +08:00
parent 79cec10102
commit 7fd149693e
1 changed files with 30 additions and 5 deletions

View File

@ -18,6 +18,17 @@
placeholder="结束日期"
style="width: 150px;"
/>
<xtSelect
:apiObj="apiObjm"
v-model="query.material"
v-model:obj="selectObj"
:labelField="'full_name'"
style="width: 150px;"
:params="mquery"
@change="selectMaterialChange"
>
<el-table-column label="物料" prop="full_name"></el-table-column>
</xtSelect>
<el-input
v-model="query.search"
placeholder="名称"
@ -174,6 +185,12 @@ export default {
material__type:40,
mio__state:20
},
mquery:{
page: 0,
type__in: "40, 50, 60, 70",
is_hidden: false,
is_assemb: false,
},
selection: [],
tableData:[],
nameFilters1: [],
@ -186,9 +203,10 @@ export default {
nameFilters8: [],
nameFilters9: [],
query: {
search: "",
mio__inout_date__gte: "",
mio__inout_date__lte: "",
search : "",
material : "",
mio__inout_date__gte : "",
mio__inout_date__lte : "",
},
stateDict: {
10: "创建中",
@ -202,15 +220,16 @@ export default {
other_in: "其他入库",
other_out: "其他出库",
},
selectObj: {},
project_code:'',
dataTotal:0,
apiObjm:this.$API.mtm.material.list,
};
},
mounted() {
this.checkTemplate = this.checkTemplate+"?t=" + new Date().getTime();
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
this.params.mio = this.mioId;
// this.apiObj = this.$API.inm.mioitem.list;
let that = this;
that.getList();
},
@ -222,6 +241,9 @@ export default {
that.params.search = that.query.search;
that.params.mio__inout_date__gte = that.query.mio__inout_date__gte;
that.params.mio__inout_date__lte = that.query.mio__inout_date__lte;
if(that.query.material!==''||that.query.material!==undefined||that.query.material!==null){
that.params.material = that.query.material;
}
that.$API.inm.mioitem.list.req(that.params).then((res) => {
if (res.count > 0) {
that.tableData = res.results;
@ -316,7 +338,10 @@ export default {
resetQuery() {
this.query = {};
},
selectMaterialChange() {
var that = this;
that.query.material = that.selectObj.id;
},
//
printMaterial(row,type){
let that = this;