From 23cdbe08ee002d12c6d2a9034cc265fea0270a88 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期四, 18 九月 2025 17:11:44 +0800
Subject: [PATCH] 更新

---
 代码管理/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue |  137 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 131 insertions(+), 6 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue"
index fb15e01..1344da1 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/taskinfo/task.vue"
@@ -1,4 +1,3 @@
-
 <template>
   <view-grid
     ref="grid"
@@ -13,7 +12,7 @@
   >
   </view-grid>
 </template>
-  <script>
+<script>
 import extend from "@/extension/taskinfo/task.js";
 import { ref, defineComponent } from "vue";
 export default defineComponent({
@@ -26,8 +25,135 @@
       url: "/Task/",
       sortName: "CreateDate",
     });
-    const editFormFields = ref({});
-    const editFormOptions = ref([]);
+
+    // 1. 琛ュ厖锛氫换鍔$紪杈戣〃鍗曞瓧娈碉紙涓庝笟鍔″瓧娈靛搴旓紝瀛樺偍琛ㄥ崟杈撳叆鍊硷級
+    const editFormFields = ref({
+      taskNum: "",          // 浠诲姟鍙�
+      palletCode: "",       // 鎵樼洏缂栧彿
+      roadway: "",          // 鍖哄煙锛堝贩閬撳彿锛�
+      taskType: "",         // 浠诲姟绫诲瀷
+      taskState: "",        // 浠诲姟鐘舵��
+      sourceAddress: "",    // 璧峰鍦板潃
+      targetAddress: "",    // 鐩爣鍦板潃
+      currentAddress: "",   // 褰撳墠浣嶇疆
+      nextAddress: "",      // 涓嬩竴浣嶇疆
+      grade: 0,             // 浼樺厛绾э紙榛樿0锛屽彲璋冩暣锛�
+      exceptionMessage: "", // 寮傚父淇℃伅
+      wMSId: "",            // WMS浠诲姟涓婚敭
+      remark: ""            // 澶囨敞
+    });
+
+    // 2. 琛ュ厖锛氫换鍔$紪杈戣〃鍗曢厤缃紙鎺у埗琛ㄥ崟UI銆佹牎楠岃鍒欍�佷笅鎷夐�夐」绛夛級
+    const editFormOptions = ref([
+      // 绗竴琛岃〃鍗曪紙鏍稿績鏍囪瘑瀛楁锛�
+      [
+        {
+          title: "浠诲姟鍙�",
+          required: true,       // 蹇呭~
+          field: "taskNum",     // 鍏宠仈editFormFields鐨勫瓧娈�
+          type: "int",          // 鏁板�肩被鍨嬶紙浠诲姟鍙烽�氬父涓烘暣鏁帮級
+          placeholder: "璇疯緭鍏ヤ换鍔″彿"
+        },
+        {
+          title: "鎵樼洏缂栧彿",
+          required: true,
+          field: "palletCode",
+          type: "string",
+          placeholder: "璇疯緭鍏ユ墭鐩樼紪鍙�"
+        },
+        {
+          title: "宸烽亾鍙�",
+          required: true,
+          field: "roadway",
+          type: "string",
+          placeholder: "璇疯緭鍏ュ贩閬撳彿/鍖哄煙"
+        },
+        {
+          title: "浠诲姟绫诲瀷",
+          required: true,
+          field: "taskType",
+          type: "select",       // 涓嬫媺閫夋嫨鍣�
+          dataKey: "taskType",  // 鍏宠仈涓嬫媺閫夐」鏁版嵁婧愮殑key锛堜笌searchFormOptions涓�鑷达級
+          data: [],             // 閫夐」鏁版嵁锛堥�氬父浠庢帴鍙e姞杞斤紝姝ゅ鐣欑┖寰呭~鍏咃級
+          placeholder: "璇烽�夋嫨浠诲姟绫诲瀷"
+        }
+      ],
+      // 绗簩琛岃〃鍗曪紙鐘舵�佷笌鍦板潃瀛楁锛�
+      [
+        {
+          title: "浠诲姟鐘舵��",
+          required: true,
+          field: "taskState",
+          type: "select",
+          dataKey: "taskState", // 鍏宠仈浠诲姟鐘舵�佹暟鎹簮
+          data: [],
+          placeholder: "璇烽�夋嫨浠诲姟鐘舵��"
+        },
+        {
+          title: "璧峰鍦板潃",
+          required: true,
+          field: "sourceAddress",
+          type: "string",
+          placeholder: "璇疯緭鍏ヤ换鍔¤捣濮嬪湴鍧�"
+        },
+        {
+          title: "鐩爣鍦板潃",
+          required: true,
+          field: "targetAddress",
+          type: "string",
+          placeholder: "璇疯緭鍏ヤ换鍔$洰鏍囧湴鍧�"
+        },
+        {
+          title: "浼樺厛绾�",
+          required: true,
+          field: "grade",
+          type: "int",
+          min: 0,               // 浼樺厛绾ф渶浣庝负0
+          max: 10,              // 浼樺厛绾ф渶楂樹负10锛堝彲鏍规嵁涓氬姟璋冩暣锛�
+          placeholder: "璇疯緭鍏ヤ紭鍏堢骇锛�0-10锛�"
+        }
+      ],
+      // 绗笁琛岃〃鍗曪紙杈呭姪淇℃伅瀛楁锛�
+      [
+        {
+          title: "褰撳墠浣嶇疆",
+          field: "currentAddress",
+          type: "string",
+          readonly: true,       // 褰撳墠浣嶇疆閫氬父鐢辩郴缁熻嚜鍔ㄦ洿鏂帮紝璁句负鍙
+          placeholder: "绯荤粺鑷姩濉厖褰撳墠浣嶇疆"
+        },
+        {
+          title: "涓嬩竴浣嶇疆",
+          field: "nextAddress",
+          type: "string",
+          readonly: true,
+          placeholder: "绯荤粺鑷姩濉厖涓嬩竴浣嶇疆"
+        },
+        {
+          title: "WMS浠诲姟涓婚敭",
+          field: "wMSId",
+          type: "int",
+          placeholder: "璇疯緭鍏MS浠诲姟涓婚敭锛堝彲閫夛級"
+        },
+        {
+          title: "寮傚父淇℃伅",
+          field: "exceptionMessage",
+          type: "string",
+          placeholder: "鏃犲紓甯稿彲鐣欑┖"
+        }
+      ],
+      // 绗洓琛岃〃鍗曪紙澶囨敞瀛楁锛屽崰婊′竴琛岋級
+      [
+        {
+          title: "澶囨敞",
+          field: "remark",
+          type: "textarea",     // 澶氳鏂囨湰妗嗭紙閫傚悎闀挎枃鏈級
+          span: 4,              // 鍗�4鍒楋紙涓庡墠鍑犺甯冨眬瀵归綈锛�
+          placeholder: "璇疯緭鍏ヤ换鍔$浉鍏冲娉ㄤ俊鎭紙鍙�夛級"
+        }
+      ]
+    ]);
+
     const searchFormFields = ref({
       taskNum: "",
       palletCode: "",
@@ -232,5 +358,4 @@
     };
   },
 });
-</script>
-  
\ No newline at end of file
+</script>
\ No newline at end of file

--
Gitblit v1.9.3