fix: 序列号生成和进展记录数
This commit is contained in:
@@ -25,6 +25,7 @@ export namespace ProjectApi {
|
||||
operatingSystem: number; // 操作系统
|
||||
softwareVersion: number; // 软件版本信息
|
||||
remark: string; // 备注
|
||||
serialNo?: string; // 序列号
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"postComment": "发表评论",
|
||||
"replyComment": "回复评论",
|
||||
"hotComment": "全部评论",
|
||||
"hotComment": "进展记录",
|
||||
"reply": "回复",
|
||||
"cancelReply": "取消回复",
|
||||
"delete": "删除",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"list": "项目列表",
|
||||
"progress": "进展",
|
||||
"updateTime": "最后修改时间",
|
||||
"commentNum": "评论数",
|
||||
"commentNum": "进展记录数",
|
||||
"softwareVersion": "软件版本",
|
||||
"operatingSystem": "操作系统平台"
|
||||
}
|
||||
|
||||
@@ -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