diff --git a/src/views/Can/CanCoupon.vue b/src/views/Can/CanCoupon.vue
index b6e75d3..5c1b762 100644
--- a/src/views/Can/CanCoupon.vue
+++ b/src/views/Can/CanCoupon.vue
@@ -202,7 +202,7 @@
- {{ item.couponNumber }}
+ {{ formatWithHyphens(item.couponNumber) }}
@@ -431,6 +431,14 @@ export default {
this.coupon_number_count = null
},
+ formatWithHyphens(value) {
+ const chunks = [];
+ for (let i = 0; i < value.length; i += 4) {
+ chunks.push(value.substr(i, 4));
+ }
+ return chunks.join('-');
+ },
+
async getCouponList() {
this.isLoading = true
try {