From f478762ee24e3c2890f4533bc463c4d1d60e3d65 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Wed, 5 Jul 2023 14:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=94=B3=E8=B4=AD=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchase/purApply/pureApplySearch.vue | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/src/views/purchase/purApply/pureApplySearch.vue b/src/views/purchase/purApply/pureApplySearch.vue index 302e4e22..014db9dc 100644 --- a/src/views/purchase/purApply/pureApplySearch.vue +++ b/src/views/purchase/purApply/pureApplySearch.vue @@ -11,7 +11,7 @@ - + - + - + - + - + + sortable="custom" :sort-orders="['ascending', 'descending']"> + sortable="custom" :sort-orders="['ascending', 'descending']"> @@ -188,8 +189,9 @@ export default { corpName: null, type: 1, editStatus: 1, - emergency:'', - targetDeptCode:'', + emergency: '', + deptCode: '', + invCode: null, }, formName: null, formMap: { @@ -202,7 +204,7 @@ export default { 3: "已审核", 4: "已拒绝" }, - emergencyMap:{ + emergencyMap: { 1: "正常", 2: "较急", 3: "特急", @@ -211,12 +213,12 @@ export default { editType: 2, total: 0, thirdSys: [], - invCodebe:null, + invCodebe: null, thirdSysDetail: null, busTypes: [], originTypes: [], - invList:{}, - deptList:{}, + invList: {}, + deptList: {}, list: [], detailList: [], loading: false, @@ -295,7 +297,7 @@ export default { this.$router.push({ path: "", }); - let deptCode = this.filterQuery.targetDeptCode + let deptCode = this.filterQuery.deptCode this.filterQuery = { billNo: "", thirdSysFk: "", @@ -308,9 +310,9 @@ export default { corpName: null, type: 1, editStatus: 1, - targetDeptCode: this.invCodebe, + deptCode: this.invCodebe, }; - if(deptCode!=this.invCodebe){ + if (deptCode != this.invCodebe) { this.getInvList() } this.actDateRange = []; @@ -358,7 +360,7 @@ export default { if (response.code == 20000) { this.list = response.data.list || []; this.total = response.data.total || 0; - this.detailList=[] + this.detailList = [] } else { this.$message.error(response.message); } @@ -452,8 +454,8 @@ export default { this.newSpDistributionVisible = true; }, getInvList() { - var query={ - parentId:this.filterQuery.targetDeptCode + var query = { + parentId: this.filterQuery.targetDeptCode } filterSubAll(query).then((res) => { this.invList = res.data || []; @@ -462,12 +464,12 @@ export default { getDeptList() { getDeptListByUser().then((res) => { this.deptList = res.data || []; - if(this.deptList.length>0){ - this.filterQuery.targetDeptCode=this.deptList[0].code - this.invCodebe=this.filterQuery.targetDeptCode + if (this.deptList.length > 0) { + this.filterQuery.targetDeptCode = this.deptList[0].code + this.invCodebe = this.filterQuery.targetDeptCode } this.getList(); - this. getInvList(); + this.getInvList(); }); }, }