chenrui před 2 roky
rodič
revize
154607d292

+ 6 - 6
src/views/promotionRulesManagement/promotionManagement/addModal.vue

@@ -175,12 +175,6 @@ export default {
           buyerName: con.dealerName
         }
       })
-      const newArr = list.map(item => {
-        return {
-          buyerSn: item.dealerSn
-        }
-      })
-      this.form.promoBuyerList = newArr
       this.openDealerModal = false
       // 移除表单必填项
       this.$refs.ruleForm.clearValidate('promoBuyerList')
@@ -209,6 +203,12 @@ export default {
     //  保存促销
     handleSave () {
       const _this = this
+      const newArr = this.chooseDealerList.map(item => {
+        return {
+          buyerSn: item.buyerSn
+        }
+      })
+      this.form.promoBuyerList = newArr
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
           const form = JSON.parse(JSON.stringify(_this.form))