Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
57ae09d7
authored
Nov 08, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩修改,手机号uid不一致异常
parent
1db73949
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
src/main/webapp/WEB-INF/templates/market/communeExt/activeCustomerList.ftl
src/main/webapp/WEB-INF/templates/voucherOrder/list/voucherOrderListAll.ftl
src/main/webapp/WEB-INF/templates/market/communeExt/activeCustomerList.ftl
View file @
57ae09d7
...
...
@@ -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>
...
...
src/main/webapp/WEB-INF/templates/voucherOrder/list/voucherOrderListAll.ftl
View file @
57ae09d7
...
...
@@ -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=recommend
Phone
]").val();
var recommendPhone = $("#courseSelector").find("input[name=recommend
Uid
]").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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment