From f99e9c442e8f3ba063ea27afa16e492f0da834cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Wed, 10 Jul 2024 16:45:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/recharge/index.vue | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/views/system/recharge/index.vue b/src/views/system/recharge/index.vue index a967808..61c2ab9 100644 --- a/src/views/system/recharge/index.vue +++ b/src/views/system/recharge/index.vue @@ -109,7 +109,7 @@ 订单退款 @@ -135,8 +135,8 @@ - - + + 元 @@ -144,8 +144,8 @@ @@ -203,7 +203,7 @@ export default { }, refundRules: { refundAmount: [ - { required: true, message: "退款金额不能为空", trigger: "blur" } + { required: true, type: 'number', message: "退款金额不能为空", trigger: "blur" } ] }, showRefund: false, @@ -237,15 +237,17 @@ export default { refundBill(this.refundForm.billId, this.refundForm.refundAmount).then(res => { if (res.code === 200) { this.$message.success("操作成功"); + this.showRefund = false; + this.getList(); } }).finally(() => { - refundLoading + this.refundLoading = false; }) }, - handleRefund(id) { + handleRefund(row) { this.refundForm = { - billId: id, - refundAmount: null, + billId: row.billId, + refundAmount: row.money, } this.showRefund = true; },