From b6c983ac19c0c80744795e122575f4b9ac145414 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期日, 19 四月 2026 18:53:40 +0800
Subject: [PATCH] feat: 更新机器人任务处理逻辑和接口配置

---
 Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotTask.vue |   64 ++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 3 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotTask.vue b/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotTask.vue
index 8045fb4..eff9af8 100644
--- a/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotTask.vue
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotTask.vue
@@ -28,9 +28,67 @@
       sortName: "createDate",       // 榛樿鎺掑簭瀛楁
     });
 
-    // 缂栬緫琛ㄥ崟瀛楁锛堝垵濮嬩负绌猴紝鏍规嵁瀹為檯缂栬緫闇�姹傞厤缃級
-    const editFormFields = ref({});
-    const editFormOptions = ref([]);
+    // 缂栬緫琛ㄥ崟瀛楁
+    const editFormFields = ref({
+      robotTaskNum: "",
+      robotRoadway: "",
+      robotTaskType: "",
+      robotTaskState: "",
+      robotTaskTotalNum: "",
+      robotSourceAddress: "",
+      robotTargetAddress: "",
+      robotSourceAddressLineCode: "",
+      robotTargetAddressLineCode: "",
+      robotSourceAddressPalletCode: "",
+      robotTargetAddressPalletCode: "",
+      robotGrade: 2,
+    });
+
+    // 缂栬緫琛ㄥ崟閰嶇疆
+    const editFormOptions = ref([
+      [
+        { title: "浠诲姟缂栧彿", field: "robotTaskNum", type: "int", required: true },
+        { title: "宸烽亾", field: "robotRoadway", type: "string", required: true },
+        { title: "浠诲姟鎬绘暟", field: "robotTaskTotalNum", type: "int", required: true },
+        {
+          title: "浼樺厛绾�",
+          field: "robotGrade",
+          type: "select",
+          data: [
+            { key: 1, value: "浣�" },
+            { key: 2, value: "鏅��" },
+            { key: 3, value: "楂�" },
+            { key: 4, value: "绱ф��" },
+          ],
+        },
+      ],
+      [
+        {
+          title: "浠诲姟绫诲瀷",
+          field: "robotTaskType",
+          type: "select",
+          dataKey: "taskType",
+          data: [],
+          required: true,
+        },
+        {
+          title: "浠诲姟鐘舵��",
+          field: "robotTaskState",
+          type: "select",
+          dataKey: "taskState",
+          data: [],
+          required: true,
+        },
+        { title: "鏉ユ簮鍦板潃", field: "robotSourceAddress", type: "string", required: true },
+        { title: "鐩爣鍦板潃", field: "robotTargetAddress", type: "string", required: true },
+      ],
+      [
+        { title: "鏉ユ簮绾夸唬鐮�", field: "robotSourceAddressLineCode", type: "string" },
+        { title: "鐩爣绾夸唬鐮�", field: "robotTargetAddressLineCode", type: "string" },
+        { title: "鏉ユ簮鎵樼洏浠g爜", field: "robotSourceAddressPalletCode", type: "string" },
+        { title: "鐩爣鎵樼洏浠g爜", field: "robotTargetAddressPalletCode", type: "string" },
+      ],
+    ]);
 
     // 鎼滅储琛ㄥ崟瀛楁
     const searchFormFields = ref({

--
Gitblit v1.9.3