feat:【antd】【erp 系统】sale/out 部分重构(列表 ok)

This commit is contained in:
YunaiV
2025-10-04 09:15:11 +08:00
parent e073a40153
commit c8c4693983
4 changed files with 16 additions and 32 deletions

View File

@@ -13,7 +13,7 @@ import { getSimpleUserList } from '#/api/system/user';
import { getRangePickerDefaultProps } from '#/utils';
/** 表单的配置项 */
export function useFormSchema(): VbenFormSchema[] {
export function useFormSchema(formType: string): VbenFormSchema[] {
return [
{
fieldName: 'id',
@@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] {
componentProps: {
placeholder: '请输入备注',
autoSize: { minRows: 1, maxRows: 1 },
disabled: formType === 'detail',
},
formItemClass: 'col-span-2',
},
@@ -103,7 +104,8 @@ export function useFormSchema(): VbenFormSchema[] {
'jpeg',
'png',
],
showDescription: true,
showDescription: formType !== 'detail',
disabled: formType === 'detail',
},
formItemClass: 'col-span-3',
},