chenrui 7 mesi fa
parent
commit
8baa18354e

+ 1 - 2
src/views/easyPassManagement/promotionalActivities/addPromotionModal.vue

@@ -226,7 +226,6 @@ export default {
       } else {
         this.oldDealerFlag = '0'
       }
-      console.log('1111111111111:', this.oldDealerFlag)
       const _this = this
       _this.form.allDealerFlag = val
       if (val == '1' || !val) {
@@ -291,7 +290,7 @@ export default {
           delete formData.shopPromoDealerList
           if (_this.itemSn && _this.itemSn.length > 0) {
             console.log('22222222222222:', _this.oldDealerFlag)
-            if (_this.chooseProductNum > 0 && _this.hasEq && _this.hasEq.length > 0 && _this.oldDealerFlag != '1') {
+            if (_this.chooseProductNum > 0 && ((_this.hasEq && _this.hasEq.length > 0) && _this.oldDealerFlag != '1')) {
               _this.$confirm({
                 title: '提示',
                 content: <div>变更【参与经销商】后将会【<span style="color:red">清空</span>】已选产品列表,确定变更吗?</div>,