From a8cf1ec3eb69af71833a59c7b0f8adf5c4f5ad48 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期二, 02 七月 2024 16:02:45 +0800
Subject: [PATCH] fix:称重修改bug

---
 pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
index bd100a8..7c1b748 100644
--- a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
+++ b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue
@@ -274,7 +274,7 @@
 							shape="circle"
 							@click="resetCondition"></u-button></view>
 							<view class="f-button">
-						<u-button type="primary" :size="'mini'" shape="circle"  v-if="roleType == 1 || roleType == 2"   @click="download" text="瀵煎嚭璇︽儏"></u-button>
+						<u-button type="primary" :size="'mini'" shape="circle"    @click="download" text="瀵煎嚭璇︽儏"></u-button>
 					</view>
 					<view class="confirm-button"><u-button type="primary"
 							text="纭畾"
@@ -539,7 +539,7 @@
 					customerName: this.customerList.filter(v => v.active == true).map(item => item.condition),
 					xsUser2Name: this.forwarderList.filter(v => v.active == true).map(item => item.condition),
 					fleetName: this.fleetList.filter(v => v.active == true).map(item => item.condition),
-					filedName: this.filedList.filter(v => v.active == true).map(item => item.condition),
+					deptName: this.filedList.filter(v => v.active == true).map(item => item.condition),
 					carNo: this.carNoList.filter(v => v.active == true).map(item => item.condition)
 				};
 
@@ -549,7 +549,7 @@
 					customerName: validateFn('customerName'),
 					xsUser2Name: validateFn('xsUser2Name'),
 					fleetName: validateFn('fleetName'),
-					filedName: validateFn('filedName'),
+					deptName: validateFn('deptName'),
 					carNo: validateFn('carNo')
 				};
 				this.filterList = this.taskList.map(val => {
@@ -763,17 +763,16 @@
 					});
 					this.$reqGet('downloadExcel',conditionMapping).then(res=>{
 						if(res.data){
-							const hostUrl = res.data.excelAddress.split("\\")[res.data.excelAddress.split("\\").length - 1]
+							const hostUrl = res.data.excelAddress.split("/")[res.data.excelAddress.split("/").length - 1]
+							// const hostUrl = res.data.excelAddress;
 							console.log(res.data,hostUrl,'res.data');
 							if(hostUrl){
 								wx.downloadFile({
 								url: `${BaseUrl}/admin/sys-file/local/${hostUrl}`,
 								filePath:wx.env.USER_DATA_PATH+`/${hostUrl}`,
 								header: {
-									'Authorization': 'Basic c29jaWFsOnNvY2lhbA==', //app:app
-									'content-type': 'application/json',
-									'CLIENT_TOC': 'Y',
-									'isToken': 'false'
+									Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
+									CLIENT_TOC: 'Y'
 								},
 								success(res){
 									console.log(res)
@@ -844,6 +843,7 @@
 					this.first = newV.slice(0, 10);
 					this.last = newV.slice(11);
 					this.getTmTaskCoalData();
+					this.getShipping();
 				}
 			}
 		}

--
Gitblit v1.9.1