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 d3902fbf8..857aa216e 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
@@ -215,6 +215,7 @@
>
diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosislist.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosislist.vue
index 83f157d18..1102e902a 100755
--- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosislist.vue
+++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosislist.vue
@@ -35,13 +35,17 @@ const props = defineProps({
type: String,
default: '',
},
+ diagnosisSystem: {
+ type: String,
+ default: '西医',
+ },
});
const emit = defineEmits(['selectDiagnosis']);
const total = ref(0);
const queryParams = ref({
pageSize: 1000,
pageNo: 1,
- // typeCode: 1,
+ typeCode: props.diagnosisSystem === '中医' ? '2' : '1',
});
const diagnosisDefinitionList = ref([]);
@@ -51,7 +55,14 @@ watch(
queryParams.value.searchKey = newValue;
getList();
},
- { immdiate: true }
+);
+
+watch(
+ () => props.diagnosisSystem,
+ (newValue) => {
+ queryParams.value.typeCode = newValue === '中医' ? '2' : '1';
+ getList();
+ },
);
getList();
@@ -68,4 +79,4 @@ function clickRow(row) {
\ No newline at end of file
+