fix: 序列号生成和进展记录数

This commit is contained in:
caiyuchao
2025-09-01 09:42:16 +08:00
parent f0e747c713
commit 7d3cf2c5bd
5 changed files with 7 additions and 6 deletions

View File

@@ -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 || ''}`,
);
},
// 只有指定的字段改变时,才会触发

View File

@@ -525,7 +525,7 @@ export function useGridColumns(
{
field: 'commentNum',
title: $t('project.commentNum'),
minWidth: 70,
minWidth: 90,
},
{
field: 'applyCount',