部门与仓库联动问题

prod
wj 2 years ago
parent a3533b0729
commit 61fdc85212

@ -174,6 +174,7 @@ export default {
editStatus: 1, editStatus: 1,
emergency:'', emergency:'',
targetDeptCode:'', targetDeptCode:'',
targetInvCode:null
}, },
isChang:false, isChang:false,
formName: null, formName: null,
@ -247,6 +248,7 @@ export default {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
let deptCode = this.filterQuery.targetDeptCode
this.filterQuery = { this.filterQuery = {
billNo: "", billNo: "",
thirdSysFk: "", thirdSysFk: "",
@ -260,7 +262,11 @@ export default {
type: 1, type: 1,
editStatus: 1, editStatus: 1,
targetDeptCode: this.invCodebe, targetDeptCode: this.invCodebe,
targetInvCode:null
}; };
if(deptCode!=this.invCodebe){
this.getInvList()
}
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
@ -405,6 +411,8 @@ export default {
var query={ var query={
parentId:this.filterQuery.targetDeptCode parentId:this.filterQuery.targetDeptCode
} }
this.filterQuery.targetInvCode = null
this.$forceUpdate()
filterSubAll(query).then((res) => { filterSubAll(query).then((res) => {
this.invList = res.data || []; this.invList = res.data || [];
}) })

Loading…
Cancel
Save