From b44b5aa1dda1d9196416cbf84e610cfd1f5b1c82 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 25 九月 2024 15:54:01 +0800
Subject: [PATCH] lll

---
 h5/pages/driver/taskConfirm.vue |   95 +++++++++++++++++++++++++----------------------
 1 files changed, 51 insertions(+), 44 deletions(-)

diff --git a/h5/pages/driver/taskConfirm.vue b/h5/pages/driver/taskConfirm.vue
index dd156a3..97860e4 100644
--- a/h5/pages/driver/taskConfirm.vue
+++ b/h5/pages/driver/taskConfirm.vue
@@ -18,8 +18,8 @@
 			</view>
 			<view class="line">
 				<view class="label">杩愯緭鍗曞彿</view>
-				<view class="value" @click="showDetail = true">
-					<text class="waybill_num">{{ param.contractNum }}</text>
+				<view class="value" @click="wmsDetail">
+					<text class="waybill_num">{{ param.billCode }}</text>
 					<text class="btn">杩愬崟璇︽儏</text>
 				</view>
 			</view>
@@ -59,49 +59,45 @@
 		<u-popup :show="showDetail" :round="10" :safeAreaInsetBottom="true" closeOnClickOverlay :closeable="true" mode="bottom" @close="showDetail = false">
 			<view class="detail_modal">
 				<view class="modal_title">杩愬崟璇︽儏</view>
-				<view class="id_card">
-					<view class="last">鐨�</view>
-					<view class="name">AD1111</view>
+				<view v-if="wmsInfo.plateNumber" class="id_card">
+					<text>{{ wmsInfo.plateNumber.slice(0, 1) }}</text>
+					<text>{{ wmsInfo.plateNumber.slice(1, 2) }}</text>
+					<text>路</text>
+					<text>{{ wmsInfo.plateNumber.slice(2) }}</text>
 				</view>
 				<!--  -->
 				<view class="info">
 					<view class="line">
 						<view class="label">杩愯緭鍗曞彿</view>
-						<view class="value">2222</view>
+						<view class="value">{{ wmsInfo.carryBillCode }}</view>
 					</view>
 					<view class="line">
 						<view class="label">椹鹃┒鍛�</view>
-						<view class="value">2222</view>
+						<view class="value">{{ wmsInfo.driverName }} {{ wmsInfo.driverPhone }}</view>
 					</view>
 					<view class="line">
 						<view class="label">鎬昏繍杈撻噺</view>
-						<view class="value">2222</view>
+						<view class="value">{{ wmsInfo.ioQty }}涓囨敮</view>
 					</view>
 					<view class="line">
 						<view class="label">杩愯緭鍏徃</view>
-						<view class="value">2222</view>
+						<view class="value">{{ wmsInfo.carrierName }}</view>
 					</view>
 				</view>
 				<view class="separate"></view>
-				<view class="contract_list">
-					<view class="title">鍚堝悓鍙凤細111</view>
-					<view class="address">aadd</view>
+				<view class="contract_list" v-for="item in wmsInfo.wmsJobContractVOList">
+					<view class="title">鍚堝悓鍙凤細{{ item.contractCode }}</view>
+					<view class="address">鏀惰揣鍦帮細{{ item.address }}</view>
 					<view class="list">
-						<view class="line">
-							<view class="label">鐗╂枡锛�</view>
-							<view class="value">榛勫北榛戦┈</view>
-						</view>
-						<view class="line">
-							<view class="label">鏁伴噺锛�</view>
-							<view class="value">榛勫北榛戦┈</view>
-						</view>
-						<view class="line">
-							<view class="label">鐗╂枡锛�</view>
-							<view class="value">榛勫北榛戦┈</view>
-						</view>
-						<view class="line">
-							<view class="label">鏁伴噺锛�</view>
-							<view class="value">榛勫北榛戦┈</view>
+						<view class="item" v-for="line in item.platformWmsDetailList">
+							<view class="line">
+								<view class="label">鐗╂枡锛�</view>
+								<view class="value">{{ line.materialName }}</view>
+							</view>
+							<view class="line">
+								<view class="label">鏁伴噺锛�</view>
+								<view class="value">{{ line.ioQty }}</view>
+							</view>
 						</view>
 					</view>
 				</view>
@@ -115,7 +111,7 @@
 
 <script>
 import keyboardInput from '@/components/keyboard-input/keyboard-input.vue';
-import { driverTaskJobDetail, driverConfirmTask } from '@/api';
+import { driverTaskJobDetail, driverConfirmTask, wmsJobDetail } from '@/api';
 import dayjs from 'dayjs'
 export default {
 	components: {
@@ -124,6 +120,7 @@
 	data() {
 		return {
 			param: {},
+			wmsInfo: {},
 			showDate: false,
 			showDetail: false,
 			minDate: '',
@@ -155,6 +152,13 @@
 			}).then(ress => {
 				this.param = { ...ress.data, carCodeBack: '' };
 			});
+		},
+		wmsDetail() {
+			const { param } = this
+			wmsJobDetail({ id: param.id }).then(res => {
+				this.wmsInfo = res.data
+				this.showDetail = true
+			})
 		},
 		dateEnter(e) {
 			setTimeout(() => {
@@ -435,26 +439,29 @@
 	}
 
 	.id_card {
-		border-radius: 8rpx;
 		display: flex;
+		font-weight: 600;
 		height: 60rpx;
 		line-height: 60rpx;
-		font-weight: 600;
-		font-size: 36rpx;
+		font-size: 32rpx;
 		color: #111111;
-		text-align: center;
-		margin-bottom: 30rpx;
-
-		.last {
-			background: #e9f5f6;
-			width: 60rpx;
-			border-radius: 8rpx 0rpx 0rpx 8rpx;
-			border: 1rpx solid #dfdede;
-		}
-
-		.name {
-			width: 186rpx;
-			border: 1rpx solid #dfdede;
+		border-radius: 8rpx;
+		border: 1rpx solid #dfdede;
+		width: 220rpx;
+		margin-bottom: 15rpx;
+		text {
+			&:nth-of-type(1) {
+				background: #e9f5f6;
+				padding: 0 12rpx;
+			}
+		
+			&:nth-of-type(2) {
+				padding-left: 10rpx;
+			}
+		
+			&:nth-of-type(4) {
+				padding-right: 6rpx;
+			}
 		}
 	}
 }

--
Gitblit v1.9.3