view_grant.php 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <style>
  2. .sale-title{font-size: 14px;font-weight:bold}
  3. .whiteColor{background: #fff;color:#000}
  4. .ims-box {
  5. margin: 20px;
  6. }
  7. .screen {
  8. padding-left: 20px;
  9. height: 44px;
  10. line-height: 44px;
  11. background-color: #eff4fa;
  12. }
  13. .screen li {
  14. float: left;
  15. margin-right: 65px;
  16. }
  17. .bg-d9bf6e {
  18. margin-left: 5px;
  19. padding: 0 20px;
  20. color: #fff;
  21. background-color: #d9bf6e;
  22. }
  23. .list {
  24. padding: 0 40px;
  25. /*margin-top: 40px;*/
  26. overflow: hidden;
  27. }
  28. .list h2 {
  29. line-height: 30px;
  30. font-size: 14px;
  31. }
  32. .list .student-list_box {
  33. width: 300px;
  34. }
  35. .list .student-list_box > ul {
  36. height: 260px;
  37. overflow: auto;
  38. padding: 20px;
  39. background-color: #eef3ff;
  40. }
  41. .list .student-list_box li {
  42. line-height: 30px;
  43. cursor: pointer;
  44. }
  45. .list .student-selected_box {
  46. margin-left: 60px;
  47. }
  48. .list .student-list {
  49. display: none;
  50. margin-left: 20px;
  51. }
  52. .list .student-list li.active .btn-select_all {
  53. display: inline-block;
  54. }
  55. .list .student-list span {
  56. cursor: pointer;
  57. }
  58. .list .btn-select_all {
  59. margin-left: 84px;
  60. color: #008000;
  61. }
  62. .student-name_box li {
  63. position: relative;
  64. margin-left: 28px;
  65. line-height: 30px;
  66. }
  67. .student-name_box input {
  68. position: absolute;
  69. left: 155px;
  70. top: 8px;
  71. }
  72. .btn-select_all,
  73. .student-name_box {
  74. display: none;
  75. }
  76. .student-selected {
  77. width: 320px;
  78. height: 220px;
  79. overflow: auto;
  80. }
  81. .student-selected li {
  82. float: left;
  83. margin-right: 24px;
  84. margin-bottom: 12px;
  85. height: 26px;
  86. line-height: 26px;
  87. text-indent: 20px;
  88. background-color: #f2f2f2;
  89. }
  90. .student-selected .btn-delete {
  91. float: right;
  92. margin-right: 20px;
  93. color: red;
  94. cursor: pointer;
  95. }
  96. .btn-confirm_purchase {
  97. display: block;
  98. margin: 0 auto;
  99. margin-top: 100px;
  100. margin-bottom: 50px;
  101. width: 430px;
  102. line-height: 54px;
  103. color: #fff;
  104. font-family: PingFangSC-Regular, "PingFang SC";
  105. font-weight: 400;
  106. font-style: normal;
  107. font-size: 20px;
  108. text-align: center;
  109. background-color: rgba(0, 153, 102, 1);
  110. cursor: pointer;
  111. }
  112. #imgPreview {
  113. display: inline-block;
  114. margin-top: 12px;
  115. }
  116. #imgPreview > img {
  117. max-width: 100px;
  118. max-height: 100px;
  119. margin-right: 5px;
  120. }
  121. .layui-layer-btn .layui-layer-btn0 {
  122. border-color: #15ae68 !important;
  123. background-color: #15ae68 !important;
  124. color: #fff;
  125. }
  126. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  127. line-height: 140px;
  128. text-align: center;
  129. }
  130. .table-center th,.table-center td{text-align:center;}
  131. .table-center .diy_select{float:none;display:inline-block;}
  132. .out-count-div{display:inline-block;}
  133. .out-count-div a{display:inline-block;width:20px;height:20px;text-align:center;line-height:20px; background:#999;color:#fff;cursor:pointer}
  134. .out-count-div a:hover{background:#666;}
  135. .out-count-div span{margin-left:10px;}
  136. .activePage{display: inline-block;width: 30px;height: 30px;background: #0e8e54;text-align: center;line-height: 30px;color:#fff;margin-right: 10px;}
  137. .page{display: inline-block;width: 30px;height: 30px;border:1px solid #0e8e54;text-align: center;line-height: 30px;color:#000;margin-right: 10px;}
  138. </style>
  139. <!--发放情况-->
  140. <div class="ims-box">
  141. <h3 class="sale-title"> 查看 </h3>
  142. <div class="layer-filter">
  143. <form action="<?php echo Yii::app()->createUrl('imsStore/viewGrant'); ?>" id="orderSearch" method="get">
  144. <select name="schoolYearId" id="schoolYearId" style="width: 100px;">
  145. <option value="0">学年</option>
  146. <?php if(isset($schoolYear) && $schoolYear):?>
  147. <?php foreach ($schoolYear as $key => $value): ?>
  148. <?php
  149. if($value['schoolYearId']==$schoolYearId){
  150. ?>
  151. <option selected value="<?php echo $value['schoolYearId']; ?>"><?php echo $value['schoolYearName']; ?></option>
  152. <?php
  153. }else{
  154. ?>
  155. <option value="<?php echo $value['schoolYearId']; ?>"><?php echo $value['schoolYearName']; ?></option>
  156. <?php
  157. }
  158. ?>
  159. <?php endforeach; ?>
  160. <?php endif;?>
  161. </select>
  162. <select name="semester" id="semester" style="width: 100px;">
  163. <option value="0">学期</option>
  164. <option value="1" <?php if(isset($semester) && $semester==1) echo 'selected';?>>上学期</option>
  165. <option value="2" <?php if(isset($semester) && $semester==2) echo 'selected';?>>下学期</option>
  166. <option value="3" <?php if(isset($semester) && $semester==3) echo 'selected';?>>跨学期</option>
  167. </select>
  168. <select name="grade" id="grade" style="width: 100px;">
  169. <option value="0">年级</option>
  170. <option value="1" <?php if(isset($grade) && $grade==1) echo 'selected';?>>高一</option>
  171. <option value="2" <?php if(isset($grade) && $grade==2) echo 'selected';?>>高二</option>
  172. <option value="3" <?php if(isset($grade) && $grade==3) echo 'selected';?>>高三</option>
  173. </select>
  174. <input type="text" name="orderNo" placeholder="订单号" style="height:28px" value="<?php echo $orderNo?>">
  175. <button class="btn btn-success ">查询</button>
  176. <input type="hidden" name="outId" value="<?php echo $outId?>">
  177. <input type="hidden" name="ajaxDataRequest" value="1">
  178. <input type="hidden" name="page" value="1">
  179. <a href="<?php echo $this->createUrl('imsStore/grant', array('outId' => $outId))?>" class="btn btn-success ">继续发放</a>
  180. </form>
  181. </div>
  182. <div class="table-box ">
  183. <table id="record-table"
  184. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable order-table"
  185. style="font-size:12px">
  186. <thead>
  187. <tr>
  188. <th>订单号</th>
  189. <th>商品名称</th>
  190. <th>套餐</th>
  191. <th>年级</th>
  192. <th>有效人数</th>
  193. <th>配套标准</th>
  194. <th>配套数</th>
  195. <th>应发放数</th>
  196. <th>已发放数</th>
  197. <th>本次发放数</th>
  198. </tr>
  199. </thead>
  200. <tbody>
  201. <?php
  202. if($pmData){
  203. foreach ($pmData['list'] as $val){
  204. ?>
  205. <tr>
  206. <td><?php echo $val['orderNo']?></td>
  207. <td><?php echo $val['goodsName']?></td>
  208. <td><?php echo $val['packageName']?></td>
  209. <td><?php echo $val['gradeName']?></td>
  210. <td><?php echo $val['quantity']?></td>
  211. <td><?php echo $itemType?></td>
  212. <td><?php echo $val['sendNo']?></td>
  213. <td><?php echo $val['sendNo']*$val['quantity']?></td>
  214. <td><?php echo $val['saleNo']?></td>
  215. <td><?php echo $val['outNo']?></td>
  216. </tr>
  217. <?php
  218. }
  219. }
  220. ?>
  221. </tbody>
  222. </table>
  223. <?php if ($pmData): ?>
  224. <div class="col-sm-12">
  225. <ul class="pagination">
  226. <?php
  227. $params = array();
  228. if (isset($_GET['schoolYearId']) && $_GET['schoolYearId']) {
  229. $params['schoolYearId'] = $_GET['schoolYearId'];
  230. }
  231. if (isset($_GET['grade']) && $_GET['grade']) {
  232. $params['grade'] = $_GET['grade'];
  233. }
  234. if (isset($_GET['semester']) && $_GET['semester']) {
  235. $params['semester'] = $_GET['semester'];
  236. }
  237. if (isset($_GET['orderNo']) && $_GET['orderNo']) {
  238. $params['orderNo'] = $_GET['orderNo'];
  239. }
  240. if (isset($_GET['page'])) {
  241. $params['page'] = $_GET['page'];
  242. } else {
  243. $params['page'] = 1;
  244. }
  245. if (isset($_GET['itemType']) && $_GET['itemType']) {
  246. $params['itemType'] = $_GET['itemType'];
  247. }
  248. echo formatPage($pmData, 'imsStore/viewGrant', $params);
  249. ?>
  250. </ul>
  251. </div>
  252. <?php endif; ?>
  253. </div>
  254. </div>