feat(检验申请): 新增检验申请单号生成功能并优化执行科室选择

refactor(检验申请): 重构申请单详情加载逻辑,使用后端接口获取完整数据
fix(检验申请): 修复执行科室默认值设置问题
fix(会诊): 修复就诊卡号取值错误和表格选中状态问题
perf(检验申请): 使用Redis实现并发安全的申请单号生成
docs(检验申请): 补充相关接口和方法注释
This commit is contained in:
wangjian963
2026-03-31 15:47:56 +08:00
parent b7993885bb
commit 5678535d88
10 changed files with 331 additions and 175 deletions

View File

@@ -15,6 +15,7 @@
<!-- 会诊申请列表 -->
<div class="consultation-list">
<el-table
ref="consultationTableRef"
:data="consultationList"
border
stripe
@@ -807,6 +808,9 @@ const handleRowClick = async (row) => {
console.log('行点击处理完成selectedRow:', selectedRow.value);
};
// 表格引用
const consultationTableRef = ref(null);
// 新增
const handleNew = () => {
console.log('点击新增按钮');
@@ -815,7 +819,12 @@ const handleNew = () => {
if (formRef.value) {
formRef.value.clearValidate();
}
// 🔧 Bug #262 修复:清除表格的当前行选中状态,确保后续点击行能正常触发 current-change 事件
if (consultationTableRef.value) {
consultationTableRef.value.setCurrentRow(null);
}
selectedRow.value = null;
// 获取当前登录用户信息
@@ -841,7 +850,8 @@ const handleNew = () => {
patientName: props.patientInfo.patientName || '',
genderText: props.patientInfo.genderEnum === 1 ? '男' : '女',
age: props.patientInfo.age || '',
patientBusNo: props.patientInfo.busNo || '',
// 🔧 Bug #263 修复:就诊卡号应取值于 identifierNo而非 busNo
patientBusNo: props.patientInfo.identifierNo || '',
requestingPhysician: userStore.nickName || '',
department: userStore.orgName || '',
provisionalDiagnosis: '',
@@ -922,7 +932,8 @@ const handleSave = async () => {
patientId: props.patientInfo.patientId,
encounterId: props.patientInfo.encounterId,
patientName: props.patientInfo.patientName,
patientBusNo: props.patientInfo.busNo,
// 🔧 Bug #263 修复:就诊卡号应取值于 identifierNo
patientBusNo: props.patientInfo.identifierNo || '',
patientIdentifierNo: props.patientInfo.identifierNo,
genderEnum: props.patientInfo.genderEnum,
age: ageValue,