Commit 70f02ded by caoyanzhi

update: ecm、短信营销、卡券直投接口添加预计人数字段

parent 8cc9eff7
......@@ -563,7 +563,7 @@ export default {
dangerouslyUseHTMLString: true
})
.then(() => {
this.saveUpdatePutonCard();
this.saveUpdatePutonCard(sumPerson);
})
.catch(() => {});
} else {
......@@ -572,7 +572,7 @@ export default {
console.log(res);
},
// 保存操作
async saveUpdatePutonCard() {
async saveUpdatePutonCard(forecastMemberCount) {
let params = {
putOnName: this.form.putOnName, // 1.活动名称
cardId: this.form.cardId, // 2.投放卡券,卡券主键ID
......@@ -582,7 +582,8 @@ export default {
memberSearchDTO: this.form.memberType ? this.form.memberGroupIds : this.form.memberSearchDTO,
putOnType: this.form.putOnType, // 发送时间, 0:立即发送; 1:定时发送(定时必须选择时间)
searchJson: this.getSaveData,
noticeType: this.form.noticeType
noticeType: this.form.noticeType,
forecastMemberCount
};
/* 模板消息的处理 */
......
......@@ -313,7 +313,7 @@ export default {
}
)
.then(() => {
resolve();
resolve(res.result);
})
.catch(() => {
this.$tips({ type: 'info', message: '已取消发送' });
......@@ -991,7 +991,8 @@ export default {
return false;
}
if (this.form.effectType != 0) {
await this.checkMessageSendCount();
let count = await this.checkMessageSendCount();
params.forecastMemberCount = count;
}
this.loading = true;
saveEcmInfo(params)
......
......@@ -165,7 +165,7 @@ export default {
}
)
.then(() => {
this.saveSendSmsService();
this.saveSendSmsService(res.result);
})
.catch(() => {
this.$tips({ type: 'info', message: '已取消发送' });
......@@ -176,7 +176,7 @@ export default {
}
},
//提交接口
saveSendSmsService() {
saveSendSmsService(forecastMemberCount) {
this.$confirm('是否发送短信?', '提示', {
confirmButtonText: '确定',
cancelBUttonText: '取消',
......@@ -191,7 +191,8 @@ export default {
sendType: this.info.sendType,
memberSearchDTO: this.info.memberSearchDTO,
searchJson: this.getSaveData,
type: this.smsType
type: this.smsType,
forecastMemberCount
};
// return;
if (this.info.memberType === 1) {
......
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