From 8b53f063a074d91e7093d35168bf0dc349c83ba9 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 11 七月 2024 14:14:39 +0800 Subject: [PATCH] feat::发运单详情去除折叠 --- pages/doorkeeper-page/doorkeeper-index/exit-index.vue | 59 +++++++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 41 insertions(+), 18 deletions(-) diff --git a/pages/doorkeeper-page/doorkeeper-index/exit-index.vue b/pages/doorkeeper-page/doorkeeper-index/exit-index.vue index bf42c34..4a7e8f9 100644 --- a/pages/doorkeeper-page/doorkeeper-index/exit-index.vue +++ b/pages/doorkeeper-page/doorkeeper-index/exit-index.vue @@ -12,14 +12,16 @@ <uni-th align="center">浜у搧</uni-th> <uni-th align="center">鍙告満</uni-th> <uni-th align="center">鎵嬫満鍙�</uni-th> + <uni-th align="center">绌鸿溅鍑哄満 </uni-th> <uni-th align="center">鎿嶄綔</uni-th> </uni-tr> <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> <uni-td><u-button text="妫�鏌�" type="primary" @click="yuYueBtnClick(item)"></u-button></uni-td> @@ -52,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> @@ -67,6 +77,10 @@ isAllSelected:false, form:{}, carNo:'', + logoutShow: false, + logoutTitle: '鎻愮ず', + logoutContent: '鏄惁妫�鏌ュ畬姣�', + previewImageSrc:"", ClickLoading:false } }, @@ -74,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