From bcf7914e7b55e72cc453b559086255a56fe53a64 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期一, 20 一月 2025 08:59:44 +0800
Subject: [PATCH] feat:电子提煤单下载显示

---
 api/globalApi.js                                                                 |    6 ++++++
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |   30 ++++++++++++++++++++++++++++--
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/api/globalApi.js b/api/globalApi.js
index 87aed7b..e4a599b 100644
--- a/api/globalApi.js
+++ b/api/globalApi.js
@@ -573,7 +573,13 @@
 	downLoadTm:{
 		url:'/wrzs/e-task',
 		method: 'GET'
+	},
+	//鏌ヨ闇�瑕佷娇鐢ㄧ數瀛愮鍗曠殑鐭�
+	getIsOpenTm:{
+		url:'/dict/type/app_tmorder_use',
+		method: 'GET'
 	}
 
 
+
 }
\ No newline at end of file
diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
index 49f13f1..f97e93c 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -231,7 +231,9 @@
 					type="primary"
 					shape="circle"></u-button></view>
 					<!-- 鐢靛瓙纾呭崟涓嬭浇 -->
-					<view class="weigh-button"><u-button text="涓嬭浇鐢靛瓙纾呭崟"
+					<view class="weigh-button"
+					v-if="isBtnShow"
+					><u-button text="涓嬭浇鐢靛瓙纾呭崟"
 					@click="downloadFileFun"
 					type="primary"
 					shape="circle"></u-button></view>
@@ -361,6 +363,7 @@
 				swiperList:[],
 				orderPlanId: null,
 				radioValue:'鐓ゅ満',
+				isBtnShow:true,
 				currentNum:0,
 				guideLineshow:false,
 				yyId: null,
@@ -641,7 +644,30 @@
 						}
 					}, 1000)
 					}
-					
+					//鏌ヨ褰撳墠鍗曚綅鏄惁鏈夌數瀛愭彁鐓ゅ崟鍔熻兘
+					// this.$reqGet('getIsOpenTm').then(res=>{
+					// 	console.log(res,'鏌ヨ鏌ヨ')
+					// })
+					uni.request({
+					url: `${BaseUrl}/admin/dict/type/app_tmorder_use`,
+					method: 'GET',
+					success: (res) => {
+						console.log(res.data.data, '鏌ヨ瀛楀吀椤�');
+						let falseArr = res.data.data.map(item=>{
+							return item.value
+						});
+						if (falseArr.length){
+							if(falseArr.includes(this.coalDetailsData.deptId)){
+								this.isBtnShow = true;
+							}else{
+								this.isBtnShow = false;
+							}
+
+						}else{
+							this.isBtnShow = false;
+						}
+					}
+				})
 				})
 			},
 			// 鏃ュ織鏌ヨ

--
Gitblit v1.9.1