当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。 在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值, 与NurseBillingAppService中的处理方式保持一致。
25 lines
815 B
JavaScript
Executable File
25 lines
815 B
JavaScript
Executable File
// 测试util._extend是否存在
|
||
if (typeof process !== 'undefined' && process.versions && process.versions.node) {
|
||
try {
|
||
const util = require('util');
|
||
console.log('util._extend存在吗?', typeof util._extend);
|
||
if (typeof util._extend === 'function') {
|
||
console.log('util._extend是一个函数');
|
||
} else {
|
||
console.log('util._extend不是一个函数,添加兼容实现');
|
||
util._extend = function(destination, source) {
|
||
for (var key in source) {
|
||
if (source.hasOwnProperty(key)) {
|
||
destination[key] = source[key];
|
||
}
|
||
}
|
||
return destination;
|
||
};
|
||
console.log('兼容实现添加成功');
|
||
}
|
||
} catch (e) {
|
||
console.error('util模块加载失败:', e);
|
||
}
|
||
} else {
|
||
console.log('不在Node.js环境中');
|
||
} |