From 5b73c40a2c6548f80e29aa9296f9a0975308b244 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Mon, 26 Jan 2026 16:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=84=E4=BB=B6=E8=BF=90=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=A7=8B=E5=8F=91=E7=BD=91=E7=82=B9=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E8=81=94=E5=8A=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emis/emisWaybill/sendWaybillList.vue | 22 +++++++++++++++---- .../emis/emisWaybill/sendWaybillListNew.vue | 22 +++++++++++++++---- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/src/views/emis/emisWaybill/sendWaybillList.vue b/src/views/emis/emisWaybill/sendWaybillList.vue index 39f74dee..257994e8 100644 --- a/src/views/emis/emisWaybill/sendWaybillList.vue +++ b/src/views/emis/emisWaybill/sendWaybillList.vue @@ -45,7 +45,8 @@ - + + @@ -186,7 +187,7 @@ - + @@ -904,6 +905,11 @@ export default { }, }; }, + computed: { + sendSiteCodeDisable() { + return this.$store.getters.ownerSiteCode !='88888'&&(this.queryParams.salesmen==null||this.queryParams.salesmen=='')&&(this.queryParams.custNo==null||this.queryParams.custNo=='') &&(this.queryParams.params.moneyUserId==null||this.queryParams.params.moneyUserId=='') && (this.$store.getters.ownerSiteCode!=this.queryParams.startSiteCode) + } + }, watch: { $route () { if(this.$route.query.action=='queryByCredit'){ @@ -1053,7 +1059,8 @@ export default { } }else{ - if(this.$store.getters.ownerSiteCode!='88888'&&(this.queryParams.salesmen==null||this.queryParams.salesmen=='')&&(this.queryParams.custNo==null||this.queryParams.salesmen=='') &&(this.queryParams.params.moneyUserId==null||this.queryParams.params.moneyUserId=='')){ + // if(this.$store.getters.ownerSiteCode!='88888'&&(this.queryParams.salesmen==null||this.queryParams.salesmen=='')&&(this.queryParams.custNo==null||this.queryParams.salesmen=='') &&(this.queryParams.params.moneyUserId==null||this.queryParams.params.moneyUserId=='')){ + if(this.sendSiteCodeDisable){ this.queryParams.sendSiteCode=this.$store.getters.ownerSiteCode; } @@ -1143,7 +1150,7 @@ export default { const loadingInstance = this.$loading({ text: '正在导出...' }) - + var qParam = {...this.queryParams}; // 增加导出记录 let postExportRecord={ @@ -1299,6 +1306,13 @@ export default { }, onMoneyUserChange(){ this.queryParams.sendSiteCode=null; + }, + handleStartSiteChange(val){ + if(this.$store.getters.ownerSiteCode !='88888'){ // 不是总部账号 + if(val &&this.$store.getters.ownerSiteCode == val.siteCode){ + this.queryParams.sendSiteCode=null; + } + } } } }; diff --git a/src/views/emis/emisWaybill/sendWaybillListNew.vue b/src/views/emis/emisWaybill/sendWaybillListNew.vue index bb5f45f5..3f44e8e7 100644 --- a/src/views/emis/emisWaybill/sendWaybillListNew.vue +++ b/src/views/emis/emisWaybill/sendWaybillListNew.vue @@ -46,7 +46,8 @@ - + + @@ -191,7 +192,7 @@ - + @@ -909,6 +910,11 @@ export default { }, }; }, + computed: { + sendSiteCodeDisable(){ + return this.$store.getters.ownerSiteCode !='88888'&&(this.queryParams.salesmen==null||this.queryParams.salesmen=='')&&(this.queryParams.custNo==null||this.queryParams.custNo=='') &&(this.queryParams.params.moneyUserId==null||this.queryParams.params.moneyUserId=='') && (this.$store.getters.ownerSiteCode!=this.queryParams.startSiteCode) + } + }, created() { if(this.$store.getters.ownerSiteCode!='88888'){ this.queryParams.sendSiteCode=this.$store.getters.ownerSiteCode; @@ -999,8 +1005,9 @@ export default { } }else{ - if(this.$store.getters.ownerSiteCode!='88888'&&(this.queryParams.salesmen==null||this.queryParams.salesmen=='')&&(this.queryParams.custNo==null||this.queryParams.custNo=='') &&(this.queryParams.params.moneyUserId==null||this.queryParams.params.moneyUserId=='')){ - this.queryParams.sendSiteCode=this.$store.getters.ownerSiteCode; + // if(this.$store.getters.ownerSiteCode!='88888'&&(this.queryParams.salesmen==null||this.queryParams.salesmen=='')&&(this.queryParams.custNo==null||this.queryParams.custNo=='') &&(this.queryParams.params.moneyUserId==null||this.queryParams.params.moneyUserId=='')){ + if(this.sendSiteCodeDisable){ + this.queryParams.sendSiteCode=this.$store.getters.ownerSiteCode; } qParam=this.queryParams @@ -1241,6 +1248,13 @@ export default { }, onMoneyUserChange(){ this.queryParams.sendSiteCode=null; + }, + handleStartSiteChange(val) { + if (this.$store.getters.ownerSiteCode != '88888') { // 不是总部账号 + if (val && this.$store.getters.ownerSiteCode == val.siteCode) { + this.queryParams.sendSiteCode = null; + } + } } } };