viewPaymentApply.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>查看回款反馈</title>
  6. <link href="/css/base.css" rel="stylesheet">
  7. <link href="/css/ims/ims.css" rel="stylesheet">
  8. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  9. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  10. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  11. <link type="text/css" rel="stylesheet" href="/js/select/select2.min.css" />
  12. <style>
  13. p {
  14. margin: 0;
  15. padding: 0;
  16. }
  17. .ims-box {
  18. margin: 20px;
  19. }
  20. .screen {
  21. padding-left: 20px;
  22. height: 44px;
  23. line-height: 44px;
  24. background-color: #eff4fa;
  25. }
  26. .screen li {
  27. float: left;
  28. margin-right: 65px;
  29. }
  30. .bg-d9bf6e {
  31. margin-left: 5px;
  32. padding: 0 20px;
  33. color: #fff;
  34. background-color: #d9bf6e;
  35. }
  36. .list {
  37. padding: 0 40px;
  38. /*margin-top: 40px;*/
  39. overflow: hidden;
  40. }
  41. .list h2 {
  42. line-height: 30px;
  43. font-size: 14px;
  44. }
  45. .list .student-list_box {
  46. width: 300px;
  47. }
  48. .list .student-list_box > ul {
  49. height: 260px;
  50. overflow: auto;
  51. padding: 20px;
  52. background-color: #eef3ff;
  53. }
  54. .list .student-list_box li {
  55. line-height: 30px;
  56. cursor: pointer;
  57. }
  58. .list .student-selected_box {
  59. margin-left: 60px;
  60. }
  61. .list .student-list {
  62. display: none;
  63. margin-left: 20px;
  64. }
  65. .list .student-list li.active .btn-select_all {
  66. display: inline-block;
  67. }
  68. .list .student-list span {
  69. cursor: pointer;
  70. }
  71. .list .btn-select_all {
  72. margin-left: 84px;
  73. color: #008000;
  74. }
  75. .student-name_box li {
  76. position: relative;
  77. margin-left: 28px;
  78. line-height: 30px;
  79. }
  80. .student-name_box input {
  81. position: absolute;
  82. left: 155px;
  83. top: 8px;
  84. }
  85. .btn-select_all,
  86. .student-name_box {
  87. display: none;
  88. }
  89. .student-selected {
  90. width: 320px;
  91. height: 220px;
  92. overflow: auto;
  93. }
  94. .student-selected li {
  95. float: left;
  96. margin-right: 24px;
  97. margin-bottom: 12px;
  98. height: 26px;
  99. line-height: 26px;
  100. text-indent: 20px;
  101. background-color: #f2f2f2;
  102. }
  103. .student-selected .btn-delete {
  104. float: right;
  105. margin-right: 20px;
  106. color: red;
  107. cursor: pointer;
  108. }
  109. .btn-confirm_purchase {
  110. display: block;
  111. margin: 0 auto;
  112. margin-top: 100px;
  113. margin-bottom: 50px;
  114. width: 430px;
  115. line-height: 54px;
  116. color: #fff;
  117. font-family: PingFangSC-Regular, "PingFang SC";
  118. font-weight: 400;
  119. font-style: normal;
  120. font-size: 20px;
  121. text-align: center;
  122. background-color: rgba(0, 153, 102, 1);
  123. cursor: pointer;
  124. }
  125. #imgPreview {
  126. display: inline-block;
  127. margin-top: 12px;
  128. }
  129. #imgPreview > img {
  130. max-width: 100px;
  131. max-height: 100px;
  132. margin-right: 5px;
  133. }
  134. .layui-layer-btn .layui-layer-btn0 {
  135. border-color: #15ae68 !important;
  136. background-color: #15ae68 !important;
  137. color: #fff;
  138. }
  139. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  140. line-height: 140px;
  141. text-align: center;
  142. }
  143. .table-center th,.table-center td{text-align:center;}
  144. .table-center .diy_select{float:none;display:inline-block;}
  145. .out-count-div{display:inline-block;}
  146. .out-count-div a{display:inline-block;width:20px;height:20px;text-align:center;line-height:20px; background:#999;color:#fff;cursor:pointer}
  147. .out-count-div a:hover{background:#666;}
  148. .out-count-div span{margin-left:10px;}
  149. .activePage{display: inline-block;width: 30px;height: 30px;background: #0e8e54;text-align: center;line-height: 30px;color:#fff;margin-right: 10px;}
  150. .page{display: inline-block;width: 30px;height: 30px;border:1px solid #0e8e54;text-align: center;line-height: 30px;color:#000;margin-right: 10px;}
  151. </style>
  152. </head>
  153. <body>
  154. <h3 class="sale-title">查看</h3>
  155. <form action="<?php echo $this->createUrl('imsSale/newPayment')?>" method="post" id="formSubmit">
  156. <div class="sale-table">
  157. <div style="margin-bottom:15px;">
  158. 原反馈记录
  159. </div>
  160. <table width="100%">
  161. <tr>
  162. <th>销售订单号</th>
  163. <td colspan="3">
  164. <?php echo $data['before']['orderNo'];?>
  165. </td>
  166. </tr>
  167. <tr>
  168. <th><em class="red">*</em>学年</th>
  169. <td>
  170. <?php echo $data['before']['schoolYearName'];?>
  171. </td>
  172. <th><em class="red">*</em>学期</th>
  173. <td>
  174. <?php echo $data['before']['semesterName'];?>
  175. </td>
  176. </tr>
  177. <tr>
  178. <th><em class="red">*</em>年级</th>
  179. <td>
  180. <?php echo $data['before']['gradeName'];?>
  181. </td>
  182. <th><em class="red">*</em>商品</th>
  183. <td>
  184. <?php echo $data['before']['goodsName'];?>
  185. </td>
  186. </tr>
  187. <tr>
  188. <th><em class="red">*</em>使用人数</th>
  189. <td colspan="3"> <?php echo $data['before']['useNum'];?>人</td>
  190. </tr>
  191. <tr>
  192. <th><em class="red">*</em>打印人数</th>
  193. <td colspan="3"> <?php echo $data['before']['downloadNum'];?>人</td>
  194. </tr>
  195. <tr>
  196. <th><em class="red">*</em>收费单价</th>
  197. <td colspan="3"> <?php echo $data['before']['price'];?>元</td>
  198. </tr>
  199. <tr>
  200. <th><em class="red">*</em>上学期收费人数</th>
  201. <td > <?php echo $data['before']['feeNumUp'];?>人</td>
  202. <th><em class="red">*</em>下学期收费人数</th>
  203. <td ><?php echo $data['before']['feeNumDown'];?> 人 </td>
  204. </tr>
  205. <tr>
  206. <th><em class="red">*</em>上学期收费金额</th>
  207. <td > <?php echo $data['before']['priceSumUp'];?>元 </td>
  208. <th><em class="red">*</em>下学期收费金额</th>
  209. <td > <?php echo $data['before']['priceSumDown'];?>元 </td>
  210. </tr>
  211. <tr>
  212. <th><em class="red">*</em>收费时间</th>
  213. <td colspan="3"> <?php echo $data['before']['feeTime'];?></td>
  214. </tr>
  215. <tr>
  216. <th>汇款时间</th>
  217. <td colspan="3"> <?php echo $data['before']['remitDate'];?></td>
  218. </tr>
  219. </table>
  220. <div style="margin-bottom:15px;">
  221. 修改后的反馈记录
  222. </div>
  223. <table width="100%">
  224. <tr>
  225. <th>销售订单号</th>
  226. <td colspan="3">
  227. <?php echo $data['after']['orderNo'];?>
  228. </td>
  229. </tr>
  230. <tr>
  231. <th><em class="red">*</em>学年</th>
  232. <td>
  233. <?php echo $data['after']['schoolYearName'];?>
  234. </td>
  235. <th><em class="red">*</em>学期</th>
  236. <td>
  237. <?php echo $data['after']['semesterName'];?>
  238. </td>
  239. </tr>
  240. <tr>
  241. <th><em class="red">*</em>年级</th>
  242. <td>
  243. <?php echo $data['after']['gradeName'];?>
  244. </td>
  245. <th><em class="red">*</em>商品</th>
  246. <td>
  247. <?php echo $data['after']['goodsName'];?>
  248. </td>
  249. </tr>
  250. <tr>
  251. <th><em class="red">*</em>使用人数</th>
  252. <td colspan="3"> <?php echo $data['after']['useNum'];?>人</td>
  253. </tr>
  254. <tr>
  255. <th><em class="red">*</em>打印人数</th>
  256. <td colspan="3"> <?php echo $data['after']['downloadNum'];?>人</td>
  257. </tr>
  258. <tr>
  259. <th><em class="red">*</em>收费单价</th>
  260. <td colspan="3"> <?php echo $data['after']['price'];?>元</td>
  261. </tr>
  262. <tr>
  263. <th><em class="red">*</em>上学期收费人数</th>
  264. <td > <?php echo $data['after']['feeNumUp'];?>人</td>
  265. <th><em class="red">*</em>下学期收费人数</th>
  266. <td ><?php echo $data['after']['feeNumDown'];?> 人 </td>
  267. </tr>
  268. <tr>
  269. <th><em class="red">*</em>上学期收费金额</th>
  270. <td > <?php echo $data['after']['priceSumUp'];?>元 </td>
  271. <th><em class="red">*</em>下学期收费金额</th>
  272. <td > <?php echo $data['after']['priceSumDown'];?>元 </td>
  273. </tr>
  274. <tr>
  275. <th><em class="red">*</em>收费时间</th>
  276. <td colspan="3"> <?php echo $data['after']['feeTime'];?></td>
  277. </tr>
  278. <tr>
  279. <th>汇款时间</th>
  280. <td colspan="3"> <?php echo $data['after']['remitDate'];?></td>
  281. </tr>
  282. <tr>
  283. <th>备注</th>
  284. <td colspan="3">
  285. <?php echo $data['reason'];?>
  286. </td>
  287. </tr>
  288. </table>
  289. </div>
  290. </form>
  291. <script src="/js/productset/jquery.min.js"></script>
  292. <script src="/js/ims/jquery.datetimepicker.js"></script>
  293. <script src="/js/ims/layer/layer.js"></script>
  294. <script src="/js/ims/xsgl.js"></script>
  295. <script src="/js/select/select2.min.js"></script>
  296. <script>
  297. $(document).ready(function(){
  298. $('.projSelect').select2();
  299. var orderArr=[];
  300. <?php
  301. if(isset($orderList) && $orderList) {
  302. foreach ($orderList as $val) {
  303. echo 'var temp={};';
  304. echo 'temp.grade='.$val['grade'].';';
  305. echo 'temp.goodsId="'.$val['goodsId'].'";';
  306. echo 'temp.schoolYearId="'.$val['schoolYearId'].'";';
  307. echo 'temp.semesterName="'.$val['semesterName'].'";';
  308. echo 'temp.orderId="'.$val['orderId'].'";';
  309. echo "orderArr.push(temp);";
  310. }
  311. }
  312. ?>
  313. $('.label-primary-cancle').click(function(){
  314. window.location.href="<?php echo $this->createUrl('imsSale/payment')?>";
  315. });
  316. $('.some_class').datetimepicker({
  317. format: "Y-m-d", //格式化日期
  318. timepicker: false //关闭时间选项
  319. });
  320. // $('.float_number_check').change(function(){
  321. // $(this).val($(this).val().replace(/[^\d.+]/g,""));
  322. // });
  323. $('.negative_number_check').change(function(){
  324. $(this).val($(this).val().replace(/[^\d-+]/g,""));
  325. });
  326. $('.int_number_check').change(function(){
  327. $(this).val($(this).val().replace(/[^\d+]/g,""));
  328. });
  329. $('.bth-s').click(function(){
  330. if($('#schoolYearId').val()==0){
  331. layer.msg('请选择学年');
  332. return false;
  333. }
  334. if($('#semester').val()==0){
  335. layer.msg('请选择学期');
  336. return false;
  337. }
  338. if($('#grade').val()==0){
  339. layer.msg('请选择年级');
  340. return false;
  341. }
  342. if($('#goodsId').val()==0){
  343. layer.msg('请选择商品');
  344. return false;
  345. }
  346. if($('input[name=use_person]').val()=="" || $('input[name=use_person]').val()==0){
  347. layer.msg('请输入使用人数');
  348. return false;
  349. }
  350. if(!$.isNumeric($('input[name=use_person]').val())){
  351. layer.msg('使用人数不正确');
  352. return false;
  353. }
  354. if($('input[name=down_person]').val()=="" || $('input[name=down_person]').val()==0){
  355. layer.msg('请输入打印人数');
  356. return false;
  357. }
  358. if(!$.isNumeric($('input[name=down_person]').val())){
  359. layer.msg('打印人数不正确');
  360. return false;
  361. }
  362. if($('input[name=price]').val()=="" || $('input[name=price]').val()==0){
  363. layer.msg('请输入收费单价');
  364. return false;
  365. }
  366. if(isNaN($('input[name=price]').val()) || parseFloat($('input[name=price]').val())<=0){
  367. layer.msg('收费单价格式不正确');
  368. return false;
  369. }
  370. if($('#semester').val()==1){
  371. feeNum=$('input[name=feeNumUp]').val();
  372. priceSum=$('input[name=priceSumUp]').val();
  373. if(feeNum=="" || feeNum==0){
  374. layer.msg('请输入收费人数');
  375. return false;
  376. }
  377. if(!$.isNumeric(feeNum)){
  378. layer.msg('收费人数不正确');
  379. return false;
  380. }
  381. if(priceSum=="" || priceSum==0){
  382. layer.msg('请输入收费金额');
  383. return false;
  384. }
  385. if(isNaN(priceSum)){
  386. layer.msg('收费金额格式不正确');
  387. return false;
  388. }
  389. }else if($('#semester').val()==2){
  390. feeNum=$('input[name=feeNumDown]').val();
  391. priceSum=$('input[name=priceDown]').val();
  392. if(feeNum=="" || feeNum==0){
  393. layer.msg('请输入收费人数');
  394. return false;
  395. }
  396. if(!$.isNumeric(feeNum)){
  397. layer.msg('收费人数不正确');
  398. return false;
  399. }
  400. if(priceSum=="" || priceSum==0){
  401. layer.msg('请输入收费金额');
  402. return false;
  403. }
  404. if(isNaN(priceSum)){
  405. layer.msg('收费金额格式不正确');
  406. return false;
  407. }
  408. }else{
  409. feeNumUp=$('input[name=feeNumDown]').val();
  410. priceUp=$('input[name=priceSumDown]').val();
  411. feeNumDown=$('input[name=feeNumDown]').val();
  412. priceDown=$('input[name=priceSumDown]').val();
  413. if(feeNumUp=="" || feeNumUp==0 || !$.isNumeric(feeNumUp)){
  414. layer.msg('上学期收费人数不正确');
  415. return false;
  416. }
  417. if(feeNumDown=="" || feeNumDown==0 || !$.isNumeric(feeNumDown)){
  418. layer.msg('下学期收费人数不正确');
  419. return false;
  420. }
  421. if(priceUp=="" || priceSum==0 || isNaN(priceUp)){
  422. layer.msg('上学期收费金额格式不正确');
  423. return false;
  424. }
  425. if(priceDown=="" || priceDown==0 || isNaN(priceDown)){
  426. layer.msg('下学期收费金额格式不正确');
  427. return false;
  428. }
  429. }
  430. if($('input[name=charge_time]').val()==''){
  431. layer.msg('请输入收费时间');
  432. return false;
  433. }
  434. if($('#schoolYearId').find("option:selected").attr('data-id') == 0){
  435. layer.confirm('当前时间不属于所选学年,确定保存嘛?', {
  436. btn: ['确定','取消'] //按钮
  437. },function(){
  438. $('#formSubmit').submit();
  439. });
  440. }else{
  441. $('#formSubmit').submit();
  442. }
  443. });
  444. $('#orderId').change(function(){
  445. orderId=$(this).val();
  446. $.each(orderArr,function (i,val) {
  447. if(val.orderId==orderId){
  448. $('#grade').val(val.grade);
  449. $('#schoolYearId').val(val.schoolYearId);
  450. $('#goodsId').val(val.goodsId);
  451. if(val.semesterName=='上学期'){
  452. $('#semester').val(1);
  453. }else if(val.semesterName=='下学期'){
  454. $('#semester').val(2);
  455. }else if(val.semesterName=='跨学期'){
  456. $('#semester').val(3);
  457. }
  458. }
  459. })
  460. });
  461. })
  462. </script>
  463. </body>
  464. </html>