export const taskStatuses = { UNREPORTED: { text: '未上报', type: 'info' }, REPORTED_XCB: { text: '已上报XCB', type: 'warning' }, RETURNED: { text: '上级打回', type: 'danger' }, XCB_REVIEWED: { text: 'XCB助理审核完成', type: 'primary' }, CMB_APPROVED: { text: 'CMB领导审批完成', type: 'success' }, JCC_ASSISTANT_APPROVED: { text: 'JCC助理审批完成', type: 'success' }, JCC_DIRECTOR_APPROVED: { text: 'JCC处长已阅', type: 'success' }, DISPATCHED: { text: '已派单', type: 'primary' }, CANCELLED: { text: '已销项', type: 'info' } } export const completionStatuses = { UNFINISHED: { text: '未完工', type: 'info' }, WAIT_PARTS: { text: '待备件', type: 'warning' }, WAIT_TEST: { text: '完工待试验', type: 'primary' }, COMPLETED: { text: '完工', type: 'success' } } export const acceptanceStatuses = { APPLICATION_PENDING: { text: '待提交验收申请', type: 'warning' }, QUALITY_INSPECTOR_PENDING: { text: '待质检员验收', type: 'primary' }, QUALITY_LEADER_PENDING: { text: '待质检负责人验收', type: 'primary' }, PRINT_PENDING: { text: '待打印输出', type: 'warning' }, RATING_PENDING: { text: '待修后质量评级', type: 'warning' }, COMPLETED: { text: '验收完成', type: 'success' }, RETURNED_APPLICATION: { text: '已打回验收申请', type: 'danger' }, RETURNED_INSPECTOR: { text: '已打回质检员验收', type: 'danger' } } export function statusMeta(dict, value) { return dict[value] || { text: value || '-', type: 'info' } }