searchGoodsChange.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. .ims-box {
  15. margin: 20px;
  16. }
  17. .screen > div {
  18. float: left;
  19. margin-right: 8px;
  20. }
  21. .screen .date > input {
  22. height: 30px;
  23. border-radius: 4px;
  24. border: 1px solid #ccc;
  25. box-shadow: none;
  26. text-indent: 10px;
  27. }
  28. .screen .purposeOrderNo > input {
  29. height: 30px;
  30. border-radius: 4px;
  31. border: 1px solid #ccc;
  32. box-shadow: none;
  33. text-indent: 10px;
  34. }
  35. .screen button {
  36. padding: 4px 12px;
  37. }
  38. .table-box {
  39. margin-top: 30px;
  40. }
  41. .application-number-box span {
  42. margin-right: 20px;
  43. }
  44. .layui-layer-btn .layui-layer-btn0 {
  45. border-color: #15ae68 !important;
  46. background-color: #15ae68 !important;
  47. color: #fff;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <div class="ims-box">
  53. <form action="<?php echo Yii::app()->createUrl('imsSale/searchGoodsChange'); ?>" method="get">
  54. <div class="screen">
  55. <select name="schoolYearId" id="schoolYearId" style="width: 100px;">
  56. <option value="0">请选择学年</option>
  57. <?php
  58. if($schoolYear){
  59. foreach ($schoolYear as $value){
  60. if(isset($_GET['schoolYearId']) && $_GET['schoolYearId']==$value['schoolYearId']){
  61. echo '<option value="'.$value['schoolYearId'].'" selected>'.$value['schoolYearName'].'</option>';
  62. }else{
  63. echo '<option value="'.$value['schoolYearId'].'">'.$value['schoolYearName'].'</option>';
  64. }
  65. }
  66. }
  67. ?>
  68. </select>
  69. <select name="grade" id="grade" style="width: 100px;">
  70. <option value="0">请选择年级</option>
  71. <?php
  72. if(Yii::app()->params['grade_list']){
  73. foreach (Yii::app()->params['grade_list'] as $val){
  74. if(isset($_GET['grade']) && $_GET['grade']==$val['id']){
  75. echo '<option value="'.$val['id'].'" selected>'.$val['grade_name'].'</option>';
  76. }else{
  77. echo '<option value="'.$val['id'].'" >'.$val['grade_name'].'</option>';
  78. }
  79. }
  80. }
  81. ?>
  82. </select>
  83. <button type="submit" class="label-primary-s bth-s">查询</button>
  84. </div>
  85. </form>
  86. <div class="table-box">
  87. <table id="intention-table"
  88. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  89. style="font-size:12px">
  90. <thead>
  91. <tr>
  92. <th>销售订单号</th>
  93. <th>学年</th>
  94. <th>商品变更类型</th>
  95. <th>年级</th>
  96. <th>商品名称</th>
  97. <th>订购人数</th>
  98. <th>累计变更人数</th>
  99. <th>备注</th>
  100. <th>审批状态</th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. <?php if ($list): ?>
  105. <?php foreach ($list as $item): ?>
  106. <tr>
  107. <td><?php echo $item['orderNo'];?></td>
  108. <td><?php echo $item['schoolYearName'] ?></td>
  109. <td><?php echo $item['changeTypeName'] ?></td>
  110. <td><?php echo $item['gradeName'];?></td>
  111. <td><?php echo $item['goodsName'];?></td>
  112. <td><?php echo $item['quantity'];?></td>
  113. <td><?php echo $item['adjustNum'];?></td>
  114. <td><?php echo $item['remark']; ?></td>
  115. <td><?php echo $item['statusName'];?></td>
  116. </tr>
  117. <?php endforeach; ?>
  118. <?php endif; ?>
  119. </tbody>
  120. </table>
  121. <?php if ($page): ?>
  122. <div class="col-sm-12">
  123. <ul class="pagination">
  124. <?php
  125. $params = array();
  126. if (isset($_GET['schoolYearId']) && $_GET['schoolYearId']) {
  127. $params['schoolYearId'] = $_GET['schoolYearId'];
  128. }
  129. if (isset($_GET['grade']) && $_GET['grade']) {
  130. $params['grade'] = $_GET['grade'];
  131. }
  132. if (isset($_GET['page'])) {
  133. $params['page'] = $_GET['page'];
  134. }else{
  135. $params['page'] = 1;
  136. }
  137. echo formatPage($page, 'imsSale/searchGoodsChange', $params);
  138. ?>
  139. </ul>
  140. </div>
  141. <?php endif; ?>
  142. </div>
  143. </div>
  144. </body>
  145. </html>