From fd3599ebb0d00e5142b83950a931e4c9d7e88a53 Mon Sep 17 00:00:00 2001 From: "Zhang.YC" Date: Mon, 31 Mar 2025 11:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E8=AF=8A=E6=94=B6=E8=B4=B9=E9=80=80?= =?UTF-8?q?=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OutpatientRefundController.java | 2 +- .../dto/EncounterPatientPaymentDto.java | 1 + .../src/views/charge/cliniccharge/index.vue | 194 ++++++++++++------ .../src/views/charge/clinicrefund/index.vue | 187 +++++++++++++---- 4 files changed, 273 insertions(+), 111 deletions(-) diff --git a/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientRefundController.java b/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientRefundController.java index 7dffbffd..198f001e 100644 --- a/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientRefundController.java +++ b/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientRefundController.java @@ -79,7 +79,7 @@ public class OutpatientRefundController { * @return 操作结果 */ @PostMapping(value = "/refund-payment") - public R refundPayment(@RequestParam List paymentIdList) { + public R refundPayment(@RequestBody List paymentIdList) { return R.ok(outpatientRefundAppService.refundPayment(paymentIdList)); } diff --git a/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterPatientPaymentDto.java b/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterPatientPaymentDto.java index 8c5f4ccd..cb468bf7 100644 --- a/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterPatientPaymentDto.java +++ b/openhis-server/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterPatientPaymentDto.java @@ -54,6 +54,7 @@ public class EncounterPatientPaymentDto { /** 支付位置 */ @Dict(dictTable = "adm_location", dictText = "name", dictCode = "id") private Long locationId; + private String locationId_dictText; /** 到期时间 */ private Date expirationDate; diff --git a/openhis-ui-vue3/src/views/charge/cliniccharge/index.vue b/openhis-ui-vue3/src/views/charge/cliniccharge/index.vue index a354f92b..0b1281c4 100644 --- a/openhis-ui-vue3/src/views/charge/cliniccharge/index.vue +++ b/openhis-ui-vue3/src/views/charge/cliniccharge/index.vue @@ -3,71 +3,130 @@ style="display: flex; justify-content: space-between" class="app-container" > -
- - - - - @@ -92,6 +151,7 @@ const patientList = ref([]); const chargeList = ref([]); const chargeLoading = ref(false); const encounterId = ref(""); +const patientInfo = ref({}); getPatientList(); /** * 患者列表 @@ -106,6 +166,7 @@ function getPatientList() { * 点击患者列表行 获取处方列表 */ function clickRow(row) { + patientInfo.value = row; chargeLoading.value = true; encounterId.value = row.encounterId; getChargeList(row.encounterId).then((res) => { @@ -139,7 +200,10 @@ function patToMedicalInsurance() { } \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/charge/clinicrefund/index.vue b/openhis-ui-vue3/src/views/charge/clinicrefund/index.vue index fa6b39d3..ed7163bb 100644 --- a/openhis-ui-vue3/src/views/charge/clinicrefund/index.vue +++ b/openhis-ui-vue3/src/views/charge/clinicrefund/index.vue @@ -3,57 +3,139 @@ style="display: flex; justify-content: space-between" class="app-container" > -
- - - - - @@ -68,6 +150,7 @@ const queryParams = ref({ }); const patientList = ref([]); +const patientInfo = ref({}); const chargeList = ref([]); const chargeLoading = ref(false); const encounterId = ref(""); @@ -85,6 +168,7 @@ function getPatientList() { * 点击患者列表行 获取处方列表 */ function clickRow(row) { + patientInfo.value = row; chargeLoading.value = true; encounterId.value = row.encounterId; getRefundList(row.encounterId).then((res) => { @@ -94,6 +178,19 @@ function clickRow(row) { }, 100); }); } + +function handleRefund() { + refund( + chargeList.value.map((item) => { + item.id; + }) + ).then((res) => { + if (res.code == 200) { + proxy.$modal.msgSuccess("操作成功"); + } + getPatientList(); + }); +}