Commit ee31b38b by crushh

update: 完成

parent 7d602e17
......@@ -710,19 +710,24 @@ export default {
}).then(() => {
this.submit(data);
});
return;
}
if (totalCount > this.money && this.money > 0) {
this.$confirm(`本次外呼费用预计需要消费 ${totalCount} 元,当前账户余额为${this.money}元可能会存在部分客户拨打失败,是否继续创建活动?`, '提示', {
confirmButtonText: '去充值',
cancelButtonText: '继续保存',
type: 'warning'
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
window.open(`${window.location.origin}/marketing/#/recharge/do`, '_blank');
})
.catch(() => {
this.submit(data);
.catch(action => {
if (action === 'cancel') {
this.submit(data);
}
});
return;
}
if (this.money <= 0) {
this.$confirm(`本次外呼费用预计需要消费 ${totalCount}元,当前账户余额为${this.money}元,请先充值后再创建活动?`, '提示', {
......@@ -732,6 +737,7 @@ export default {
}).then(() => {
window.open(`${window.location.origin}/marketing/#/recharge/do`, '_blank');
});
return;
}
} else {
this.scrollToError(this);
......
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