From 2b44eb8ce72452487df193f420b553c95ef0685e Mon Sep 17 00:00:00 2001 From: LiJianZhao Date: Wed, 7 May 2025 11:45:10 +0800 Subject: [PATCH] dev --- src/components/charge/RecordsLog.vue | 9 +++++---- src/components/charge/RecordsLog/Detail.vue | 4 ++-- src/components/charge/Settlement.vue | 8 +------- src/components/outpatient/MedicalHistory.vue | 3 +-- src/components/retail/OrderDetail.vue | 7 +++++-- src/views/charge/index.vue | 1 - src/views/member/index.vue | 2 +- src/views/outpatient/index.vue | 9 ++++----- 8 files changed, 19 insertions(+), 24 deletions(-) diff --git a/src/components/charge/RecordsLog.vue b/src/components/charge/RecordsLog.vue index 84cf6da..1ee2f4c 100644 --- a/src/components/charge/RecordsLog.vue +++ b/src/components/charge/RecordsLog.vue @@ -9,10 +9,10 @@ - {{ item.diagnosisMedicalRecord.diagnosisSummary }} + {{ item.diagnosisMedicalRecord?.diagnosisSummary }} @@ -37,9 +37,10 @@ const list = ref([]) const init = (patientId: any) => { const query = { - patientId: patientId + patientId: patientId, + pageSize:10 } - post('charge/list', {query}).then((res: any) => { + post('charge/listDetail', {query}).then((res: any) => { list.value = res.list }) } diff --git a/src/components/charge/RecordsLog/Detail.vue b/src/components/charge/RecordsLog/Detail.vue index bf72135..f6602fa 100644 --- a/src/components/charge/RecordsLog/Detail.vue +++ b/src/components/charge/RecordsLog/Detail.vue @@ -61,11 +61,11 @@ const {detail} = defineProps(['detail']); const detailObj = ref(detail) const sumPrice = ref(0) onMounted(() => { - const pharmaceuticalTotalAmount = detailObj.value.serviceDetail.reduce((pre: any, cur: any) => { + const pharmaceuticalTotalAmount = detailObj.value.serviceDetail?.reduce((pre: any, cur: any) => { return pre + cur.number * cur.unitPrice }, 0); - const serviceTotalAmount = detailObj.value.goodsDetail.reduce((pre: any, cur: any) => { + const serviceTotalAmount = detailObj.value.goodsDetail?.reduce((pre: any, cur: any) => { return pre + cur.number * cur.unitPrice }, 0); sumPrice.value = pharmaceuticalTotalAmount + serviceTotalAmount; diff --git a/src/components/charge/Settlement.vue b/src/components/charge/Settlement.vue index 2946dac..974f4cf 100644 --- a/src/components/charge/Settlement.vue +++ b/src/components/charge/Settlement.vue @@ -8,7 +8,7 @@
-
¥{{ prop.money }}
+
¥{{ retailOrder.totalPrice }}
@@ -50,12 +50,6 @@ import PersonalPayment from "@/components/charge/PersonalPayment.vue"; import {ElMessage} from "element-plus"; const wsStore = useWsStore(); const socialCard =defineModel(); -const prop=defineProps({ - money: { - type: String, - default: '' - } -}) const show = ref(false) const printReceipt = ref(false); diff --git a/src/components/outpatient/MedicalHistory.vue b/src/components/outpatient/MedicalHistory.vue index ebf85ac..1e617a7 100644 --- a/src/components/outpatient/MedicalHistory.vue +++ b/src/components/outpatient/MedicalHistory.vue @@ -29,13 +29,12 @@ const list = ref([]) const init = (patientId: any) => { post("medical/record/listByPatient",{patientId:patientId}).then((res: any) => { list.value = res - emit('initMedicalRecord', res[0].diagnosisMedicalRecord.allergyHistory,res[0].diagnosisMedicalRecord.beforeMedicalHistory) }) } const clearList = () => { list.value = [] } -const emit = defineEmits(['copy','copyItem','copyGoods',"initMedicalRecord"]) +const emit = defineEmits(['copy','copyItem','copyGoods']) const copy = (item: any) => { emit('copy', item) } diff --git a/src/components/retail/OrderDetail.vue b/src/components/retail/OrderDetail.vue index e8bbbfe..b73c5c9 100644 --- a/src/components/retail/OrderDetail.vue +++ b/src/components/retail/OrderDetail.vue @@ -155,9 +155,12 @@ import {medTypeJson} from "@/assets/config/constants.ts"; const show = ref(false); const orderInfo = ref({}); -const init = (order: any) => { - orderInfo.value = order; +const init = (code: any) => { show.value = true; + post("charge/getByCode", {code: code}).then((res: any)=>{ + orderInfo.value = res; + }) + } //修改时间格式化 const formatDate = (isoStr: any) => { diff --git a/src/views/charge/index.vue b/src/views/charge/index.vue index 8a32853..c4ff125 100644 --- a/src/views/charge/index.vue +++ b/src/views/charge/index.vue @@ -58,7 +58,6 @@
{ }) } const openDetail = (row: any, column: any, event: Event) => { - orderDetailRef.value.init(row) + orderDetailRef.value.init(row.code) } const statusObj = { 0: "未完成", diff --git a/src/views/outpatient/index.vue b/src/views/outpatient/index.vue index cee9aeb..b6b74d0 100644 --- a/src/views/outpatient/index.vue +++ b/src/views/outpatient/index.vue @@ -30,7 +30,7 @@
- +
@@ -181,6 +181,8 @@ const getSeeDockerInfo = (newValue:any) => { if (!registerId.value)return; post('medical/record/getSeeDockerInfo', {regisId: newValue}).then((res: any) => { seeDockerInfo.value = res + formData.value.allergyHistory = res.patientInfo.allergyHistory; + formData.value.beforeMedicalHistory = res.patientInfo.beforeMedicalHistory; }) } const isShowFrom= ref(false) @@ -195,10 +197,7 @@ watch(() => registerId.value, (newValue) => { getSeeDockerInfo(newValue) }) -const initMedicalRecord = (allergy:string, before:string) => { - formData.value.allergyHistory = allergy; - formData.value.beforeMedicalHistory = before; -} +