Commit cc771e1a authored by 邓春圆's avatar 邓春圆

完善客户添加 isCustomerServiceConfirmed 参数

parent 92d947af
......@@ -672,7 +672,10 @@ export default {
if(errors){
return this.$message.error('有两条路线未选择目的地')
}
//我的客户页面跳转直接,完善客户
if(this.isCustomerServiceConfirmed){
form.isCustomerServiceConfirmed = this.isCustomerServiceConfirmed;
}
// 修改的提交
if (this.form.id != null) {
this.form.customerContacts.forEach(e => {
......@@ -698,10 +701,6 @@ export default {
return;
}
// 添加的提交
//我的客户页面跳转直接
if(this.isCustomerServiceConfirmed){
form.isCustomerServiceConfirmed = this.isCustomerServiceConfirmed;
}
createCustomer(form).then(response => {
this.$modal.msgSuccess(this.$t('新增成功'));
this.open = false;
......
......@@ -513,7 +513,7 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id;
this.$router.push('/customer/perfect/'+id);
this.$router.push({path:'/customer/perfect/'+id,query:{isCustomerServiceConfirmed:true,}});
// getCustomer(id).then(response => {
// this.form = response.data;
// this.open = true;
......
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