From 08bb5d242135e2c1f0fc17d2b5f7ae548275a3a2 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 28 八月 2026 17:15:33 +0800
Subject: [PATCH] feat(mes): 实现临时码预生成和补录功能

---
 src/views/mes/pro/batch/data.ts |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/src/views/mes/pro/batch/data.ts b/src/views/mes/pro/batch/data.ts
index 1b765a7..673aedc 100644
--- a/src/views/mes/pro/batch/data.ts
+++ b/src/views/mes/pro/batch/data.ts
@@ -12,8 +12,8 @@
 import { UserSelect } from '#/views/system/user/components';
 import { getRangePickerDefaultProps } from '#/utils';
 
-/** 琛ㄥ崟绫诲瀷 */
-export type FormType = 'create' | 'detail' | 'update';
+/** 琛ㄥ崟绫诲瀷锛坒ill锛氫复鏃舵壒娆$爜琛ュ綍姝e紡淇℃伅锛� */
+export type FormType = 'create' | 'detail' | 'update' | 'fill';
 
 /** 鏂板/淇敼鐨勮〃鍗� */
 export function useFormSchema(formType: FormType): VbenFormSchema[] {
@@ -33,11 +33,24 @@
       component: 'Input',
       componentProps: {
         disabled: true,
-        placeholder: '淇濆瓨鍚庤嚜鍔ㄧ敓鎴�',
+        placeholder: '琛ュ綍鍚庤嚜鍔ㄧ敓鎴�',
       },
       dependencies: {
         triggerFields: [''],
         show: () => formType !== 'create',
+      },
+    },
+    {
+      fieldName: 'tempCode',
+      label: '涓存椂鎵规鐮�',
+      component: 'Input',
+      componentProps: {
+        disabled: true,
+        placeholder: '棰勭敓鎴愪簩缁寸爜闃舵浣跨敤鐨勪复鏃剁爜',
+      },
+      dependencies: {
+        triggerFields: [''],
+        show: () => formType === 'fill',
       },
     },
     {
@@ -273,7 +286,7 @@
     },
     {
       title: '鎿嶄綔',
-      width: 300,
+      width: 350,
       fixed: 'right',
       slots: { default: 'actions' },
     },

--
Gitblit v1.9.3