From 5c63b1fccedfcd208f3434edb79926c206c3d26f Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期二, 29 四月 2025 14:52:35 +0800
Subject: [PATCH] feat:增加类型显示

---
 subPages/bill-of-lading-details/bill-of-lading-details.vue |   83 +++++++++++++++++++++++++++++++++++------
 1 files changed, 70 insertions(+), 13 deletions(-)

diff --git a/subPages/bill-of-lading-details/bill-of-lading-details.vue b/subPages/bill-of-lading-details/bill-of-lading-details.vue
index cc5ad71..6b09211 100644
--- a/subPages/bill-of-lading-details/bill-of-lading-details.vue
+++ b/subPages/bill-of-lading-details/bill-of-lading-details.vue
@@ -75,6 +75,7 @@
 			<view class="table">
 				<uni-table  border 
 		       id="table-box"
+			   v-if='coalDetailsData.isWeight === 1'
 			emptyText="鏆傛棤鏇村鏁版嵁">
 					<uni-tr>
 					    <uni-th align="center" >浜у搧</uni-th>
@@ -82,7 +83,7 @@
 						<uni-th align="center">姣涢噸</uni-th>
 						<uni-th align="center">鍑�閲�</uni-th>
 					    <uni-th align="center">鎵e惃</uni-th>	
-						<uni-th align="center">浠舵暟</uni-th>		
+						<!-- <uni-th align="center">浠舵暟</uni-th>		 -->
 					</uni-tr>
 					<uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index">
 						<uni-td align="center">
@@ -100,6 +101,37 @@
 				聽   <uni-td align="right">
 					<view>{{ subItem.discount }}</view
 					></uni-td>
+					   <!-- <uni-td align="right">
+					<view>{{ subItem.productQuantity }}</view
+					></uni-td> -->
+				</uni-tr>
+				</uni-table>
+				<uni-table  border 
+		       id="table-box"
+			   v-else
+			emptyText="鏆傛棤鏇村鏁版嵁">
+					<uni-tr>
+					    <uni-th align="center" >浜у搧</uni-th>
+						<!-- <uni-th align="center">鐨噸</uni-th>
+						<uni-th align="center">姣涢噸</uni-th>
+						<uni-th align="center">鍑�閲�</uni-th> -->
+					  
+						<uni-th align="center">浠舵暟</uni-th>		
+					</uni-tr>
+					<uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index">
+						<uni-td align="left">
+							<view class="name">{{ subItem.productName }}</view></uni-td>
+					<!-- <uni-td align='right'>
+						<view  v-if="subItem.skin">{{ Number( subItem.skin).toFixed(2)  || ''}}</view>
+					</uni-td>
+					<uni-td align='right'>
+						<view class="name" v-if="subItem.hair">{{ Number(subItem.hair) .toFixed(2) || '' }}</view>
+					</uni-td>
+					<uni-td align='right'>
+						<view class="name" v-if="(subItem.clean || (subItem.clean &&  subItem.clean === 0))">{{ Number( subItem.clean).toFixed(2) || '' }}</view>
+					</uni-td> -->
+					
+				
 					   <uni-td align="right">
 					<view>{{ subItem.productQuantity }}</view
 					></uni-td>
@@ -121,7 +153,7 @@
 			</view>
 		</view>
 		<view class="origin-info"
-			v-if="originInfoVisible&&!isSpecial">
+			v-if="originInfoVisible&&!isSpecial&&isShowYuanFa">
 			<view class="origin-info_wrapper">
 				<view class="origin-info_content">
 					<!-- 鎶樺彔 -->
@@ -281,7 +313,7 @@
 						plain
 						@click="rcsqClick"
 						shape="circle"
-						:disabled="currentPageCoalStatus>= 3"></u-button>
+						:disabled="currentPageCoalStatus>= 3 &&  currentPageCoalStatus!==24"></u-button>
 					<!-- <u-button text="鍏ュ満鐢宠"
 						type="primary"
 						plain
@@ -586,6 +618,9 @@
 			name() {
 				return uni.getStorageSync('name');
 			},
+			roleType() {
+				return uni.getStorageSync('roleType');
+			},
 			openid() {
 				return uni.getStorageSync('openid');
 			},
@@ -670,9 +705,16 @@
 					return  tempArr[index];
 				 }
 
-				
-
+			
+			},
+			isShowYuanFa(){
+				if(this.coalContactClean && !this.coalDetailsData.tmTaskCoalList.length){
+					return false
+				}else{
+					return true
+				}
 			}
+			
 		},
 		methods: {
 			...mapMutations(['changewsgVisiable', 'changeisUploadimg', 'changeglobalIsFirstWeighing']),
@@ -774,7 +816,7 @@
 								}
 							})
 						} else {
-							this.fileList1 = []
+							this.fileList1 = ['']
 						}
 
 					} else {
@@ -799,7 +841,7 @@
 						}
 					}, 1000)
 					}
-					
+					this.coalDayPage();
 				})
 			},
 			// 鏃ュ織鏌ヨ
@@ -809,17 +851,32 @@
 						if (res.code == 0) {
 							this.timeLineStatus = res.data[0].taskStatus
 							this.timeLineEqCode = res.data[0].eqCode
-							this.dayRZ = res.data.map(v => {
-								let slicedate = v.taskStatusDes.slice(0, 10);
-								if (slicedate == this.currentDate) {
+							this.dayRZ = res.data.map((v,i) => {
+									let slicedate = v.taskStatusDes.slice(0, 10);
+								if(this.coalDetailsData.packingType === 1 && (this.roleType == 3 || this.roleType ==1 )){
+								if (slicedate == this.currentDate && !/[鐨瘺鍑�]/.test(v.taskStatusDes)) {
 									return {
 										...v,
 										taskStatusDes: v.taskStatusDes.slice(10)
 									};
-								} else {
-									return { ...v }
+								} else if( /[鐨瘺鍑�]/.test(v.taskStatusDes)){
+									return null
+								}else{
+									return {...v}
 								}
-							});
+								}else{
+									if (slicedate == this.currentDate) {
+								return {
+									...v,
+											taskStatusDes: v.taskStatusDes.slice(10)
+										};
+									} else {
+										return { ...v }
+									}
+								}
+							
+							
+							}).filter(Boolean);
 						}
 					});
 				}, 5000);

--
Gitblit v1.9.1