feat:【antd】【crm】调整操作日志和团队成员的标签顺序,优化表单字段的规则和属性

This commit is contained in:
YunaiV
2025-09-30 19:42:20 +08:00
parent 0f6868febf
commit 9e6d8ff3e9
16 changed files with 168 additions and 95 deletions

View File

@@ -64,6 +64,7 @@ export function useFormSchema(): VbenFormSchema[] {
placeholder: '请选择客户',
},
},
// TODO @AI这里的合同名称不对
{
fieldName: 'contractId',
label: '合同名称',
@@ -121,14 +122,12 @@ export function useFormSchema(): VbenFormSchema[] {
},
},
{
fieldName: 'returnTime',
label: '回款日期',
component: 'DatePicker',
fieldName: 'returnType',
label: '回款方式',
component: 'Select',
componentProps: {
placeholder: '请选择回款日期',
showTime: false,
valueFormat: 'x',
format: 'YYYY-MM-DD',
options: getDictOptions(DICT_TYPE.CRM_RECEIVABLE_RETURN_TYPE, 'number'),
placeholder: '请选择回款方式',
},
},
{
@@ -143,13 +142,15 @@ export function useFormSchema(): VbenFormSchema[] {
},
},
{
fieldName: 'returnType',
label: '回款方式',
component: 'Select',
fieldName: 'returnTime',
label: '回款日期',
component: 'DatePicker',
rules: 'required',
componentProps: {
options: getDictOptions(DICT_TYPE.CRM_RECEIVABLE_RETURN_TYPE, 'number'),
placeholder: '请选择回款方式',
placeholder: '请选择回款日期',
showTime: false,
valueFormat: 'x',
format: 'YYYY-MM-DD',
},
},
{
@@ -160,6 +161,7 @@ export function useFormSchema(): VbenFormSchema[] {
placeholder: '请输入备注',
rows: 4,
},
formItemClass: 'md:col-span-2',
},
];
}