From 27c8277d717b34b55f3ea967027b53b067f77df3 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期四, 20 八月 2026 16:58:49 +0800
Subject: [PATCH] feat 功能变更

---
 src/views/mes/pro/task/data.ts |   70 +++++++++++++++++++++++++++-------
 1 files changed, 55 insertions(+), 15 deletions(-)

diff --git a/src/views/mes/pro/task/data.ts b/src/views/mes/pro/task/data.ts
index a24e576..167bac7 100644
--- a/src/views/mes/pro/task/data.ts
+++ b/src/views/mes/pro/task/data.ts
@@ -1,5 +1,7 @@
-锘縤mport type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
+import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
+import { z } from '#/adapter/form';
+import { getSimpleUserListByRoleCode } from '#/api/system/user';
 import type { MesProTaskApi } from '#/api/mes/pro/task';
 import type { MesProWorkOrderApi } from '#/api/mes/pro/workorder';
 
@@ -17,6 +19,7 @@
 import { getRangePickerDefaultProps } from '#/utils';
 import { MdItemSelect } from '#/views/mes/md/item/components';
 import { MdWorkstationSelect } from '#/views/mes/md/workstation/components';
+import { CalTeamSelect } from '#/views/mes/cal/team/components';
 import { ProProcessSelect } from '#/views/mes/process-design/process/components';
 import { RouteColorPicker } from '#/views/mes/process-design/route/components';
 import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
@@ -130,15 +133,33 @@
       width: 80,
     },
     {
+      field: 'status',
+      title: '璁㈠崟鐘舵��',
+      width: 100,
+      cellRender: {
+        name: 'CellDict',
+        props: { type: DICT_TYPE.MES_PRO_WORK_ORDER_STATUS },
+      },
+    },
+    {
+      field: 'productionStatus',
+      title: '鐢熶骇鐘舵��',
+      width: 100,
+      cellRender: {
+        name: 'CellDict',
+        props: { type: DICT_TYPE.ORDER_PRODUCTION_STATUS },
+      },
+    },
+    {
       field: 'quantity',
       title: '璁㈠崟鏁伴噺',
       width: 100,
     },
-    {
-      field: 'quantityChanged',
-      title: '璋冩暣鏁伴噺',
-      width: 100,
-    },
+    // {
+    //   field: 'quantityChanged',
+    //   title: '璋冩暣鏁伴噺',
+    //   width: 100,
+    // },
     {
       field: 'quantityProduced',
       title: '宸茬敓浜ф暟閲�',
@@ -160,15 +181,7 @@
       width: 120,
       formatter: 'formatDate',
     },
-    {
-      field: 'status',
-      title: '鎺掍骇鐘舵��',
-      width: 100,
-      cellRender: {
-        name: 'CellDict',
-        props: { type: DICT_TYPE.MES_PRO_WORK_ORDER_STATUS },
-      },
-    },
+
     {
       title: '鎿嶄綔',
       width: 160,
@@ -335,6 +348,11 @@
       width: 120,
     },
     {
+      field: 'teamName',
+      title: '鐝粍',
+      width: 120,
+    },
+    {
       field: 'quantity',
       title: '鎺掍骇鏁伴噺',
       width: 100,
@@ -392,6 +410,14 @@
         onChange: () => recalcDuration(formApi),
       },
       rules: 'selectRequired',
+    },
+    {
+      fieldName: 'teamId',
+      label: '鐝粍',
+      component: markRaw(CalTeamSelect),
+      componentProps: {
+        placeholder: '璇烽�夋嫨鐝粍',
+      },
     },
     {
       fieldName: 'quantity',
@@ -458,6 +484,20 @@
       },
     },
     {
+      fieldName: 'assigneeUserIds',
+      label: '鎶ュ伐浜�',
+      component: 'ApiSelect',
+      componentProps: {
+        placeholder: '璇烽�夋嫨鎶ュ伐浜�',
+        api: getSimpleUserListByRoleCode,
+        params: { code: 'production_submit_work' },
+        labelField: 'nickname',
+        valueField: 'id',
+        mode: 'multiple',
+      },
+      rules: z.array(z.number()).min(1, '璇烽�夋嫨鎶ュ伐浜�').default([]),
+    },
+    {
       fieldName: 'remark',
       label: '澶囨敞',
       component: 'Textarea',

--
Gitblit v1.9.3