From 37a0b120e66bcda386b0a8c256ca0fe9f09b29cb Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 29 六月 2023 18:16:26 +0800
Subject: [PATCH] 司机首页添加状态,细节修改

---
 pages/customer-page/customer-index/customer-index.vue |   48 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 37 insertions(+), 11 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 499b969..37f6ad4 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -20,20 +20,28 @@
 						@click="cardBodyClick(item)">
 						<view class="first-line">
 							<view class="dispatch-receive">
-								<view class="dispatch">{{ item.filedName }}</view>
+								<view class="dispatch">{{ item.filedName||'' }}</view>
 							</view>
 							<view class="point-number">
-								<text class="residue">{{ item.cars2 }}</text>
-								<text>/{{ item.carNum }}</text>
+								<text class="residue">{{ item.cars2||'' }}</text>
+								<text>/{{ item.carNum ||''}}</text>
 							</view>
 						</view>
 						<view class="second-line">
 							<view class="coal-name">
-								<view class="">{{ item.coalName }}</view>
+								<view class="">{{ item.coalName ||''}}</view>
 								<view class="black-bar"></view>
 								<view class="coal-type"
-									v-if="item.orderType">{{ item.orderType }}</view>
+									v-if="item.orderType">{{ item.orderType||'' }}</view>
 							</view>
+						</view>
+						<view class="third-line">
+							<view class="time-icon">
+								<view
+									style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carNO.png') no-repeat;background-size: cover">
+								</view>
+							</view>
+							<view class="car-num">{{ item.carNos||''}}</view>
 						</view>
 						<view class="third-line">
 							<view class="time-icon">
@@ -45,12 +53,19 @@
 						</view>
 						<view class="fourth-line">
 							<view class="receive"
-								@click.stop="receiveClick(item)">
+								@click.stop="receiveClick(item)"
+								v-if="item.orderType!=='澶栬喘'">
 								<view class="button-image">棰嗗彇</view>
 							</view>
 							<view class="forward"
-								@click.stop="forwardClick(item)">
+								@click.stop="forwardClick(item)"
+								v-if="item.orderType!=='澶栬喘'">
 								<view class="button-image">杞彂</view>
+							</view>
+							<view class="forward"
+								@click.stop="validateClick(index)"
+								v-if='roleType===4'>
+								<view class="button-image">楠岃川</view>
 							</view>
 						</view>
 					</view>
@@ -313,7 +328,7 @@
 			// 鎻愮叅鍗曡鎯�
 			cardBodyClick(v) {
 				uni
-		.navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
+					.navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
 			},
 			// 鐐瑰嚮鍘嗗彶鎻愮叅鍗曡幏鍙栬鎯�
 			faYundetail(v) {
@@ -326,7 +341,12 @@
 				if (obj.cars2 == 0) return this.$u.toast('璇峰厛棰嗗彇鍚庡啀杞彂');
 				uni
 					.navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}` });
-			}
+			},
+			// 楠岃川
+			validateClick(index) {
+				uni
+					.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?index=${index}` });
+			},
 		}
 	};
 </script>
@@ -552,7 +572,7 @@
 					}
 
 					.third-line {
-						width: 40%;
+						width: 80%;
 						height: vww(30);
 						margin-left: vww(15);
 						display: flex;
@@ -568,13 +588,19 @@
 							font-weight: 300;
 							color: #515151;
 						}
+
+						.car-num {
+							white-space: nowrap;
+							overflow: hidden;
+							text-overflow: ellipsis;
+						}
 					}
 
 					.fourth-line {
 						width: 100%;
 						height: vww(30);
 						@include flex;
-						justify-content: flex-start;
+						justify-content: flex-end;
 						position: relative;
 						bottom: vww(10);
 						left: 25%;

--
Gitblit v1.9.1