account.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 href="/css/ims/ims.css" rel="stylesheet">
  11. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  12. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  13. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  14. <style>
  15. .bg-green {
  16. background-color: #ccffcc !important;
  17. }
  18. .bg-yellow {
  19. background-color: #ffff99 !important;
  20. }
  21. .ims-box {
  22. margin: 20px;
  23. }
  24. .screen > div {
  25. float: left;
  26. margin-right: 30px;
  27. }
  28. .screen button {
  29. padding: 4px 12px;
  30. }
  31. .screen .time span {
  32. line-height: 30px;
  33. cursor: pointer;
  34. }
  35. .screen .time span.active, .screen .time span:hover {
  36. color: #0000FF;
  37. }
  38. .screen .date input {
  39. height: 30px;
  40. border-radius: 4px;
  41. border: 1px solid #ccc;
  42. box-shadow: none;
  43. text-indent: 10px;
  44. }
  45. .table-box {
  46. margin-top: 30px;
  47. }
  48. .table-box h1 {
  49. text-align: center;
  50. font-weight: bolder;
  51. color: #000;
  52. }
  53. .table-box .title span {
  54. display: inline-block;
  55. margin-right: 20px;
  56. }
  57. .table-box table,
  58. .table-box table th {
  59. text-align: center;
  60. }
  61. .table-box .table > thead > tr > td {
  62. vertical-align: middle;
  63. }
  64. </style>
  65. </head>
  66. <body>
  67. <div class="ims-box">
  68. <form id="form-data" action="<?php echo Yii::app()->createUrl('imsStore/account'); ?>" method="get">
  69. <div class="screen">
  70. <div class="diy_select select-type">
  71. <input type="hidden" id="itemsType" name="itemsType" class="diy_select_input" value="0">
  72. <div class="diy_select_txt pm_type_txt">品目类型</div>
  73. <div class="diy_select_btn"></div>
  74. <ul class="diy_select_list pm_type" style="display: none;">
  75. <li val="-1">品目类型</li>
  76. <li val="0">固定资产</li>
  77. <li val="1">原材料</li>
  78. <li val="2">产成品</li>
  79. <li val="3">低值易耗品</li>
  80. </ul>
  81. </div>
  82. <div class="diy_select select-item">
  83. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  84. <div class="diy_select_txt pm_name_txt">品目名称</div>
  85. <div class="diy_select_btn"></div>
  86. <ul class="diy_select_list pm_name" style="display: none;">
  87. <li val="0">品目名称</li>
  88. <!-- --><?php //foreach ($itemList as $value): ?>
  89. <!-- <li val="--><?php //echo $value['itemId']; ?><!--">--><?php //echo $value['itemName']; ?><!--</li>-->
  90. <!-- --><?php //endforeach; ?>
  91. </ul>
  92. </div>
  93. <button type="submit" class="label-primary-s bth-s">查询</button>
  94. </div>
  95. </form>
  96. <div class="table-box">
  97. <table id="inventoryTable"
  98. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  99. style="font-size:12px">
  100. <thead>
  101. <tr>
  102. <th>日期</th>
  103. <th>仓库名称</th>
  104. <th>品目</th>
  105. <th>规格</th>
  106. <th>操作类型</th>
  107. <th>数量</th>
  108. <th>单位</th>
  109. </tr>
  110. </thead>
  111. <tbody>
  112. <?php if ($list):?>
  113. <?php foreach($list as $value):?>
  114. <tr>
  115. <td ><?php echo date('Y-m-d',strtotime($value['outInDate']))?></td>
  116. <td ><?php echo $value['storageName'];?></td>
  117. <td><?php echo $value['itemName'];?></td>
  118. <td><?php echo $value['itemSpec'];?></td>
  119. <td><?php echo $value['description'];?></td>
  120. <td><?php echo $value['no'];?></td>
  121. <td><?php echo $value['unitName'];?></td>
  122. </tr>
  123. <?php endforeach;?>
  124. <?php endif;?>
  125. </tbody>
  126. </table>
  127. <?php if ($page): ?>
  128. <div class="col-sm-12">
  129. <ul class="pagination">
  130. <?php
  131. $params = array();
  132. if (isset($_GET['itemsType'])) {
  133. $params['itemsType'] = $_GET['itemsType'];
  134. }
  135. if (isset($_GET['itemId'])) {
  136. $params['itemId'] = $_GET['itemId'];
  137. }
  138. if (isset($_GET['page'])) {
  139. $params['page'] = $_GET['page'];
  140. }else{
  141. $params['page'] = 1;
  142. }
  143. echo formatPage($page, 'imsStore/account', $params);
  144. ?>
  145. </ul>
  146. </div>
  147. <?php endif; ?>
  148. </div>
  149. </div>
  150. <script src="/js/jquery-2.2.2.min.js"></script>
  151. <script src="/js/layer/layer.js"></script>
  152. <script src="/js/xsgl.js"></script>
  153. <?php include_once '_transferCommon.php'?>
  154. <script>
  155. </script>
  156. </body>
  157. </html>