From 46624ce480a3c14da21f39cc4ad5f7eecea2bb1e Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 17 九月 2026 16:24:28 +0800
Subject: [PATCH] feat(mes): 优化生产批次和袋码管理功能
---
src/views/basicData/mdm/unit/data.ts | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/views/basicData/mdm/unit/data.ts b/src/views/basicData/mdm/unit/data.ts
index b9d0be3..aed8206 100644
--- a/src/views/basicData/mdm/unit/data.ts
+++ b/src/views/basicData/mdm/unit/data.ts
@@ -6,6 +6,13 @@
import { z } from '#/adapter/form';
+/** 璁¢噺鍗曚綅绫诲瀷閫夐」 */
+export const UNIT_TYPE_OPTIONS = [
+ { label: '48鍗冨厠', value: '48鍗冨厠' },
+ { label: '100鍗冨厠', value: '100鍗冨厠' },
+ { label: '鍚�', value: '鍚�' },
+];
+
/** 鏂板/淇敼鐨勮〃鍗� */
export function useFormSchema(): VbenFormSchema[] {
return [
@@ -33,6 +40,17 @@
rules: 'required',
componentProps: {
placeholder: '璇疯緭鍏ュ崟浣嶅悕绉�',
+ },
+ },
+ {
+ fieldName: 'type',
+ label: '绫诲瀷',
+ component: 'Select',
+ rules: 'required',
+ componentProps: {
+ placeholder: '璇烽�夋嫨绫诲瀷',
+ allowClear: true,
+ options: UNIT_TYPE_OPTIONS,
},
},
{
@@ -107,6 +125,12 @@
minWidth: 150,
},
{
+ field: 'type',
+ title: '绫诲瀷',
+ minWidth: 100,
+ formatter: ({ cellValue }) => cellValue || '-',
+ },
+ {
field: 'status',
title: '鐘舵��',
minWidth: 80,
--
Gitblit v1.9.3