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/components/data.ts | 36 ++++++------------------------------
1 files changed, 6 insertions(+), 30 deletions(-)
diff --git a/src/views/basicData/mdm/components/data.ts b/src/views/basicData/mdm/components/data.ts
index 91c4743..81648cf 100644
--- a/src/views/basicData/mdm/components/data.ts
+++ b/src/views/basicData/mdm/components/data.ts
@@ -5,42 +5,25 @@
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
-import { getItemTypeSimpleList } from '#/api/mes/md/item/type';
-
/** 鐗╂枡閫夋嫨寮圭獥鎼滅储琛ㄥ崟 */
export function useMdmItemSelectGridFormSchema(): VbenFormSchema[] {
return [
{
fieldName: 'code',
- label: '鐗╂枡缂栫爜',
+ label: '鍝佺缂栫爜',
component: 'Input',
componentProps: {
allowClear: true,
- placeholder: '璇疯緭鍏ョ墿鏂欑紪鐮�',
+ placeholder: '璇疯緭鍏ュ搧绉嶇紪鐮�',
},
},
{
fieldName: 'name',
- label: '鐗╂枡鍚嶇О',
+ label: '鍝佺鍚嶇О',
component: 'Input',
componentProps: {
allowClear: true,
- placeholder: '璇疯緭鍏ョ墿鏂欏悕绉�',
- },
- },
- {
- fieldName: 'categoryId',
- label: '鐗╂枡鍒嗙被',
- component: 'ApiSelect',
- componentProps: {
- placeholder: '璇烽�夋嫨鐗╂枡鍒嗙被',
- allowClear: true,
- api: async () => {
- const res = await getItemTypeSimpleList();
- return res || [];
- },
- labelField: 'name',
- valueField: 'id',
+ placeholder: '璇疯緭鍏ュ搧绉嶅悕绉�',
},
},
{
@@ -64,12 +47,12 @@
{ type: multiple ? 'checkbox' : 'radio', width: 50 },
{
field: 'code',
- title: '鐗╂枡缂栫爜',
+ title: '鍝佺缂栫爜',
minWidth: 120,
},
{
field: 'name',
- title: '鐗╂枡鍚嶇О',
+ title: '鍝佺鍚嶇О',
minWidth: 180,
align: 'left',
},
@@ -78,13 +61,6 @@
title: '瑙勬牸鍨嬪彿',
minWidth: 150,
align: 'left',
- },
- {
- field: 'categoryId',
- title: '鐗╂枡鍒嗙被',
- minWidth: 120,
- align: 'center',
- slots: { default: 'categoryId' },
},
{
field: 'unitMeasureName',
--
Gitblit v1.9.3