From f880863b9292a4cc4c0a484f721bb87bf42e57ed Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 10 十一月 2023 17:32:32 +0800
Subject: [PATCH] 质检完成修改为处理完成

---
 pages/driver-page/driver-index/driver-index.vue |   47 ++++++++++++++++++++++++++++-------------------
 1 files changed, 28 insertions(+), 19 deletions(-)

diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue
index 095cf35..6cedf3a 100644
--- a/pages/driver-page/driver-index/driver-index.vue
+++ b/pages/driver-page/driver-index/driver-index.vue
@@ -97,13 +97,18 @@
 						icon="http://cdn.uviewui.com/uview/empty/data.png"
 						textSize="30"
 						iconSize="1000"
+						text="鏆傛棤鏁版嵁"
 						v-if="driverBillOfLoadingData.list3 ? (driverBillOfLoadingData.list3.length == 0 ? true : false) : true"></u-empty>
 
 					<view class="appointment-form">
 						<view class="appointment-form-item"
 							v-for="(item, index) in driverBillOfLoadingData.list3"
-							:key="index">
+							:key="index"
+							@click.stop="list3CardIconClick(item)"
+							>
+							
 							<view class="main-divider"></view>
+							<view class="orderCode">璁㈠崟鍙凤細{{ item.orderCode }}</view>	
 							<view class="first-line">
 								<view class="main-information">
 									<view class="sign">瑁�</view>
@@ -161,7 +166,7 @@
 								</view>
 							</view>
 							<view class="fourth-line"
-								@click="toAppointmentClick(item)">
+								@click.stop="toAppointmentClick(item)">
 								<view class="button-img">绔嬪嵆棰勭害</view>
 							</view>
 						</view>
@@ -175,6 +180,7 @@
 						icon="http://cdn.uviewui.com/uview/empty/data.png"
 						textSize="30"
 						iconSize="1000"
+						text="鏆傛棤鏁版嵁"
 						v-if="driverBillOfLoadingData.list2 ? (driverBillOfLoadingData.list2.length == 0 ? true : false) : true"></u-empty>
 					<view class="appointment-form">
 						<view class="appointment-form-item"
@@ -182,6 +188,7 @@
 							:key="index"
 							@click="list3CardIconClick(item)">
 							<view class="main-divider"></view>
+							<view class="orderCode">璁㈠崟鍙凤細{{ item.orderCode }}</view>	
 							<view class="first-line">
 								<view class="main-information">
 									<view class="sign">瑁�</view>
@@ -248,7 +255,7 @@
 				<!-- 鍥剧墖棰勮寮瑰嚭妗� -->
 				<view class="previewImage-container">
 					<previewImage ref="previewImage"
-						:imgs="TourImgList"
+						:imgs="driverTourImgList"
 						:saveBtn='false'></previewImage>
 				</view>
 			</view>
@@ -262,6 +269,8 @@
 	import { onlineurl } from '@/api/request.js'
 	import { BaseUrl } from '@/api/publicInterface.js'
 	import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
+	import { mapState } from 'vuex';
+	import { Debounce } from '../../../utils/util';
 	export default {
 		components: {
 			combinedTitle,
@@ -283,6 +292,7 @@
 			},
 		},
 		computed: {
+			...mapState(['driverTourImgList']),
 			roleType() {
 				return uni.getStorageSync('roleType');
 			},
@@ -302,19 +312,16 @@
 				fleetId: '',
 				xsUserId: '',
 				customerId: '',
-				coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚', '楠岃川瀹屾垚'],
+				coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚', '澶勭悊瀹屾垚'],
 				onlineurl,
-				TourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj1.jpg',
-					'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj2.jpg',
-					'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj3.jpg',
-					'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj4.jpg',
-					'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj5.jpg',
-					'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj6.jpg',
-					'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj7.jpg'
-				],
 				phone: "",
 				isFirstLogin: true //鏄惁鏄涓�娆$櫥褰�
 			};
+		},
+		mounted() {
+			// this.TourImgList = TourImgList
+			this.getLogOn()
+			
 		},
 		onShow() {
 			this.init();
@@ -330,7 +337,6 @@
 			},
 			init() {
 				this.qiangDanList();
-				this.getLogOn()
 			},
 			// 鍙告満棣栭〉鍒楄〃
 			qiangDanList() {
@@ -343,7 +349,7 @@
 				});
 			},
 			// 鎶㈠崟鎸夐挳
-			qiangDanBtn(value) {
+			qiangDanBtn:Debounce(function(value){
 				if (value.tmcCount == '0') {
 					this.qiangDan(value.orderPlanId, value.fleetId, value.customerId === null ? '0' : value.customerId,
 						value.xsUserId === null ? '0' : value.xsUserId);
@@ -355,7 +361,9 @@
 					this.qiangDanShow = true;
 					this.qiangDanContent = `宸叉姠${value.tmcCount}鍗曪紝纭畾鎶㈠崟锛焋;
 				}
-			},
+			} ,500)
+				
+			,
 			// 鎶㈠崟妯℃�佹
 			qiangDanConfirm() {
 				this.qiangDanContent = '';
@@ -413,7 +421,6 @@
 					uni.request({
 						url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`,
 						success: res => {
-							console.log(res, '鏃ュ織');
 							// res.data.data 涓�1 浠h〃绗竴娆$櫥褰�  涓�0鍙栨秷瀛︿範鎸囧紩 涓�2 浠h〃瀛樺湪
 							if (res.data.data === 1) {
 								this.noobTour()
@@ -768,18 +775,20 @@
 
 				.appointment-form-item {
 					@include formItem;
-					height: vww(220);
+					height: vww(240);
 					justify-content: space-between;
 					overflow: hidden;
-
 					.main-divider {
 						width: 560rpx;
 						height: 1rpx;
 						background: #e3e3e3;
 						position: absolute;
-						top: 122rpx;
+						top: 200rpx;
 						left: 128rpx;
 					}
+					.orderCode{
+						padding: 10px;
+					}
 
 					.first-line {
 						position: relative;

--
Gitblit v1.9.1