From b3e767b2025a5f929cb1a39795e58c9338af5a37 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 30 Apr 2024 12:47:46 +0800 Subject: [PATCH] charge --- .../patientRegister/AsbChargeRequest.vue | 83 +++++++++++++++---- 1 file changed, 69 insertions(+), 14 deletions(-) diff --git a/src/components/patientRegister/AsbChargeRequest.vue b/src/components/patientRegister/AsbChargeRequest.vue index d19bea4..8383711 100644 --- a/src/components/patientRegister/AsbChargeRequest.vue +++ b/src/components/patientRegister/AsbChargeRequest.vue @@ -16,40 +16,41 @@ - + - - + + + + + + - +
申请单包含项目
- - - -
@@ -101,7 +102,10 @@ export default { initData(patientRegisterId) { this.tableData = [] + this.hisRequestData = [] if (!patientRegisterId) return + + //待收费项目 postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId }) .then(res => { if (res.code > -1) { @@ -112,12 +116,63 @@ export default { } }) + // 收费申请单 + postapi('/api/app/ChargeRequest/GetChargeRequestsByPatientRegisterId', { patientRegisterId }) + .then(res => { + if (res.code > -1) { + this.hisRequestData = res.data + } + }) }, handleSelectionChange(v) { this.selectedData = v; }, + setBtnDisabled(row,oprType){ + let ret = true + if(oprType == 'chargeBack'){ + + }else{ + + } + + }, + + // 获取申请单明细 + rowClick(row){ + this.hisRequestDataDetails = [] + postapi('/api/app/ChargeRequest/GetChargeRequestAsbitemsByChargeQuestId', { chargeRequestId: row.id }) + .then(res => { + if (res.code > -1) { + res.data.forEach(e => { + e.total = Number(e.chargePrice*e.amount) + this.hisRequestDataDetails.push(e) + }); + } + }) + }, + + // 撤消申请 + cancelRequest(row) { + postapi('/api/app/ChargeRequest/CancelChargeRequest', { chargeRequestId: row.id }) + .then(res => { + if (res.code > -1) { + // + } + }) + }, + + // 退费 + chargeBack(row) { + postapi('/api/app/ChargeRequest/RefundChargeRequest', { chargeRequestId: row.id }) + .then(res => { + if (res.code > -1) { + // + } + }) + }, + btnSubmit() { if (this.selectedData.length == 0) { this.$message.warning({ showClose: true, message: `请勾选要发送收费申请的检查项目!` }); @@ -135,7 +190,7 @@ export default { postapi("/api/app/ChargeRequest/Create", body) .then(res => { if (res.code > -1) { - this.dataTransOpts.refresh.charge.S++ + this.initData(this.patientRegister.id) } });