transferList.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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/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/ace.min.css" />
  12. <style>
  13. .ims-box {
  14. margin: 20px;
  15. }
  16. .screen>div {
  17. margin-right: 30px;
  18. }
  19. .screen>span{
  20. line-height: 30px;
  21. margin-right:5px;
  22. }
  23. .screen button {
  24. padding: 4px 12px;
  25. }
  26. .table-box {
  27. margin-top: 30px;
  28. }
  29. .table-box table,
  30. .table-box table th {
  31. text-align: center;
  32. }
  33. .table>tbody>tr>td{
  34. vertical-align: middle;
  35. }
  36. .yellow{
  37. color: #FF9900;
  38. }
  39. .table-box a{
  40. color: blue
  41. }
  42. .red {
  43. color: red;
  44. }
  45. .yellow {
  46. color: #FF9900;
  47. }
  48. .ims-box {
  49. margin: 20px;
  50. }
  51. .screen > div {
  52. margin-right: 5px;
  53. }
  54. .screen button {
  55. padding: 4px 12px;
  56. }
  57. .table-box {
  58. margin-top: 30px;
  59. }
  60. .table-box table,
  61. .table-box table th {
  62. text-align: center;
  63. }
  64. .table-box button {
  65. margin-right: 5px;
  66. }
  67. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  68. line-height: 140px;
  69. text-align: center;
  70. }
  71. .resubmit-layer-box input {
  72. line-height: 20px;
  73. }
  74. .urge-layer-box {
  75. margin-top: 30px;
  76. margin-left: 30px;
  77. }
  78. .urge-layer-box textarea {
  79. margin-left: 15px;
  80. vertical-align: top;
  81. }
  82. .alert-msg {
  83. text-align: center;
  84. vertical-align: top;
  85. }
  86. </style>
  87. </head>
  88. <body>
  89. <div class="ims-box">
  90. <form action="<?php echo Yii::app()->createUrl('imsStore/transferList') ;?>" method="get">
  91. <div class="screen">
  92. <div class="diy_select select-type">
  93. <input type="hidden" id="itemsType" name="itemsType" class="diy_select_input" value="-1">
  94. <div class="diy_select_txt pm_type_txt">品目类型</div>
  95. <div class="diy_select_btn"></div>
  96. <ul class="diy_select_list pm_type" style="display: none;">
  97. <li val="-1">品目类型</li>
  98. <li val="2">产成品</li>
  99. <li val="3">低值易耗品</li>
  100. </ul>
  101. </div>
  102. <div class="diy_select select-item">
  103. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  104. <div class="diy_select_txt pm_name_txt">品目名称</div>
  105. <div class="diy_select_btn"></div>
  106. <ul class="diy_select_list pm_name" id="item_list" style="display: none;">
  107. <!-- --><?php //foreach($itemList as $key => $value):?>
  108. <!-- <li val="--><?php //echo $value['itemId'];?><!--">--><?php //echo $value['itemName'];?><!--</li>-->
  109. <!-- --><?php //endforeach;?>
  110. </ul>
  111. </div>
  112. <div class="diy_select">
  113. <input type="hidden" id="transferType" name="transferType" class="diy_select_input" value="0">
  114. <div class="diy_select_txt pm_transfer_txt">转移类型</div>
  115. <div class="diy_select_btn"></div>
  116. <ul class="diy_select_list pm_transfer" style="display: none;">
  117. <li val="0">请选择</li>
  118. <li val="1">移入合格品</li>
  119. <li val="2">移入不合格品</li>
  120. </ul>
  121. </div>
  122. <button type="submit" class="label-primary-s bth-s">搜索</button>
  123. <button type="button" class="label-primary-s bth-s create-allocation">+新建转移</button>
  124. </div>
  125. </form>
  126. <div class="table-box ">
  127. <table id="record-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
  128. <thead>
  129. <tr>
  130. <th>移库单号</th>
  131. <th>转移类型</th>
  132. <th>仓库名称</th>
  133. <th>品目名称</th>
  134. <th>品目类型</th>
  135. <th>移库数量</th>
  136. <th>单位</th>
  137. <th>移库日期</th>
  138. <th>操作人</th>
  139. <th>操作</th>
  140. </tr>
  141. </thead>
  142. <tbody>
  143. <?php if ($list):?>
  144. <?php foreach($list as $value):?>
  145. <tr>
  146. <td ><?php echo $value['icCode'];?></td>
  147. <td ><?php echo empty($value['changeType']) ? '转入不合格品' : '转入合格品';?></td>
  148. <td><?php echo $value['storageName'];?></td>
  149. <td><?php echo $value['details'][0]['itemName'];?></td>
  150. <td><?php echo $value['itemTypeName'];?></td>
  151. <td><?php echo $value['details'][0]['changeNo'];?></td>
  152. <td><?php echo $value['details'][0]['unitName'];?></td>
  153. <td><?php echo date('Y-m-d',strtotime( $value['changeDate']));?></td>
  154. <td><?php echo $value['userName'];?></td>
  155. <td>
  156. </td>
  157. </tr>
  158. <?php endforeach;?>
  159. <?php endif;?>
  160. </tbody>
  161. </table>
  162. <?php if ($page): ?>
  163. <div class="col-sm-12">
  164. <ul class="pagination">
  165. <?php
  166. $params = array();
  167. if (isset($_GET['itemsType'])) {
  168. $params['itemsType'] = $_GET['itemsType'];
  169. }
  170. if (isset($_GET['itemId'])) {
  171. $params['itemId'] = $_GET['itemId'];
  172. }
  173. if (isset($_GET['transferType'])) {
  174. $params['transferType'] = $_GET['transferType'];
  175. }
  176. if (isset($_GET['page'])) {
  177. $params['page'] = $_GET['page'];
  178. }else{
  179. $params['page'] = 1;
  180. }
  181. echo formatPage($page, 'imsStore/transferlist', $params);
  182. ?>
  183. </ul>
  184. </div>
  185. <?php endif; ?>
  186. </div>
  187. </div>
  188. <script src="/js/productset/jquery.min.js"></script>
  189. <script src="/js/ims/xsgl.js"></script>
  190. <script src="/js/ims/jquery.datetimepicker.js"></script>
  191. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  192. <?php include_once '_transferCommon.php'?>
  193. </body>
  194. </html>