diff --git a/openhis-ui-vue3/src/views/doctorstation/components/diagnosis/diagnosis.vue b/openhis-ui-vue3/src/views/doctorstation/components/diagnosis/diagnosis.vue index bb1e4c03..b8ecafa6 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/diagnosis/diagnosis.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/diagnosis/diagnosis.vue @@ -36,23 +36,26 @@ - + + + @@ -95,15 +98,14 @@ @@ -290,7 +292,7 @@ const props = defineProps({ const emits = defineEmits(['diagnosisSave']); const { proxy } = getCurrentInstance(); const userStore = useUserStore(); -const { diag_type } = proxy.useDict('diag_type'); +const { med_type } = proxy.useDict('med_type'); const { diagnosis_classification } = proxy.useDict('diagnosis_classification'); const { long_term_flag } = proxy.useDict('long_term_flag'); @@ -505,7 +507,7 @@ function handleAddDiagnosis() { showPopover: false, name: undefined, verificationStatusEnum: 4, - medTypeCode: undefined, // 新增时不设默认值,让用户选择 + medTypeCode: '11', diagSrtNo: maxSortNo + 1, iptDiseTypeCode: 2, diagnosisDesc: '', @@ -576,13 +578,6 @@ function handleMaindise(value, index) { function handleSaveDiagnosis() { proxy.$refs.formRef.validate((valid) => { if (valid) { - // 验证诊断类型是否已选择 - const emptyMedType = form.value.diagnosisList.find(d => !d.medTypeCode); - if (emptyMedType) { - proxy.$modal.msgWarning('请选择诊断类型'); - return false; - } - if (form.value.diagnosisList.length == 0) { proxy.$modal.msgWarning('诊断不能为空'); return false; @@ -723,7 +718,7 @@ form.value.diagnosisList.push({ ybNo: data.ybNo, name: data.name, verificationStatusEnum: 4, - medTypeCode: undefined, // 新增时不设默认值,让用户选择 + medTypeCode: '11', diagSrtNo: maxSortNo + 1, definitionId: data.definitionId, classification: '西医', // 默认为西医 diff --git a/openhis-ui-vue3/src/views/doctorstation/index.vue b/openhis-ui-vue3/src/views/doctorstation/index.vue index af9f3b3c..ae6ac143 100644 --- a/openhis-ui-vue3/src/views/doctorstation/index.vue +++ b/openhis-ui-vue3/src/views/doctorstation/index.vue @@ -73,56 +73,39 @@
-
- - - {{ - Object.keys(patientInfo).length !== 0 - ? patientInfo.patientName + - ' / ' + - patientInfo.age + - ' / ' + - patientInfo.genderEnum_enumText + - ' / ' + - (patientInfo?.contractName ? patientInfo.contractName : '') + - '/' + - patientInfo.phone + - '/' + - patientInfo.busNo - : '-' - }} - - - {{ Object.keys(patientInfo).length !== 0 ? formatDate(patientInfo.registerTime) : '-' }} - - - {{ userStore.nickName }} - - - - 初诊 - 复诊 - - - 完诊 - - - 暂离 - - - 退费 - - - 处方单 - - - 办理住院 - - +
+
+
+ 患者信息: + + {{ + Object.keys(patientInfo).length !== 0 + ? patientInfo.patientName + ' / ' + patientInfo.age + ' / ' + patientInfo.genderEnum_enumText + ' / ' + (patientInfo?.contractName ? patientInfo.contractName : '') + '/' + patientInfo.phone + '/' + patientInfo.busNo + : '-' + }} + +
+
+ 挂号时间: + {{ Object.keys(patientInfo).length !== 0 ? formatDate(patientInfo.registerTime) : '-' }} +
+
+ 医生: + {{ userStore.nickName }} +
+
+ +
+ + 初诊 + 复诊 + + 完诊 + 暂离 + 退费 + 处方单 + 办理住院 +