Преглед изворни кода

创建盲票组、活动添加奖品确认提示

hwb0 пре 3 година
родитељ
комит
cab1f8154c

+ 4 - 0
src/views/business/marketing/components/CouponAdd.vue

@@ -153,6 +153,10 @@ export default {
 
     // 确认选中卡券
     confirmCoupon() {
+      if(!this.selectCouponList.length) {
+        this.msgInfo('请选择券')
+        return
+      }
       this.$emit("confirmCoupon", this.selectCouponList);
     },
 

+ 4 - 0
src/views/business/marketing/components/CouponPkgAdd.vue

@@ -124,6 +124,10 @@ export default {
 
     // 确认选中券包
     confirmCouponPkg() {
+      if(!this.selectCouponPkgList.length) {
+        this.msgInfo('请选择券包')
+        return
+      }
       this.$emit("confirmCouponPkg", this.selectCouponPkgList);
     },
 

+ 4 - 0
src/views/business/marketing/components/GoodsAdd.vue

@@ -153,6 +153,10 @@ export default {
 
     // 确认选中商品
     confirmGoods() {
+      if(!this.selectGoodsList.length) {
+        this.msgInfo('请选择商品')
+        return
+      }
       this.$emit("confirmGoods", this.selectGoodsList);
     },
 

+ 4 - 0
src/views/business/ticket/components/CouponAdd.vue

@@ -153,6 +153,10 @@ export default {
 
     // 确认选中卡券
     confirmCoupon() {
+      if(!this.selectCouponList.length) {
+        this.msgInfo('请选择券')
+        return
+      }
       this.$emit("confirmCoupon", this.selectCouponList);
     },
 

+ 4 - 0
src/views/business/ticket/components/CouponPkgAdd.vue

@@ -124,6 +124,10 @@ export default {
 
     // 确认选中券包
     confirmCouponPkg() {
+      if(!this.selectCouponPkgList.length) {
+        this.msgInfo('请选择券包')
+        return
+      }
       this.$emit("confirmCouponPkg", this.selectCouponPkgList);
     },
 

+ 4 - 0
src/views/business/ticket/components/GoodsAdd.vue

@@ -204,6 +204,10 @@ export default {
 
     // 确认选中商品
     confirmGoods() {
+      if(!this.selectGoodsList.length) {
+        this.msgInfo('请选择商品')
+        return
+      }
       this.$emit("confirmGoods", this.selectGoodsList);
     },