From df58ae43da351b0a92ec4480d26ecfd4832ece6f Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Thu, 22 Jan 2026 10:34:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=80=80=E6=AC=BE=E6=9C=8D=E5=8A=A1):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=91=E5=B8=81=E5=85=85=E5=80=BC=E5=95=86?= =?UTF-8?q?=E5=93=81=E9=83=A8=E5=88=86=E9=80=80=E6=AC=BE=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仅在商品为'金币充值'且退款模式为1时验证退款金币和免费的输入 --- src/views/moneyManage/refundDetail/refundService.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue index 2854d98..9cf83a9 100644 --- a/src/views/moneyManage/refundDetail/refundService.vue +++ b/src/views/moneyManage/refundDetail/refundService.vue @@ -387,10 +387,11 @@ const submitEdit = async function () { }else if(!editForm.value.refundReason) { ElMessage.error(t('elmessage.refundReasonPlaceholder')) return - }else if(editForm.value.refundModel == 1 && (!editForm.value.partRefundGold || !editForm.value.partRefundFree)) { - ElMessage.error(t('elmessage.inputRefundBeansBoth')) - return - }else if (editForm.value.refundModel == 1 && (editForm.value.partRefundGold || editForm.value.partRefundFree)) { + } else if (editRow.value.goodsName === '金币充值' && editForm.value.refundModel == 1) { + if (!editForm.value.partRefundGold || !editForm.value.partRefundFree) { + ElMessage.error(t('elmessage.inputRefundBeansBoth')) + return + } const isPositiveInteger = /^[1-9]\d*$/.test(editForm.value.partRefundGold) if (!isPositiveInteger) { ElMessage.error(t('elmessage.checkPermanentFormat'))