From 25c5c75592946943b7c11fe0090d838c40c066b9 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期四, 13 六月 2024 11:51:07 +0800
Subject: [PATCH] feat:库管查看原盐钙镁

---
 pages/tabbar-page/index-tabbar/index-tabbar.vue |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue
index 9741801..facf2cd 100644
--- a/pages/tabbar-page/index-tabbar/index-tabbar.vue
+++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -24,7 +24,7 @@
 			ref="driverIndexRef"
 			:indexdriverBillOfLoadingData="indexdriverBillOfLoadingData"></driver-index>
 		<load-unload ref="LoadUnloadRef"
-			v-if="roleType == 5"></load-unload>
+			v-if="roleType == 5" :indexLoadUnloadBillOfLoadingData="detailData"></load-unload>
 		<doorkeep-index ref="doorkeepIndexRef"
 			v-if="roleType == 6"></doorkeep-index>
 		<!-- 		<selectTarget v-if="roleType == 5"
@@ -125,8 +125,24 @@
 						uni.stopPullDownRefresh();
 					}
 				});
+			}else if(this.roleType == 5){
+				//瑁呭嵏鍛�
+				this.getDetailData();
 			}
 		},
+		// getWarehouseListFun() {
+		// 		this.$reqGet('getWarehouseList').then(res => {
+		// 			uni.hideLoading()
+		// 			if (res.code === 0) {
+		// 				if(res.data.length){
+		// 					this.getDetailData();
+					
+		// 				}
+		// 			} else {
+		// 				this.$u.toast('鍔犺浇澶辫触')
+		// 			}
+		// 		})
+		// 	},
 		onHide() {
 			console.log('椤甸潰闅愯棌')
 		},
@@ -174,6 +190,7 @@
 				indexHuoDaiOrderPlanData: [],
 				indexHistoryCoalData: [],
 				count:0,
+				detailData:[],
 				indexdriverBillOfLoadingData: {},
 				messagePushShow: false,
 				messageList: {
@@ -331,7 +348,24 @@
 						this.dotShow = filtermessage.length > 0;
 					}
 				});
-			}
+			},
+		 getDetailData(){
+					this.$reqGet('getTaskCoalListByBunkerId', { bunkerId:uni.getStorageSync('bunkerId')}).then(res => {
+					if (res.code === 0) {
+						this.detailData = res.data.map(item=>{
+						   item.tmTaskCoalList.map(el=>{
+							 el.flag = el.isPretendDischar ? false : true
+							return el
+						   })
+						 return item;
+						});
+							this.$u.toast('鍔犺浇鎴愬姛');
+							uni.stopPullDownRefresh();
+					 		 uni.hideLoading();
+					}
+				})
+
+			},
 		}
 	};
 </script>

--
Gitblit v1.9.1