Commit 113b6de1 authored by agping's avatar agping

后台

parent a1a5c6d4
...@@ -4,64 +4,6 @@ ...@@ -4,64 +4,6 @@
.clear{ .clear{
clear: both; clear: both;
} }
.button-center-bargain{
width: 430px;
}
.user-ul{
height: auto;
float: left;
position: relative;
left: -40px;
}
.user-ul li{
list-style: none;
line-height: 30px;
}
.left-phone{
float: left;
margin-top: 10px;
margin-left: 10px;
}
#bargaininfo_shop_num{
width: 100px;
display: inline-block;
}
/*客户详情 样式*/
.modal-body1 {
height: 716px;
overflow-y: auto;
padding-bottom: 60px;
}
.modal-body-details {
width: 850px;
}
/*客户动态*/
.followup-modal-list-area {
height: 258px;
overflow-y: scroll;
}
.form-control[disabled]{
background-color: #fff;
}
.user_pic {
width: 30px;
height: 30px;
border-radius: 15px;
}
.btn-guanbi{
float: right;
}
/*客户详情 样式*/
.total-commission{
font-size: 16px;
font-weight: 600;
float: left;
margin-left: 12px;
}
#maintable_form_search>span.total-commission{
margin-top: 16px;
}
/*加载图标*/ /*加载图标*/
#main_loading_pic { #main_loading_pic {
position: fixed; position: fixed;
......
...@@ -4,64 +4,6 @@ ...@@ -4,64 +4,6 @@
.clear{ .clear{
clear: both; clear: both;
} }
.button-center-bargain{
width: 430px;
}
.user-ul{
height: auto;
float: left;
position: relative;
left: -40px;
}
.user-ul li{
list-style: none;
line-height: 30px;
}
.left-phone{
float: left;
margin-top: 10px;
margin-left: 10px;
}
#bargaininfo_shop_num{
width: 100px;
display: inline-block;
}
/*客户详情 样式*/
.modal-body1 {
height: 716px;
overflow-y: auto;
padding-bottom: 60px;
}
.modal-body-details {
width: 850px;
}
/*客户动态*/
.followup-modal-list-area {
height: 258px;
overflow-y: scroll;
}
.form-control[disabled]{
background-color: #fff;
}
.user_pic {
width: 30px;
height: 30px;
border-radius: 15px;
}
.btn-guanbi{
float: right;
}
/*客户详情 样式*/
.total-commission{
font-size: 16px;
font-weight: 600;
float: left;
margin-left: 12px;
}
#maintable_form_search>span.total-commission{
margin-top: 16px;
}
/*加载图标*/ /*加载图标*/
#main_loading_pic { #main_loading_pic {
position: fixed; position: fixed;
......
{layout name="global/frame_tpl" /} {layout name="global/frame_tpl" /}
<input type="hidden" class="page-load" id="pkList" /> <input type="hidden" class="page-load" id="pkWeekList" />
<style> <style>
.pk-container-detail{ .pk-container-detail{
background-color: #fff; background-color: #fff;
...@@ -199,11 +199,6 @@ ...@@ -199,11 +199,6 @@
<input class="btn4-pk ld-Marheight input-pk-style" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_end" name="end_date1" type="date"> <input class="btn4-pk ld-Marheight input-pk-style" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_end" name="end_date1" type="date">
<span class="produce-pk fore-span ld-Marheight">生成</span> <span class="produce-pk fore-span ld-Marheight">生成</span>
</div> </div>
<!--<span class="margain-right-10 pk-yeji-time">(<span id='start_date'></span>-<span id='end_date'></span>)</span>
<span class="rule-pk"><a class="" href="#modal-pkRule" data-toggle="modal">分档规则</a></span>-->
<!--<select class="results-pk">
</select>-->
<img src="/resource/image/gold@1x.png" class="img-gold"/> <img src="/resource/image/gold@1x.png" class="img-gold"/>
</div> </div>
<div class="pk-container-detail-con"> <div class="pk-container-detail-con">
...@@ -274,49 +269,3 @@ ...@@ -274,49 +269,3 @@
<div id="main_loading_pic"> <div id="main_loading_pic">
<img src="/resource/image/jz2.gif"> <img src="/resource/image/jz2.gif">
</div> </div>
<!--分档规则-->
<div class="modal fade" id="modal-pkRule" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title">
分档规则
</h4>
</div>
<div class="modal-body">
<div class="rule-pk-con">
职称档位根据上个月的业绩来分档,职称取的现在职称列表里的的职称<br />
团队档位根据前3个月的业绩来分档<br />
团队档位赛和职称档位赛 都是 上海与上海比,杭州与杭州比,<br />
<p class="text-danger">上海分档规则:</p>
20人为一档位 余下的人 均匀分配在后边的等级里<br />
每个档位不超过25人,即每个档位的人数小于等于25<br />
某个职称的总人数/20=商~~~余数,商*5 < 余数时,重开一档。<br />
例如某职称有总人数29人, 29/20=1~~~9,1*5<9,则重开一档,共2挡,2档的人均匀分配,即第一档人数14,第二档人数15<br />
<p class="text-danger">杭州分档规则:</p>
8人为一档位 余下的人 均匀分配在后边的档位里 最多不超过13人<br />
某个职称的总人数/8=商~~~余数,商*5 < 余数时,重开一档。<br />
例如某职称有总人数15人, 15/8=1~~~7,1*5<7,则重开一档,共2挡,2档的人均匀分配,即第一档人数8,第二档人数7
</div>
</div>
<div class="modal-footer">
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
...@@ -8,9 +8,6 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho ...@@ -8,9 +8,6 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
detailTabIndex: 0, detailTabIndex: 0,
bargain_id: '', bargain_id: '',
order_id: 0,//订单id order_id: 0,//订单id
maidTotalCommission: 0,//应收总佣金
isBargaininfoSaveIngFlag: false,//成交信息保存是否正在保存
shouyong_date_active_sapn: null,
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -19,15 +16,13 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho ...@@ -19,15 +16,13 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
}, },
event: function() { event: function() {
var _doc = $(document); var _doc = $(document);
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件 //主页面一级审核,二级审核,三级审核tab
_doc.on('click', '.maintable-top-sub-tr>a', function(e){ _doc.on('click', '.maintable-top-sub-tr>a', function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var _this = $(this); var _this = $(this);
_this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default'); _this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
bargain.mainTabIndex = _this.index(); bargain.mainTabIndex = _this.index();
console.log(bargain.mainTabIndex);
bargain.getList(1); bargain.getList(1);
}); });
...@@ -37,11 +32,6 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho ...@@ -37,11 +32,6 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
e.stopPropagation(); e.stopPropagation();
bargain.getList(1); //一级审核搜索 bargain.getList(1); //一级审核搜索
}); });
//点击li 列表消失
$(document).delegate(".addphone", "click", function() { //list消失新增客户 点击li事件 获取id ul消失
bargain.addphone(this);
});
//搜索的重置 //搜索的重置
$("#maintable_reset").click(function() { $("#maintable_reset").click(function() {
document.getElementById("maintable_form_search").reset(); document.getElementById("maintable_form_search").reset();
...@@ -71,8 +61,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho ...@@ -71,8 +61,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
}); });
}); });
}, },
//获取一级审核,二级审核,三级审核不同的ajax请求url
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
switchUrl: function(){ switchUrl: function(){
switch (Number(this.mainTabIndex)){ switch (Number(this.mainTabIndex)){
case 0: case 0:
......
...@@ -9,8 +9,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -9,8 +9,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
bargain_id: '', bargain_id: '',
order_id: 0,//订单id order_id: 0,//订单id
maidTotalCommission: 0,//应收总佣金 maidTotalCommission: 0,//应收总佣金
isBargaininfoSaveIngFlag: false,//成交信息保存是否正在保存
shouyong_date_active_sapn: null,
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -19,12 +17,11 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -19,12 +17,11 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}, },
event: function() { event: function() {
var _doc = $(document); var _doc = $(document);
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件 //主页面一级审核,二级审核,三级审核tab的点击事件
_doc.on('click', '.maintable-top-sub-tr>a', function(e){ _doc.on('click', '.maintable-top-sub-tr>a', function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var _this = $(this); var _this = $(this);
_this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default'); _this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
bargain.mainTabIndex = _this.index(); bargain.mainTabIndex = _this.index();
console.log(bargain.mainTabIndex); console.log(bargain.mainTabIndex);
...@@ -43,11 +40,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -43,11 +40,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
e.stopPropagation(); e.stopPropagation();
window.print(); window.print();
}); });
//点击li 列表消失
$(document).delegate(".addphone", "click", function() { //list消失新增客户 点击li事件 获取id ul消失
bargain.addphone(this);
});
//搜索的重置 //搜索的重置
$("#maintable_reset").click(function() { $("#maintable_reset").click(function() {
document.getElementById("maintable_form_search").reset(); document.getElementById("maintable_form_search").reset();
...@@ -78,7 +70,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -78,7 +70,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}); });
}, },
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url //获取一级审核,二级审核,三级审核不同的ajax请求url
switchUrl: function(){ switchUrl: function(){
switch (Number(this.mainTabIndex)){ switch (Number(this.mainTabIndex)){
case 0: case 0:
...@@ -95,7 +87,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -95,7 +87,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
return ''; return '';
} }
}, },
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法 //获取一级审核,二级审核,三级审核数据列表共用的方法
getList: function(pageNo){ getList: function(pageNo){
console.count('bar'); console.count('bar');
var params = { var params = {
......
define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template) { define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
pkList = { pkList = {
pageNo: 1, pageNo: 1,
...@@ -103,19 +103,20 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css', ...@@ -103,19 +103,20 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
var position = pkList.mainTabIndex; var position = pkList.mainTabIndex;
var AuthToken = user_info_obj.AuthToken; var AuthToken = user_info_obj.AuthToken;
window.open('/index/exportReport?'+ window.open('/index/exportReport?'+
'position='+ position +'&AuthToken=' + AuthToken); 'position='+ position +'&AuthToken=' + AuthToken + '&pk_type=2');
}, },
//pk列表 团队导出 //pk列表 团队导出
exportTeamList: function() { exportTeamList: function() {
var params = {}; var params = {};
var AuthToken = user_info_obj.AuthToken; var AuthToken = user_info_obj.AuthToken;
window.open('/index/exportReportStore?'+'&AuthToken=' + AuthToken); window.open('/index/exportReportStore?'+'&AuthToken=' + AuthToken + '&pk_type=2');
}, },
getList: function(pageNo) { getList: function(pageNo) {
$(".pk-container-detail-a>span").hide(); $(".pk-container-detail-a>span").hide();
var params = {}; var params = {};
params.position = pkList.mainTabIndex; params.position = pkList.mainTabIndex;
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.pk_type = 2;
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/getRandKingList',//拜访列表 url: '/index/getRandKingList',//拜访列表
...@@ -157,6 +158,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css', ...@@ -157,6 +158,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
$(".pk-container-detail-a>span").hide(); $(".pk-container-detail-a>span").hide();
var params = {}; var params = {};
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.pk_type = 2;
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/getStoreRandKingList',//团队 url: '/index/getStoreRandKingList',//团队
...@@ -172,7 +174,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css', ...@@ -172,7 +174,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
$(".pk-container-detail-a>span").eq(_length).prevAll().show(); $(".pk-container-detail-a>span").eq(_length).prevAll().show();
if (data.code == 200) { if (data.code == 200) {
pkList.mainTabArr = data.data; pkList.mainTabArr = data.data;
var doTtmpl = doT.template(document.getElementById('team_pk_list_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('team_pk_week_list_tpl').innerHTML);
$("#pk_list").html(doTtmpl(data.data[pkList.mainTabIndexTwo])); $("#pk_list").html(doTtmpl(data.data[pkList.mainTabIndexTwo]));
add_page(data.data.total,pageNo,pkList.pageSize,pkList.getList); add_page(data.data.total,pageNo,pkList.pageSize,pkList.getList);
}else { }else {
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
[% } %] [% } %]
[% if(check_auth("index/editExclusive") || it[item]["is_exclusive_type"] == 0 || it[item]["auth_edit_exclusive"] == 1) { %] [% if(it[item]["is_can_edit_only_contract"] == 0) { %]
<a class="btn1 btn-success dujia btn-default-hide-display" href="#modal-dujia" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-exclusive='[%= it[item]["auth_edit_exclusive"] %]'>是否独家</a> <a class="btn1 btn-success dujia btn-default-hide-display" href="#modal-dujia" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-exclusive='[%= it[item]["auth_edit_exclusive"] %]'>是否独家</a>
[% } %] [% } %]
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
[% } %] [% } %]
</script> </script>
<script id="team_pk_list_tpl" type="text/template"> <script id="team_pk_week_list_tpl" type="text/template">
[% var sw=function(s){return ++s}; %] [% var sw=function(s){return ++s}; %]
[% if(it) { %] [% if(it) { %]
<tr> <tr>
......
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