diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue index e6b683115..501aa0ce3 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue @@ -46,6 +46,11 @@ @@ -489,6 +489,9 @@ const unitMap = ref({ const buttonDisabled = computed(() => { return !patientInfo.value; }); +const isSaveDisabled = computed(() => { + return !patientInfo.value || prescriptionList.value.length === 0; +}); const props = defineProps({ patientInfo: { type: Object, @@ -676,7 +679,6 @@ function getListInfo(addNewRow) { organization.value = res?.data?.records ?? res?.data ?? []; }); getPrescriptionList(patientInfo.value.encounterId).then((res) => { - console.log('getListInfo==========>', JSON.stringify(res.data)); // 等待科室树加载完成后再处理处方数据,确保 resolveOrgId 能正确匹配 orgTreePromise.then(() => { loadingInstance.close(); @@ -684,7 +686,6 @@ function getListInfo(addNewRow) { .map((item) => { const parsedContent = JSON.parse(item.contentJson); // 构造 unitCodeList,确保编辑时下拉框有正确的选项 - console.log('【DEBUG】unitCode:', parsedContent?.unitCode, typeof parsedContent?.unitCode, 'unitCodeList:', JSON.stringify(parsedContent?.unitCodeList)); const unitCodeListData = parsedContent?.unitCodeList || [ { value: String(parsedContent?.unitCode ?? item.unitCode ?? ''), label: parsedContent?.unitCode_dictText ?? item.unitCode_dictText ?? '', type: 'unit' }, { value: String(parsedContent?.doseUnitCode ?? ''), label: parsedContent?.doseUnitCode_dictText ?? '', type: 'dose' },