From b77f2eb3717762c6638856ebe76812c8b1986b57 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期二, 09 七月 2024 17:30:46 +0800
Subject: [PATCH] feat:门卫运输证

---
 pages/doorkeeper-page/doorkeeper-index/exit-index.vue |   57 +++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 39 insertions(+), 18 deletions(-)

diff --git a/pages/doorkeeper-page/doorkeeper-index/exit-index.vue b/pages/doorkeeper-page/doorkeeper-index/exit-index.vue
index f93b8a8..4a7e8f9 100644
--- a/pages/doorkeeper-page/doorkeeper-index/exit-index.vue
+++ b/pages/doorkeeper-page/doorkeeper-index/exit-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.isEmptyCar?item.isEmptyCar=='0'?'鍚�':'鏄�':'鍚�'}}</uni-td>
@@ -54,6 +54,14 @@
 				</view>
 			</u-popup>
 			<tab-bar :current="1"></tab-bar>
+			<view class="logoutModel">
+				<u-modal :show="logoutShow"
+					:title="logoutTitle"
+					showCancelButton
+					:content="logoutContent"
+					@confirm="logoutConfirm"
+					@cancel="logoutCancel"></u-modal>
+			</view>
 		</view>
 </template>
 
@@ -69,6 +77,10 @@
 				isAllSelected:false,
 				form:{},
 				carNo:'',
+				logoutShow: false,
+				logoutTitle: '鎻愮ず',
+				logoutContent: '鏄惁妫�鏌ュ畬姣�',
+				previewImageSrc:"",
 				ClickLoading:false
 			}
 		},
@@ -76,24 +88,33 @@
 			this.init();
 		},
 		methods: {
+			logoutConfirm() {
+
+				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.TaskCoalList()
+						this.logoutShow = false;
+					} else {
+						uni.$u.toast(res.msg ? res.msg : '妫�鏌ュけ璐�')
+						this.logoutShow = false;
+					}
+				})
+			},
+			logoutCancel() {
+				this.logoutShow = false;
+			},
 			yuYueBtnClick(item){
-					this.inspectData=[]
-					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.TaskCoalList()
-						} else {
-							uni.$u.toast(res.msg ? res.msg : '妫�鏌ュけ璐�')
-						}
-					})
+				this.logoutShow = true;
+				this.inspectData=[]
+				this.form=item
 			},
 			selectionChange(items){
 			  const allIds = this.inspectData.map(item => item);

--
Gitblit v1.9.1