chenrui 1 éve
szülő
commit
6d152ef705

+ 5 - 3
src/views/promotionRulesManagement/dealerPromotions/sendAmountModal.vue

@@ -554,6 +554,7 @@ export default {
     // 获取编辑详情
     getDetail () {
       const _this = this
+      _this.spinning = true
       getRuleDetail({ sn: this.itemSn }).then(res => {
         if (res.status == 200) {
           const resultObj = res.data
@@ -581,6 +582,7 @@ export default {
           _this.form = { ..._this.form, ...resultObj }
           _this.calculatePrice()
         }
+        _this.spinning = false
       })
     },
     newData (list) {
@@ -680,11 +682,11 @@ export default {
           this.form.gateProductList = this.$refs.cillProduct.getResultVal()
         } else if (this.chooseVal === 'b') {
           this.form.regularProductList = this.$refs.normalPriceProduct.getResultVal()
-        }else{
+        } else {
           this.form.giftProductList = this.$refs.offerProduct.getResultVal()
         }
       }
-      this.$nextTick(()=>{
+      this.$nextTick(() => {
         const newPreviewList = this.getPreviewList(this.form[dataName + 'ProductList'])
         if (newPreviewList && newPreviewList.length === 0) {
           this.$message.warning('暂时没有可预览的产品')
@@ -696,7 +698,7 @@ export default {
         }
         this.$refs.previewModal.pageInit(resuleObj)
         this.openProductModal = true
-      }) 
+      })
     },
     closeProductModal () {
       this.previewList = []

+ 2 - 0
src/views/promotionRulesManagement/dealerPromotions/sendProductsModal.vue

@@ -589,6 +589,7 @@ export default {
     // 获取编辑详情
     getDetail () {
       const _this = this
+      _this.spinning = true
       getRuleDetail({ sn: _this.itemSn }).then(res => {
         if (res.status == 200) {
           const resultObj = res.data
@@ -619,6 +620,7 @@ export default {
           delete newDataObj.giftProductList
           _this.form = newDataObj
         }
+        _this.spinning = false
       })
     },
     newData (list) {

+ 2 - 0
src/views/promotionRulesManagement/dealerPromotions/specialOfferModal.vue

@@ -547,6 +547,7 @@ export default {
     // 获取编辑详情
     getDetail () {
       const _this = this
+      _this.spinning = true
       getRuleDetail({ sn: this.itemSn }).then(res => {
         if (res.status == 200) {
           this.chooseVal = res.data.gateFlag == '0' ? 'd' : 'a'
@@ -572,6 +573,7 @@ export default {
           }
           this.form = { ...this.form, ...resultObj }
         }
+        _this.spinning = false
       })
     },
     newData (list) {