From 5e27d80ff458af7c2ecd973de458f712a8017ede Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 07 五月 2026 15:15:24 +0800
Subject: [PATCH] fix(运营工作台): 修复场站切换时城市未重置和任务单状态显示问题

---
 src/views/businessOperations/operationWorkbench/workbench.station-workflow.ts |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/businessOperations/operationWorkbench/workbench.station-workflow.ts b/src/views/businessOperations/operationWorkbench/workbench.station-workflow.ts
index f30007b..2a5e4d7 100644
--- a/src/views/businessOperations/operationWorkbench/workbench.station-workflow.ts
+++ b/src/views/businessOperations/operationWorkbench/workbench.station-workflow.ts
@@ -27,13 +27,19 @@
 
 // 场站详情转页面编辑表单结构。
 export function buildStationWorkflowFormState(detail?: any | null) {
+  const normalizedAreaStatus
+    = Number(detail?.areaStatus) === 2
+      || Number(detail?.status) === 3
+      || String(detail?.status || detail?.statusText || "").trim() === "已停用"
+      ? 2
+      : 1;
   // 归一化后的场站表单。
   const form: StationFormState = {
     id: String(detail?.id || ""),
     stationName: detail?.stationName || detail?.name || "",
     stationNumber: detail?.stationNumber || "",
     description: detail?.description || detail?.desc || "",
-    areaStatus: Number(detail?.areaStatus || 1),
+    areaStatus: normalizedAreaStatus,
     operationType: String(detail?.operationType || "1") === "2" ? "2" : "1",
     effectivePeriod: Number(detail?.effectivePeriod || 1),
     parkingTimeLimit: detail?.parkingTimeLimit

--
Gitblit v1.7.1