From b6fecc55d6f46f3734c1ca98b7c516f30e8173f1 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Thu, 8 May 2025 12:52:08 +0800 Subject: [PATCH] dev --- src/components/charge/GoodsDetail.vue | 116 -------------- src/components/common/goods/GoodsDetail.vue | 144 ++++++++++++++++++ .../common/service/ServiceDetail.vue | 19 ++- src/views/charge/index.vue | 10 +- src/views/outpatient/index.vue | 16 +- 5 files changed, 167 insertions(+), 138 deletions(-) delete mode 100644 src/components/charge/GoodsDetail.vue create mode 100644 src/components/common/goods/GoodsDetail.vue diff --git a/src/components/charge/GoodsDetail.vue b/src/components/charge/GoodsDetail.vue deleted file mode 100644 index 38aff84..0000000 --- a/src/components/charge/GoodsDetail.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/common/goods/GoodsDetail.vue b/src/components/common/goods/GoodsDetail.vue new file mode 100644 index 0000000..2742ffa --- /dev/null +++ b/src/components/common/goods/GoodsDetail.vue @@ -0,0 +1,144 @@ + + + \ No newline at end of file diff --git a/src/components/common/service/ServiceDetail.vue b/src/components/common/service/ServiceDetail.vue index 2d317d6..e3bf3c1 100644 --- a/src/components/common/service/ServiceDetail.vue +++ b/src/components/common/service/ServiceDetail.vue @@ -20,17 +20,21 @@ ¥{{ scope.row.selectedNum * scope.row.selectedPrice }} - +
- + 合计:¥{{ getTotalPrice() || 0 }}
@@ -106,5 +110,10 @@ watchEffect(() => { .bottom { text-align: right; + border-top: 1px solid #EAEAEC ; + display: flex; + .search{ + flex: 1; + } } \ No newline at end of file diff --git a/src/views/charge/index.vue b/src/views/charge/index.vue index b894423..a3f541d 100644 --- a/src/views/charge/index.vue +++ b/src/views/charge/index.vue @@ -50,9 +50,7 @@
- - - +
@@ -83,7 +81,7 @@ import ChargeQueue from "@/components/charge/ChargeQueue.vue"; import {nextTick, onMounted, ref} from "vue"; import {post} from "@/utils/request.ts"; import ServiceDetail from "@/components/common/service/ServiceDetail.vue"; -import GoodsDetail from "@/components/charge/GoodsDetail.vue"; +import GoodsDetail from "@/components/common/goods/GoodsDetail.vue"; import DiagnosisSearchInput from "@/components/outpatient/DiagnosisSearchInput.vue"; import Settlement from "@/components/charge/Settlement.vue"; import TotalPrice from "@/components/charge/TotalPrice.vue"; @@ -98,7 +96,7 @@ const socialCard = ref({payInfo: {}}) const formData = ref({ patientInfo: {}, diagnosisMedicalRecord: {}, - goodsList: [], + goodsDetail: [], itemDetail: [], }) const statusDisabled = ref(0) @@ -138,8 +136,8 @@ const diagnosisSelect = (list: any) => { const recordsConsumptionRef= ref("") const patientCardRef = ref() const clickItem = async (item: any, status: any) => { - formData.value = await post('medical/record/getByDiagnosisCode', {diagnosisCode: item.code}) statusDisabled.value = status + formData.value = await post('medical/record/getByDiagnosisCode', {diagnosisCode: item.code}) getOrderTotalPrice() nextTick(() => { let list = JSON.parse(formData.value.diagnosisMedicalRecord.diagnosisDetail) diff --git a/src/views/outpatient/index.vue b/src/views/outpatient/index.vue index 05a3da3..26dbbe8 100644 --- a/src/views/outpatient/index.vue +++ b/src/views/outpatient/index.vue @@ -10,13 +10,10 @@
-
- - +
@@ -24,7 +21,6 @@ @edit="edit">
-
@@ -54,6 +50,7 @@ import CaseDetail from "@/components/outpatient/CaseDetail.vue"; import {apiConfig} from "@/assets/config/apiConfig.ts"; import PatientCard from "@/components/charge/PatientCard.vue"; import ServiceDetail from "@/components/common/service/ServiceDetail.vue"; +import GoodsDetail from "@/components/common/goods/GoodsDetail.vue"; const registerId = ref() const patientId = ref() @@ -126,8 +123,8 @@ const getId = (item: any) => { regisId: item.id }).then((res: any) => { formData.value = res.diagnosisMedicalRecord - goodsList.value = res.goodsDetail - itemDetail.value = res.itemDetail + formData.value.goodsDetail = res.goodsDetail + formData.value.itemDetail = res.itemDetail patientRegistration.value = res.patientRegistration }) @@ -146,10 +143,8 @@ const deleteItem = () => { } const getStatus = (e: any) => { status.value = e - formData.value.itemDetail = [] - // goodsList.value = [] - // itemDetail.value = [] + formData.value.goodsDetail = [] patientRegistration.value = {} nextTick(() => { medicalHistoryRef.value?.clearList(); @@ -192,7 +187,6 @@ const copyForm=(item:any) => { }) } const copyItemList=(item:any) => { - console.log(item) itemDetail.value = item.itemDetail } const copyGoodsList=(item:any) => {