Commit b0750ea9 by chenxin

fix: scan

parent fe4c068e
......@@ -86,7 +86,7 @@ export const scan = {
},
{
path: 'edit/:id',
name: '智能营销编辑',
name: '营销计划编辑',
component: () => import(/* webpackChunkName: "scan" */ '../../views/ecm/scan-form.vue'),
meta: {
type: 'edit',
......@@ -95,7 +95,7 @@ export const scan = {
},
{
path: 'info/:id',
name: '智能营销详情',
name: '营销计划详情',
component: () => import(/* webpackChunkName: "scan" */ '../../views/ecm/scan-form.vue'),
meta: {
type: 'info',
......@@ -104,7 +104,7 @@ export const scan = {
},
{
path: 'add',
name: '智能营销新增',
name: '营销计划新增',
component: () => import(/* webpackChunkName: "scan" */ '../../views/ecm/scan-form.vue'),
meta: {
type: 'add',
......
<template>
<div></div>
<div class="dm-form__wrap scan-form">
<el-form ref="form" :model="form" label-width="110px" :rules="rules" v-loading="loading" element-loading-text="拼命加载中">
<h3 class="title">计划内容设置</h3>
<el-form-item label="计划名称" prop="ecmPlanName">
<dm-input class="w400" :maxlength="9" v-model="form.ecmPlanName" :disabled="!isAdd"></dm-input>
</el-form-item>
<el-form-item label="计划时间" prop="ecmTime"></el-form-item>
<el-form-item label="数据对话">
<activity-select :actId.sync="form.marketingActivityId" :readOnly="!isAdd"></activity-select>
</el-form-item>
<h3 class="title">
营销次数配置
<el-tooltip class="item" effect="dark" content="设置本营销计划对同个会员的触发次数" open-delay="500" placement="top-start">
<i class="ml10 iconfont icon-xinxixianshi cursor fz14 gray"></i>
</el-tooltip>
</h3>
<el-form-item label="营销次数配置" prop="marketingTimesType">
<el-select :disabled="!isAdd" v-model="form.marketingTimesType" class="w150 vertical-middle">
<el-option v-for="(v, i) in marketingTimesTypeOptions" :key="i" :value="v.value" :label="v.label"></el-option>
</el-select>
<span class="vertical-middle" v-if="form.marketingTimesType !== -1"><el-input-number :disabled="!isAdd" controls-position="right" class="w150" :min="1" v-model="form.marketingTimes"></el-input-number></span>
<span class="pl20 fz13 gray"> * 该营销计划{{ marketingTimesTips }}</span>
</el-form-item>
<h3 class="title">扫码营销设置</h3>
<h3 class="title">适用人群</h3>
<h3 class="title">营销事件</h3>
</el-form>
</div>
</template>
<script>
import activitySelect from '@/components/activity-select/index.vue';
export default {
name: 'scan-form',
components: {
activitySelect
},
data() {
return {
ecmPlanId: '', // 必传,
loading: false,
form: {
memberType: 0,
ecmPlanName: '',
effectType: 0,
effectTime: 0,
effectAction: 'subscribe',
marketingActivityId: '',
sceneSettingName: '',
expireType: 0,
cardId: '',
mediaId: '',
imageTextId: '',
textContent: '',
title: '',
describe: '',
lateDays: '',
brithday_day: '',
brithday_type: 1,
attention_day: '',
lastCost_day: '',
memberSearchDTO: '',
memberGroupIds: '',
beginDate: '',
endDate: '',
cardNoticeType: 0,
templateNoticeFlag: 0,
// 判断模板消息能否使用
templateUseEnable: 1,
marketingTimesType: 0,
marketingTimes: 1,
gradeIds: [],
//消费触发
lowest_cost: '',
max_cost: '',
lowest_cost_count: '',
max_cost_count: '',
// store_mode: 0,
order_store: ''
},
rules: {
ecmPlanName: { type: 'string', required: true, message: '计划名称不能为空', trigger: 'blur' }
},
marketingTimesTypeOptions: [{ value: 0, label: '总共触发' }, { value: 1, label: '每天触发' }, { value: 2, label: '每周触发' }, { value: 3, label: '每月触发' }, { value: 4, label: '每年触发' }, { value: -1, label: '无限次触发' }], // eslint-disable-line
isEdit: this.$route.meta.type === 'edit',
isAdd: this.$route.meta.type === 'add',
isInfo: this.$route.meta.type === 'info'
......@@ -19,3 +95,15 @@ export default {
}
};
</script>
<style lang="scss" scoped>
.scan-form {
.title {
font-size: 16px;
font-weight: 500;
color: #303133;
line-height: 22px;
margin-bottom: 23px;
}
}
</style>
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