123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>查看服务费详细</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link href="/css/ims/base.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
- <style>
- .green {
- color: green;
- }
- .red {
- color: red;
- }
- .ims-box {
- margin: 20px;
- }
- .screen > div {
- float: left;
- margin-right: 8px;
- }
- .screen .date > input {
- height: 30px;
- border-radius: 4px;
- border: 1px solid #ccc;
- box-shadow: none;
- text-indent: 10px;
- }
- .screen .purposeOrderNo > input {
- height: 30px;
- border-radius: 4px;
- border: 1px solid #ccc;
- box-shadow: none;
- text-indent: 10px;
- }
- .screen button {
- padding: 4px 12px;
- }
- .table-box {
- margin-top: 30px;
- }
- .btn-formal-order {
- cursor: pointer;
- }
- .application-number-box {
- margin-top: 50px;
- text-align: center;
- }
- .application-number-box span {
- margin-right: 20px;
- }
- .layui-layer-btn .layui-layer-btn0 {
- border-color: #15ae68 !important;
- background-color: #15ae68 !important;
- color: #fff;
- }
- .btn-date_show{
- display: inline-block;width: 170px;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
- }
- .cancel{
- background: #0e8e54;
- color:white;
- padding: 5px;
- border:1px solid #666;
- }
- .class-modal-1 {
- width: auto;
- background: #fff;
- border-radius: 5px;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- border: 1px solid #0e8e54;
- }
- .class-modal-head-1 {
- font-size: 14px;
- text-align: left;
- color:#fff;
- line-height:30px;
- background: #2977ff;
- padding-left:15px;
- }
- .class-modal-body-1{
- padding:15px;
- }
- .class-modal-body-1 h2,.class-modal-body-1 h3{
- font-size:14px;
- font-weight:normal;
- margin-top:10px;
- }
- .class-modal-body-1 h3 span{
- font-size:10px;
- color:#ccc;
- }
- .class-modal-body-1 label{
- display: inline-block;
- font-weight: normal;
- margin-right: 15px;
- height:30px;
- position: relative;
- }
- .class-modal-1 .icon-close-1{
- position: absolute;
- right: 10px;
- top:5px;
- }
- .class-modal-1 .class_area{
- height:115px;
- border:1px solid #ccc;
- padding:5px;
- overflow-y: auto;
- margin-bottom:15px;
- }
- .class-modal-1 .checkAll{
- position:absolute;
- right:5px;
- top:115px;
- }
- .class-modal-1 .subsection{
- }
- .class-modal-1 .btn p{color:#000;}
- .class-modal-1 .btn_area{
- padding: 10px;
- border-top: 1px solid #aab6aa;
- margin-top:10px;
- }
- .class-modal-1 .btn_area p{
- display: inline-block;
- }
- .class-modal-1 .btn_area button{
- margin-left:5px;
- }
- .confirmbox-mask {
- background: rgba(0, 0, 0, .7);
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 99;
- position: fixed;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <p><b>学管服务费核算结果</b></p>
- <div class="table-box">
- <table id="intention-table"
- class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>学校</th>
- <th>学管姓名</th>
- <th>结算服务费</th>
- <th>预留服务费</th>
- <th>应发服务费</th>
- <th>应服务天数</th>
- <th>实际服务天数</th>
- <th>已发服务费</th>
- <th>扣款</th>
- <th>实际下发</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($batches as $batch):?>
- <tr>
- <td><?php echo $batch['schoolName'];?></td>
- <td><?php echo $batch['coachName'];?></td>
- <td><?php echo $batch['shouldSettlementMoney'];?></td>
- <td><?php echo $batch['reservedMoney'];?></td>
- <td><?php echo $batch['shouldBeSentMoney'];?></td>
- <td><?php echo isset($batch['shouldServiceDay'])?$batch['shouldServiceDay']:'';?></td>
- <td><?php echo isset($batch['settlementDay'])?$batch['settlementDay']:'';?></td>
- <td><?php echo $batch['alreadyGrant'];?></td>
- <td><?php echo $batch['deduction'];?></td>
- <td><?php echo $batch['currentRealGrant'];?></td>
- </tr>
- <?php endforeach;?>
- </tbody>
- </table>
- </div>
- <p><a id="tipWindow" href="javascript:void(0)">服务费计算规则说明</a></p>
- <!---- 弹窗提示 ----->
- <div class="confirmbox-mask" id="t-window" style="display: none;">
- <div class="class-modal-1">
- <div class="class-modal-head-1">计算规则说明</div>
- <div class="class-modal-body-1">
- <div>
- <span>服务费均按照订单、回款、服务费政策和日常综合表现核算,各项字段规则如下</span>
- </div>
- <table style="margin-top: 15px;" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <thead>
- <tr>
- <th>字段</th>
- <th>说明</th>
- </tr>
- </thead>
- <tbody >
- <tr><td>结算服务费</td><td>由每一个产品和回款决定结算费用金额</td></tr>
- <tr><td>预留服务费</td><td>预留15%的结算服务费,即预留服务费=结算服务费*15%</td></tr>
- <tr><td>应服务天数</td><<td>本学期月份内应服务天数,每月按照30天计算</td>/tr>
- <tr><td>实际服务天数</td><td>本学期实际在校服务天数</td></tr>
- <tr><td>应发服务费</td><td>除去预留后的服务费,即应发服务费=结算服务费-预留服务费</td></tr>
- <tr><td>已发服务费</td><td>本学期已经发的服务费</td></tr>
- <tr><td>扣款</td><td>本学期累积扣款,具体扣款金额,请查看扣款明细</td></tr>
- <tr><td>实际下发</td><td>本次实际下发的金额,单学校实际下发=(结算服务费-预留服务费)/150*实际服务天数-已发服务费-扣款</td></tr>
- </tbody>
- </table>
- <div class="btn_area" style="text-align: center;">
- <button class="cancel">关闭</button>
- </div>
- </div>
- </div>
- </div>
- <p><b>年级服务费核算详细</b></p>
- <div class="table-box">
- <table id="order-table"
- class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>学校</th>
- <th>年级</th>
- <th>产品</th>
- <th>学科</th>
- <th>回款人数</th>
- <th>结算服务费(单人)</th>
- <th>结算服务费(元)</th>
- </tr>
- </thead>
- <tbody>
- <?php if (isset($order['list'])): ?>
- <?php foreach ($order['list'] as $item): ?>
- <tr>
- <td><?php echo isset($item['schoolName'])?$item['schoolName']:'';?></td>
- <td><?php echo isset($item['grade'])?$item['grade']:'';?></td>
- <td><?php echo $item['goodsTypeName'];?></td>
- <td><?php echo $item['subjectName'];?></td>
- <td><?php echo $item['backNum'];?></td>
- <td><?php echo isset($item['shouldSettlementMoneyOne'])?$item['shouldSettlementMoneyOne']:'';?></td>
- <td><?php echo $item['shouldSettlementMoney'];?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($order): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo ajaxFormatPage($order, 'orderPage', $params);
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- <p><b>本学期扣款记录</b></p>
- <span class="red">本学期所有的扣款记录</span>
- <div class="table-box">
- <table id="recorder-table"
- class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>学年</th>
- <th>学期</th>
- <th>扣款金额(元)</th>
- <th>扣款说明</th>
- </tr>
- </thead>
- <tbody>
- <?php if ($recorder['list']): ?>
- <?php foreach ($recorder['list'] as $item): ?>
- <tr>
- <td><?php echo $item['schoolYearName'];?></td>
- <td><?php echo $item['semesterName'];?></td>
- <td><?php echo $item['deductionMoney'];?></td>
- <td><?php echo $item['description'];?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($recorder): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo ajaxFormatPage($recorder, 'recorderPage', $params);
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/ims/jquery.datetimepicker.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script>
- $(document).ready(function () {
- var batchId='<?php echo $_GET['batchId']?>';
- $('.recorderPage').click(function(){
- var page=$(this).attr('page');
- ajaxGetData(page,1);
- $('.recorderPage').closest('li').removeClass('active');
- $(this).closest('li').addClass('active');
- return false;
- })
- $('.orderPage').click(function(){
- var page=$(this).attr('page');
- ajaxGetData(page,2);
- $('.orderPage').closest('li').removeClass('active');
- $(this).closest('li').addClass('active');
- return false;
- })
- function ajaxGetData(page,type){
- if(type==1){
- obj=$('#recorder-table')
- }else{
- obj=$('#order-table')
- }
- $.ajax({
- url:'<?php echo $this->createUrl('imsSale/ajaxSearchServiceCharge')?>',
- type:'POST',
- dataType:'json',
- data:{page:page,type:type,batchId:batchId},
- success:function(res){
- if(res.status==1){
- if(res.data.list.length>0){
- var html='';
- $.each(res.data.list,function(i,v){
- html+='<tr>';
- if(type==1){
- html+='<td>'+v.schoolYearName+'</td>';
- html+='<td>'+v.semesterName+'</td>';
- html+='<td>'+v.deductionMoney+'</td>';
- html+='<td>'+v.description+'</td>';
- }else{
- html+='<td>'+v.grade+'</td>';
- html+='<td>'+v.goodsTypeName+'</td>';
- html+='<td>'+v.subjectName+'</td>';
- html+='<td>'+v.backNum+'</td>';
- html+='<td>'+v.shouldSettlementMoneyOne+'</td>';
- html+='<td>'+v.shouldSettlementMoney+'</td>';
- }
- html+='</tr>';
- })
- obj.find('tbody').html(html);
- }
- }
- }
- });
- }
- })
- $('#tipWindow').click(function () {
- $('#t-window').show()
- })
- $('.cancel').click(function () {
- $('#t-window').hide();
- })
- </script>
- </body>
- </html>
|