From 7f594b32345b5547d73d92ab6995eb5c69f357b9 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期一, 17 三月 2025 17:40:17 +0800
Subject: [PATCH] feat:注册车牌号校验修改

---
 pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
index 91da068..a93abdf 100644
--- a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
+++ b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
@@ -739,6 +739,17 @@
 			conditinonclose() {
 				this.conditinonShow = false;
 			},
+			//鑾峰彇褰撳墠鏃ユ湡鍑芥暟
+			getNowFormatDate() {
+			let date = new Date(),
+				year = date.getFullYear(), //鑾峰彇瀹屾暣鐨勫勾浠�(4浣�)
+				month = date.getMonth() + 1, //鑾峰彇褰撳墠鏈堜唤(0-11,0浠h〃1鏈�)
+				strDate = date.getDate() // 鑾峰彇褰撳墠鏃�(1-31)
+			if (month < 10) month = `0${month}` // 濡傛灉鏈堜唤鏄釜浣嶆暟锛屽湪鍓嶉潰琛�0
+			if (strDate < 10) strDate = `0${strDate}` // 濡傛灉鏃ユ槸涓綅鏁帮紝鍦ㄥ墠闈㈣ˉ0
+			
+			return `${year}-${month}-${strDate}`
+			},
 			download(){
 				let conditionMapping = {
 					coalName: this.coalList.filter(v => v.active == true).map(item => item.condition).join(','), //鐓ょ
@@ -747,8 +758,8 @@
 					fleetId: this.fleetList.filter(v => v.active == true).map(item => item.conditionId).join(','),  //杞﹂槦
 					deptId: this.filedList.filter(v => v.active == true).map(item => item.conditionId).join(','), //鐭垮満
 					carNo: this.carNoList.filter(v => v.active == true).map(item => item.condition).join(','), //杞︾墝
-					startTime:this.first + ' ' + '00:00:00',
-					endTime:this.last + ' ' + '23:59:59',
+					startTime: this.first ? (this.first + ' ' + '00:00:00') :this.getNowFormatDate() + ' ' + '00:00:00',
+					endTime:  this.last ?  (this.last + ' ' + '23:59:59') : this.getNowFormatDate()  + ' ' + '23:59:59'
 
 				};
 				//濡傛灉璇锋眰鍙傛暟娌″�硷紝鍒欏幓闄�
@@ -768,7 +779,7 @@
 							console.log(res.data,hostUrl,'res.data');
 							if(hostUrl){
 								wx.downloadFile({
-								url: `${BaseUrl}/admin/sys-file/local/${hostUrl}`,
+								url: `${BaseUrl}/admin/sys-file/getAppTmExcel/${hostUrl}`,
 								filePath:wx.env.USER_DATA_PATH+`/${hostUrl}`,
 								header: {
 									Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),

--
Gitblit v1.9.1