_useList.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <!--领用-->
  2. <div class="ims-box">
  3. <form action="<?php echo Yii::app()->createUrl('imsStore/useOut',array('useOutType' => 'use')); ?>" method="get">
  4. <div class="screen clearfix">
  5. <div class="diy_select select-isUse">
  6. <!--<span>状态:</span>-->
  7. <input type="hidden" id="isUse" name="isUse" class="diy_select_input" value="0">
  8. <div class="diy_select_txt pm_status_txt">请选择状态</div>
  9. <div class="diy_select_btn"></div>
  10. <ul class="diy_select_list pm_status" style="display: none;">
  11. <li val="0">请选择状态</li>
  12. <li val="1">审核中</li>
  13. <li val="2">审核通过</li>
  14. <li val="3">审核驳回</li>
  15. <li val="4">已取消</li>
  16. </ul>
  17. </div>
  18. <div class="diy_select select-itemType">
  19. <!--<span>品目类型:</span>-->
  20. <input type="hidden" id="itemType" name="itemType" class="diy_select_input" value="0">
  21. <div class="diy_select_txt pm_name_txt">请选择品目类型</div>
  22. <div class="diy_select_btn"></div>
  23. <ul class="diy_select_list pm_name" style="display: none;">
  24. <li val="0">请选择品目类型</li>
  25. <li val="2">产成品</li>
  26. <li val="3">低值易耗品</li>
  27. </ul>
  28. </div>
  29. <div class="diy_select select-itemId">
  30. <!--<span>品目名称:</span>-->
  31. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  32. <div class="diy_select_txt pm_name_txt">请选择品目名称</div>
  33. <div class="diy_select_btn"></div>
  34. <ul class="diy_select_list pm_name" style="display: none;">
  35. <li val="0">请选择品目名称</li>
  36. <?php foreach ($itemList as $key => $value): ?>
  37. <li val="<?php echo $value['itemId']; ?>"><?php echo $value['itemName']; ?></li>
  38. <?php endforeach; ?>
  39. </ul>
  40. </div>
  41. <div class="date">
  42. <span>领用时间:</span>
  43. <input type="text" readonly name="startDate" class="some_class" value="" id="some_class_1"/> --
  44. <input type="text" readonly name="endDate" class="some_class" value="" id="some_class_2"/>
  45. </div>
  46. <button type="submit" class="label-primary-s bth-s">搜索</button>
  47. <button type="button" class="label-primary-s bth-s add_use_order">新增出库单</button>
  48. </div>
  49. </form>
  50. <div class="table-box ">
  51. <table id="record-table"
  52. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  53. style="font-size:12px">
  54. <thead>
  55. <tr>
  56. <th>签字出库</th>
  57. <th>领用出库编号</th>
  58. <th>品目类型</th>
  59. <th>品目名称</th>
  60. <th>领用数量</th>
  61. <th>领用时间</th>
  62. <th>审批状态</th>
  63. <th>发放数量</th>
  64. <th>发放订单</th>
  65. <th>退库数量</th>
  66. <th>操作</th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. <?php if (isset($pmDataList['list']) && $pmDataList['list']): ?>
  71. <?php foreach ($pmDataList['list'] as $key => $outputDetails):?>
  72. <tr>
  73. <td class="sign-td">
  74. <?php if($outputDetails['isUse'] == 1 && $outputDetails['status'] == 1):?>
  75. <a class="signed-btn" imgUrl="<?php echo isset($outputDetails['signPic']) ? $outputDetails['signPic'] : ''; ?>">已签名</a>
  76. <?php elseif($outputDetails['isUse'] == 0 && $outputDetails['status'] == 1):?>
  77. <a class="sign-btn" url="<?php echo Yii::app()->params['qrcode'].'/lingyong?outId='.$outputDetails['outId'];?>">签名</a>
  78. <?php else:?>
  79. <span>签名</span>
  80. <?php endif;?>
  81. </td>
  82. <td><?php echo isset($outputDetails['outCode']) ? $outputDetails['outCode'] : ''; ?></td>
  83. <td>
  84. <?php if(isset($outputDetails['itemType'])):?>
  85. <?php if($outputDetails['itemType'] == 2):?>
  86. 产成品
  87. <?php elseif($outputDetails['itemType'] == 3):?>
  88. 低值易耗品
  89. <?php endif;?>
  90. <?php endif;?>
  91. </td>
  92. <td><?php echo isset($outputDetails['itemName']) ? $outputDetails['itemName'] : ''; ?></td>
  93. <td><?php echo isset($outputDetails['no']) ? $outputDetails['no'] : ''; ?></td>
  94. <td><?php echo date('Y/m/d', strtotime($outputDetails['outDate'])); ?></td>
  95. <td><?php echo $outputDetails['statusName']; ?></td>
  96. <td><?php echo $outputDetails['allotNo']; ?></td>
  97. <td>
  98. <?php if($outputDetails['isUse'] == 1 && $outputDetails['status'] == 1):?>
  99. <a class="view-order" href="<?php echo $this->createUrl('imsStore/grant', array('outId' => $outputDetails['outId'],'doType' => 'viewRelOrder','allotNo'=>$outputDetails['allotNo'])); ?>">发放订单</a>
  100. <?php endif;?>
  101. <?php if($outputDetails['itemType'] != 3):?>
  102. <a class="view-order" href="<?php echo $this->createUrl('imsStore/viewGrant', array('outId' => $outputDetails['outId'],'doType' => 'viewRelOrder','allotNo'=>$outputDetails['allotNo'])); ?>">查看</a>
  103. <?php endif;?>
  104. </td>
  105. <td><?php echo $outputDetails['reFoundNo']; ?></td>
  106. <td>
  107. <?php $processInfo = $outputDetails['processInfo'];?>
  108. <?php if(isset($processInfo['showReset']) && $processInfo['showReset']):?>
  109. <a href="<?php echo $this->createUrl('imsStore/useAddEdit', array('outId' => $outputDetails['outId'])); ?>" class="" outId="<?php echo $outputDetails['outId'] ?>">编辑</a>
  110. <?php endif;?>
  111. <?php if(isset($processInfo['showDelete']) && $processInfo['showDelete']):?>
  112. <a href="javascript:;" class="del-stop-btn" doType="del" businessKey="<?php echo $processInfo['businessKey'] ?>">删除</a>
  113. <?php endif;?>
  114. <?php if(isset($processInfo['showStop']) && $processInfo['showStop']):?>
  115. <a href="javascript:;" class="del-stop-btn" doType="stop" businessKey="<?php echo $processInfo['businessKey'] ?>">中止</a>
  116. <?php endif;?>
  117. <?php if(isset($processInfo['showUrge']) && $processInfo['showUrge']):?>
  118. <a href="javascript:;" class="btn-urge" businessKey="<?php echo $processInfo['businessKey'] ?>">催办</a>
  119. <?php endif;?>
  120. <a href="<?php echo $this->createUrl('imsStore/useView', array('outId' => $outputDetails['outId'])); ?>">查看</a>
  121. </td>
  122. </tr>
  123. <?php endforeach; ?>
  124. <?php endif; ?>
  125. </tbody>
  126. </table>
  127. <?php if ($pmDataList): ?>
  128. <div class="col-sm-12">
  129. <ul class="pagination">
  130. <?php
  131. $params = array();
  132. if (isset($_GET['orderNo']) && $_GET['orderNo']) {
  133. $params['orderNo'] = $_GET['orderNo'];
  134. }
  135. if (isset($_GET['itemId']) && $_GET['itemId']) {
  136. $params['itemId'] = $_GET['itemId'];
  137. }
  138. if (isset($_GET['startDate']) && $_GET['startDate']) {
  139. $params['startDate'] = $_GET['startDate'];
  140. }
  141. if (isset($_GET['endDate']) && $_GET['endDate']) {
  142. $params['endDate'] = $_GET['endDate'];
  143. }
  144. if (isset($_GET['page'])) {
  145. $params['page'] = $_GET['page'];
  146. } else {
  147. $params['page'] = 1;
  148. }
  149. if (isset($_GET['itemType']) && $_GET['itemType']) {
  150. $params['itemType'] = $_GET['itemType'];
  151. }
  152. echo formatPage($pmDataList, 'imsStore/useOut', $params);
  153. ?>
  154. </ul>
  155. </div>
  156. <?php endif; ?>
  157. </div>
  158. </div>
  159. <!-- 关联正式订单弹层 -->
  160. <div class="layer-relate rel-order-layer">
  161. <div class="layer-filter"></div>
  162. <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  163. style="font-size:12px">
  164. <thead>
  165. <tr>
  166. <th>可发放数量</th>
  167. <th class="valid-num"></th>
  168. <th>发放数量</th>
  169. <th><div class="out-count-div">
  170. <span class="out-stock-num">0</span>
  171. <span class="fr">发放给学生的品目数量</span>
  172. </div>
  173. </th>
  174. </tr>
  175. </thead>
  176. </table>
  177. <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  178. style="font-size:12px">
  179. <thead>
  180. <tr>
  181. <!-- <th>选择</th>-->
  182. <th>财务订单编号</th>
  183. <th>商品名称</th>
  184. <th>订购人数</th>
  185. <th>已收货人数</th>
  186. <th>剩余收货人数</th>
  187. <th>操作</th>
  188. </tr>
  189. </thead>
  190. <tbody>
  191. </tbody>
  192. </table>
  193. <div class="col-sm-12">
  194. <ul class="pagination">
  195. </ul>
  196. </div>
  197. </div>
  198. <!-- 查看关联正式订单弹层 -->
  199. <div class="layer-relate view-rel-order">
  200. <div class="layer-filter clearfix" style="margin-bottom:0">
  201. <span class="fl">已发放数量:<em style="color:#f00" class="allotNo-num">100</em></span>
  202. <a href="javascript:;" class="fr continue-grant" style="color:#15ae68">继续发放</a>
  203. </div>
  204. <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  205. style="font-size:12px">
  206. <thead>
  207. <tr>
  208. <th>关联订单号</th>
  209. <th>商品名称</th>
  210. <th>订购人数</th>
  211. <th>本次收货人数</th>
  212. </tr>
  213. </thead>
  214. <tbody class="send-num">
  215. </tbody>
  216. </table>
  217. <div style="margin-bottom:10px">明细订单</div>
  218. <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  219. style="font-size:12px">
  220. <thead>
  221. <tr>
  222. <th>明细订单号</th>
  223. <th>学生姓名</th>
  224. <th>班级</th>
  225. </tr>
  226. </thead>
  227. <tbody class="order-detail">
  228. </tbody>
  229. </table>
  230. <div class="col-sm-12">
  231. <ul class="pagination">
  232. </ul>
  233. </div>
  234. </div>
  235. <!--二维码-->
  236. <div class="qrcode-fram" style="display: none">
  237. <div id="qrcode" style="width:100px; height:100px;margin: 10px auto"></div>
  238. <p>扫描二维码,至移动浏览器签名</p>
  239. </div>