fix(common): 统一异常处理并迁移打印功能到hiprint
- 替换所有System.out.println和printStackTrace为slf4j日志记录 - 在BeanUtils、AuditFieldUtil、DateUtils、ServletUtils等工具类中添加Logger实例 - 在Flowable相关控制器和服务中统一错误日志记录格式 - 在代码生成器中添加日志记录功能 - 将前端打印组件从Lodop迁移到hiprint打印方案 - 更新体温单打印功能使用hiprint预览打印 - 移除调试用的console.log语句 - 修复打印模板中线条元素类型定义
This commit is contained in:
@@ -1017,7 +1017,12 @@ function submitAudit() {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
emit('refresh');
|
||||
visible.value = false;
|
||||
} else {
|
||||
proxy.$modal.msgError(res.msg || '提交审批失败');
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.error('提交审批失败:', error);
|
||||
proxy.$modal.msgError(error.message || '提交审批失败,请重试');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -942,10 +942,17 @@ function handleSubmitApproval() {
|
||||
proxy.$modal.msgWarning('第' + length + '行单据未保存,请先保存');
|
||||
} else {
|
||||
submitApproval(receiptHeaderForm.busNo).then((response) => {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentDataLYCK();
|
||||
router.replace({ path: 'requisitionManagementList' });
|
||||
if (response.code == 200) {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentDataLYCK();
|
||||
router.replace({ path: 'requisitionManagementList' });
|
||||
} else {
|
||||
proxy.$modal.msgError(response.msg || '提交审批失败');
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.error('提交审批失败:', error);
|
||||
proxy.$modal.msgError(error.message || '提交审批失败,请重试');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1015,11 +1015,18 @@ function handleSubmitApproval() {
|
||||
proxy.$modal.msgWarning('第' + length + '行单据未保存,请先保存');
|
||||
} else {
|
||||
submitTHApproval(receiptHeaderForm.busNo).then((response) => {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentDataLYTK();
|
||||
// 跳转到审核页面
|
||||
router.replace({ path: 'requisitionInventoryManagement' });
|
||||
if (response.code == 200) {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentDataLYTK();
|
||||
// 跳转到审核页面
|
||||
router.replace({ path: 'requisitionInventoryManagement' });
|
||||
} else {
|
||||
proxy.$modal.msgError(response.msg || '提交审批失败');
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.error('提交审批失败:', error);
|
||||
proxy.$modal.msgError(error.message || '提交审批失败,请重试');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user