123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <!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;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsSale/payment'); ?>" method="get">
- <div class="screen">
- <select name="grade" id="grade" style="width: 100px;">
- <option value="0">年级</option>
- <option value="1" <?php if(isset($params['grade']) && $params['grade']==1) echo 'selected';?>>高一</option>
- <option value="2" <?php if(isset($params['grade']) && $params['grade']==2) echo 'selected';?>>高二</option>
- <option value="3" <?php if(isset($params['grade']) && $params['grade']==3) echo 'selected';?>>高三</option>
- </select>
- <select name="schoolYearId" id="schoolYearId" style="width: 100px;">
- <option value="0">学年</option>
- <?php if(isset($schoolYear) && $schoolYear):?>
- <?php foreach ($schoolYear as $key => $value): ?>
- <option value="<?php echo $value['schoolYearId']; ?>" <?php if(isset($params['schoolYearId']) && $params['schoolYearId']==$value['schoolYearId']) echo 'selected';?> ><?php echo $value['schoolYearName']; ?></option>
- <?php endforeach; ?>
- <?php endif;?>
- </select>
- <select name="goodsId" id="goodsId" style="width: 100px;">
- <option value="0">商品</option>
- <?php if ($goodList): ?>
- <?php foreach ($goodList as $good): ?>
- <option value="<?php echo $good['goodsId'] ?>" <?php if(isset($params['goodsId']) && $params['goodsId']==$good['goodsId']) echo 'selected';?>><?php echo $good['goodsName'] ?></option>
- <?php endforeach; ?>
- <?php endif; ?>
- </select>
- <select name="semester" id="semester" style="width: 100px;">
- <option value="0">学期</option>
- <option value="1" <?php if(isset($params['semester']) && ($params['semester']+1)==1) echo 'selected';?>>上学期</option>
- <option value="2" <?php if(isset($params['semester']) && ($params['semester']+1)==2) echo 'selected';?>>下学期</option>
- <option value="3" <?php if(isset($params['semester']) && ($params['semester']+1)==3) echo 'selected';?>>跨学期</option>
- </select>
- <span>收费时间:</span>
- <input type="text" readonly name="startTime" class="some_class" value="<?php if(isset($params['startTime'])) echo $params['startTime'];?>" id="some_class_1"/> --
- <input type="text" readonly name="endTime" class="some_class" value="<?php if(isset($params['endTime'])) echo $params['endTime'];?>" id="some_class_2"/>
- <button type="submit" class="label-primary-s bth-s">查询</button>
- <a href="<?php echo $this->createUrl('imsSale/newPayment')?>" class="label-primary-s bth-s">新建</a>
- </div>
- </form>
- <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>
- <th>收费时间</th>
- <th>汇款时间</th>
- <th>备注</th>
- <th>创建人</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if ($list): ?>
- <?php foreach ($list as $item): ?>
- <tr>
- <td><?php echo $item['bcNo'];?></td>
- <td><?php echo $item['schoolYearName'];?></td>
- <td><?php echo $item['semesterName'];?></td>
- <td><?php echo $item['gradeName'];?></td>
- <td><?php echo $item['goodsName'];?></td>
- <td><?php echo sprintf("%.2f",$item['price']);?></td>
- <td><?php echo $item['feeNumUp'];?></td>
- <td><?php echo $item['feeNumDown'];?></td>
- <td><?php echo sprintf("%.2f",$item['priceSumUp']);?></td>
- <td><?php echo sprintf("%.2f",$item['priceSumDown']);?></td>
- <td><?php echo date('Y-m-d',strtotime($item['feeTime']));?></td>
- <td><?php echo date('Y-m-d',strtotime($item['remitDate']));?></td>
- <td><?php echo $item['remark'];?></td>
- <td><?php echo $item['coachName'];?></td>
- <td>
- <a href="<?php echo $this->createUrl('imsSale/editPayment',array('id'=>$item['bcId']))?>">编辑</a>
- </td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($page): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['schoolYearId']) && $_GET['schoolYearId']) {
- $params['schoolYearId'] = $_GET['schoolYearId'];
- }
- if (isset($_GET['goodsId']) && $_GET['goodsId']) {
- $params['goodsId'] = $_GET['goodsId'];
- }
- if (isset($_GET['semester']) && $_GET['semester']) {
- $params['semester'] = $_GET['semester'];
- }
- if (isset($_GET['startTime']) && $_GET['startTime']) {
- $params['startTime'] = $_GET['startTime'];
- }
- if (isset($_GET['startTime']) && $_GET['startTime']) {
- $params['startTime'] = $_GET['startTime'];
- }
- if (isset($_GET['grade']) && $_GET['grade']) {
- $params['grade'] = $_GET['grade'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsSale/payment', $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 () {
- //筛选条件赋值
- <?php if(isset($_GET['beginTime'])):?>
- $("#some_class_1").attr("value","<?php echo $_GET['beginTime']?>");
- $("#some_class_2").attr("value", "<?php echo $_GET['endTime']?>");
- <?php endif;?>
- <?php if(isset($_GET['goodsId']) && $_GET['goodsId']):?>
- var goodsId = "<?php echo $_GET['goodsId'];?>";
- $('#goodsId').val(goodsId);
- var txt = $('.goods li[val='+goodsId+']').html();
- $('.goods .diy_select_txt').html(txt);
- <?php endif;?>
- <?php if(isset($_GET['schoolYearId']) && $_GET['schoolYearId']):?>
- var schoolYearId = "<?php echo $_GET['schoolYearId'];?>";
- $('#schoolYearId').val(schoolYearId);
- var txt = $('.year li[val='+schoolYearId+']').html();
- $('.year .diy_select_txt').html(txt);
- <?php endif;?>
- $('.some_class').datetimepicker({
- format: "Y-m-d", //格式化日期
- timepicker: false //关闭时间选项
- });
- $(".btn-date_show").on("click", function () {
- layer.alert($(this).text(), {
- title: '使用月份',
- area: ['420px', '240px']
- });
- });
- $(".btn-formal-order").on("click", function () {
- var quantity= parseInt($(this).attr('a1'));
- var adjustNum = parseInt($(this).attr('a2'));
- var applyOfficialNum = parseInt($(this).attr('a3'));
- var officialNum2 = parseInt($(this).attr('a4'));
- var orderId = $(this).attr('orderId');
- var flag = true;
- layer.open({
- type: 1,
- title: '转财务订单',
- btn: ['确定', '取消'],
- area: ['420px', '240px'], //宽高
- btnAlign: 'c',
- content: '<div class="application-number-box"><p style="color: red;display: none;" class="alert-msg"></p><span>申请人数</span> <input type="number" id="applicationNumber" ></div>',
- yes: function (index, layero) {
- //提交
- var officialNum =$('#applicationNumber').val();
- if (officialNum>0) {
- if((officialNum>(quantity+adjustNum-applyOfficialNum-officialNum2))){
- $('.alert-msg').html("填写数额超出额度").fadeIn();
- }else{
- if (flag){
- flag = false;
- $.ajax({
- type: 'post',
- url: "<?php echo Yii::app()->createUrl('imsSale/toOfficial') ;?>",
- data: {'orderId':orderId, 'officialNum':officialNum},
- dataType: 'json',
- success: function (data) {
- if (data.status){
- location.reload();
- } else{
- flag = true;
- layer.msg(data.msg);
- }
- },
- error: function () {
- flag = true;
- layer.msg("异常错误");
- }
- });
- }
- }
- }else{
- layer.msg("请填写数量");
- }
- },
- btn2: function (index, layero) {
- //return false 开启该代码可禁止点击该按钮关闭
- }
- });
- return false;
- });
- });
- $('body').on('focus', '#applicationNumber', function () {
- $('.alert-msg').css("display",'none');
- });
- </script>
- </body>
- </html>
|