From cbfc1953c7e7333dbcb1e43fff15433ed24fc543 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期日, 08 十月 2023 17:28:32 +0800
Subject: [PATCH] 修正打印入门证接口错误 增加装卸员页面详情信息

---
 pages/loadUnload-page/loadUnload-detail/loadUnload-detail.vue |   41 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/pages/loadUnload-page/loadUnload-detail/loadUnload-detail.vue b/pages/loadUnload-page/loadUnload-detail/loadUnload-detail.vue
index 8c89119..525172f 100644
--- a/pages/loadUnload-page/loadUnload-detail/loadUnload-detail.vue
+++ b/pages/loadUnload-page/loadUnload-detail/loadUnload-detail.vue
@@ -43,6 +43,12 @@
 						<view class="file-name info">
 							鐘舵��:{{coalStatus[item.status]}}
 						</view>
+						<view class="info createTime">
+							鍏ュ満鏃堕棿:{{item.createTime}}
+						</view>
+						<view class="info code">
+							璁㈠崟缂栧彿:{{item.code}}
+						</view>
 					</view>
 				</view>
 				<view class="confirm-button">
@@ -53,7 +59,7 @@
 						@click.stop="loadOrder(item.id)"
 						:loading="loading"
 						loadingText="纭"
-						v-if='item.isPretendDischar===0'></u-button>
+						v-if='!item.ableDischar'></u-button>
 				</view>
 			</view>
 		</view>
@@ -77,7 +83,7 @@
 				loading: false,
 				id: "",
 				coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅浠�', '鍑虹叅浠�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠',
-					'杩涘叆鍦洪櫌', '寮傚父瀹℃牳涓�'
+					'杩涘叆鍦洪櫌', '寮傚父瀹℃牳涓�', '杩斿洖鍔犲噺鍚�', '瓒呮椂', '鎵撳嵃涓�', '鎵撳嵃涓�'
 				], // 鐘舵��
 			}
 		},
@@ -86,6 +92,10 @@
 			this.init()
 		},
 		methods: {
+			onPullDownRefresh() {
+				this.init()
+				uni.stopPullDownRefresh();
+			},
 			init() {
 				uni.showLoading({
 					title: "鍔犺浇涓�"
@@ -93,7 +103,14 @@
 				this.$reqGet('getAccordingCoalNameAll', { coalName: this.name }).then(res => {
 					uni.hideLoading()
 					if (res.code === 0) {
-						this.detailData = res.data
+						const errorStatusArr = [0, 1, 2, 3, 6, 11, 12, 13];
+						this.detailData = res.data.map(v => {
+							return {
+								...v,
+								ableDischar: v.skin === v.hair || v.hair === 0 && v.skin === 0 || v
+									.isPretendDischar !== 0 || errorStatusArr.indexOf(v.status) !== -1
+							}
+						})
 					} else {
 						this.$u.toast('鍔犺浇澶辫触')
 					}
@@ -110,7 +127,9 @@
 					this.loading = false;
 					if (res.code === 0) {
 						this.$u.toast('瑁呭嵏鎴愬姛')
-						this.init()
+						setTimeout(() => {
+							this.init()
+						}, 1000)
 					} else {
 						this.$u.toast(res.msg ? res.msg : '瑁呭嵏澶辫触')
 					}
@@ -132,7 +151,7 @@
 
 		.collection-form-item {
 			width: 690rpx;
-			height: 380rpx;
+			height: 440rpx;
 			background: #ffffff;
 			box-shadow: 4rpx 6rpx 25rpx 0rpx rgba(73, 120, 240, 0.15);
 			border-radius: 20rpx;
@@ -177,13 +196,13 @@
 
 			.info-container {
 				width: 100%;
-				height: vww(100);
+				height: vww(150);
 				display: flex;
 				justify-content: center;
 
 				.info-block {
 					width: 600rpx;
-					height: vww(80);
+					height: vww(120);
 					display: flex;
 					justify-content: center;
 					flex-wrap: wrap;
@@ -206,6 +225,14 @@
 					color: #515151;
 					margin: vww(5);
 				}
+
+				.createTime,
+				.code {
+					width: 100%;
+					margin-left: vww(9);
+					display: flex;
+					justify-content: flex-start;
+				}
 			}
 
 

--
Gitblit v1.9.1