diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 58af3668..ae24d515 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -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);