feat(projects): 增加意见反馈

This commit is contained in:
2026-06-27 08:55:33 +08:00
parent 570f284230
commit a4884035cd
25 changed files with 1536 additions and 7 deletions

View File

@@ -20,7 +20,8 @@ export type StatusDomain =
| 'workReport'
| 'performanceSheet'
| 'personalItem'
| 'overtimeApplication';
| 'overtimeApplication'
| 'feedback';
const statusTagTypeRegistry: Record<StatusDomain, Record<string, StatusTagType>> = {
// 项目-执行
@@ -108,6 +109,13 @@ const statusTagTypeRegistry: Record<StatusDomain, Record<string, StatusTagType>>
pending: 'warning',
approved: 'success',
rejected: 'danger'
},
// 意见反馈
feedback: {
'1': 'warning', // 待处理
'2': 'primary', // 处理中
'3': 'success', // 已处理
'4': 'info' // 已忽略
}
};
@@ -122,3 +130,10 @@ export function getStatusTagType(domain: StatusDomain, statusCode: string | null
export function getPersonalItemStatusTagType(statusCode: string | null | undefined) {
return getStatusTagType('personalItem', statusCode);
}
export function getFeedbackStatusTagType(statusCode: string | number | null | undefined) {
return getStatusTagType(
'feedback',
statusCode === null || statusCode === undefined ? statusCode : String(statusCode)
);
}