This commit is contained in:
linfso 2025-03-13 08:16:13 +08:00
parent 0e6e2c0aeb
commit 46aacd7e81

View File

@ -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() {