feat(c4): qc 权限码/错误码/APIS

This commit is contained in:
liuyun 2026-10-15 01:22:17 +08:00
parent 9f232356e0
commit 2828a9da58
3 changed files with 20 additions and 1 deletions

View File

@ -58,6 +58,14 @@ export const ErrorCodes = {
RECORD_MD5_DUP: 45005,
ABNORMAL_NOT_FOUND: 45006,
PREPAID_CARRYOVER_INVALID: 45007,
// 服务机构端·质控(46)
QC_NOT_FOUND: 46001,
QC_ALREADY_HANDLED: 46002,
QC_SELF_REVIEW: 46003, // 自审自放行(4001)
QC_ELEMENT_MISSING: 46004, // 缺要素(1004)
QC_NOTE_REQUIRED: 46005,
QC_BATCH_UNSAFE: 46006,
QC_RECORD_NOT_SUBMITTED: 46007,
} as const;
export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];

View File

@ -74,7 +74,10 @@ export const Permissions = {
list: 'record:list', prepaidList: 'record:prepaid-list', prepaidCarryover: 'record:prepaid-carryover',
},
abnormal: { report: 'abnormal:report', list: 'abnormal:list', handle: 'abnormal:handle' },
qc: { pendingList: 'qc:pending-list', detail: 'qc:detail', pass: 'qc:pass', return: 'qc:return', exceptionLink: 'qc:exception-link' },
qc: {
pendingList: 'qc:pending-list', detail: 'qc:detail', pass: 'qc:pass', return: 'qc:return',
exceptionLink: 'qc:exception-link', correct: 'qc:correct', batchPass: 'qc:batch-pass',
},
export: { export: 'export:export' },
} as const;

View File

@ -122,6 +122,14 @@ export const APIS: { code: string; name: string; method: string; path: string; p
{ code: Permissions.record.prepaidCarryover, name: '结转', method: 'POST', path: '/api/v1/record/prepaid/carryover', parent: 'record' },
{ code: Permissions.abnormal.report, name: '异常上报', method: 'POST', path: '/api/v1/abnormal', parent: 'record' },
{ code: Permissions.abnormal.list, name: '异常列表', method: 'GET', path: '/api/v1/abnormal', parent: 'record' },
// 服务机构端·质控(C4)
{ code: Permissions.qc.pendingList, name: '待质控列表', method: 'GET', path: '/api/v1/qc/pending/list', parent: 'qc' },
{ code: Permissions.qc.detail, name: '质控详情', method: 'GET', path: '/api/v1/qc/:id', parent: 'qc' },
{ code: Permissions.qc.pass, name: '放行', method: 'POST', path: '/api/v1/qc/:id/pass', parent: 'qc' },
{ code: Permissions.qc.return, name: '退回', method: 'POST', path: '/api/v1/qc/:id/return', parent: 'qc' },
{ code: Permissions.qc.exceptionLink, name: '异常联动改计划', method: 'POST', path: '/api/v1/qc/exception/link', parent: 'qc' },
{ code: Permissions.qc.correct, name: '补正', method: 'POST', path: '/api/v1/qc/correct', parent: 'qc' },
{ code: Permissions.qc.batchPass, name: '批量放行', method: 'POST', path: '/api/v1/qc/batch-pass', parent: 'qc' },
];
/** 按钮资源(纯前端按钮,无独立受控接口)。 */