Commit 92889749 authored by agping's avatar agping

优化

parent 0f3374c4
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
font-weight: 700; font-weight: 700;
margin-top: 11px; margin-top: 11px;
} }
.maintable-tr-bar{
background: #ccc;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container" id="screen_shot_area"> <div class="container" id="screen_shot_area">
...@@ -23,10 +27,9 @@ ...@@ -23,10 +27,9 @@
</li> </li>
</div> </div>
<div class="panel-body manager-daily-detail"> <div class="panel-body manager-daily-detail">
<!--1--> <!--办公室-->
<!--<h4>当日中介费入账</h4>--> <div class="table-responsive" style="font-size: 12px;">
<div class="table-responsive"> <table class="table table-striped table-bordered table-bordered1 table-hover table-condensed">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead> <thead>
<tr class="maintable-tr-bar"> <tr class="maintable-tr-bar">
<th class="text-center">计入月份</th> <th class="text-center">计入月份</th>
...@@ -45,18 +48,32 @@ ...@@ -45,18 +48,32 @@
<tbody class="text-center" id="maintable_list_a"> <tbody class="text-center" id="maintable_list_a">
</tbody> </tbody>
</table> <thead>
<table class="table table-striped table-bordered table-hover table-condensed"> <tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">办公室成本分摊总计</th>
<th class="text-center office_total">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
</thead>
<!--上海总部-->
<thead> <thead>
<tr class="maintable-tr-bar"> <tr class="maintable-tr-bar">
<th class="text-center">计入月份</th> <th class="text-center">计入月份</th>
<th class="text-center">成本明细ID</th> <th class="text-center">成本明细ID</th>
<th class="text-center">费用报销ID</th> <th class="text-center"></th>
<th class="text-center">创建时间</th> <th class="text-center">创建时间</th>
<th class="text-center">费用类型</th> <th class="text-center">费用类型</th>
<th class="text-center">费用项目</th> <th class="text-center">费用项目</th>
<th class="text-center">费用总金额</th> <th class="text-center">费用总金额</th>
<th class="text-center">门店考勤/办公室考勤</th> <th class="text-center">门店考勤/公司考勤</th>
<th class="text-center">费用承担金额</th> <th class="text-center">费用承担金额</th>
<th class="text-center">详细用途</th> <th class="text-center">详细用途</th>
<th class="text-center">操作</th> <th class="text-center">操作</th>
...@@ -65,6 +82,174 @@ ...@@ -65,6 +82,174 @@
<tbody class="text-center" id="maintable_list_b"> <tbody class="text-center" id="maintable_list_b">
</tbody> </tbody>
<thead>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">上海总部分摊总计</th>
<th class="text-center shanghai_total">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
</thead>
<!--分部-->
<thead>
<tr class="maintable-tr-bar">
<th class="text-center">计入月份</th>
<th class="text-center">成本明细ID</th>
<th class="text-center"></th>
<th class="text-center">创建时间</th>
<th class="text-center">费用类型</th>
<th class="text-center">费用项目</th>
<th class="text-center">费用总金额</th>
<th class="text-center">门店考勤/城市考勤</th>
<th class="text-center">费用承担金额</th>
<th class="text-center">详细用途</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody class="text-center" id="maintable_list_c">
</tbody>
<thead>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">分公司成本分摊总计</th>
<th class="text-center fenbu_total">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
</thead>
<!--发展基金-->
<thead>
<tr class="maintable-tr-bar">
<th class="text-center">计入月份</th>
<th class="text-center">成本明细ID</th>
<th class="text-center"></th>
<th class="text-center">创建时间</th>
<th class="text-center">费用类型</th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">门店考勤</th>
<th class="text-center">费用承担金额</th>
<th class="text-center">详细用途</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody class="text-center" id="maintable_list_d">
</tbody>
<!--单独门店-->
<thead>
<tr class="maintable-tr-bar">
<th class="text-center">计入月份</th>
<th class="text-center">成本明细ID</th>
<th class="text-center">费用报销ID</th>
<th class="text-center">创建时间</th>
<th class="text-center">费用类型</th>
<th class="text-center">费用项目</th>
<th class="text-center">费用总金额</th>
<th class="text-center"></th>
<th class="text-center">费用承担金额</th>
<th class="text-center">详细用途</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody class="text-center" id="maintable_list_e">
</tbody>
<tfoot>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">门店单独成本总计</th>
<th class="text-center total_store">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">门店本月合计总成本</th>
<th class="text-center total_store_chengben">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">门店本月合计总实收</th>
<th class="text-center total_store_shishou">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">守护者实收</th>
<th class="text-center last_official_receipts">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">盈利不足2万扣除</th>
<th class="text-center deduct">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
<tr class="">
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center"></th>
<th class="text-center">本月门店盈利金额</th>
<th class="text-center yingli">6666</th>
<th class="text-center"></th>
<th class="text-center"></th>
</tr>
</tfoot>
</table> </table>
</div> </div>
</div> </div>
...@@ -73,7 +258,21 @@ ...@@ -73,7 +258,21 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 费用详情审核 编辑 -->
<div class="modal fade" id="modal-addPic" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-du" style="width: 900px;">
<div class="modal-header" style="opacity: 0;">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
</div>
<div class="modal-content">
<iframe src="" frameborder="0" class="publicCostDetails" style="width: 900px;height: 680px;"></iframe>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
......
...@@ -262,7 +262,7 @@ th { ...@@ -262,7 +262,7 @@ th {
/*打印加深颜色*/ /*打印加深颜色*/
.table-bordered1 th, .table-bordered1 th,
.table-bordered1 td { .table-bordered1 td {
border: 1px solid #666 !important; border: 1px solid #999 !important;
} }
} }
@font-face { @font-face {
...@@ -2312,7 +2312,7 @@ th { ...@@ -2312,7 +2312,7 @@ th {
} }
/*打印加深颜色*/ /*打印加深颜色*/
.table-bordered1 { .table-bordered1 {
border: 1px solid #666; border: 1px solid #999;
} }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th, .table-bordered > tbody > tr > th,
...@@ -2329,7 +2329,7 @@ th { ...@@ -2329,7 +2329,7 @@ th {
.table-bordered1 > thead > tr > td, .table-bordered1 > thead > tr > td,
.table-bordered1 > tbody > tr > td, .table-bordered1 > tbody > tr > td,
.table-bordered1 > tfoot > tr > td { .table-bordered1 > tfoot > tr > td {
border: 1px solid #666; border: 1px solid #999;
} }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > th,
.table-bordered > thead > tr > td { .table-bordered > thead > tr > td {
......
...@@ -32,7 +32,11 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -32,7 +32,11 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
} }
bargain.getList(1); bargain.getList(1);
}); });
//点击详情
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
var id = e.target.dataset.id;
$(".publicCostDetails").attr('src','/index/publicCostDetails?cost_id='+ id + '&is_self=1')
});
//打印功能 //打印功能
_doc.on('click', '.is-print', function(e) { _doc.on('click', '.is-print', function(e) {
e.preventDefault(); e.preventDefault();
...@@ -45,10 +49,8 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -45,10 +49,8 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
getList: function(pageNo){ getList: function(pageNo){
console.count('bar'); console.count('bar');
var params = { var params = {
'AuthToken': user_info_obj.AuthToken, 'setting_date': "2019-06-01",
'store_id': bargain.store_id, 'store_id':49 ,
'is_store': bargain.isFinancial,
'daily_data': bargain.financialTime
}; };
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
...@@ -63,9 +65,37 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -63,9 +65,37 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
//中介费 //办公室
var doTtmpl = doT.template(document.getElementById('a_financial_daily_list_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('a_financial_daily_list_tpl').innerHTML);
$("#maintable_list_a").html(doTtmpl(data.data.list.agency_fee)); $("#maintable_list_a").html(doTtmpl(data.data.store_list.info));
//上海总部
var doTtmpl = doT.template(document.getElementById('b_financial_daily_list_tpl').innerHTML);
$("#maintable_list_b").html(doTtmpl(data.data.company_list.info));
//分部
var doTtmpl = doT.template(document.getElementById('c_financial_daily_list_tpl').innerHTML);
$("#maintable_list_c").html(doTtmpl(data.data.district_list.info));
//发展基金
var doTtmpl = doT.template(document.getElementById('d_financial_daily_list_tpl').innerHTML);
$("#maintable_list_d").html(doTtmpl(data.data.development_fund_list.info));
//单独门店
var doTtmpl = doT.template(document.getElementById('e_financial_daily_list_tpl').innerHTML);
$("#maintable_list_e").html(doTtmpl(data.data.store_alone_list.info));
//总计
$(".office_total").html(data.data.store_list.total);
$(".shanghai_total").html(data.data.company_list.total);
$(".fenbu_total").html(data.data.district_list.total);
//单独门店
$(".total_store").html(data.data.store_alone_list.total);
$(".total_store_chengben").html(data.data.total_cost);
$(".total_store_shishou").html(data.data.official_receipts);
$(".last_official_receipts").html(data.data.last_official_receipts);
$(".deduct").html(data.data.deduct);
$(".yingli").html(data.data.profit);
/*分页代码*/ /*分页代码*/
add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList); add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList);
......
...@@ -303,6 +303,23 @@ function labelKeyWords(str) {//关键词标色 ...@@ -303,6 +303,23 @@ function labelKeyWords(str) {//关键词标色
var reg = new RegExp(key_,"g") var reg = new RegExp(key_,"g")
return (str).replace(reg, '<span style="color:red">'+key_+'</span>'); return (str).replace(reg, '<span style="color:red">'+key_+'</span>');
} }
function switchFeeType(str){
//费用类型 1 办公室成本 2 上海总部成本 3 分部成本 4 同联发展基金 5 门店单独成本。
switch (String(str)){
case '1':
return '办公室成本';
case '2':
return '上海总部成本';
case '3':
return '分部成本';
case '4':
return '同联发展基金';
case '5':
return '门店单独成本';
default:
return '暂无数据';
}
};
function switchRzType(str){ function switchRzType(str){
//入账类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他 //入账类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他
switch (String(str)){ switch (String(str)){
......
<!--中介费--> <!--办公室-->
<script id="a_financial_daily_list_tpl" type="text/template"> <script id="a_financial_daily_list_tpl" type="text/template">
[% if(it.length) { %] [% if(it.length) { %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr> <tr>
<td>[% if(it[item]["types"] == 1) { %]
商铺
[% }else{ %]
办公楼
[% } %]
</td>
<td>[%= it[item]['id'] %]</td> <td>[%= it[item]['id'] %]</td>
<!--<td>[%= it[item]['bargain_id'] %]</td>--> <td>[%= it[item]['apply_for_id'] %]</td>
<td><a class="details-btn-liu" href="#modal_detail_liu" data-toggle="modal" data-id='[%= it[item]["bargain_id"] %]' data-typeC="[%= it[item]['types'] %]">[%= it[item]['bargain_id'] %]</a></td> <td>[%= it[item]['cost_id'] %]</td>
<td>[%= it[item]['house_address'] %]</td> <td>[%= it[item]['apply_for_time'] %]</td>
<td>[%= it[item]['price']%]</td> <td>[%= switchFeeType(it[item]['type']) %]</td>
<td>[% if(it[item]["type_ext"] == 0) { %] <td>[%= switchFeeItem(it[item]['fee_item']) %]</td>
[%= (it[item]['price']*0.7).toFixed(2) %] <td>[%= it[item]['total_fee'] %]</td>
[% }else{ %] <td>[%= it[item]['store_attendance_num'] %]/[%=it[item]['office_attendance_num'] %]</td>
0 <td>[%= it[item]['assume_fee'] %]</td>
[% } %] <td>[%= it[item]['purpose'] %]</td>
</td>
<td>[%= it[item]['money']%]</td>
<td>[%= it[item]['real_money']%]</td>
<td>[%= it[item]['transaction_fee']%]</td>
<td>[%= it[item]['received_money']%]</td>
<td>[% if(it[item]["type_ext"] == 0) { %]
[%= (it[item]['money']*1 + it[item]['received_money']*1 - (it[item]['price']*0.7)).toFixed(2) %]
[% }else{ %]
[%= (it[item]['money']*1 - 0).toFixed(2) %]
[% } %]
</td>
<td>[%= sw(it[item]['pay_type'])%]</td>
<td>[% if(it[item]["transfer_name"] != null) { %] [%= it[item]["transfer_name"] %] [% } %]</td>
<td>[%= it[item]['current_agent_name'] %]</td>
[% if(it[item]["types"] == 1) { %]
<td>[%= swopen(it[item]['is_open']) %]</td>
[% } else{ %]
<td></td>
[% } %]
<td>[%= swred(it[item]['is_dividend'])%]</td>
<td>[%= it[item]['income_time'] %]</td>
<td> <td>
<a class="btn1 btn-info record-pic" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal" data-typeC="[%= it[item]['types'] %]">查看详情</a> <a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["cost_id"] %]' data-status='[%= it[item]["status"] %]'>详情</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="18" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
<!--上海总部-->
<script id="b_financial_daily_list_tpl" type="text/template">
[% if(it.length) { %]
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['apply_for_id'] %]</td>
<td></td>
<td>[%= it[item]['apply_for_time'] %]</td>
<td>[%= switchFeeType(it[item]['type']) %]</td>
<td>[%= switchFeeItem(it[item]['fee_item']) %]</td>
<td>[%= it[item]['total_fee'] %]</td>
<td>[%= it[item]['store_attendance_num'] %]/[%=it[item]['total_attendance_num'] %]</td>
<td>[%= it[item]['assume_fee'] %]</td>
<td>[%= it[item]['purpose'] %]</td>
<td>
<a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["cost_id"] %]' data-status='[%= it[item]["status"] %]'>详情</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="18" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
<!--分部-->
<script id="c_financial_daily_list_tpl" type="text/template">
[% if(it && it.length) { %]
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['apply_for_id'] %]</td>
<td></td>
<td>[%= it[item]['apply_for_time'] %]</td>
<td>[%= switchFeeType(it[item]['type']) %]</td>
<td>[%= switchFeeItem(it[item]['fee_item']) %]</td>
<td>[%= it[item]['total_fee'] %]</td>
<td>[%= it[item]['store_attendance_num'] %]/[%=it[item]['district_attendance_num'] %]</td>
<td>[%= it[item]['assume_fee'] %]</td>
<td>[%= it[item]['purpose'] %]</td>
<td>
<a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["cost_id"] %]' data-status='[%= it[item]["status"] %]'>详情</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="18" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
<!--基金-->
<script id="d_financial_daily_list_tpl" type="text/template">
[% if(it.length) { %]
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['apply_for_id'] %]</td>
<td></td>
<td>[%= it[item]['apply_for_time'] %]</td>
<td>[%= switchFeeType(it[item]['type']) %]</td>
<td></td>
<td></td>
<td>[%= it[item]['store_attendance_num'] %]</td>
<td>[%= it[item]['assume_fee'] %]</td>
<td>[%= it[item]['purpose'] %]</td>
<td>
<a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["cost_id"] %]' data-status='[%= it[item]["status"] %]'>详情</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="18" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
<!--单独门店-->
<script id="e_financial_daily_list_tpl" type="text/template">
[% if(it.length) { %]
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['apply_for_id'] %]</td>
<td>[%= it[item]['cost_id'] %]</td>
<td>[%= it[item]['apply_for_time'] %]</td>
<td>[%= switchFeeType(it[item]['type']) %]</td>
<td>[%= switchFeeItem(it[item]['fee_item']) %]</td>
<td>[%= it[item]['total_fee'] %]</td>
<td></td>
<td>[%= it[item]['assume_fee'] %]</td>
<td>[%= it[item]['purpose'] %]</td>
<td>
<a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["cost_id"] %]' data-status='[%= it[item]["status"] %]'>详情</a>
</td> </td>
</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