From 77e4c3d0201a83cf41b73d7bd7a79255759575f4 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期六, 17 十月 2026 11:19:23 +0800
Subject: [PATCH] fix(mdm): 修正计量单位类型选项和API文档
---
src/views/basicData/mdm/unit/data.ts | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/src/views/basicData/mdm/unit/data.ts b/src/views/basicData/mdm/unit/data.ts
index b9d0be3..0712e11 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,
@@ -128,4 +152,4 @@
slots: { default: 'actions' },
},
];
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3