From 960b33fa24c47a330e51a2c24859d681ae62caeb Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 16 四月 2026 10:09:49 +0800
Subject: [PATCH] 重构任务与库存模型,增强日志管理与区域接口

---
 Code Management/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue |  186 ++++++----------------------------------------
 1 files changed, 24 insertions(+), 162 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue b/Code Management/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue
index f8fed3d..28c1945 100644
--- a/Code Management/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue
@@ -1,19 +1,11 @@
 
 <template>
-  <view-grid
-    ref="grid"
-    :columns="columns"
-    :detail="detail"
-    :editFormFields="editFormFields"
-    :editFormOptions="editFormOptions"
-    :searchFormFields="searchFormFields"
-    :searchFormOptions="searchFormOptions"
-    :table="table"
-    :extend="extend"
-  >
+  <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
+    :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
+    :table="table" :extend="extend">
   </view-grid>
 </template>
-    <script>
+<script>
 import extend from "@/extension/taskinfo/task.js";
 import { ref, defineComponent } from "vue";
 export default defineComponent({
@@ -48,8 +40,8 @@
         { title: "鍒涘缓浜�", field: "creater", type: "like" },
       ],
       [
-        { title: "浠诲姟绫诲瀷",field: "taskType",type: "selectList",dataKey: "taskType",data: [],},
-        { title: "浠诲姟鐘舵��",field: "taskStatus",type: "selectList",dataKey: "taskStatusEnum",data: [],},
+        { title: "浠诲姟绫诲瀷", field: "taskType", type: "selectList", dataKey: "taskType", data: [], },
+        { title: "浠诲姟鐘舵��", field: "taskStatus", type: "selectList", dataKey: "taskState", data: [], },
         { title: "宸烽亾鍙�", field: "roadway", type: "like" },
       ],
       [
@@ -59,154 +51,24 @@
       ],
     ]);
     const columns = ref([
-      {
-        field: "taskId",
-        title: "taskId",
-        type: "int",
-        width: 90,
-        hidden: true,
-        readonly: true,
-        require: true,
-        align: "left",
-      },
-      {
-        field: "taskNum",
-        title: "浠诲姟鍙�",
-        type: "int",
-        width: 120,
-        align: "left",
-      },
-      {
-        field: "palletCode",
-        title: "鎵樼洏缂栧彿",
-        type: "string",
-        width: 160,
-        align: "left",
-      },
-      {
-        field: "roadway",
-        title: "宸烽亾鍙�",
-        type: "string",
-        width: 120,
-        align: "left",
-      },
-      {
-        field: "taskType",
-        title: "浠诲姟绫诲瀷",
-        type: "int",
-        width: 120,
-        align: "left",
-        bind: { key: "taskType", data: [] },
-      },
-      {
-        field: "taskStatus",
-        title: "浠诲姟鐘舵��",
-        type: "int",
-        width: 150,
-        align: "left",
-        bind: { key: "taskStatusEnum", data: [] },
-      },
-      {
-        field: "sourceAddress",
-        title: "璧峰鍦板潃",
-        type: "int",
-        width: 220,
-        align: "left",
-      },
-      {
-        field: "targetAddress",
-        title: "鐩爣鍦板潃",
-        type: "string",
-        width: 220,
-        align: "left",
-      },
-      // {
-      //   field: "currentAddress",
-      //   title: "褰撳墠浣嶇疆",
-      //   type: "string",
-      //   width: 120,
-      //   align: "left",
-      // },
-      // {
-      //   field: "nextAddress",
-      //   title: "涓嬩竴浣嶇疆",
-      //   type: "string",
-      //   width: 120,
-      //   align: "left",
-      // },
-      {
-        field: "exceptionMessage",
-        title: "寮傚父淇℃伅",
-        type: "string",
-        width: 90,
-        align: "left",
-      },
-      {
-        field: "grade",
-        title: "浼樺厛绾�",
-        type: "int",
-        width: 80,
-        align: "left",
-      },
-      {
-        field: "depth",
-        title: "娣卞害",
-        type: "int",
-        width: 80,
-        align: "left",
-      },
-      {
-        field: "dispatchertime",
-        title: "浠诲姟涓嬪彂鏃堕棿",
-        type: "datetime",
-        width: 160,
-        align: "left",
-        hidden:true,
-      },
-      {
-        field: "wMSId",
-        title: "WMS浠诲姟涓婚敭",
-        type: "int",
-        width: 120,
-        align: "left",
-        hidden: true,
-      },
-      {
-        field: "creater",
-        title: "鍒涘缓浜�",
-        type: "string",
-        width: 90,
-        align: "left",
-      },
-      {
-        field: "createDate",
-        title: "鍒涘缓鏃堕棿",
-        type: "datetime",
-        width: 160,
-        align: "left",
-      },
-      {
-        field: "modifier",
-        title: "淇敼浜�",
-        type: "string",
-        width: 100,
-        align: "left",
-      },
-      {
-        field: "modifyDate",
-        title: "淇敼鏃堕棿",
-        type: "datetime",
-        width: 160,
-        align: "left",
-      },
-      {
-        field: "remark",
-        title: "澶囨敞",
-        type: "string",
-        width: 100,
-        align: "left",
-        hidden: true,
-      },
+      { field: 'TaskId', title: '涓婚敭', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
+      { field: 'taskNum', title: '浠诲姟鍙�', type: 'int', width: 90, align: 'left' },
+      { field: 'palletCode', title: '鎵樼洏鍙�', type: 'string', width: 120, align: 'left' },
+      { field: 'roadway', title: '宸烽亾', type: 'string', width: 90, align: 'left' },
+      { field: 'taskType', title: '浠诲姟绫诲瀷', type: 'int', width: 90, align: 'left', bind: { key: "taskType", data: [] } },
+      { field: 'taskState', title: '浠诲姟鐘舵��', type: 'int', width: 130, align: 'left', bind: { key: "taskState", data: [] } },
+      { field: 'sourceAddress', title: '璧峰浣嶇疆', type: 'string', width: 150, align: 'left' },
+      { field: 'targetAddress', title: '鐩爣浣嶇疆', type: 'string', width: 150, align: 'left' },
+      { field: 'currentAddress', title: '褰撳墠浣嶇疆', type: 'string', width: 110, align: 'left', hidden: true },
+      { field: 'nextAddress', title: '涓嬩竴浣嶇疆', type: 'string', width: 110, align: 'left', hidden: true },
+      { field: 'grade', title: '浼樺厛绾�', type: 'int', width: 60, align: 'left' },
+      { field: 'errorMessage', title: '寮傚父淇℃伅', type: 'string', width: 110, align: 'left' },
+      { field: 'dispatchertime', title: '浠诲姟涓嬪彂鏃堕棿', type: 'datetime', width: 150, align: 'left', sort: true },
+      { field: 'remark', title: '澶囨敞', type: 'string', width: 110, align: 'left', hidden: true, },
+      { field: 'createDate', title: '鍒涘缓鏃堕棿', type: 'datetime', sort: true, width: 150, align: 'left', sort: true },
+      { field: 'modifyDate', title: '淇敼鏃堕棿', type: 'datetime', sort: true, width: 150, align: 'left', sort: true },
+      { field: 'creater', title: '鍒涘缓浜�', type: 'string', sort: true, width: 110, align: 'left' },
+      { field: 'modifier', title: '淇敼浜�', type: 'string', sort: true, width: 100, align: 'left' },
     ]);
     const detail = ref({
       cnName: "#detailCnName",

--
Gitblit v1.9.3