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

@@ -25,6 +25,7 @@ export namespace ProjectApi {
operatingSystem: number; // 操作系统 operatingSystem: number; // 操作系统
softwareVersion: number; // 软件版本信息 softwareVersion: number; // 软件版本信息
remark: string; // 备注 remark: string; // 备注
serialNo?: string; // 序列号
} }
} }

View File

@@ -1,7 +1,7 @@
{ {
"postComment": "发表评论", "postComment": "发表评论",
"replyComment": "回复评论", "replyComment": "回复评论",
"hotComment": "全部评论", "hotComment": "进展记录",
"reply": "回复", "reply": "回复",
"cancelReply": "取消回复", "cancelReply": "取消回复",
"delete": "删除", "delete": "删除",

View File

@@ -22,7 +22,7 @@
"list": "项目列表", "list": "项目列表",
"progress": "进展", "progress": "进展",
"updateTime": "最后修改时间", "updateTime": "最后修改时间",
"commentNum": "评论数", "commentNum": "进展记录数",
"softwareVersion": "软件版本", "softwareVersion": "软件版本",
"operatingSystem": "操作系统平台" "operatingSystem": "操作系统平台"
} }

View File

@@ -112,15 +112,15 @@ export function useFormSchema(): VbenFormSchema[] {
if (values.id) { if (values.id) {
return; return;
} }
const projectCode = projectList.value.find((project) => { const project = projectList.value.find((project) => {
return project.id === values.projectId; return project.id === values.projectId;
})?.code; });
const customerCode = customerList.value.find((customer) => { const customerCode = customerList.value.find((customer) => {
return customer.id === values.customerId; return customer.id === values.customerId;
})?.code; })?.code;
form.setFieldValue( form.setFieldValue(
'serialNo', 'serialNo',
`${customerCode || ''}${projectCode || ''}`, project?.serialNo ?? `${customerCode || ''}${project?.code || ''}`,
); );
}, },
// 只有指定的字段改变时,才会触发 // 只有指定的字段改变时,才会触发

View File

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