123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <!--领用-->
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsStore/useOut',array('useOutType' => 'use')); ?>" method="get">
- <div class="screen clearfix">
- <div class="diy_select select-isUse">
- <!--<span>状态:</span>-->
- <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-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">
- <!--<span>品目名称:</span>-->
- <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_use_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>
- <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 class="sign-td">
- <?php if($outputDetails['isUse'] == 1 && $outputDetails['status'] == 1):?>
- <a class="signed-btn" imgUrl="<?php echo isset($outputDetails['signPic']) ? $outputDetails['signPic'] : ''; ?>">已签名</a>
- <?php elseif($outputDetails['isUse'] == 0 && $outputDetails['status'] == 1):?>
- <a class="sign-btn" url="<?php echo Yii::app()->params['qrcode'].'/lingyong?outId='.$outputDetails['outId'];?>">签名</a>
- <?php else:?>
- <span>签名</span>
- <?php endif;?>
- </td>
- <td><?php echo isset($outputDetails['outCode']) ? $outputDetails['outCode'] : ''; ?></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 isset($outputDetails['itemName']) ? $outputDetails['itemName'] : ''; ?></td>
- <td><?php echo isset($outputDetails['no']) ? $outputDetails['no'] : ''; ?></td>
- <td><?php echo date('Y/m/d', strtotime($outputDetails['outDate'])); ?></td>
- <td><?php echo $outputDetails['statusName']; ?></td>
- <td><?php echo $outputDetails['allotNo']; ?></td>
- <td>
- <?php if($outputDetails['isUse'] == 1 && $outputDetails['status'] == 1):?>
- <a class="view-order" href="<?php echo $this->createUrl('imsStore/grant', array('outId' => $outputDetails['outId'],'doType' => 'viewRelOrder','allotNo'=>$outputDetails['allotNo'])); ?>">发放订单</a>
- <?php endif;?>
- <?php if($outputDetails['itemType'] != 3):?>
- <a class="view-order" href="<?php echo $this->createUrl('imsStore/viewGrant', array('outId' => $outputDetails['outId'],'doType' => 'viewRelOrder','allotNo'=>$outputDetails['allotNo'])); ?>">查看</a>
- <?php endif;?>
- </td>
- <td><?php echo $outputDetails['reFoundNo']; ?></td>
- <td>
- <?php $processInfo = $outputDetails['processInfo'];?>
- <?php if(isset($processInfo['showReset']) && $processInfo['showReset']):?>
- <a href="<?php echo $this->createUrl('imsStore/useAddEdit', array('outId' => $outputDetails['outId'])); ?>" class="" outId="<?php echo $outputDetails['outId'] ?>">编辑</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/useView', array('outId' => $outputDetails['outId'])); ?>">查看</a>
- </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['orderNo']) && $_GET['orderNo']) {
- $params['orderNo'] = $_GET['orderNo'];
- }
- 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['itemType']) && $_GET['itemType']) {
- $params['itemType'] = $_GET['itemType'];
- }
- echo formatPage($pmDataList, 'imsStore/useOut', $params);
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <!-- 关联正式订单弹层 -->
- <div class="layer-relate rel-order-layer">
- <div class="layer-filter"></div>
- <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>可发放数量</th>
- <th class="valid-num"></th>
- <th>发放数量</th>
- <th><div class="out-count-div">
- <span class="out-stock-num">0</span>
- <span class="fr">发放给学生的品目数量</span>
- </div>
- </th>
- </tr>
- </thead>
- </table>
- <table class="order-table 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>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- <div class="col-sm-12">
- <ul class="pagination">
- </ul>
- </div>
- </div>
- <!-- 查看关联正式订单弹层 -->
- <div class="layer-relate view-rel-order">
- <div class="layer-filter clearfix" style="margin-bottom:0">
- <span class="fl">已发放数量:<em style="color:#f00" class="allotNo-num">100</em></span>
- <a href="javascript:;" class="fr continue-grant" style="color:#15ae68">继续发放</a>
- </div>
- <table class="order-table 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>
- </tr>
- </thead>
- <tbody class="send-num">
- </tbody>
- </table>
- <div style="margin-bottom:10px">明细订单</div>
- <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>明细订单号</th>
- <th>学生姓名</th>
- <th>班级</th>
- </tr>
- </thead>
- <tbody class="order-detail">
- </tbody>
- </table>
- <div class="col-sm-12">
- <ul class="pagination">
- </ul>
- </div>
- </div>
- <!--二维码-->
- <div class="qrcode-fram" style="display: none">
- <div id="qrcode" style="width:100px; height:100px;margin: 10px auto"></div>
- <p>扫描二维码,至移动浏览器签名</p>
- </div>
|