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

@@ -113,4 +113,14 @@ export function getDiseaseTreatmentByYbNo (ybNo) {
});
}
// 批量设置划价标记
export function updatePricingFlag (ids, pricingFlag) {
return request ({
url: '/data-dictionary/diagnosis-treatment/pricing-flag',
method: 'put',
data: ids,
params: { pricingFlag },
});
}

View File

@@ -95,6 +95,28 @@
>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="Check"
:disabled="multiple"
@click="handlePricingFlag(1)"
>允许划价</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="Close"
:disabled="multiple"
@click="handlePricingFlag(0)"
>禁止划价</el-button
>
</el-col>
<el-col :span="1.5">
<el-button type="info" plain icon="Upload" @click="handleImport">导入</el-button>
</el-col>
@@ -301,6 +323,7 @@ import {
startDiseaseTreatment,
stopDiseaseTreatment,
validateActivityEdit,
updatePricingFlag,
} from './components/diagnosistreatment';
import diagnosisTreatmentDialog from './components/diagnosisTreatmentDialog';
import DiagTreYbDialog from './components/diagTreYbDialog';
@@ -429,6 +452,22 @@ function handleClose() {
})
.catch(() => {});
}
/** 批量设置划价标记 */
function handlePricingFlag(pricingFlag) {
const selectedIds = ids.value;
const flagText = pricingFlag === 1 ? '允许划价' : '禁止划价';
proxy.$modal
.confirm(`是否确认将选中的诊疗项目设置为"${flagText}"`)
.then(function () {
return updatePricingFlag(selectedIds, pricingFlag);
})
.then(() => {
getList();
proxy.$modal.msgSuccess(`批量设置${flagText}成功`);
})
.catch(() => {});
}
/** 导出按钮操作 */
function handleExport() {
proxy.download(