fix: 序列号生成和进展记录数
This commit is contained in:
@@ -112,15 +112,15 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
if (values.id) {
|
||||
return;
|
||||
}
|
||||
const projectCode = projectList.value.find((project) => {
|
||||
const project = projectList.value.find((project) => {
|
||||
return project.id === values.projectId;
|
||||
})?.code;
|
||||
});
|
||||
const customerCode = customerList.value.find((customer) => {
|
||||
return customer.id === values.customerId;
|
||||
})?.code;
|
||||
form.setFieldValue(
|
||||
'serialNo',
|
||||
`${customerCode || ''}${projectCode || ''}`,
|
||||
project?.serialNo ?? `${customerCode || ''}${project?.code || ''}`,
|
||||
);
|
||||
},
|
||||
// 只有指定的字段改变时,才会触发
|
||||
|
||||
@@ -525,7 +525,7 @@ export function useGridColumns(
|
||||
{
|
||||
field: 'commentNum',
|
||||
title: $t('project.commentNum'),
|
||||
minWidth: 70,
|
||||
minWidth: 90,
|
||||
},
|
||||
{
|
||||
field: 'applyCount',
|
||||
|
||||
Reference in New Issue
Block a user