From 4a77470025064caeb6afaf9fd244f583e83cb83a Mon Sep 17 00:00:00 2001 From: lwh <2679599887@qq.com> Date: Sat, 29 Jul 2023 20:10:04 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Coupons/components/AddDialog.vue | 7 +- .../Coupons/components/DetailDialog.vue | 224 +++++++++--------- .../Coupons/components/EditDialog.vue | 17 +- .../Marketing/CouponManage/Coupons/index.vue | 21 +- .../components/ChooseMultipleGoodsDialog.vue | 22 +- 5 files changed, 160 insertions(+), 131 deletions(-) diff --git a/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue b/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue index cd83bf2..1ddf859 100644 --- a/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue +++ b/src/views/business/Marketing/CouponManage/Coupons/components/AddDialog.vue @@ -222,7 +222,8 @@ const formData = reactive({ couponSort: 100, couponSendNumber: -1, couponApplicableScopeConfig: [], - couponGoodsIds: [] + couponGoodsIds: [], + couponFixedTime: [] }); const props = defineProps({ modelValue: Boolean, @@ -261,6 +262,10 @@ const handleAddClick = async (formEl) => { if (formData.couponApplicableScopeConfig) { formData.couponApplicableScopeConfig = JSON.stringify(formData.couponApplicableScopeConfig) } + if(formData.couponFixedTime.length != 0){ + formData.couponFixedStartTime = formData.couponFixedTime[0] + formData.couponFixedEndTime = formData.couponFixedTime[1] + } const { code } = await addOrUpdateCoupon(formData); if (code == 200) { diff --git a/src/views/business/Marketing/CouponManage/Coupons/components/DetailDialog.vue b/src/views/business/Marketing/CouponManage/Coupons/components/DetailDialog.vue index 36ca9d1..3cb489b 100644 --- a/src/views/business/Marketing/CouponManage/Coupons/components/DetailDialog.vue +++ b/src/views/business/Marketing/CouponManage/Coupons/components/DetailDialog.vue @@ -6,118 +6,124 @@ * @LastEditors: (lwh) * @LastEditTime: (2023-07-24) --> -