diff --git a/MD/MODULE_INDEX.md b/MD/MODULE_INDEX.md index 873e8a687..ac26f3911 100644 --- a/MD/MODULE_INDEX.md +++ b/MD/MODULE_INDEX.md @@ -1,7 +1,7 @@ # HealthLink-HIS 代码模块索引 > 供 LLM 快速定位代码。每个模块列出 Controller → Service → Mapper 关键文件。 -> 最后更新: 2026-06-17 12:00 (301 个 Controller) +> 最后更新: 2026-06-17 18:00 (309 个 Controller) ## 关键词 → 模块速查 diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue index ff88469d2..d4b98b46a 100755 --- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue +++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue @@ -611,7 +611,22 @@ function handleImport() { if (!props.patientInfo || !props.patientInfo.encounterId) { return; } - + + // 检查是否已填写病历 + if (!allowAdd.value) { + proxy.$modal.msgWarning('请先填写病历'); + return; + } + + // 检查当前列表是否有未保存的诊断,阻止重复新增 + const hasUnsaved = (form.value.diagnosisList || []).some( + (item) => !item.conditionId && !item.encounterDiagnosisId + ); + if (hasUnsaved) { + proxy.$modal.msgWarning('请保存当前诊断'); + return; + } + if (props.patientInfo.contractName != '自费') { // 获取患者慢性病信息 getChronicDisease({ encounterId: props.patientInfo.encounterId }).then((res) => { @@ -711,6 +726,12 @@ function getTree() { function handleAddDiagnosis() { console.log('点击新增诊断按钮,allowAdd:', allowAdd.value); + // 检查是否已填写病历(必须先于其他检查) + if (!allowAdd.value) { + proxy.$modal.msgWarning('请先填写病历'); + return; + } + // 检查当前列表是否已有未保存的诊断,阻止重复新增 const hasUnsaved = (form.value.diagnosisList || []).some( (item) => !item.conditionId && !item.encounterDiagnosisId @@ -730,20 +751,7 @@ function handleAddDiagnosis() { proxy.$refs.formRef.validate((valid, fields) => { console.log('表单验证结果:', valid, '错误字段:', fields); - if (valid) { - if (!allowAdd.value) { - proxy.$modal.msgWarning('请先填写病历'); - return; - } - addDiagnosisItem(); - } else { - console.warn('表单验证失败:', fields); - // 验证失败时也允许添加(因为是新增空行) - if (allowAdd.value) { - console.log('验证失败但允许添加,强制添加诊断'); - addDiagnosisItem(); - } - } + addDiagnosisItem(); }); } @@ -1094,10 +1102,22 @@ function handleNodeClick(data) { // 如果是根节点,不执行任何操作 return; } - // if (!allowAdd.value) { - // proxy.$modal.msgWarning('请先填写病历'); - // return; - // } + + // 检查是否已填写病历 + if (!allowAdd.value) { + proxy.$modal.msgWarning('请先填写病历'); + return; + } + + // 检查当前列表是否有未保存的诊断,阻止重复新增 + const hasUnsaved = (form.value.diagnosisList || []).some( + (item) => !item.conditionId && !item.encounterDiagnosisId + ); + if (hasUnsaved) { + proxy.$modal.msgWarning('请保存当前诊断'); + return; + } + const isDuplicate = form.value.diagnosisList.some( (diagnosis) => diagnosis.ybNo === data.ybNo || diagnosis.name === data.name ); diff --git a/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue b/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue index 39a24468f..df814cd11 100755 --- a/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue +++ b/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue @@ -15,6 +15,7 @@ 全部 @@ -33,9 +34,12 @@ value-format="YYYY-MM-DD HH:mm:ss" style="width: 200px" /> + 查询 +
@@ -47,11 +51,37 @@ v-model="chooseAll" @change="handelSwitchChange" /> - type="primary" - > - - + + + +
- - - - - - - - encounterId: item.encounterId, - patientId: item.patientId, - accountId: item.accountId, - therapyEnum: item.therapyEnum, - exePerformRecordList: item.exePerformRecordList, /** * 执行医嘱 */ @@ -853,3 +828,27 @@ function handleVoid() { } }); } + +defineExpose({ + handleGetPrescription, +}); + + +