From 213acd91987d7eb40071a2914c9c4659ffabee4c Mon Sep 17 00:00:00 2001
From: hongxilin <17663930442@163.com>
Date: Thu, 2 Jan 2025 13:54:01 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=85=85=E5=80=BC=E5=BF=85?=
=?UTF-8?q?=E5=A1=AB=E5=86=85=E5=AE=B9=E6=9C=AA=E5=A1=AB=E5=86=99=E6=97=B6?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BB=80=E4=B9=88=E5=86=85=E5=AE=B9=E6=9C=AA?=
=?UTF-8?q?=E5=A1=AB=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vue/gold-system/src/views/recharge/addRecharge.vue | 432 +++++----------------
1 file changed, 103 insertions(+), 329 deletions(-)
diff --git a/vue/gold-system/src/views/recharge/addRecharge.vue b/vue/gold-system/src/views/recharge/addRecharge.vue
index 311b636..c827f00 100644
--- a/vue/gold-system/src/views/recharge/addRecharge.vue
+++ b/vue/gold-system/src/views/recharge/addRecharge.vue
@@ -635,6 +635,7 @@ const handleBatchAvatarSuccess = (response, uploadFile) => {
//批量充值确认按钮
const batchAdd = async function () {
console.log("batchData===", batchData.value);
+ let msg = '';
if (batchData.value.length == 0) {
ElMessage({
type: "error",
@@ -648,24 +649,40 @@ const batchAdd = async function () {
batchData.value[i].rechargeWay = "客服充值";
if (
batchData.value[i].jwcode == "" ||
- batchData.value[i].jwcode == null ||
+ batchData.value[i].jwcode == null) {
+ msg += `精网号不能为空! 个
`;
+ }
+ if (
batchData.value[i].activityId == "" ||
- batchData.value[i].activityId == null ||
+ batchData.value[i].activityId == null) {
+ msg += `活动不能为空!
`;
+ }
+ if (
batchData.value[i].paidGold == "" ||
- batchData.value[i].paidGold == null ||
+ batchData.value[i].paidGold == null) {
+ msg += `充值金币不能为空!
`;
+ }
+ if (
batchData.value[i].rechargeGold == "" ||
- batchData.value[i].rechargeGold == null ||
+ batchData.value[i].rechargeGold == null) {
+ msg += `充值金额不能为空!
`;
+ }
+ if (
batchData.value[i].payWay == "" ||
- batchData.value[i].payWay == null ||
+ batchData.value[i].payWay == null) {
+ msg += `收款方式不能为空!
`;
+ }
+ if (
batchData.value[i].rechargeTime == "" ||
- batchData.value[i].rechargeTime == null
- ) {
- ElMessage({
- type: "error",
- message: "信息不能为空!请检查输入内容!",
- });
- return;
+ batchData.value[i].rechargeTime == null) {
+ msg += `交款时间不能为空!
`;
}
+ ElMessage({
+ dangerouslyUseHTMLString: true,
+ type: "error",
+ message: msg,
+ });
+ return;
}
console.log("batchData===", batchData.value);
@@ -803,36 +820,14 @@ onMounted(async function () {
-
+