|
@@ -742,13 +742,19 @@ export default {
|
|
|
class: 'confirm-center',
|
|
|
content: <div>
|
|
|
<div style="padding:10px;">
|
|
|
- <div style="padding:10px 0;text-align:center;">请选择</div>
|
|
|
+ <div style="padding:10px 0;">请选择</div>
|
|
|
<aRadioGroup onChange={e => { _this.enableActiveOption = e.target.value }}>
|
|
|
- <aRadio style="display:block;height: '30px';lineHeight: '30px';padding:5px 0;" value="ENABLE_MATCH">
|
|
|
- {isJiejia ? '正常产品、参与叠加规则的促销产品自动适配规则' : '正常产品自动适配规则'}
|
|
|
+ <aRadio style="display:block;height: '30px';lineHeight: '30px';padding:5px 0;" value="0">
|
|
|
+ 正常产品适配
|
|
|
</aRadio>
|
|
|
+ {isJiejia ? <aRadio style="display:block;height: '30px';lineHeight: '30px';padding:5px 0;" value="1">
|
|
|
+ 叠加规则产品适配
|
|
|
+ </aRadio> : ''}
|
|
|
+ {isJiejia ? <aRadio style="display:block;height: '30px';lineHeight: '30px';padding:5px 0;" value="2">
|
|
|
+ 所有产品适配
|
|
|
+ </aRadio> : ''}
|
|
|
<aRadio style="display:block;height: '30px';lineHeight: '30px';padding:5px 0;" value="ENABLE_ONLY">
|
|
|
- 产品不自动适配规则
|
|
|
+ 仅启用不适配
|
|
|
</aRadio>
|
|
|
</aRadioGroup>
|
|
|
</div>
|
|
@@ -768,6 +774,12 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
// 禁用
|
|
|
+ // 无产品直接禁用
|
|
|
+ if (item.totalQty == 0) {
|
|
|
+ _this.disabledActiveOption = 'DELETE'
|
|
|
+ _this.disabledActive(item)
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$confirm({
|
|
|
title: item.promotion.description + '-' + item.promotionRule.description + ',确定禁用规则?',
|
|
|
centered: true,
|