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