Files
his/openhis-server-new
zhaoyun b5765a6e63 Fix Bug #571: 检验申请撤回操作时触发错误提示
根因:SQL查询计算computed_status时,只要ANY ServiceRequest为ACTIVE(status_enum=2)
就显示"已签发",但后端withdrawRequestForm方法要求ALL ServiceRequest都为ACTIVE才允许撤回。
当处方下存在混合状态的ServiceRequest(如一个DRAFT+一个ACTIVE)时,前端显示撤回按钮,
但后端拒绝操作返回错误。

修复:将allMatch改为anyMatch,允许至少有一条ACTIVE记录即可撤回,
且只更新ACTIVE状态的ServiceRequest为DRAFT,跳过非ACTIVE的记录。
2026-05-22 09:47:11 +08:00
..
2026-05-20 11:04:33 +08:00