Commit 57ae09d7 by chongli

业绩修改,手机号uid不一致异常

parent 1db73949
......@@ -34,6 +34,12 @@ function queryMobilePhoneInModal(){
mobilePhone: recommendPhone
},
success: function (obj) {
if(obj.body==null){
$("#courseSelector").find("input[name=recommendUid]").val("");
}else{
$("#courseSelector").find("input[name=recommendUid]").val(obj.body.uid);
}
var source = $("#table_course").html();
var template = Handlebars.compile(source);
$('#tableList').html(template(obj.body))
......@@ -46,9 +52,12 @@ function queryMobilePhoneInModal(){
function updateMobilePhone(){
var activeCustomerId = $("#activeCustomerId").val();
var recommendPhone = $("#courseSelector").find("input[name=recommendPhone]").val();
var recommendUid = $("#courseSelector").find("input[name=recommendUid]").val();
$('#changeMobilePhoneToEdit').modal('hide');
if(recommendUid==""){
alert("该开单人不存在,请确认");
return;
}
jQuery.ajax({
type:"POST",
......@@ -61,6 +70,7 @@ function updateMobilePhone(){
data = eval(data);
if(data.status == 0){
alert("修改成功");
window.location.reload();
}else{
alert("修改失败!" + data.message);
}
......@@ -269,6 +279,7 @@ $('#communeNoModal').on('hidden.bs.modal', function (e) {
<div class="modal-body" id='courseSelector'>
<div class="input-append">
<input type="hidden" id="activeCustomerId" value="111111111111111111" />
<input type="hidden" name="recommendUid" value="" />
<input type="text" name="recommendPhone" value="" placeholder="开单人手机号" class="input-medium" autocomplete="off"/>
<button class="btn" data-toggle="modal" onclick="queryMobilePhoneInModal()">开单人信息确认</button> <button style="margin-left:50px;" class="btn" data-toggle="modal" onclick="updateMobilePhone()">确认修改</button>
</div>
......
......@@ -20,6 +20,11 @@ function queryMobilePhoneInModal(){
mobilePhone: recommendPhone
},
success: function (obj) {
if(obj.body==null){
$("#courseSelector").find("input[name=recommendUid]").val("");
}else{
$("#courseSelector").find("input[name=recommendUid]").val(obj.body.uid);
}
var source = $("#table_course").html();
var template = Handlebars.compile(source);
$('#tableList').html(template(obj.body))
......@@ -30,9 +35,12 @@ function queryMobilePhoneInModal(){
function updateMobilePhone(){
var voucherOrderId = $("#voucherOrderId").val();
var recommendPhone = $("#courseSelector").find("input[name=recommendPhone]").val();
var recommendPhone = $("#courseSelector").find("input[name=recommendUid]").val();
$('#changeMobilePhoneToEdit').modal('hide');
if(recommendPhone==""){
alert("该开单人不存在,请确认");
return;
}
jQuery.ajax({
type:"POST",
contentType:"application/x-www-form-urlencoded",
......@@ -45,6 +53,7 @@ function updateMobilePhone(){
data = eval(data);
if(data.status == 0){
alert("修改成功");
window.location.reload();
}else{
alert("修改失败!" + data.message);
}
......@@ -123,6 +132,7 @@ function updateMobilePhone(){
<div class="modal-body" id='courseSelector'>
<div class="input-append">
<input type="hidden" id="voucherOrderId" value="111111111111111111" />
<input type="hidden" name="recommendUid" value="" />
<input type="text" name="recommendPhone" value="" placeholder="开单人手机号" class="input-medium" autocomplete="off"/>
<button class="btn" data-toggle="modal" onclick="queryMobilePhoneInModal()">开单人信息确认</button> <button style="margin-left:50px;" class="btn" data-toggle="modal" onclick="updateMobilePhone()">确认修改</button>
</div>
......
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 sign in to comment