Commit 136870bd by zhangmeng

ecm

parent 93acee2a
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.a5e1c09a2ae0ab1c3621b70a4d086fc9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.6c243c45857525333b7e.js></script><script type=text/javascript src=/marketing/static/js/app.062c80ab7211400f52b6.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.a5e1c09a2ae0ab1c3621b70a4d086fc9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.381a376baaa65b5cbeb9.js></script><script type=text/javascript src=/marketing/static/js/app.fa00b9230392cea410f3.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -37,3 +37,24 @@
<div v-show="form.marketingType === 'text'">
<wxText :msgText="form.textContent" @listenWxText="getWxText"></wxText>
</div>
if ( this.form.marketingType === 'card' || this.form.marketingType === 'message') {
this.form.cardId = result.cardId || '';
}
if (this.form.marketingType==="teletext") {
this.form.mediaId = result.mediaId || '';
this.form.imageTextId = result.imageTextId || '';
}
if (this.form.marketingType==="image") {
this.form.mediaId = result.mediaId || '';
}
if (this.form.marketingType=="text") {
this.form.textContent = result.textContent || '';
}
if(this.form.marketingType==="teltask") {
this.form.title = result.title; // 话务任务标题
this.form.describe = result.describe; // 话务任务描述
this.form.lateDays = result.lateDays; // 任务逾期判定天数
}
......@@ -249,29 +249,10 @@ export default {
this.useId = res.result.searchId
this.hasSearchData = result.filterJson;
}
if ( this.form.marketingType === 'card' || this.form.marketingType === 'message') {
this.form.cardId = result.cardId || '';
}
if (this.form.marketingType==="teletext") {
this.form.mediaId = result.mediaId || '';
this.form.imageTextId = result.imageTextId || '';
}
if (this.form.marketingType==="image") {
this.form.mediaId = result.mediaId || '';
}
if (this.form.marketingType=="text") {
this.form.textContent = result.textContent || '';
}
if(this.form.marketingType==="teltask") {
this.form.title = result.title; // 话务任务标题
this.form.describe = result.describe; // 话务任务描述
this.form.lateDays = result.lateDays; // 任务逾期判定天数
}
if (this.form.effectType === 1) {
this.form.brithday_day = commonScene.brithday_day;
this.form.attention_day = commonScene.attention_day;
this.form.lastCost_day = commonScene.lastCost_day;
if (this.form.brithday_day) {
this.radio = 'brithday_day'
} else if (this.form.attention_day) {
......@@ -324,36 +305,6 @@ export default {
return;
}
}
if ((this.form.marketingType === 'card' || this.form.marketingType === 'message') && !this.form.cardId ) {
console.log(this.form.marketingType === 'card')
this.$tips({type:"warning",message:"请勾选卡券营销选项"})
return;
}
if ((this.form.marketingType==="teletext" || this.form.marketingType==="image") && !this.form.mediaId ) {
this.$tips({type:"warning",message:"请勾选图文营销或图片营销选项"})
return;
}
if ((this.form.marketingType==="teletext") && !this.form.imageTextId ) {
this.$tips({type:"warning",message:"请勾选图文营销选项"})
return;
}
if ((this.form.marketingType=="text") && !this.form.textContent ) {
this.$tips({type:"warning",message:"请勾选本文营销选项"})
return;
}
if ((this.form.marketingType=="teltask") && (!this.form.title || !this.form.describe || !this.form.lateDays) ) {
this.$tips({type:"warning",message:"话务未填写完整"})
return;
}
// if (!this.form.memberSearchDTO) {
// this.$tips({type:'warning',message:'会员筛选不能为空'});
// return;
// }
this.$refs[formName].validate((valid) => {
if (valid) {
this.checkMessageSendCount();
......@@ -367,15 +318,12 @@ export default {
this.loading = true;
let params = {
ecmPlanId:this.form.ecmPlanId || '',
templateEcmPlanId:this.isAdd?this.ecmPlanId:'',
ecmPlanName:this.form.ecmPlanName, // 是 int 计划名称不能为空,且最多9个汉字
effectType: this.form.effectType,//是 int 时效: 实时: 0; 每天: 1
effectTime:this.form.effectTime, //否 int effectType = 1每天时必填, 时效为时间为0-23
effectAction:this.form.effectAction, // 否 string effectType = 0实时时必填, 关注触发: ‘subscribe’; 认证触发: ‘authentication’
marketingType:this.form.marketingType, //是 String 营销方式: 卡券营销: ‘card’; 短信营销 : ‘message’; 图文营销: ‘teletext’; 文本营销: ‘text’; 话务: ‘teltask’; 微信图片: ‘image’
cardId:(this.form.marketingType === 'card' || this.form.marketingType === 'message')?this.form.cardId:'',
mediaId:(this.form.marketingType==="teletext" || this.form.marketingType==="image")?this.form.mediaId:'',
imageTextId:this.form.marketingType==="teletext"?this.form.imageTextId:'',
textContent:this.form.marketingType=="text"? this.form.textContent.replace(/<p>/g,'').replace(/<\/p>/g,'').replace(/<br\/>/g,''):'',
memberSearchDTO:this.form.memberSearchDTO,
searchJson:this.getSaveData
}
......@@ -383,17 +331,10 @@ export default {
params[this.radio] = this.form[this.radio] || 0;
}
if (!this.$route.params.id) {
params.sceneSettingId = this.form.sceneSettingId;// 否 String 营销场景
if (this.isAdd) {
params.sceneSettingId = this.form.sceneSettingId;// 否 String 营销场景
}
if (this.form.marketingType==="teltask") {
params.telTaskInfo = JSON.stringify({
title:this.form.title,
describe:this.form.describe,
lateDays:this.form.lateDays
});
}
saveEcmInfo(params).then(res => {
this.loading = false;
if (res.errorCode === 0) {
......
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