From fcd9dabadd792a13d22d89cf574d081038c98d32 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期四, 11 七月 2024 17:33:21 +0800
Subject: [PATCH] feat:门卫更改

---
 pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue |   56 +++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 37 insertions(+), 19 deletions(-)

diff --git a/pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue b/pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue
index 8d55b20..b61db08 100644
--- a/pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue
+++ b/pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue
@@ -18,7 +18,7 @@
 				<uni-tr v-for="(item, index) in driverBillOfLoadingData"
 					:key="item.id">
 					<uni-td align="center">{{ item.carNo || '' }}</uni-td>
-					<uni-td align="center">{{ item.productName || '' }}</uni-td>
+					<uni-td align="center">{{ item.productNames || '' }}</uni-td>
 					<uni-td align="center">{{ item.driver  }}</uni-td>
 					<uni-td align="center">{{ item.phone || '' }}</uni-td>
 					<uni-td align="center">{{ item.startTime || '' }}-{{item.endTime || ""}}</uni-td>
@@ -104,6 +104,14 @@
 					@confirm="logoutConfirm"
 					@cancel="logoutCancel"></u-modal>
 			</view>
+			<view class="falseModel">
+				<u-modal :show="falseShow"
+					:title="logoutTitle"
+					showCancelButton
+					:content="logoutContent"
+					@confirm="falseConfirm"
+					@cancel="falseCancel"></u-modal>
+			</view>
 		</view>
 </template>
 
@@ -126,6 +134,7 @@
 				ClickLoading:false,
 				certificateImg:"",
 				logoutShow: false,
+				falseShow:false,
 				logoutTitle: '鎻愮ず',
 				logoutContent: '鏄惁妫�鏌ュ畬姣�',
 				previewImageSrc:"",
@@ -136,6 +145,27 @@
 			this.init();
 		},
 		methods: {
+			falseConfirm(){
+				this.inspectData=[]
+				uni.showLoading({ title: '鍔犺浇涓�...' });
+				this.$reqPost('addCheckLog',{
+								carNo:this.form.carNo,
+								taskId:this.form.id,
+								taskcode:this.form.code,
+							}, 'json').then(res => {
+					if (res.code === 0) {
+						uni.$u.toast('妫�鏌ユ垚鍔�')
+						this.form={}
+						this.ClickLoading = false;
+						this.show = false;
+						this.TaskCoalList()
+						this.falseShow = false;
+					} else {
+						uni.$u.toast(res.msg ? res.msg : '妫�鏌ュけ璐�')
+						this.falseShow = false;
+					}
+				})
+			},
 			logoutConfirm() {
 				if(this.isAllSelected==true){
 					this.ClickLoading = true;
@@ -162,6 +192,7 @@
 							this.TaskCoalList()
 						} else {
 							uni.$u.toast(res.msg ? res.msg : '妫�鏌ュけ璐�')
+							this.logoutShow = false;
 						}
 					})
 				}else{
@@ -170,6 +201,9 @@
 			},
 			logoutCancel() {
 				this.logoutShow = false;
+			},
+			falseCancel() {
+				this.falseShow = false;
 			},
 			previewImageClose() {
 				this.previewImageShow = false;
@@ -225,24 +259,8 @@
 				   	this.form=item
 				   	this.show = true;
 				   }else{
-				   	this.inspectData=[]
+					this.falseShow = true;
 				   	this.form=item
-				   	uni.showLoading({ title: '鍔犺浇涓�...' });
-				   	this.$reqPost('addCheckLog',{
-				   					carNo:this.form.carNo,
-				   					taskId:this.form.id,
-				   					taskcode:this.form.code,
-				   				}, 'json').then(res => {
-				   		if (res.code === 0) {
-				   			uni.$u.toast('妫�鏌ユ垚鍔�')
-				   			this.form={}
-				   			this.ClickLoading = false;
-				   			this.show = false;
-				   			this.TaskCoalList()
-				   		} else {
-				   			uni.$u.toast(res.msg ? res.msg : '妫�鏌ュけ璐�')
-				   		}
-				   	})
 				   }
 				}
 				
@@ -259,7 +277,7 @@
 				this.certificateImg=""
 			},
 			popClick() {
-					this.logoutShow = true;
+				this.logoutShow = true;
 			},
 			open() {},
 			close() {

--
Gitblit v1.9.1