@ -9,7 +9,7 @@
< / label >
< / label >
< / li >
< / li >
< li > < label class = "checkbox-inline" >
< li > < label class = "checkbox-inline" >
< input type = "checkbox" id = "website_ALL" name = "website" value = "ALL" checked > ALL
< input type = "checkbox" id = "website_ALL" name = "website" value = "ALL" > ALL
< / label >
< / label >
< / li >
< / li >
< li > < label class = "checkbox-inline" >
< li > < label class = "checkbox-inline" >
@ -17,7 +17,7 @@
< / label >
< / label >
< / li >
< / li >
< li > < label class = "checkbox-inline" >
< li > < label class = "checkbox-inline" >
< input type = "checkbox" id = "website_GHKHYY" name = "website" value = "GHKHYY" > GH客户运营中心
< input type = "checkbox" id = "website_GHKHYY" name = "website" value = "GHKHYY" checked > GH客户运营中心
< / label >
< / label >
< / li >
< / li >
< li > < label class = "checkbox-inline" >
< li > < label class = "checkbox-inline" >
@ -83,7 +83,12 @@
< / li >
< / li >
< li >
< li >
< label class = "checkbox-inline" >
< label class = "checkbox-inline" >
< input type = "checkbox" id = "DEI_SNList_28" name = "DEI_SNList" value = "28" checked > AH亚洲项目组
< input type = "checkbox" id = "DEI_SNList_28" name = "DEI_SNList" value = "7" checked > 市场推广
< / label >
< / li >
< li >
< label class = "checkbox-inline" >
< input type = "checkbox" id = "DEI_SNList_28" name = "DEI_SNList" value = "28" > AH亚洲项目组
< / label >
< / label >
< / li >
< / li >
@ -152,12 +157,14 @@
< div class = "col-sm-8 col-md-4" >
< div class = "col-sm-8 col-md-4" >
< input name = "potential_customers_ApplydateStart" id = "potential_customers_ApplydateStart" type = "text"
< input name = "potential_customers_ApplydateStart" id = "potential_customers_ApplydateStart" type = "text"
placeholder="开始日期"
placeholder="开始日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date ( 'Y-m-01' , time ()); ?> ">
class="form-control ShowMeTheDatePicker_cn"
value="<?php echo date ( 'Y-m-d' , strtotime ( '-1 week last monday' )); ?> ">
< / div >
< / div >
< div class = "col-sm-8 col-md-4" >
< div class = "col-sm-8 col-md-4" >
< input name = "potential_customers_ApplydateEnd" id = "potential_customers_ApplydateEnd" type = "text"
< input name = "potential_customers_ApplydateEnd" id = "potential_customers_ApplydateEnd" type = "text"
placeholder="截至日期"
placeholder="截至日期"
class="form-control ShowMeTheDatePicker_cn" value="<?php echo date ( 'Y-m-t' , time ()); ?> ">
class="form-control ShowMeTheDatePicker_cn"
value="<?php echo date ( 'Y-m-d' , strtotime ( '-1 week sunday' )); ?> ">
< / div >
< / div >
< div class = "col-sm-4 col-md-2" >
< div class = "col-sm-4 col-md-2" >
< button class = "btn btn-default" type = "button" onclick = "updatePotentialCustomers(0);" > 统计< / button >
< button class = "btn btn-default" type = "button" onclick = "updatePotentialCustomers(0);" > 统计< / button >
@ -209,7 +216,11 @@
< / div >
< / div >
< / div >
< / div >
< h4 class = "pull-right" onclick = "$('#potential_customers_detail_box').toggle();" > 订单列表 显示|隐藏< / h4 >
< label class = "text-muted small" onclick = "$('#potential_customers_detail_box').toggle();" > 隐藏列表< / label >
|
< label class = "text-muted small" onclick = "let table=document.getElementById('potential_customers_detail_box'); let excel=XLSX.utils.table_to_book(table);XLSX.writeFile(excel,'潜力客户.xlsx'); " > 导出excel< / label >
< div class = "row" style = "display: none;" id = "potential_customers_detail_box" >
< div class = "row" style = "display: none;" id = "potential_customers_detail_box" >
< div class = "col-sm-24 col-md-24" >
< div class = "col-sm-24 col-md-24" >
< div class = "table-responsive" >
< div class = "table-responsive" >
@ -259,7 +270,7 @@
$.modaldialog.error("请检查必填项");
$.modaldialog.error("请检查必填项");
return false;
return false;
}
}
showDetail == 0 ? document.getElementById('potential_customers').innerHTML = '' : document.getElementById('potential_customers_detail').innerHTML = '';
$.ajax({
$.ajax({
type: "post",
type: "post",
dataType: "json",
dataType: "json",
@ -268,37 +279,35 @@
"url": '/service-tourdesign/PotentialCusOrder?Website=' + websiteList
"url": '/service-tourdesign/PotentialCusOrder?Website=' + websiteList
+ '& ApplydateCheck=' + potential_customers_ApplydateCheck
+ '& ApplydateCheck=' + potential_customers_ApplydateCheck
+ '& ApplydateStart=' + potential_customers_ApplydateStart
+ '& ApplydateStart=' + potential_customers_ApplydateStart
+ '& ApplydateEnd=' + potential_customers_ApplydateEnd
+ '& ApplydateEnd=' + potential_customers_ApplydateEnd+'%2023:59'
+ '& EntrancedateCheck=' + potential_customers_EntrancedateCheck
+ '& EntrancedateCheck=' + potential_customers_EntrancedateCheck
+ '& EntrancedateStart=' + potential_customers_EntrancedateStart
+ '& EntrancedateStart=' + potential_customers_EntrancedateStart
+ '& EntrancedateEnd=' + potential_customers_EntrancedateEnd
+ '& EntrancedateEnd=' + potential_customers_EntrancedateEnd+'%2023:59'
+ '& DEI_SNList=' + DEI_SNList
+ '& DEI_SNList=' + DEI_SNList
+ '& IsDetail=' + showDetail,
+ '& IsDetail=' + showDetail,
},
},
success: function (data, textStatus) {
success: function (data, textStatus) {
if (showDetail == 0) { //显示统计信息
if (showDetail == 0) { //显示统计信息
document.getElementById('potential_customers').innerHTML = '';
for (let key in data) {
for (let key in data) {
let tr = document.createElement('tr');
let tr = document.createElement('tr');
let td_All OrderNum = document.createElement('td');
let td_OrderNum = document.createElement('td');
let td_SUCNum = document.createElement('td');
let td_SUCOrder Num = document.createElement('td');
let td_SUCRate = document.createElement('td');
let td_SUCRate = document.createElement('td');
let td_ML = document.createElement('td');
let td_ML = document.createElement('td');
let td_PersonNum = document.createElement('td');
let td_PersonNum = document.createElement('td');
td_All OrderNum.innerHTML = data[key].All OrderNum;
td_OrderNum.innerHTML = data[key].OrderNum;
td_SUCNum.innerHTML = data[key].SUCNum;
td_SUCOrder Num.innerHTML = data[key].SUCOrder Num;
td_SUCRate.innerHTML = (data[key].SUCRate * 100).toFixed(1) + '%';
td_SUCRate.innerHTML = (data[key].SUCRate * 100).toFixed(1) + '%';
td_ML.innerHTML = data[key].ML;
td_ML.innerHTML = data[key].ML;
td_PersonNum.innerHTML = data[key].PersonNum;
td_PersonNum.innerHTML = data[key].PersonNum;
tr.appendChild(td_All OrderNum);
tr.appendChild(td_OrderNum);
tr.appendChild(td_SUCNum);
tr.appendChild(td_SUCOrder Num);
tr.appendChild(td_SUCRate);
tr.appendChild(td_SUCRate);
tr.appendChild(td_ML);
tr.appendChild(td_ML);
tr.appendChild(td_PersonNum);
tr.appendChild(td_PersonNum);
document.getElementById('potential_customers').appendChild(tr);
document.getElementById('potential_customers').appendChild(tr);
}
}
} else {
} else {
document.getElementById('potential_customers_detail').innerHTML = '';
for (let key in data) {
for (let key in data) {
let tr = document.createElement('tr');
let tr = document.createElement('tr');
let td_index = document.createElement('td');
let td_index = document.createElement('td');