|
@@ -88,10 +88,12 @@
|
|
|
<!-- 发布状态 -->
|
|
|
<template slot="releaseStatus" slot-scope="text, record">
|
|
|
<a-switch
|
|
|
+ v-if="$hasPermissions('B_dealerPromotionStatus')"
|
|
|
id="promotionList-enable"
|
|
|
@change="changeStatus(record)"
|
|
|
:disabled="record.state!='NOT_START' && record.state!='RUNNING'"
|
|
|
:checked="record.enabledFlag == 1 ? true : false"></a-switch>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<!-- state 待提交:WAIT_SUBMIT 待审核:WAIT_AUDIT 未开始:NOT_START 进行中:RUNNING 审核不通过:AUDIT_REJECT 已结束:IS_OVER -->
|
|
@@ -101,7 +103,7 @@
|
|
|
type="link"
|
|
|
class="button-warning"
|
|
|
@click="handleSetRules(record)"
|
|
|
- v-if="record.state =='WAIT_SUBMIT'||record.state == 'AUDIT_REJECT'"
|
|
|
+ v-if="$hasPermissions('B_dealerPromotionRules')&&(record.state =='WAIT_SUBMIT'||record.state == 'AUDIT_REJECT')"
|
|
|
id="allocateBillList-examine-btn">规则设置</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
@@ -113,28 +115,28 @@
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
- v-if="record.state == 'WAIT_AUDIT'"
|
|
|
+ v-if="$hasPermissions('B_dealerPromotionAudit')&&record.state == 'WAIT_AUDIT'"
|
|
|
@click="handleCheck(record)"
|
|
|
class="button-info"
|
|
|
id="promotionList-edit-btn">审核</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
- v-if="record.state == 'NOT_START' || record.state=='RUNNING'"
|
|
|
+ v-if="$hasPermissions('B_editTime')&&(record.state == 'NOT_START' || record.state=='RUNNING')"
|
|
|
@click="handleTime(record)"
|
|
|
class="button-info"
|
|
|
id="promotionList-edit-btn">促销时间变更</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
- v-if="record.state == 'NO_START' || record.state=='RUNNING'"
|
|
|
+ v-if="$hasPermissions('B_overActive')&&(record.state == 'NO_START' || record.state=='RUNNING')"
|
|
|
@click="handleEnd(record)"
|
|
|
class="button-info"
|
|
|
id="promotionList-edit-btn">终止</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
- v-if="record.state == 'WAIT_SUBMIT'||record.state == 'AUDIT_REJECT'"
|
|
|
+ v-if="$hasPermissions('B_dealerPromotionDel')&&(record.state == 'WAIT_SUBMIT'||record.state == 'AUDIT_REJECT')"
|
|
|
@click="handleDel(record)"
|
|
|
class="button-error"
|
|
|
id="promotionList-del-btn">删除</a-button>
|