report.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/ace.min.css" />
  12. <style>
  13. .ims-box {
  14. margin: 20px;
  15. }
  16. .screen>div {
  17. margin-right: 30px;
  18. }
  19. .screen button {
  20. padding: 4px 12px;
  21. }
  22. .table-box {
  23. margin-top: 30px;
  24. }
  25. .table-box table,
  26. .table-box table th {
  27. text-align: center;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <div class="ims-box">
  33. <form action="<?php echo Yii::app()->createUrl('imsStore/report');?>">
  34. <div class="screen">
  35. <div class="diy_select select-type">
  36. <input type="hidden" id="itemsType" name="itemsType" class="diy_select_input" value="0">
  37. <div class="diy_select_txt pm_type_txt">品目类型</div>
  38. <div class="diy_select_btn"></div>
  39. <ul class="diy_select_list pm_type" style="display: none;">
  40. <li val="-1">品目类型</li>
  41. <li val="0">固定资产</li>
  42. <li val="1">原材料</li>
  43. <li val="2">产成品</li>
  44. <li val="3">低值易耗品</li>
  45. </ul>
  46. </div>
  47. <div class="diy_select select-item">
  48. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  49. <div class="diy_select_txt pm_name_txt">品目名称</div>
  50. <div class="diy_select_btn"></div>
  51. <ul class="diy_select_list pm_name" id="item_list" style="display: none;">
  52. <li val="0">品目名称</li>
  53. <!-- --><?php //foreach($itemList as $value):?>
  54. <!-- <li val="--><?php //echo $value['itemId'];?><!--">--><?php //echo $value['itemName'];?><!--</li>-->
  55. <!-- --><?php //endforeach;?>
  56. </ul>
  57. </div>
  58. <button type="submit" class="label-primary-s bth-s">查询</button>
  59. </div>
  60. </form>
  61. <div class="table-box">
  62. <table id="inventoryTable" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
  63. <thead>
  64. <tr>
  65. <th>品目编号</th>
  66. <th>品目名称</th>
  67. <th>单位</th>
  68. <th>库存数量</th>
  69. <th>可用库存</th>
  70. <th>冻结数量</th>
  71. <th>发货在途</th>
  72. <th>不合格品</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <?php if ($list):?>
  77. <?php foreach($list as $value):?>
  78. <tr>
  79. <td ><?php echo $value['itemCode'];?></td>
  80. <td ><?php echo $value['itemName'];?></td>
  81. <td><?php echo $value['unitName'];?></td>
  82. <td><?php echo $value['invNo'];?></td>
  83. <td><?php echo $value['invNo']-$value['freezeNo']-$value['doingNo']-$value['scrapNo'];?></td>
  84. <td><?php echo $value['freezeNo'];?></td>
  85. <td><?php echo $value['doingNo'];?></td>
  86. <td><?php echo $value['scrapNo'];?></td>
  87. </tr>
  88. <?php endforeach;?>
  89. <?php endif;?>
  90. </tbody>
  91. </table>
  92. <?php if ($page): ?>
  93. <div class="col-sm-12">
  94. <ul class="pagination">
  95. <?php
  96. $params = array();
  97. if (isset($_GET['itemsType']) && $_GET['itemsType']) {
  98. $params['itemsType'] = $_GET['itemsType'];
  99. }
  100. if (isset($_GET['itemId']) && $_GET['itemId']) {
  101. $params['itemId'] = $_GET['itemId'];
  102. }
  103. if (isset($_GET['page'])) {
  104. $params['page'] = $_GET['page'];
  105. } else {
  106. $params['page'] = 1;
  107. }
  108. echo formatPage($page, 'imsStore/report', $params)
  109. ?>
  110. </ul>
  111. </div>
  112. <?php endif; ?>
  113. </div>
  114. </div>
  115. <script src="/js/productset/jquery.min.js"></script>
  116. <script src="/js/ims/xsgl.js"></script>
  117. <?php include_once '_transferCommon.php'?>
  118. </body>
  119. </html>