feat(报销/拨款): 进入页面检测OCR服务状态

- 后端新增 GET /ocr-health 端点,探测 Python OCR 服务 /health
- 前端页面 created 时调用健康检查,服务不可用时顶部显示红色警告
  "发票识别服务已停止,请联系信息化部门"
- 服务不可用时禁用附件上传区域(FileUpload 新增 disabled prop)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 18:47:51 +08:00
parent 6055f06f83
commit 40fdd14d13
9 changed files with 86 additions and 14 deletions

View File

@@ -47,6 +47,10 @@ export function allReimburseReq(query) {
})
}
export function checkReimburseOcrHealth() {
return request({ url: '/hrm/reimburse/ocr-health', method: 'get' })
}
/**
* 通过ossId触发发票OCR识别返回识别条目不保存
*/