Fix Bug #443: 手术计费:点击签发耗材时异常报错

当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。
在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值,
与NurseBillingAppService中的处理方式保持一致。
This commit is contained in:
2026-05-08 09:14:08 +08:00
parent 06f257f4be
commit 9c3e603b94
5424 changed files with 9 additions and 3 deletions

View File

@@ -1010,8 +1010,9 @@ function handleSave() {
// }
// 此处签发处方和单行保存处方传参相同后台已经将传参存为JSON字符串此处直接转换为JSON即可
let list = saveList.map((item) => {
const parsedContent = item.contentJson ? JSON.parse(item.contentJson) : {};
return {
...JSON.parse(item.contentJson),
...parsedContent,
requestId: item.requestId,
dbOpType: '1',
groupId: item.groupId,