Commit 9700b32b by caoyanzhi

update: 卡券调整

parent e25c55c0
......@@ -134,7 +134,6 @@ export default {
const that = this;
return {
requestProject: 'marketing',
isOutCoupon: false,
creatorId: '',
uuid: '',
canEdit: false,
......@@ -514,7 +513,6 @@ export default {
if (res.result.card) {
const card = res.result.card;
// 3、4为外部券,不显示保存按钮
this.isOutCoupon = card.gicCouponType == 3 || card.gicCouponType == 4;
this.storeMode = card.storeMode === 0 ? 0 : 1;
this.form.cardApplyChannel = card.cardApplyChannel ? card.cardApplyChannel.split(',') : [];
this.form.auditingStatus = card.auditingStatus || '';
......
......@@ -348,7 +348,7 @@
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button v-if="form.useCustomCode === 0 && form.giveFlag" :disabled="!preview.disabled" @click="preview.visible = true">转赠预览</el-button>
<el-button type="primary" @click="submitForm('form')" v-loading="submitLoading" v-show="!isOutCoupon && !isInfo && canEdit && $store.state.marketing.appletEnable">保存</el-button>
<el-button type="primary" @click="submitForm('form')" v-loading="submitLoading" v-show="!isInfo && canEdit && $store.state.marketing.appletEnable">保存</el-button>
<el-button @click="$router.go(-1)"> </el-button>
</div>
</el-form>
......
......@@ -32,7 +32,7 @@ export default Vue.component('render-temp', {
</a>
);
const bind3 =
isWeimo || isCommon || !isApiCreate ? (
!isWeimo && !isCommon && !isApiCreate ? (
<a title="编辑" onClick={this.handler.bind(null, 3)}>
<i class="el-icon-edit" />
</a>
......@@ -78,6 +78,7 @@ export default Vue.component('render-temp', {
{bind2}
{bind3}
{bind4}
{isWeimo || isCommon ? bind5 : ''}
</span>
);
const overDateHtml = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment