fix(common): 统一异常处理并迁移打印功能到hiprint

- 替换所有System.out.println和printStackTrace为slf4j日志记录
- 在BeanUtils、AuditFieldUtil、DateUtils、ServletUtils等工具类中添加Logger实例
- 在Flowable相关控制器和服务中统一错误日志记录格式
- 在代码生成器中添加日志记录功能
- 将前端打印组件从Lodop迁移到hiprint打印方案
- 更新体温单打印功能使用hiprint预览打印
- 移除调试用的console.log语句
- 修复打印模板中线条元素类型定义
This commit is contained in:
2026-03-06 22:16:44 +08:00
parent 8ef334ba1b
commit b65841c0cc
58 changed files with 678 additions and 888 deletions

View File

@@ -147,7 +147,7 @@ export function wxPay (data) {
*/
export function WxPayResult (data) {
return request ({
url: '/three-part/pay/pay-query'+data.paymentId,
url: '/three-part/pay/pay-query/' + data.paymentId,
method: 'get',
});
}

View File

@@ -613,7 +613,7 @@ async function submit() {
return sum + (Number(item.amount) || 0);
}, 0)
.toFixed(2);
if (parseFloat(amount) < formData.totalAmount.toFixed(2)) {
if (parseFloat(amount) < parseFloat(formData.totalAmount.toFixed(2))) {
proxy.$modal.msgError('请输入正确的结算金额');
return;
}
@@ -639,8 +639,14 @@ async function submit() {
if (userStore.fixmedinsCode == 'H22010200672' && props.consumablesIdList.length > 0) {
dispenseMedicalConsumables(props.consumablesIdList);
}
} else {
proxy.$modal.msgError(res.msg || '收费失败');
}
})
.catch((error) => {
console.error('收费失败:', error);
proxy.$modal.msgError(error.message || '收费失败,请重试');
})
.finally(() => {
dialogLoading.value = false;
});

View File

@@ -497,14 +497,14 @@
handleColor(
[1, 2, 3, 4, 5, 6, 7, 8, 9],
[
'default',
'info',
'success',
'default',
'info',
'info',
'success',
'info',
'warning',
'error',
'danger',
'info',
],
scope.row.statusEnum