From 1eba515718ec0420b8e6f3353c12179539d4c8b1 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期一, 24 八月 2026 11:32:30 +0800
Subject: [PATCH] fix 修改页面

---
 src/views/wls/productissue/data.ts |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/src/views/wls/productissue/data.ts b/src/views/wls/productissue/data.ts
index dbf7a60..d76c1db 100644
--- a/src/views/wls/productissue/data.ts
+++ b/src/views/wls/productissue/data.ts
@@ -11,8 +11,8 @@
   DICT_TYPE,
   MesAutoCodeRuleCode,
   MesProWorkOrderStatusEnum,
-} from '../../../packages/constants/src';
-import { getDictOptions } from '../../../packages/effects/hooks/src';
+} from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
 
 import { Button } from 'ant-design-vue';
 
@@ -93,6 +93,19 @@
       rules: 'required',
     },
     {
+      fieldName: 'issueType',
+      label: '鍗曟嵁绫诲瀷',
+      component: 'Select',
+      componentProps: {
+        options: getDictOptions(DICT_TYPE.MES_WM_PRODUCT_ISSUE_TYPE, 'number'),
+        placeholder: '璇烽�夋嫨鍗曟嵁绫诲瀷',
+      },
+      dependencies: {
+        triggerFields: ['status'],
+        show: (values) => values.status === undefined || values.status === 0,
+      },
+    },
+    {
       fieldName: 'requiredTime',
       label: '闇�姹傛椂闂�',
       component: 'DatePicker',
@@ -101,7 +114,7 @@
         format: 'YYYY-MM-DD HH:mm:ss',
         placeholder: '璇烽�夋嫨闇�姹傛椂闂�',
         showTime: true,
-        valueFormat: 'x',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
       },
       rules: 'required',
     },
@@ -194,6 +207,15 @@
       field: 'name',
       title: '棰嗘枡鍗曞悕绉�',
       minWidth: 150,
+    },
+    {
+      field: 'issueType',
+      title: '鍗曟嵁绫诲瀷',
+      width: 100,
+      cellRender: {
+        name: 'CellDict',
+        props: { type: DICT_TYPE.MES_WM_PRODUCT_ISSUE_TYPE },
+      },
     },
     {
       field: 'workOrderCode',
@@ -399,7 +421,7 @@
       dependencies: {
         triggerFields: ['itemId'],
         componentProps: (values) => ({
-          itemId: values.itemId,
+          mdmItemId: values.itemId,
         }),
       },
     },

--
Gitblit v1.9.3