feat: 客户对接人提示
This commit is contained in:
@@ -37,5 +37,6 @@
|
||||
"reapply": "Reapply",
|
||||
"reapplyAction": "Reapply For {0}",
|
||||
"history": "History",
|
||||
"applyCount": "Application Count"
|
||||
"applyCount": "Application Count",
|
||||
"snExist": "{0} `{1}` already exists. If there is no corresponding project, please go to Project Management to create a project"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,6 @@
|
||||
"reapply": "重新申请",
|
||||
"reapplyAction": "重新申请{0}",
|
||||
"history": "历史",
|
||||
"applyCount": "license申请次数"
|
||||
"applyCount": "license申请次数",
|
||||
"snExist": "{0} `{1}` 已存在,没有对应项目请到项目管理创建项目"
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
return await isLicenseSnUnique(value, formData.value?.id);
|
||||
},
|
||||
(value) => ({
|
||||
message: $t('ui.formRules.alreadyExists', ['SN', value]),
|
||||
message: $t('license.snExist', ['SN', value]),
|
||||
}),
|
||||
),
|
||||
},
|
||||
|
||||
@@ -151,8 +151,12 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
{
|
||||
fieldName: 'customerOwner',
|
||||
label: $t('project.customerOwner'),
|
||||
rules: 'required',
|
||||
help: '请填写客户方的对接人',
|
||||
component: 'Input',
|
||||
rules: z.string().min(1, '注意:请填写客户方的对接人'),
|
||||
componentProps: {
|
||||
placeholder: '请填写客户方的对接人',
|
||||
},
|
||||
},
|
||||
{
|
||||
fieldName: 'technicalOwnerA',
|
||||
|
||||
@@ -79,6 +79,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
formData.value = data;
|
||||
await formApi.setValues(formData.value);
|
||||
await formApi.validateField('contractCode');
|
||||
await formApi.validateField('customerOwner');
|
||||
|
||||
// 设置最大SN
|
||||
const maxSn = await getMaxSn();
|
||||
|
||||
Reference in New Issue
Block a user