lilei 1 week ago
parent
commit
96dff028b0

+ 5 - 1
src/views/promotionRulesManagement/dealerPromotions/detailModal.vue

@@ -4,7 +4,7 @@
     class="dealerPromotions-basicInfo-modal"
     :footer="null"
     :maskClosable="false"
-    title="详情"
+    :title="title"
     v-model="isShow"
     @cancel="isShow=false"
     width="80%">
@@ -257,6 +257,10 @@ export default {
     pageType: {
       type: String,
       default: 'promotionsPage'
+    },
+    title: {
+      type: String,
+      default: '详情'
     }
   },
   data () {

+ 5 - 2
src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

@@ -17,7 +17,7 @@
         :table-data="tableData" />
     </a-spin>
     <!-- 活动规则详情 -->
-    <detailModal :openModal="openDetailModal" pageType="salesPage" :itemSn="promoRuleSn" @close="closeDetailModal"></detailModal>
+    <detailModal :openModal="openDetailModal" pageType="salesPage" :title="promoRuleTitle" :itemSn="promoRuleSn" @close="closeDetailModal"></detailModal>
     <!-- 导入产品 -->
     <importGuideModal
       v-if="type=='edit'"
@@ -156,7 +156,8 @@ export default {
       // 表格列表
       tableData: [],
       openDetailModal: false, // 规则详情弹框
-      promoRuleSn: null, // 销售单sn
+      promoRuleSn: null, // 规则sn
+      promoRuleTitle: '',
       disabledActiveOption: null, // 禁用规则选项
       enableActiveOption: null, // 启用规则选项
       openGuideModal: false, //  导入产品引导
@@ -880,12 +881,14 @@ export default {
     showDesc (row) {
       if (row.promoRuleSn) {
         this.promoRuleSn = row.promoRuleSn
+        this.promoRuleTitle = '详情 — ' + row.promotionTitle + '(' + row.promotionRuleDesc + ')'
         this.openDetailModal = true
       }
     },
     // 关闭详情弹窗
     closeDetailModal () {
       this.promoRuleSn = null
+      this.promoRuleTitle = ''
       this.openDetailModal = false
     }
   }