paymentApplyList.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>回款反馈申请</title>
  7. <meta name="description" content="">
  8. <meta name="keywords" content="">
  9. <link href="/css/ims/base.css" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  11. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  12. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  13. <style>
  14. .green {
  15. color: green;
  16. }
  17. .red {
  18. color: red;
  19. }
  20. .ims-box {
  21. margin: 20px;
  22. }
  23. .screen > div {
  24. float: left;
  25. margin-right: 8px;
  26. }
  27. .screen .date > input {
  28. height: 30px;
  29. border-radius: 4px;
  30. border: 1px solid #ccc;
  31. box-shadow: none;
  32. text-indent: 10px;
  33. }
  34. .screen .purposeOrderNo > input {
  35. height: 30px;
  36. border-radius: 4px;
  37. border: 1px solid #ccc;
  38. box-shadow: none;
  39. text-indent: 10px;
  40. }
  41. .screen button {
  42. padding: 4px 12px;
  43. }
  44. .table-box {
  45. margin-top: 30px;
  46. }
  47. .btn-formal-order {
  48. cursor: pointer;
  49. }
  50. .application-number-box {
  51. margin-top: 50px;
  52. text-align: center;
  53. }
  54. .application-number-box span {
  55. margin-right: 20px;
  56. }
  57. .layui-layer-btn .layui-layer-btn0 {
  58. border-color: #15ae68 !important;
  59. background-color: #15ae68 !important;
  60. color: #fff;
  61. }
  62. .btn-date_show{
  63. display: inline-block;width: 170px;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. <div class="ims-box">
  69. <form action="" method="get">
  70. <div class="screen">
  71. <select name="grade" id="grade" style="width: 100px;">
  72. <option value="0">年级</option>
  73. <option value="1" <?php if(isset($params['grade']) && $params['grade']==1) echo 'selected';?>>高一</option>
  74. <option value="2" <?php if(isset($params['grade']) && $params['grade']==2) echo 'selected';?>>高二</option>
  75. <option value="3" <?php if(isset($params['grade']) && $params['grade']==3) echo 'selected';?>>高三</option>
  76. </select>
  77. <select name="schoolYearId" id="schoolYearId" style="width: 100px;">
  78. <option value="0">学年</option>
  79. <?php if(isset($schoolYear) && $schoolYear):?>
  80. <?php foreach ($schoolYear as $key => $value): ?>
  81. <option value="<?php echo $value['schoolYearId']; ?>" <?php if(isset($params['schoolYearId']) && $params['schoolYearId']==$value['schoolYearId']) echo 'selected';?> ><?php echo $value['schoolYearName']; ?></option>
  82. <?php endforeach; ?>
  83. <?php endif;?>
  84. </select>
  85. <select name="semester" id="semester" style="width: 100px;">
  86. <option value="0">学期</option>
  87. <option value="1" <?php if(isset($params['semester']) && ($params['semester']+1)==1) echo 'selected';?>>上学期</option>
  88. <option value="2" <?php if(isset($params['semester']) && ($params['semester']+1)==2) echo 'selected';?>>下学期</option>
  89. <option value="3" <?php if(isset($params['semester']) && ($params['semester']+1)==3) echo 'selected';?>>跨学期</option>
  90. </select>
  91. <span>申请单号:</span>
  92. <input type="text" name="recordNo" class="recordNo" value="<?php if(isset($params['recordNo'])) echo $params['recordNo'];?>" />
  93. <span>原反馈编号:</span>
  94. <input type="text" name="bcNo" class="bcNo" value="<?php if(isset($params['bcNo'])) echo $params['bcNo'];?>" />
  95. <button type="submit" class="label-primary-s bth-s">查询</button>
  96. </div>
  97. </form>
  98. <div class="table-box">
  99. <table id="intention-table"
  100. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  101. style="font-size:12px">
  102. <thead>
  103. <tr>
  104. <th>申请单号</th>
  105. <th>原反馈编号</th>
  106. <th>修改后学年</th>
  107. <th>修改后学期</th>
  108. <th>修改后年级</th>
  109. <th>修改后商品</th>
  110. <th>修改后收费单价(元)</th>
  111. <th>修改后上学期收费人数</th>
  112. <th>修改后下学期收费人数</th>
  113. <th>修改后上学期收费金额(元)</th>
  114. <th>修改后下学期收费金额(元)</th>
  115. <th>修改后收费时间</th>
  116. <th>修改后汇款时间</th>
  117. <th>状态</th>
  118. <th>操作</th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. <?php if ($list): ?>
  123. <?php foreach ($list as $item): ?>
  124. <tr>
  125. <td><?php echo $item['recordNo'];?></td>
  126. <td><?php echo $item['bcNo'];?></td>
  127. <td><?php echo $item['schoolYearName'];?></td>
  128. <td><?php echo $item['semesterName'];?></td>
  129. <td><?php echo $item['gradeName'];?></td>
  130. <td><?php echo $item['goodsName'];?></td>
  131. <td><?php echo sprintf("%.2f",$item['price']);?></td>
  132. <td><?php echo $item['feeNumUp'];?></td>
  133. <td><?php echo $item['feeNumDown'];?></td>
  134. <td><?php echo sprintf("%.2f",$item['priceSumUp']);?></td>
  135. <td><?php echo sprintf("%.2f",$item['priceSumDown']);?></td>
  136. <td><?php echo date('Y-m-d',strtotime($item['feeTime']));?></td>
  137. <td><?php echo date('Y-m-d',strtotime($item['remitDate']));?></td>
  138. <td><?php echo $item['statusName'];?></td>
  139. <td>
  140. <?php if($item['processInfo']):?>
  141. <?php if($item['processInfo']['showStop']):?>
  142. <a class="cancel" href="<?php echo $this->createUrl('imsSale/cancelPaymentApply',array('id'=>$item['processInfo']['businessKey']))?>">取消</a>
  143. <?php endif;?>
  144. <?php if($item['processInfo']['showReset']):?>
  145. <a href="<?php echo $this->createUrl('imsSale/editPaymentApply',array('id'=>$item['recordId']))?>">编辑</a>
  146. <?php endif;?>
  147. <?php if($item['processInfo']['showDelete']):?>
  148. <a class="delete" href="<?php echo $this->createUrl('imsSale/deletePaymentApply',array('id'=>$item['processInfo']['businessKey']))?>">删除</a>
  149. <?php endif;?>
  150. <?php endif;?>
  151. <a href="<?php echo $this->createUrl('imsSale/viewPaymentApply',array('id'=>$item['recordId']))?>">查看</a>
  152. </td>
  153. </tr>
  154. <?php endforeach; ?>
  155. <?php endif; ?>
  156. </tbody>
  157. </table>
  158. <?php if ($page): ?>
  159. <div class="col-sm-12">
  160. <ul class="pagination">
  161. <?php
  162. $params = array();
  163. if (isset($_GET['schoolYearId']) && $_GET['schoolYearId']) {
  164. $params['schoolYearId'] = $_GET['schoolYearId'];
  165. }
  166. if (isset($_GET['goodsId']) && $_GET['goodsId']) {
  167. $params['goodsId'] = $_GET['goodsId'];
  168. }
  169. if (isset($_GET['semester']) && $_GET['semester']) {
  170. $params['semester'] = $_GET['semester'];
  171. }
  172. if (isset($_GET['startTime']) && $_GET['startTime']) {
  173. $params['startTime'] = $_GET['startTime'];
  174. }
  175. if (isset($_GET['startTime']) && $_GET['startTime']) {
  176. $params['startTime'] = $_GET['startTime'];
  177. }
  178. if (isset($_GET['grade']) && $_GET['grade']) {
  179. $params['grade'] = $_GET['grade'];
  180. }
  181. if (isset($_GET['page'])) {
  182. $params['page'] = $_GET['page'];
  183. }else{
  184. $params['page'] = 1;
  185. }
  186. echo formatPage($page, 'imsSale/paymentApply', $params);
  187. ?>
  188. </ul>
  189. </div>
  190. <?php endif; ?>
  191. </div>
  192. </div>
  193. <script src="/js/productset/jquery.min.js"></script>
  194. <script src="/js/ims/jquery.datetimepicker.js"></script>
  195. <script src="/js/ims/xsgl.js"></script>
  196. <script src="/js/layer/layer.js"></script>
  197. <script>
  198. $(document).ready(function () {
  199. //筛选条件赋值
  200. <?php if(isset($_GET['beginTime'])):?>
  201. $("#some_class_1").attr("value","<?php echo $_GET['beginTime']?>");
  202. $("#some_class_2").attr("value", "<?php echo $_GET['endTime']?>");
  203. <?php endif;?>
  204. <?php if(isset($_GET['goodsId']) && $_GET['goodsId']):?>
  205. var goodsId = "<?php echo $_GET['goodsId'];?>";
  206. $('#goodsId').val(goodsId);
  207. var txt = $('.goods li[val='+goodsId+']').html();
  208. $('.goods .diy_select_txt').html(txt);
  209. <?php endif;?>
  210. <?php if(isset($_GET['schoolYearId']) && $_GET['schoolYearId']):?>
  211. var schoolYearId = "<?php echo $_GET['schoolYearId'];?>";
  212. $('#schoolYearId').val(schoolYearId);
  213. var txt = $('.year li[val='+schoolYearId+']').html();
  214. $('.year .diy_select_txt').html(txt);
  215. <?php endif;?>
  216. $('.some_class').datetimepicker({
  217. format: "Y-m-d", //格式化日期
  218. timepicker: false //关闭时间选项
  219. });
  220. $(".btn-date_show").on("click", function () {
  221. layer.alert($(this).text(), {
  222. title: '使用月份',
  223. area: ['420px', '240px']
  224. });
  225. });
  226. $(".btn-formal-order").on("click", function () {
  227. var quantity= parseInt($(this).attr('a1'));
  228. var adjustNum = parseInt($(this).attr('a2'));
  229. var applyOfficialNum = parseInt($(this).attr('a3'));
  230. var officialNum2 = parseInt($(this).attr('a4'));
  231. var orderId = $(this).attr('orderId');
  232. var flag = true;
  233. layer.open({
  234. type: 1,
  235. title: '转财务订单',
  236. btn: ['确定', '取消'],
  237. area: ['420px', '240px'], //宽高
  238. btnAlign: 'c',
  239. content: '<div class="application-number-box"><p style="color: red;display: none;" class="alert-msg"></p><span>申请人数</span> <input type="number" id="applicationNumber" ></div>',
  240. yes: function (index, layero) {
  241. //提交
  242. var officialNum =$('#applicationNumber').val();
  243. if (officialNum>0) {
  244. if((officialNum>(quantity+adjustNum-applyOfficialNum-officialNum2))){
  245. $('.alert-msg').html("填写数额超出额度").fadeIn();
  246. }else{
  247. if (flag){
  248. flag = false;
  249. $.ajax({
  250. type: 'post',
  251. url: "<?php echo Yii::app()->createUrl('imsSale/toOfficial') ;?>",
  252. data: {'orderId':orderId, 'officialNum':officialNum},
  253. dataType: 'json',
  254. success: function (data) {
  255. if (data.status){
  256. location.reload();
  257. } else{
  258. flag = true;
  259. layer.msg(data.msg);
  260. }
  261. },
  262. error: function () {
  263. flag = true;
  264. layer.msg("异常错误");
  265. }
  266. });
  267. }
  268. }
  269. }else{
  270. layer.msg("请填写数量");
  271. }
  272. },
  273. btn2: function (index, layero) {
  274. //return false 开启该代码可禁止点击该按钮关闭
  275. }
  276. });
  277. return false;
  278. });
  279. //
  280. $('.cancel').click(function(){
  281. url=$(this).attr('href');
  282. layer.msg("确认取消吗", {
  283. time: 0,
  284. btn: ['确定', '取消'],
  285. yes: function (index) {
  286. window.location.href=url;
  287. }
  288. })
  289. return false;
  290. });
  291. $('.delete').click(function(){
  292. url=$(this).attr('href');
  293. layer.msg("确认删除吗", {
  294. time: 0,
  295. btn: ['确定', '取消'],
  296. yes: function (index) {
  297. window.location.href=url;
  298. }
  299. })
  300. return false;
  301. });
  302. });
  303. $('body').on('focus', '#applicationNumber', function () {
  304. $('.alert-msg').css("display",'none');
  305. });
  306. </script>
  307. </body>
  308. </html>