You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
2.9 KiB
115 lines
2.9 KiB
2 months ago
|
// 任务类型枚举
|
||
|
export const TaskType = {
|
||
|
SCHEME_REVIEW: {
|
||
|
value: 'scheme_review',
|
||
|
label: '方案审核',
|
||
|
icon: 'mdi:file-document-check-outline',
|
||
|
color: '#2F54EB',
|
||
|
path:"/documentReview/DocumentTasks"
|
||
|
},
|
||
|
CONTRACT_REVIEW: {
|
||
|
value: 'contract_review',
|
||
|
label: '合同审核',
|
||
|
icon: 'fluent-mdl2:document-approval',
|
||
|
color: '#722ED1',
|
||
|
path:"/contractReview/ContractualTasks"
|
||
|
},
|
||
|
TENDER_REVIEW: {
|
||
|
value: 'tender_review',
|
||
|
label: '招投标审核',
|
||
|
icon: 'heroicons:clipboard-document-check-20-solid',
|
||
|
color: '#13C2C2',
|
||
|
path:"/tenderReview/TenderSummaryTask"
|
||
|
},
|
||
|
SCHEME_EVALUATION: { // 新增方案评价
|
||
|
value: 'scheme_evaluation',
|
||
|
label: '方案评价',
|
||
|
icon: 'mdi:file-document-edit-outline', // 使用文档编辑图标
|
||
|
color: '#FA8C16', // 使用橙色系
|
||
|
path:"/schemEvaluation/SchemeEvaluation"
|
||
|
},
|
||
|
PROJECT_DOCUMENT_REVIEW: { // 新增项目文档审核
|
||
|
value: 'project_document_review',
|
||
|
label: '项目文档审核',
|
||
|
icon: 'mdi:folder-text-outline', // 使用文件夹文档图标
|
||
|
color: '#1890FF', // 使用蓝色系
|
||
|
path:"/projectDocumentReview/ProjectDocumentReview"
|
||
|
}
|
||
|
} as const;
|
||
|
|
||
|
// 方案审核子任务
|
||
|
export const SchemeTask = {
|
||
|
DOCUMENT_SIMILARITY: {
|
||
|
value: 'checkRepeatText',
|
||
|
label: '文档相似性检查',
|
||
|
icon: 'arcticons:onlyoffice-documents',
|
||
|
color: '#1890FF'
|
||
|
},
|
||
|
DOCUMENT_ERROR: {
|
||
|
value: 'checkDocumentError',
|
||
|
label: '文档纠错',
|
||
|
icon: 'solar:document-medicine-bold-duotone',
|
||
|
color: '#F5222D'
|
||
|
},
|
||
|
|
||
|
PLACE_CHECK: {
|
||
|
value: 'checkPlaceName',
|
||
|
label: '地名检查',
|
||
|
icon: 'solar:map-point-search-bold-duotone',
|
||
|
color: '#52C41A'
|
||
|
},
|
||
|
COMPANY_CHECK: {
|
||
|
value: 'checkCompanyName',
|
||
|
label: '公司名称检查',
|
||
|
icon: 'mdi:company',
|
||
|
color: '#2F54EB'
|
||
|
},
|
||
|
TITLE_CHECK: {
|
||
|
value: 'checkTitleName',
|
||
|
label: '文档结构检查',
|
||
|
icon: 'mdi:file-tree-outline',
|
||
|
color: '#722ED1'
|
||
|
}
|
||
|
} as const;
|
||
|
|
||
|
// 合同审核子任务
|
||
|
export const ContractTask = {
|
||
|
CONTRACT_REVIEW: {
|
||
|
value: 'contractReview',
|
||
|
label: '合同审核',
|
||
|
icon: 'fluent-mdl2:document-approval',
|
||
|
color: '#722ED1'
|
||
|
}
|
||
|
} as const;
|
||
|
|
||
|
// 招标审核子任务
|
||
|
export const TenderTask = {
|
||
|
TENDER_SUMMARY: {
|
||
|
value: 'tenderSummary',
|
||
|
label: '招标摘要',
|
||
|
icon: 'mdi:text-box-outline',
|
||
|
color: '#2B7DE9'
|
||
|
}
|
||
|
} as const;
|
||
|
|
||
|
// 招标审核子任务
|
||
|
export const SchemeEvaluation = {
|
||
|
SCHEME_EVALUATION: {
|
||
|
value: 'schemEvaluation',
|
||
|
label: '方案评价',
|
||
|
icon: 'iconoir:doc-star',
|
||
|
color: '#13C2C2'
|
||
|
},
|
||
|
} as const;
|
||
|
/**
|
||
|
* 从对象中提取指定键的值
|
||
|
* @param obj 要提取的对象
|
||
|
* @param key 要提取的键名
|
||
|
* @returns any[] 提取的值数组
|
||
|
*/
|
||
|
export const extractValues = <T extends Record<string, { [key: string]: any }>>(
|
||
|
obj: T,
|
||
|
key: string
|
||
|
): any[] => {
|
||
|
return Object.values(obj).map(item => item[key]);
|
||
|
};
|