feat:【antd】【crm】修改时,负责人不允许直接修改

This commit is contained in:
YunaiV
2025-09-30 19:51:24 +08:00
parent 9e6d8ff3e9
commit 6410c83b13
8 changed files with 33 additions and 2 deletions

View File

@@ -37,6 +37,10 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'ownerUserId',
label: '负责人',
rules: 'required',
dependencies: {
triggerFields: ['id'],
disabled: (values) => values.id,
},
componentProps: {
api: () => getSimpleUserList(),
fieldNames: {
@@ -227,4 +231,3 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
},
];
}