fix:成品检验中交接记录的筛选

This commit is contained in:
shijing 2024-09-11 16:47:01 +08:00
parent 2d5bbca578
commit 8a1cf4a25b
1 changed files with 16 additions and 4 deletions

View File

@ -406,14 +406,26 @@ export default {
searchTypeQuery() {
let that = this;
if (that.searchType == "send") {
that.query.send_mgroup = that.mgroupId;
that.query.recive_mgroup = "";
if(that.mgroupName=="size"||that.mgroupName=="facade"){
that.query.send_dept = that.deptId;
that.query.recive_dept = "";
}else{
that.query.send_mgroup = that.mgroupId;
that.query.recive_mgroup = "";
}
} else if (that.searchType == "recive") {
that.query.recive_mgroup = that.mgroupId;
that.query.send_mgroup = "";
if(that.mgroupName=="size"||that.mgroupName=="facade"){
that.query.send_dept = "";
that.query.recive_dept =that.deptId;
}else{
that.query.recive_mgroup = that.mgroupId;
that.query.send_mgroup = "";
}
} else {
that.query.send_mgroup = "";
that.query.recive_mgroup = "";
that.query.recive_dept = "";
that.query.send_dept = "";
}
console.log(that.query);
this.$refs.table.queryData(that.query);