From a54379f1af1fa46ab0963b7e6e3d98abde292457 Mon Sep 17 00:00:00 2001
From: lwh <2679599887@qq.com>
Date: Tue, 1 Aug 2023 15:07:38 +0800
Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?=E9=A1=BB=E7=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Coupons/components/AddDialog.vue | 7 +-
.../Coupons/components/EditDialog.vue | 9 ++-
.../components/DetailDialog.vue | 68 ++++++++--------
.../CustomerCoupons/components/EditDialog.vue | 79 ++++++++++---------
4 files changed, 87 insertions(+), 76 deletions(-)
diff --git a/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue b/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue
index 83f27d0..dace437 100644
--- a/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue
+++ b/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue
@@ -27,6 +27,11 @@
+
+
+
+
+
@@ -44,7 +49,7 @@
-
%
diff --git a/src/views/business/Marketing/CouponManage/Coupons/components/EditDialog.vue b/src/views/business/Marketing/CouponManage/Coupons/components/EditDialog.vue
index ed1e1c1..d0b9146 100644
--- a/src/views/business/Marketing/CouponManage/Coupons/components/EditDialog.vue
+++ b/src/views/business/Marketing/CouponManage/Coupons/components/EditDialog.vue
@@ -27,6 +27,11 @@
+
+
+
+
+
@@ -44,8 +49,8 @@
-
+
%
diff --git a/src/views/business/Marketing/CouponManage/CustomerCoupons/components/DetailDialog.vue b/src/views/business/Marketing/CouponManage/CustomerCoupons/components/DetailDialog.vue
index b6eaecf..0bff3cf 100644
--- a/src/views/business/Marketing/CouponManage/CustomerCoupons/components/DetailDialog.vue
+++ b/src/views/business/Marketing/CouponManage/CustomerCoupons/components/DetailDialog.vue
@@ -6,43 +6,43 @@
* @LastEditors: (lwh)
* @LastEditTime: (2023-07-31)
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -61,8 +61,8 @@ import { reactive, ref, watch } from "vue";
// 打开弹窗时回调
const openDialog = async () => {
- await getis_expired()
- await getis_used()
+ await getis_expired()
+ await getis_used()
}
diff --git a/src/views/business/Marketing/CouponManage/CustomerCoupons/components/EditDialog.vue b/src/views/business/Marketing/CouponManage/CustomerCoupons/components/EditDialog.vue
index c27f1fa..f521c99 100644
--- a/src/views/business/Marketing/CouponManage/CustomerCoupons/components/EditDialog.vue
+++ b/src/views/business/Marketing/CouponManage/CustomerCoupons/components/EditDialog.vue
@@ -10,38 +10,41 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -64,13 +67,13 @@
import { ElMessage } from 'element-plus'
import modal from '@/plugins/modal.js'
import { reactive, ref, watch } from "vue";
-import { addOrUpdateCustomerCoupon } from "@/api/business/Marketing/CouponManage/CustomerCoupons/customerCoupon.js";
+import { addOrUpdateCustomerCoupon } from "@/api/business/Marketing/CouponManage/CustomerCoupons/customerCoupon.js";
// 打开弹窗时回调
const openDialog = async () => {
- await getis_expired()
- await getis_used()
+ await getis_expired()
+ await getis_used()
}
@@ -122,11 +125,9 @@ const imgData = ref({
// 验证
const rules = reactive({
- customerCouponGuid: [{ required: true, message: "不能为空", trigger: "blur", type: "number" }],
- couponGuid: [{ required: true, message: "优惠劵guid不能为空", trigger: "blur", type: "number" }],
- customerGuid: [{ required: true, message: "客户guid不能为空", trigger: "blur", type: "number" }],
- customerCouponIsExpired: [{ required: true, message: "是否过期不能为空", trigger: "change", type: "number" }],
- customerCouponIsUsed: [{ required: true, message: "是否已使用不能为空", trigger: "change", type: "number" }],
+ customerCouponGuid: [{ required: true, message: "不能为空", trigger: "blur", type: "number" }],
+ customerCouponIsExpired: [{ required: true, message: "是否过期不能为空", trigger: "change", type: "number" }],
+ customerCouponIsUsed: [{ required: true, message: "是否已使用不能为空", trigger: "change", type: "number" }],
});
// -基础方法