123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530 |
- <!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: #2977ff !important;
- background-color: #2977ff !important;
- color: #fff;
- }
- .btn-date_show{
- display: inline-block;width: 170px;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
- }
- .changePwd{}
- .changePwd span{display: inline-block;width:110px;text-align: right;padding-right:5px;}
- .urge-layer-box {
- margin-top: 30px;
- margin-left: 30px;
- }
- .urge-layer-box textarea {
- margin-left: 15px;
- vertical-align: top;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsSale/serviceCharge'); ?>" method="get">
- <div class="screen">
- <div class="diy_select year">
- <input type="hidden" id="schoolYearId" name="schoolYearId" class="diy_select_input" value="0">
- <div class="diy_select_txt">请选择学年</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;">
- <li val="">请选择学年</li>
- <?php if ($schoolYear): ?>
- <?php foreach ($schoolYear as $val): ?>
- <li val="<?php echo $val['schoolYearId'] ?>"><?php echo $val['schoolYearName'] ?></li>
- <?php endforeach; ?>
- <?php else: ?>
- <li val="">暂无学年</li>
- <?php endif; ?>
- </ul>
- </div>
- <div class="diy_select goods">
- <input type="hidden" id="semesterId" name="semesterId" class="diy_select_input" value="0">
- <div class="diy_select_txt">请选择学期</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;width:570px;">
- <li val="0">请选择学期</li>
- <li val="1">上学期</li>
- <li val="2">下学期</li>
- <li val="3">跨学期</li>
- </ul>
- </div>
- <div class="date">
- <input type="text" name="begin" class="some_class" value="" id="some_class_1"/> --
- <input type="text" name="end" class="some_class" value="" id="some_class_2"/>
- </div>
- <button type="submit" class="label-primary-s bth-s">查询</button>
- <button type="button" class="label-primary-s modify-pwd">修改查询密码</button>
- </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>
- </tr>
- </thead>
- <tbody>
- <?php if ($list): ?>
- <?php foreach ($list as $item): ?>
- <tr>
- <td><?php echo $item['batchName'];?></td>
- <td><?php echo $item['schoolYearName'];?></td>
- <td><?php echo $item['semesterName'];?></td>
- <td><?php echo $item['month'];?></td>
- <td><?php echo $item['backMoneyInterceptTime'];?></td>
- <td><?php echo $item['createTime'];?></td>
- <td>
- <a href="<?php echo $this->createUrl('imsSale/viewServiceCharge',array('batchId'=>$item['batchId']))?>" batchId="<?php echo $item['batchId']; ?>" class="viewServiceCharge">查看</a>
- <?php if($item['isVerify']==0):?>
- <a href="#" batchId="<?php echo $item['batchId']; ?>" class="confirmServiceCharge">确认</a>
- <a href="#" batchId="<?php echo $item['batchId']; ?>" class="commitServiceCharge">提异议</a>
- <?php endif;?>
- </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['semester']) && $_GET['semester']) {
- $params['semester'] = $_GET['semester'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsSale/serviceCharge', $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['begin'])):?>
- $("#some_class_1").attr("value","<?php echo $_GET['begin']?>");
- $("#some_class_2").attr("value", "<?php echo $_GET['end']?>");
- <?php endif;?>
- <?php if(isset($_GET['semesterId']) && $_GET['semesterId']):?>
- var goodsId = "<?php echo $_GET['semesterId'];?>";
- $('#semesterId').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;
- });
- flag=true;
- $('.confirmServiceCharge').click(function () {
- var batchId=$(this).attr('batchId');
- layer.confirm('点击确认按钮表示您同意本次服务费各项金额,公司将按确认的服务费进行后续操作。\n' +
- '\n' +
- '如有疑问,请勿确认,点击提异议,说明问题!',{icon:3,title:"确认本次服务费"},function () {
- var al=layer.msg('正在提交,请稍候......',{time:0});
- $.ajax({
- url:'<?php echo $this->createUrl('imsSale/confirmServiceCharge')?>',
- type:'POST',
- dataType:'json',
- data:{'batchId':batchId},
- success:function(res){
- layer.close(al);
- submit=false;
- if(res.status==1){
- //验证通过
- window.location.reload();
- }else{
- if(res.data!=undefined){
- layer.msg(res.data)
- }else{
- layer.msg('提交失败');
- }
- }
- }
- })
- },function(){
- })
- return false;
- });
- $(".commitServiceCharge").click(function () {
- var batchId=$(this).attr('batchId');
- layer.open({
- type: 1,
- title: '提出异议',
- btn: ['确定', '取消'],
- area: ['600px', '400px'], //宽高
- btnAlign: 'c',
- content: '<p style="color: red;display: none;" class="alert-msg"></p><div class="urge-layer-box"><span style="color:red">*提出问题:</span><textarea rows="10" cols="60" id="urgeText" /></div>',
- yes: function (index, layero) {
- //提交
- var text = $('#urgeText').val();
- var data = {
- 'problem': text,
- 'batchId': batchId,
- 'verify':3
- };
- if ($.trim(text)) {
- if (flag) {
- flag = false;
- $.ajax({
- type: 'post',
- url: "<?php echo Yii::app()->createUrl('imsSale/confirmServiceCharge');?>",
- data: data,
- dataType: 'json',
- success: function (data) {
- if (data.status) {
- layer.closeAll();
- location.reload();
- } else {
- flag = true;
- layer.msg(data.data);
- }
- },
- error: function () {
- flag = true;
- layer.msg('异常错误');
- }
- });
- }
- } else {
- flag = true;
- layer.msg('请填写内容');
- }
- },
- btn2: function (index, layero) {
- //取消按钮
- console.log(111)
- //return false 开启该代码可禁止点击该按钮关闭
- }
- });
- });
- });
- $('body').on('focus', '#applicationNumber', function () {
- $('.alert-msg').css("display",'none');
- });
- //查看
- $('.viewServiceCharge').click(function(){
- submit=false;
- var batchId=$(this).attr('batchId');
- var http=$(this).attr('href');
- var index = layer.open({ //打开layer弹出框
- type: 1, //类型
- skin: "layui-layer-rim", //皮肤类型,在skin文件夹中
- area: ["300px", "170px"], //范围大小
- title: "需要输入密码才能打开此应用", //定义标题
- content: '<div style="margin:10px auto;text-align:center"><input type="password" value="" id="viewPassword"><p><span class="tips red" ></span></p></div>',
- btn: ['确定', '关闭'], //按钮
- yes: function (index, layero) { //确定按钮的处理函数
- if(submit){
- return false;
- }
- passwrod = $("#viewPassword").val(); //根据id取数据
- if(passwrod==''){
- $('.tips').html('请输入密码');
- return false;
- }
- check=/[\u4E00-\u9FA5]+/.test(passwrod);
- if(check){
- $('.tips').html('密码格式不正确');
- return false;
- }
- if(passwrod.length<6 || passwrod.length>25){
- $('.tips').html('请输入6~25位密码');
- return false;
- }
- var al=layer.msg('正在校验,请稍候......',{time:0});
- submit=true;
- $.ajax({
- url:'<?php echo $this->createUrl('imsSale/validationPwd')?>',
- type:'POST',
- dataType:'json',
- data:{'password':passwrod},
- success:function(res){
- layer.close(al);
- submit=false;
- if(res.status==1){
- //验证通过
- window.location.href=http;
- return true;
- }else{
- if(res.msg!=undefined){
- $('.tips').html(res.msg);
- }else{
- $('.tips').html('校验失败');
- }
-
- }
- }
- })
- },
- btn2: function (index, layero) { //取消按钮后的处理函数
- layer.close(index);
- },
- });
- return false;
- });
- $('.modify-pwd').click(function(){
- var submit=false;
- var html='';
- html+='<div class="changePwd">';
- html+='<p>密码要求为6-25的非中文字符类型</p>';
- html+='<p><span>原密码:</span><input type="password" name="password" value="" id="oldPassword"></p>';
- html+='<p><span>新密码:</span><input type="password" name="new-password" value="" id="newPassword"></p>';
- html+='<p><span>再次输入:</span><input type="password" name="check-password" value="" id="checkPassword"></p>';
- html+='<p><span></span><i class="tips red" ></i></p>';
- html+='</div>';
- var index = layer.open({ //打开layer弹出框
- type: 1, //类型
- skin: "layui-layer-rim", //皮肤类型,在skin文件夹中
- area: ["400px", "270px"], //范围大小
- title: "修改密码", //定义标题
- content: html,
- btn: ['确定修改', '关闭'], //按钮
- yes: function (index, layero) { //确定按钮的处理函数
- if(submit){
- return false;
- }
- oldPassword = $("#oldPassword").val(); //根据id取数据
- newPassword = $("#newPassword").val(); //根据id取数据
- checkPassword = $("#checkPassword").val(); //根据id取数据
- if(oldPassword==''){
- $('.tips').html('请输入密码');
- return false;
- }
- check=/[\u4E00-\u9FA5]+/.test(oldPassword);
- if(check){
- $('.tips').html('密码格式不正确');
- return false;
- }
- check=/[\u4E00-\u9FA5]+/.test(newPassword);
- if(check){
- $('.tips').html('密码格式不正确');
- return false;
- }
- check=/[\u4E00-\u9FA5]+/.test(checkPassword);
- if(check){
- $('.tips').html('密码格式不正确');
- return false;
- }
- if(newPassword.length<6 || newPassword.length>25){
- $('.tips').html('请输入6~25位密码');
- return false;
- }
- submit=true;
- var al=layer.msg('正在提交,请稍候......',{time:0});
- $.ajax({
- url:'<?php echo $this->createUrl('imsSale/updateServicePwd')?>',
- type:'POST',
- dataType:'json',
- data:{'password':oldPassword,'newPassword':newPassword,'checkPassword':checkPassword},
- success:function(res){
- layer.close(al);
- submit=false;
- if(res.status==1){
- layer.close(index);
- layer.msg('修改成功');
- }else{
- if(res.msg!=undefined){
- $('.tips').html(res.msg);
- }else{
- $('.tips').html('修改失败');
- }
-
- }
- }
- })
- },
- btn2: function (index, layero) { //取消按钮后的处理函数
- layer.close(index);
- },
- });
- });
- </script>
- </body>
- </html>
|