|
@@ -96,6 +96,8 @@
|
|
|
:checkbox-option="checkboxOption"
|
|
|
/>
|
|
|
<div v-show="showEmpty" class="empty-data">暂无数据</div>
|
|
|
+ <!-- 活动规则详情 -->
|
|
|
+ <detailModal :openModal="openDetailModal" :itemSn="detailSn" @close="closeDetailModal"></detailModal>
|
|
|
</a-spin>
|
|
|
|
|
|
</div>
|
|
@@ -104,13 +106,14 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { salesPromoQueryList } from '@/api/salesNew'
|
|
|
+import detailModal from '@/views/promotionRulesManagement/dealerPromotions/detailModal.vue'
|
|
|
import { salesDetailAllList, salesPromoDetailCount, salesDetaiCount } from '@/api/salesDetailNew'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import chooseWarehouse from '@/views/common/chooseWarehouse'
|
|
|
export default {
|
|
|
name: 'QueryPart',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, chooseWarehouse },
|
|
|
+ components: { STable, VSelect, chooseWarehouse, detailModal },
|
|
|
props: {
|
|
|
newLoading: {
|
|
|
type: Boolean,
|
|
@@ -128,6 +131,8 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
|
+ openDetailModal: false,
|
|
|
+ detailSn: null,
|
|
|
productType: [],
|
|
|
salesBillSn: '',
|
|
|
detailData: null,
|
|
@@ -261,7 +266,7 @@ export default {
|
|
|
{record.promo?(
|
|
|
<div>
|
|
|
<strong style="margin-right:10px;font-size:14px;">{record.promo.promotion.title} ({record.promo.promotionRule.description})</strong>
|
|
|
- <span style="margin-left:10px;color:#00aaff;cursor: pointer;" onClick={()=>_this.showDesc(record)}>
|
|
|
+ <span style="margin-left:10px;color:#00aaff;cursor: pointer;" onClick={()=>_this.showDesc(record.promo)}>
|
|
|
<a-icon title="查看活动详情" type="eye"/> 活动详情
|
|
|
</span>
|
|
|
</div>
|
|
@@ -310,11 +315,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // 产品分类 change
|
|
|
- changeProductType (val, opt) {
|
|
|
- this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
|
|
|
- this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
|
- this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
|
+ // 查看活动详情
|
|
|
+ showDesc(row){
|
|
|
+ this.detailSn = row.promoRuleSn
|
|
|
+ this.openDetailModal = true
|
|
|
+ },
|
|
|
+ // 关闭详情弹窗
|
|
|
+ closeDetailModal () {
|
|
|
+ this.detailSn = null
|
|
|
+ this.openDetailModal = false
|
|
|
},
|
|
|
// 合并活动分类单元格
|
|
|
bodyCellSpan({ row, column, rowIndex }) {
|