Commit 96740275 by caoyanzhi

update: 卡券菜单调整

parent 04cd840b
......@@ -12,10 +12,19 @@
padding:24px;
// min-height: 500px;
}
#app .page-tip {
margin-bottom: 20px;
font-size: 12px;
font-weight: 400;
color: #606266;
line-height: 17px;
}
#app .dm-form__wrap{
margin:24px;
background:#FFF;
padding:20px 32px;
+.dm-form__wrap {
margin-top: 24px;
}
// min-height: 500px;
}
......
<template>
<section class="dm-wrap" v-loading="loading">
<div class="tips">通话录音默认存储 3 天</div>
<div class="page-tip">通话录音默认存储 3 天</div>
<div class="pb22 clearfix">
<el-date-picker v-model="dateTime" :picker-options="pickerOptions" class="w250" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="getTableList"></el-date-picker>
<el-select class="dm-select" clearable="" v-model="listParams.callStatus" placeholder="选择通话状态" @change="getTableList">
......@@ -123,13 +123,3 @@ export default {
}
};
</script>
<style lang="scss" scoped>
.tips {
margin-bottom: 20px;
font-size: 12px;
font-weight: 400;
color: #606266;
line-height: 17px;
}
</style>
......@@ -105,7 +105,6 @@ export default {
};
this.kpiNameOptions = [{ label: '领取次数', value: 'shelf-cards1' }, { label: '使用次数', value: 'shelf-cards2' }, { label: '销售额', value: 'shelf-cards3' }]; // eslint-disable-line
this.cardTrendEchart();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券展架', path: '/card/shelf' }, { name: '卡券展架报表', path: '' }]); // eslint-disable-line
} else {
this.chartParams = {
kpiName: 'card-puton1',
......@@ -116,7 +115,6 @@ export default {
};
(this.kpiNameOptions = [{ label: '领取次数', value: 'card-puton1' }, { label: '使用次数', value: 'card-puton2' }, { label: '销售额', value: 'card-puton3' }]), this.cardChannelAnalysis(); // eslint-disable-line
this.cardTrendEchart();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券库', path: '/card/list' }, { name: '卡券报表', path: '' }]); // eslint-disable-line
}
},
methods: {
......
<template>
<section>
<section style="background-color: #f0f2f5">
<!-- 数据统计 -->
<div class="base" v-loading="loading">
<div class="page-tip">卡券统计报表数据每隔 3 小时更新一次</div>
<div>
<p class="title">基础数据统计 {{ cardInfo.cardName ? `—— ${cardInfo.cardName}` : '' }}</p>
<ul class="clearfix">
......@@ -104,18 +105,6 @@ export default {
this.getCardDetail();
this.cardbaseAnalysis();
this.cardChannelStatistics();
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>卡券统计报表数据每隔3小时更新一次
</div>`
);
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券库', path: '/card/list' }, { name: '卡券报表', path: '' }]); // eslint-disable-line
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
methods: {
getCardDetail() {
......@@ -168,8 +157,8 @@ export default {
<style lang="scss" scoped>
.base {
background: white;
margin: 24px;
padding: 16px 24px;
margin-bottom: 24px;
padding: 24px 24px 16px 24px;
p.title {
height: 22px;
font-size: 16px;
......
......@@ -93,7 +93,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '核销纠错', path: '' }]); // eslint-disable-line
},
methods: {
// 加载列表
......
......@@ -95,7 +95,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券销毁', path: '' }]); // eslint-disable-line
},
components: {
destoryDialog
......
......@@ -1574,8 +1574,5 @@ export default {
if(this.isAdd||this.isCopy){
this.$route.meta.refresh=false;
}
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券库', path: '/card/list' }, { name: '卡券详情', path: '' }]); // eslint-disable-line
}
};
......@@ -394,11 +394,11 @@
<el-radio v-model="form.verificationType" :label="1" :disabled="isEdit || isInfo">收银台录入核销</el-radio>
</el-form-item>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<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="!isInfo && canEdit && $store.state.marketing.appletEnable">保存</el-button>
<el-button @click="$router.push('/card/list')"> </el-button>
</div>
</dm-form-bottom>
</el-form>
<el-dialog title="适用商品" :visible.sync="xxSysp.visible" width="700px">
......@@ -424,9 +424,6 @@ export default cardForm;
margin-left: 20px;
color: #f5222d;
}
.dm-wrap {
margin-bottom: 80px !important;
}
.f-alert {
width: 920px !important;
/deep/ .el-alert__content {
......
......@@ -119,7 +119,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '转赠记录', path: '' }]); // eslint-disable-line
},
filters: {
giveStatus(val) {
......
<template>
<el-form class="content" :model="form" ref="form" :rules="rules" label-width="100px" v-loading="loading">
<div class="dm-form__wrap">
<div class="page-tip">风险提示:大规模投放卡券可能导致模板消息被封</div>
<h3 class="dm-title__label">基础设置</h3>
<el-form-item label="活动名称" prop="putOnName">
<dm-input class="w250" v-model="form.putOnName" :maxlength="9" :disabled="isInfo"></dm-input>
......@@ -118,10 +119,10 @@
</div> -->
</el-form-item>
</section>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<el-button v-if="!isInfo" type="primary" @click="submit('form')">提 交</el-button>
<el-button @click="$router.go(-1)">返回</el-button>
</div>
</dm-form-bottom>
<var-dialog :options="options" :show.sync="varShow" @get-data="insetVar"></var-dialog>
<el-dialog title="修改模板消息" :visible.sync="editDialogShow" width="600px" :before-close="close">
<div class="ecm-msg__edit">
......@@ -254,21 +255,8 @@ export default {
return this.isAdd || (this.isEdit && this.form.putOnType === 1 && this.form.putOnTime > Date.now());
}
},
mounted() {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<div><i class="el-icon-info"></i>风险提示:大规模投放卡券可能导致模板消息被封</div>
</div>
`
);
},
created() {
this.listTemplateVariables();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '/card' }, { name: '卡券库', path: '/card/list' }, { name: '卡券群发', path: '' }]); // eslint-disable-line
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
methods: {
filterWord(prop) {
......@@ -732,7 +720,9 @@ export default {
</script>
<style lang="scss" scoped>
.content {
padding-bottom: 58px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
background: #f0f2f5;
}
.ecm-msg__edit {
display: inline-block;
......
......@@ -65,15 +65,6 @@ export default {
'adjust-stock': adjustStock,
'card-item': cardItem
},
mounted() {
console.log('mounted');
// window.scrollTo(0, 0);
// this.getTableList();
// this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券库', path: '' }]); // eslint-disable-line
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
beforeRouteEnter(to, from, next) {
const {
meta: { type, path, refresh }
......@@ -105,7 +96,6 @@ export default {
};
}
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券库', path: '' }]); // eslint-disable-line
},
methods: {
//编辑库存 前置
......
......@@ -45,7 +45,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券展架', path: '/card/shelf' }, { name: '卡券展架管理', path: '' }]); // eslint-disable-line
},
methods: {
// 加载列表
......
......@@ -231,9 +231,6 @@ export default {
if (this.isEdit || this.isInfo) {
this.getInfo();
}
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券包', path: '' }, { name: this.isAdd ? '新建卡券包' : '编辑卡券包', path: '' }]); // eslint-disable-line
}
};
</script>
......@@ -80,7 +80,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券包', path: '' }, { name: '卡券包列表', path: '' }]); // eslint-disable-line
},
methods: {
del({ cardPackageId }) {
......
......@@ -68,7 +68,6 @@ export default {
created() {
this.listParams.cardPackageId = this.$route.query.cardPackageId;
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券包', path: '' }, { name: `${this.$route.query.name || ''}-卡券包领取记录`, path: '' }]); // eslint-disable-line
},
methods: {
// 加载列表
......
<template>
<section class="card-record-cache" v-loading="recordLoading">
<div class="page-tip">临时领取记录仅保存未关注公众号或未使用过小程序用户领券情况</div>
<!-- 条件筛选区 -->
<div class="pb22">
<el-input v-model="listParams.cardName" class="w250" placeholder="请输入卡券名称" @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
......@@ -97,20 +98,8 @@ export default {
params: {} // 传递的参数
};
},
mounted() {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>临时领取记录仅保存未关注公众号或未使用过小程序用户领券情况
</div>`
);
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券记录', path: '' }, { name: '临时领取记录', path: '' }]); // eslint-disable-line
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
methods: {
// 列表方法
......
<template>
<section class="card-record-get" v-loading="recordLoading">
<div class="page-tip">当天的卡券领取记录数据可在隔天下载完整内容</div>
<!-- 条件筛选区 -->
<div class="pb22">
<el-input clearable v-model="listParams.search" style="width:240px" placeholder="请输入会员信息/卡券代码" @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
......@@ -199,18 +200,6 @@ export default {
this.$refs.cdf.getCardList();
this.getTableList();
}
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>当天的卡券领取记录数据可在隔天下载完整内容
</div>`
);
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券记录', path: '' }, { name: '领取记录', path: '' }]); // eslint-disable-line
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
methods: {
changeShowSelf() {
......
<template>
<section class="card-record-send">
<div class="page-tip">投放记录详情次日更新</div>
<div class="pb22">
<el-select class="vertical-middle w150" v-model="listParams.putonType" placeholder="投放状态" @change="handleStatusChange">
<el-option label="投放成功" :value="1"></el-option>
......@@ -165,20 +166,6 @@ export default {
},
created() {
this.getCouponDetail(); // 获取卡券详情
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券记录', path: '' }, { name: '投放记录', path: '/card/record/send' }, { name: '投放详情', path: '' }]); // eslint-disable-line
},
mounted() {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
投放记录详情次日更新
</div>
`
);
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
methods: {
formatStatus(row) {
......
<template>
<section class="card-record-send" v-loading="loading">
<div class="page-tip">历史数据限制:{{ formatDateTimeByType(nowDate, 'yyyy-MM-dd') }}之前的卡券投放计划未保存详细投放录。</div>
<div class="pb22">
<el-input class="w300" v-model="listParams.search" clearable placeholder="输入卡券名称/备注名/活动名" @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="refresh" />
......@@ -116,20 +117,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券记录', path: '' }, { name: '投放记录', path: '' }]); // eslint-disable-line
},
mounted() {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
历史数据限制:${formatDateTimeByType(nowDate, 'yyyy-MM-dd')}之前的卡券投放计划未保存详细投放录。
</div>
`
);
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips', '');
},
methods: {
//获取列表
......
......@@ -90,7 +90,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '退券记录', path: '' }]); // eslint-disable-line
},
methods: {
// 加载列表
......
......@@ -56,7 +56,6 @@ export default {
},
created() {
this.getTableList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '卡券营销', path: '' }, { name: '卡券展架', path: '' }]); // eslint-disable-line
},
methods: {
//门店回调
......
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