123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>库存报表</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link href="/css/ims/base.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css" />
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css" />
- <style>
- .ims-box {
- margin: 20px;
- }
- .screen>div {
- margin-right: 30px;
- }
- .screen button {
- padding: 4px 12px;
- }
- .table-box {
- margin-top: 30px;
- }
- .table-box table,
- .table-box table th {
- text-align: center;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsStore/report');?>">
- <div class="screen">
- <div class="diy_select select-type">
- <input type="hidden" id="itemsType" name="itemsType" class="diy_select_input" value="0">
- <div class="diy_select_txt pm_type_txt">品目类型</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list pm_type" style="display: none;">
- <li val="-1">品目类型</li>
- <li val="0">固定资产</li>
- <li val="1">原材料</li>
- <li val="2">产成品</li>
- <li val="3">低值易耗品</li>
- </ul>
- </div>
- <div class="diy_select select-item">
- <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
- <div class="diy_select_txt pm_name_txt">品目名称</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list pm_name" id="item_list" style="display: none;">
- <li val="0">品目名称</li>
- <!-- --><?php //foreach($itemList as $value):?>
- <!-- <li val="--><?php //echo $value['itemId'];?><!--">--><?php //echo $value['itemName'];?><!--</li>-->
- <!-- --><?php //endforeach;?>
- </ul>
- </div>
- <button type="submit" class="label-primary-s bth-s">查询</button>
- </div>
- </form>
- <div class="table-box">
- <table id="inventoryTable" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
- <thead>
- <tr>
- <th>品目编号</th>
- <th>品目名称</th>
- <th>单位</th>
- <th>库存数量</th>
- <th>可用库存</th>
- <th>冻结数量</th>
- <th>发货在途</th>
- <th>不合格品</th>
- </tr>
- </thead>
- <tbody>
- <?php if ($list):?>
- <?php foreach($list as $value):?>
- <tr>
- <td ><?php echo $value['itemCode'];?></td>
- <td ><?php echo $value['itemName'];?></td>
- <td><?php echo $value['unitName'];?></td>
- <td><?php echo $value['invNo'];?></td>
- <td><?php echo $value['invNo']-$value['freezeNo']-$value['doingNo']-$value['scrapNo'];?></td>
- <td><?php echo $value['freezeNo'];?></td>
- <td><?php echo $value['doingNo'];?></td>
- <td><?php echo $value['scrapNo'];?></td>
- </tr>
- <?php endforeach;?>
- <?php endif;?>
- </tbody>
- </table>
- <?php if ($page): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['itemsType']) && $_GET['itemsType']) {
- $params['itemsType'] = $_GET['itemsType'];
- }
- if (isset($_GET['itemId']) && $_GET['itemId']) {
- $params['itemId'] = $_GET['itemId'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- } else {
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsStore/report', $params)
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <?php include_once '_transferCommon.php'?>
- </body>
- </html>
|