From c3aaf28f7316cce12eec007a9f85a96cbcddeec2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 07 五月 2025 10:34:20 +0800
Subject: [PATCH] 最新版本541200007

---
 pda/pages/index/center.vue |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/pda/pages/index/center.vue b/pda/pages/index/center.vue
index 74990cb..ad0c9c2 100644
--- a/pda/pages/index/center.vue
+++ b/pda/pages/index/center.vue
@@ -39,12 +39,12 @@
 				</view>
 				<view class="line" v-else>
 					<text class="label">鍚堝悓鍗曞彿</text>
-					<text class="value">{{ item.contractNum }}</text>
+					<text class="value" style="word-break: break-all;">{{ item.contractNum }}</text>
 					<text class="primaryColor" @click="subDetail(item)">棰勭害璇︽儏</text>
 				</view>
 				<view class="line line2" v-if="item.billCode && item.wmsContractNum">
 					<text class="label">鍚堝悓鍗曞彿</text>
-					<text class="value">{{ item.wmsContractNum }}</text>
+					<text class="value" style="word-break: break-all;">{{ item.wmsContractNum }}</text>
 				</view>
 				<view class="line">
 					<text class="label">椹鹃┒鍛�</text>
@@ -63,6 +63,7 @@
 					<view v-if="item.status == 4" class="btn active" @click="handleWork(item)">寮�濮嬩綔涓�</view>
 
 					<view v-if="item.status == 5" class="btn" @click="handleErr(item)">寮傚父鎸傝捣</view>
+					<view v-if="item.status == 8" class="btn" @click="restore(item)">寮傚父鎸傝捣</view>
 					<view v-if="item.status == 5 || item.status == 8" class="btn" @click="handleTransform(item)">杞Щ鏈堝彴</view>
 					<view v-if="item.status == 5 || item.status == 8" class="btn active" @click="handleFinish(item)">浣滀笟瀹屾垚</view>
 				</view>
@@ -112,12 +113,12 @@
 							</view>
 							<view class="line" v-else>
 								<text class="label">鍚堝悓鍗曞彿</text>
-								<text class="value">{{ item.contractNum }}</text>
+								<text class="value" style="word-break: break-all;">{{ item.contractNum }}</text>
 								<text class="primaryColor" @click="subDetail(item)">棰勭害璇︽儏</text>
 							</view>
 							<view class="line line2" v-if="item.billCode && item.wmsContractNum">
 								<text class="label">鍚堝悓鍗曞彿</text>
-								<text class="value">{{ item.wmsContractNum }}</text>
+								<text class="value" style="word-break: break-all;">{{ item.wmsContractNum }}</text>
 							</view>
 							<view class="line">
 								<text class="label">椹鹃┒鍛�</text>
@@ -131,7 +132,9 @@
 								<text class="label">杩愯緭鍏徃</text>
 								<text class="value">{{ item.carrierName }}</text>
 							</view>
-							<view class="btns">
+							<view class="btns" style="display: flex; align-items: center; justify-content: space-between;">
+								<text style="color: #279BAA; font-size: 14px; font-weight: 400;" v-if="item.signDate">绛惧埌鏃堕棿锛歿{item.signDate.substring(5, 10)}} {{item.signDate.substring(11, 16)}}</text>
+								<text v-else></text>
 								<view class="btn active" @click="handleCall(item)">鍙彿</view>
 							</view>
 						</view>
@@ -225,7 +228,8 @@
 		platformMove,
 		platformErr,
 		platformOverNumber,
-		wmsJobDetail
+		wmsJobDetail,
+		restoreWork
 	} from '@/api'
 	import {
 		statusMap
@@ -563,6 +567,21 @@
 						}
 					}
 				})
+			},
+			restore(item) {
+				uni.showModal({
+					content: '鎮ㄧ‘璁よ瀵硅浠诲姟杩涜鎭㈠浣滀笟鍚�',
+					success: (res) => {
+						if (res.confirm) {
+							restoreWork({
+								jobId: item.id
+							}).then(ress => {
+								this.showToast('鎭㈠浣滀笟鎴愬姛')
+								this.getPlatformTask()
+							})
+						}
+					}
+				})
 			}
 		}
 	}

--
Gitblit v1.9.3