Browse Source

退款金币数量校验

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

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

@ -390,7 +390,8 @@
</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">
{{ rejectReason }}
</div>
@ -552,7 +553,7 @@ const ifGold = () => {
} else {
isGold.value = false
numUnitList.value = ['个', '年', '月']
const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机构活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", 'HC信息费','HC信息费','AI机构探测神器','超级机构探测神器']
const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机构活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", 'HC信息费', 'HC信息费', 'AI机构探测神器', '超级机构探测神器']
if (selectItems.includes(addFormData.value.goodsName)) {
addFormData.value.numUnit = ''
numUnitList.value = ['年', '月']
@ -896,6 +897,11 @@ const submitRefund = async () => {
if (refundFormData.value.refundModel == 0) {
refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
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({
url: '/Money/add',

Loading…
Cancel
Save