From 569c6b3e6b28b2808d22af4656c8f65a973c345e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 07 五月 2025 09:07:11 +0800
Subject: [PATCH] 提交

---
 pda/pages/index/center.vue |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/pda/pages/index/center.vue b/pda/pages/index/center.vue
index 3b64e25..ad0c9c2 100644
--- a/pda/pages/index/center.vue
+++ b/pda/pages/index/center.vue
@@ -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>
@@ -227,7 +228,8 @@
 		platformMove,
 		platformErr,
 		platformOverNumber,
-		wmsJobDetail
+		wmsJobDetail,
+		restoreWork
 	} from '@/api'
 	import {
 		statusMap
@@ -565,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