diff --git a/src/router/index.js b/src/router/index.js index 82f8594..25db290 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -221,6 +221,13 @@ export const constantRouterMap = [ meta: {title: '修改优惠券'}, hidden:true }, + { + path: 'couponHistory', + name: 'couponHistory', + component: () => import('@/views/sms/coupon/history'), + meta: {title: '优惠券领取历史'}, + hidden:true + }, { path: 'brand', name: 'homeBrand', diff --git a/src/views/sms/coupon/components/CouponDetail.vue b/src/views/sms/coupon/components/CouponDetail.vue index 7454a6f..be30adc 100644 --- a/src/views/sms/coupon/components/CouponDetail.vue +++ b/src/views/sms/coupon/components/CouponDetail.vue @@ -305,6 +305,9 @@ this.coupon.productRelationList.push(this.getProductById(this.selectProduct)); this.selectProduct=null; }, + handleDeleteProductRelation(index,row){ + this.coupon.productRelationList.splice(index,1); + }, handleAddProductCategoryRelation(){ if(this.selectProductCate===null||this.selectProductCate.length===0){ this.$message({ @@ -316,9 +319,6 @@ this.coupon.productCategoryRelationList.push(this.getProductCateByIds(this.selectProductCate)); this.selectProductCate=[]; }, - handleDeleteProductRelation(index,row){ - this.coupon.productRelationList.splice(index,1); - }, handleDeleteProductCateRelation(index,row){ this.coupon.productCategoryRelationList.splice(index,1); }, diff --git a/src/views/sms/coupon/history.vue b/src/views/sms/coupon/history.vue new file mode 100644 index 0000000..45557df --- /dev/null +++ b/src/views/sms/coupon/history.vue @@ -0,0 +1,219 @@ + + + + + diff --git a/src/views/sms/coupon/index.vue b/src/views/sms/coupon/index.vue index fe6dccc..1ede0a4 100644 --- a/src/views/sms/coupon/index.vue +++ b/src/views/sms/coupon/index.vue @@ -76,7 +76,9 @@