123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <!--退库-->
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsStore/useOut',array('useOutType' => 'out')); ?>" method="get">
- <div class="screen clearfix">
- <div class="diy_select select-isUse">
- <input type="hidden" id="isUse" name="isUse" class="diy_select_input" value="0">
- <div class="diy_select_txt pm_status_txt">请选择状态</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list pm_status" style="display: none;">
- <li val="0">请选择状态</li>
- <li val="1">审核中</li>
- <li val="2">审核通过</li>
- <li val="3">审核驳回</li>
- <li val="4">已取消</li>
- </ul>
- </div>
- <div class="diy_select select-inputStatus">
- <!--<span>品目类型:</span>-->
- <input type="hidden" id="inputStatus" name="inputStatus" 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" style="display: none;">
- <li val="0">请选择退库状态</li>
- <li val="1">待确定</li>
- <li val="2">已确定</li>
- </ul>
- </div>
- <div class="diy_select select-itemType">
- <!--<span>品目类型:</span>-->
- <input type="hidden" id="itemType" name="itemType" 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" style="display: none;">
- <li val="0">请选择品目类型</li>
- <li val="2">产成品</li>
- <li val="3">低值易耗品</li>
- </ul>
- </div>
- <div class="diy_select select-itemId">
- <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" style="display: none;">
- <li val="0">请选择品目名称</li>
- <?php foreach ($itemList as $key => $value): ?>
- <li val="<?php echo $value['itemId']; ?>"><?php echo $value['itemName']; ?></li>
- <?php endforeach; ?>
- </ul>
- </div>
- <div class="date">
- <span>退库时间:</span>
- <input type="text" readonly name="startDate" class="some_class" value="" id="some_class_1"/> --
- <input type="text" readonly name="endDate" class="some_class" value="" id="some_class_2"/>
- </div>
- <button type="submit" class="label-primary-s bth-s">搜索</button>
- <button type="button" class="label-primary-s bth-s add_out_order">新增退库单</button>
- </div>
- </form>
- <div class="table-box">
- <table id="record-table"
- 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 (isset($pmDataList['list']) && $pmDataList['list']): ?>
- <?php foreach ($pmDataList['list'] as $key => $outputDetails):?>
- <tr>
- <td><?php echo isset($outputDetails['inCode']) ? $outputDetails['inCode'] : ''; ?></td>
- <td><?php echo isset($outputDetails['inTitle']) ? $outputDetails['inTitle'] : ''; ?></td>
- <td>
- <?php if(isset($outputDetails['itemType'])):?>
- <?php if($outputDetails['itemType'] == 2):?>
- 产成品
- <?php elseif($outputDetails['itemType'] == 3):?>
- 低值易耗品
- <?php endif;?>
- <?php endif;?>
- </td>
- <td><?php echo date('Y/m/d', strtotime($outputDetails['inDate'])); ?></td>
- <td><?php echo isset($outputDetails['userName'])?$outputDetails['userName']:''; ?></td>
- <td><?php echo $outputDetails['statusName']; ?></td>
- <td><?php echo $outputDetails['inputStatusName']; ?></td>
- <td>
- <?php $processInfo = $outputDetails['processInfo'];?>
- <?php if(isset($processInfo['showReset']) && $processInfo['showReset']):?>
- <a href="<?php echo $this->createUrl('imsStore/outAddEdit', array('outId' => $outputDetails['inId'])); ?>" class="" outId="<?php echo $outputDetails['inId'] ?>">编辑</a>
- <?php endif;?>
- <?php if(isset($processInfo['showDelete']) && $processInfo['showDelete']):?>
- <a href="javascript:;" class="del-stop-btn" doType="del" businessKey="<?php echo $processInfo['businessKey'] ?>">删除</a>
- <?php endif;?>
- <?php if(isset($processInfo['showStop']) && $processInfo['showStop']):?>
- <a href="javascript:;" class="del-stop-btn" doType="stop" businessKey="<?php echo $processInfo['businessKey'] ?>">中止</a>
- <?php endif;?>
- <?php if(isset($processInfo['showUrge']) && $processInfo['showUrge']):?>
- <a href="javascript:;" class="btn-urge" businessKey="<?php echo $processInfo['businessKey'] ?>">催办</a>
- <?php endif;?>
- <a href="<?php echo $this->createUrl('imsStore/outView', array('outId' => $outputDetails['inId'])); ?>">查看</a>
- <?php if(!$outputDetails['inputStatus']):?>
- <a href="javascript:;" class="confirm-out" outId="<?php echo $outputDetails['inId'] ?>">确认退库</a>
- <?php endif;?>
- </td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($pmDataList): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['isUse']) && $_GET['isUse']) {
- $params['isUse'] = $_GET['isUse'];
- }
- if (isset($_GET['itemId']) && $_GET['itemId']) {
- $params['itemId'] = $_GET['itemId'];
- }
- if (isset($_GET['startDate']) && $_GET['startDate']) {
- $params['startDate'] = $_GET['startDate'];
- }
- if (isset($_GET['endDate']) && $_GET['endDate']) {
- $params['endDate'] = $_GET['endDate'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- } else {
- $params['page'] = 1;
- }
- if (isset($_GET['inputStatus']) && $_GET['inputStatus']) {
- $params['inputStatus'] = $_GET['inputStatus'];
- }
- if (isset($_GET['itemType']) && $_GET['itemType']) {
- $params['itemType'] = $_GET['itemType'];
- }
- $params['useOutType'] = 'out';
- echo formatPage($pmDataList, 'imsStore/useOut', $params);
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
|