From 46aacd7e818677d0d604395fc9e9a958f049278e Mon Sep 17 00:00:00 2001 From: linfso Date: Thu, 13 Mar 2025 08:16:13 +0800 Subject: [PATCH] md --- .../emis/emisWaybill/sendWaybillList.vue | 43 +++++++++++++------ 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/src/views/emis/emisWaybill/sendWaybillList.vue b/src/views/emis/emisWaybill/sendWaybillList.vue index 28f64858..77ee9ea1 100644 --- a/src/views/emis/emisWaybill/sendWaybillList.vue +++ b/src/views/emis/emisWaybill/sendWaybillList.vue @@ -846,20 +846,37 @@ export default { } }, created() { - if(this.$store.getters.ownerSiteCode!='88888'){ - this.queryParams.sendSiteCode=this.$store.getters.ownerSiteCode; + if(this.$route.action=='queryByCredit'){ + if(this.$route.query.custNo!=null){ + this.queryParams.custNo=this.$route.query.custNo; + } + + if(this.$route.query.salesmen!=null){ + this.queryParams.salesmen=this.$route.query.salesmen; + } + + let startTime=this.$route.query.startDate; + let endTime=this.$route.query.endDate; + this.dateRange=[timeFormat(startTime), timeFormat(endTime)] + this.queryOrderType="1"; + this.queryOrderDateType="1"; + this.getList(); + }else{ + if(this.$store.getters.ownerSiteCode!='88888'){ + this.queryParams.sendSiteCode=this.$store.getters.ownerSiteCode; + } + const end = new Date() + const start = new Date() + start.setHours(0,0,0,0) + end.setHours(23,59,59,0) + this.dateRange=[timeFormat(start), timeFormat(end)] + + this.queryOrderType="1"; + this.queryOrderDateType="1"; + // this.queryExpireNotSign="1" + + this.getList(); } - const end = new Date() - const start = new Date() - start.setHours(0,0,0,0) - end.setHours(23,59,59,0) - this.dateRange=[timeFormat(start), timeFormat(end)] - - this.queryOrderType="1"; - this.queryOrderDateType="1"; - // this.queryExpireNotSign="1" - - this.getList(); }, mounted() {