Browse Source

退款金币数量校验

lihuilin/feature-20251104102812-现金二期
ZhangYong 2 weeks ago
parent
commit
75f9141e01
  1. 8
      src/views/moneyManage/receiveDetail/receiveService.vue

8
src/views/moneyManage/receiveDetail/receiveService.vue

@ -390,7 +390,8 @@
</el-dialog> </el-dialog>
<!-- 查看驳回理由 --> <!-- 查看驳回理由 -->
<el-dialog title="驳回理由" v-model="rejectReasonVisible" width="50%" top="30vh" style="min-width: 200px; max-width: 500px;" :before-close="closeRejectForm">
<el-dialog title="驳回理由" v-model="rejectReasonVisible" width="50%" top="30vh"
style="min-width: 200px; max-width: 500px;" :before-close="closeRejectForm">
<div class="reject-reason-box"> <div class="reject-reason-box">
{{ rejectReason }} {{ rejectReason }}
</div> </div>
@ -896,6 +897,11 @@ const submitRefund = async () => {
if (refundFormData.value.refundModel == 0) { if (refundFormData.value.refundModel == 0) {
refundFormData.value.partRefundGold = refundFormData.value.permanentGold, refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
refundFormData.value.partRefundFree = refundFormData.value.freeGold refundFormData.value.partRefundFree = refundFormData.value.freeGold
} else if (refundFormData.value.refundModel == 1) {
if(refundFormData.value.partRefundGold > refundFormData.value.permanentGold || refundFormData.value.partRefundFree > refundFormData.value.freeGold){
ElMessage.error('退款金额不能大于订单金额')
return
}
} }
const result = await request({ const result = await request({
url: '/Money/add', url: '/Money/add',

Loading…
Cancel
Save