diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue
index 5a64898..865886b 100644
--- a/src/views/moneyManage/refundDetail/refundCharge.vue
+++ b/src/views/moneyManage/refundDetail/refundCharge.vue
@@ -117,11 +117,11 @@
永久金币
- 个
+ 个
免费金币
- 个
+ 个
退款理由
diff --git a/src/views/moneyManage/refundDetail/refundFinance.vue b/src/views/moneyManage/refundDetail/refundFinance.vue
index 7a4b1de..5a5eb87 100644
--- a/src/views/moneyManage/refundDetail/refundFinance.vue
+++ b/src/views/moneyManage/refundDetail/refundFinance.vue
@@ -116,11 +116,11 @@
永久金币
- 个
+ 个
免费金币
- 个
+ 个
退款理由
diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue
index fd0d6cb..734000e 100644
--- a/src/views/moneyManage/refundDetail/refundHeader.vue
+++ b/src/views/moneyManage/refundDetail/refundHeader.vue
@@ -117,11 +117,11 @@
永久金币
- 个
+ 个
免费金币
- 个
+ 个
退款理由
diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue
index e763ee4..bac3cf2 100644
--- a/src/views/moneyManage/refundDetail/refundService.vue
+++ b/src/views/moneyManage/refundDetail/refundService.vue
@@ -369,6 +369,27 @@ const submitEdit = async function () {
}
try {
console.log(editRow.value)
+ if(!editForm.value.refundModel) {
+ ElMessage.error('请选择退款方式')
+ return
+ }else if(!editForm.value.refundReason) {
+ ElMessage.error('请输入退款理由')
+ return
+ }else if(editForm.value.refundModel == 1 && (!editForm.value.partRefundGold || !editForm.value.partRefundFree)) {
+ ElMessage.error('请输入退款金币数和免费金币数')
+ return
+ }else if (editForm.value.refundModel == 1 && (editForm.value.partRefundGold || editForm.value.partRefundFree)) {
+ const isPositiveInteger = /^[1-9]\d*$/.test(editForm.value.partRefundGold)
+ if (!isPositiveInteger) {
+ ElMessage.error('请输入正确的永久金币数')
+ return
+ }
+ const isPositiveInteger1 = /^[1-9]\d*$/.test(editForm.value.partRefundFree)
+ if (!isPositiveInteger1) {
+ ElMessage.error('请输入正确的免费金币数')
+ return
+ }
+ }
let params = {
id: editRow.value.id,
status: editRow.value.status,