From 09c6605aedd8d78f792571693305e2defee515c4 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 9 Jun 2025 16:29:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BF=A0=ED=8F=B0=EC=83=9D=EC=84=B1=20-=20?= =?UTF-8?q?=EC=BF=A0=ED=8F=B0=ED=83=80=EC=9E=85(=ED=8F=AC=EC=9D=B8?= =?UTF-8?q?=ED=8A=B8,=20=EC=BA=94)=20=EC=84=A0=ED=83=9D=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/can.js | 4 ++-- src/views/Can/CanCoupon.vue | 47 ++++++++++++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/src/api/can.js b/src/api/can.js index cd18d1a..8580630 100644 --- a/src/api/can.js +++ b/src/api/can.js @@ -22,8 +22,8 @@ async function getCouponList(page) { return Vue.axios.get('/can/coupon?page=' + (page - 1) + "&size=20"); } -async function generateCoupon(couponName, can, validity, isMultipleUse, couponNumberCount) { - const request = {couponName, can, validity: validity + ' 23:59:59', isMultipleUse, couponNumberCount}; +async function generateCoupon(couponName, couponType, can, validity, isMultipleUse, couponNumberCount) { + const request = {couponName, couponType, can, validity: validity + ' 23:59:59', isMultipleUse, couponNumberCount}; return Vue.axios.post('/can/coupon', request); } diff --git a/src/views/Can/CanCoupon.vue b/src/views/Can/CanCoupon.vue index 924908d..b78fd55 100644 --- a/src/views/Can/CanCoupon.vue +++ b/src/views/Can/CanCoupon.vue @@ -14,7 +14,7 @@ {{ item.couponName }} + + @@ -132,6 +136,38 @@ label="발행수량" /> + + + + 쿠폰종류 + + + + + + + + + + + + + + + @@ -373,6 +409,7 @@ export default { is_active: null, is_multiple_use: false, coupon_number_count: null, + coupon_type: 'CAN', page: 1, total_page: 0, @@ -414,6 +451,12 @@ export default { sortable: false, value: 'couponName', }, + { + text: '쿠폰종류', + align: 'center', + sortable: false, + value: 'couponType', + }, { text: '쿠폰금액', align: 'center', @@ -542,6 +585,7 @@ export default { this.is_active = null this.is_multiple_use = false this.coupon_number_count = null + this.coupon_type = 'CAN' }, showModifyDialog(value) { @@ -628,6 +672,7 @@ export default { try { const res = await api.generateCoupon( this.coupon_name, + this.coupon_type, this.can, this.validity, this.is_multiple_use, -- 2.40.1