diff --git a/src/components/archive-drawer/visit-record.vue b/src/components/archive-drawer/visit-record.vue index 29ee05a..bb6d2e6 100644 --- a/src/components/archive-drawer/visit-record.vue +++ b/src/components/archive-drawer/visit-record.vue @@ -2,8 +2,8 @@
- - + + @@ -17,10 +17,10 @@
{{ i.year }}
- -
{{ item.orderType }}
+
{{ item.feeType === 'YB' ? '医保处方' : '自费处方' }}
{{ item.deptName }} | {{ item.doctorName }}
{{ item.drugStoreName }}
@@ -41,7 +41,7 @@
- @@ -61,12 +61,12 @@ const props = defineProps({ } }); -const orderTypes = ref([ +const feeTypes = ref([ { label: '全部类型', value: '' }, - { label: '在线复诊', value: 'im' }, - { label: '在线续方', value: 'pres' }, + { label: '医保处方', value: 'YB' }, + { label: '自费处方', value: 'ZF' }, ]); -const orderType = ref(''); +const feeType = ref(''); const dates = ref([]); const list = ref([]); const current = ref(null); @@ -94,19 +94,18 @@ const groups = computed(() => { async function getList() { if (props.patient && props.patient.patientId) { loading.value = true - const query = { patientId: props.patient.patientId,orderStatus:'finished' }; - if (orderType.value) { - query.isPres = orderType.value === 'pres'; - } + const query = { patientId: props.patient.patientId, orderStatus: 'finished' }; if (dates.value && dates.value.length) { query.startDate = dates.value[0]; query.endDate = dates.value[1]; } + if (feeType.value) { + query.feeType = feeType.value; + } const { data, success, message } = await useHlw({ type: 'getPatientOrderList', ...query }); list.value = data && Array.isArray(data.list) ? data.list.map(i => ({ ...i, date: dayjs(i.createTime).format('MM-DD HH:mm'), - orderType: i.preOrderId ? '在线续方' : '在线复诊', })) : []; if (!success) { ElMessage.error(message || '获取数据失败,请稍后重试!')