Commit 13aab0ab authored by agping's avatar agping

经纪人 新增转勤 修改

parent cc49c080
...@@ -398,19 +398,24 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -398,19 +398,24 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
alert('提交成功'); if(data.msg == '转勤'){
$("#modal-edit").modal('hide'); layer.open({
} else { content: '改账号已经有相同账号,请问是否转勤?(转勤 即人员调配另外一个城市)转勤后,所有商铺和客户也都会转到新建的相同手机号里,请确定是否转勤。',
layer.open({
content: '改账号已经有相同账号,请问是否转勤?(转勤 即人员调配另外一个城市)转勤后,所有商铺和客户也都会转到新建的相同手机号里,请确定是否转勤。',
btn: ['确定转勤', '取消转勤'], btn: ['确定转勤', '取消转勤'],
yes: function(_index){ yes: function(_index){
layer.close(_index); layer.close(_index);
console.log(555);
agent.confirm_old=1; agent.confirm_old=1;
agent.Submit_edit(); agent.Submit_edit();
} }
}); });
}else{
alert('提交成功');
$("#modal-edit").modal('hide');
}
}else if(data.code == 101){
alert(data.msg);
} else {
} }
} }
}); });
......
...@@ -269,7 +269,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -269,7 +269,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
dataType: "json", dataType: "json",
success: function(data){ success: function(data){
if(data.code==200){ if(data.code==200){
alert('修改成功'); alert('提交成功');
$("#modal-edit").modal('hide'); $("#modal-edit").modal('hide');
}else{ }else{
alert(data.msg); alert(data.msg);
......
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