|
@@ -268,6 +268,9 @@ export default {
|
|
|
const isMcpScp = this.promoRuleData && this.promoRuleData.convertExpenseFlag == 1 && this.promoRuleData.promotionRuleType == 'BUY_PROD_GIVE_PROD'
|
|
|
// 是否卖产品送采购额
|
|
|
const isMcpScge = this.promoRuleData.promotionRuleType == 'BUY_PROD_GIVE_MONEY' && this.promoRuleData.scopeFlag === '1'
|
|
|
+ // 阶梯
|
|
|
+ const hasScopeLevel = this.promoRuleData && this.promoRuleData.giveRuleList && this.promoRuleData.giveRuleList[0]
|
|
|
+ // 选项卡数据
|
|
|
// 选项卡数据
|
|
|
const tabList = []
|
|
|
if (this.promoRuleData) {
|
|
@@ -278,7 +281,7 @@ export default {
|
|
|
tabList.push({ text: '正价产品', val: 'REGULAR' })
|
|
|
}
|
|
|
if (this.promoRuleData.regularPromotionSameFlag === '0' || this.promoRuleData.scopeFlag === '0' || isMcpScge) {
|
|
|
- const levelText = promo.countData.scopeLevelFlag && isMcpScp ? '(阶梯' + promo.countData.scopeLevel + ')' : ''
|
|
|
+ const levelText = hasScopeLevel && isMcpScp ? '(阶梯' + hasScopeLevel.scopeLevel + ')' : ''
|
|
|
tabList.push({ text: '促销产品' + levelText, val: 'GIFT' })
|
|
|
}
|
|
|
if (this.promoRuleData.promotionRuleType == 'PROMO_PROD') {
|
|
@@ -288,7 +291,7 @@ export default {
|
|
|
this.tabList = tabList
|
|
|
this.promoProductClz = tabList[0].val
|
|
|
this.tableHeight = window.innerHeight - 330
|
|
|
- this.queryParam.scopeLevel = promo.countData.scopeLevel
|
|
|
+ this.queryParam.scopeLevel = hasScopeLevel.scopeLevel
|
|
|
this.resetSearchForm()
|
|
|
},
|
|
|
// 刷新当前页面
|