123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <!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/jquery.datetimepicker.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
- <style>
- .out-tit{text-align:center; line-height:30px;font-size:20px;color:#000;}
- .out-paper {padding:20px; margin:10px 20px; border:1px solid #ccc;}
- .out-paper td,.out-paper th{height:37px;text-align:center;}
- .out-paper th{background:#f5f5f5}
- .set-btns{margin:20px;}
- .set-btns a{width:100px;text-align:center;line-height:30px;border:1px solid #ccc;border-radius:3px;color:#333;cursor:pointer;}
- .set-btns a:hover{background:#13b773;color:#fff;}
- .hidden{display: none;}
- .diy_select{margin-bottom:10px;}
- </style>
- </head>
- <body>
- <div class="set-btns clearfix">
- <a href="javascript:;" class="fl return-pre">返回</a>
- <!-- <a href="javascript:;" class="fr">导出</a> -->
- </div>
- <?php if($data):?>
- <div class="out-paper">
- <div class="out-tit">领用出库单</div>
- <div class="diy_select">
- <div class="diy_select_txt">
- <?php echo isset($data['className'][$data['currClassId']])?$data['className'][$data['currClassId']]:'请选择班级';?>
- </div>
- <input type="hidden" id="goodsId" name="goodsId" class="diy_select_input" value="0">
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;">
- <?php
- $i = 0;
- $classId = 0;
- ?>
- <?php if($data['className']):?>
- <?php foreach ($data['className'] as $cId => $cName):?>
- <?php (!$i)&&$classId = $cId;?>
- <li val="<?php echo $cId;?>"><?php echo $cName;?></li>
- <?php endforeach;?>
- <?php else:?>
- <li val="2">暂无班级</li>
- <?php endif;?>
- </ul>
- </div>
- <table class="table table-bordered dataTable no-footer">
- <tr>
- <th width="200">学校</th>
- <td><?php echo $data['storageName'];?></td>
- <th width="200">品目</th>
- <td><?php echo isset($data['outputDetails'][0]) && isset($data['outputDetails'][0]['itemName']) ? $data['outputDetails'][0]['itemName'] : '';?></td>
- <th width="200">领用日期</th>
- <td><?php echo date('Y-m-d',strtotime($data['outDate']));?></td>
- </tr>
- </table>
- <?php if($data['_signDetails']):?>
- <div style="font-size:12px;margin-bottom: 25px;">
- <table style="margin-bottom:0" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <thead>
- <tr>
- <th width="200">财务订单号</th>
- <!-- <th width="200">年级</th>-->
- <th width="400">班级</th>
- <th>学生</th>
- <!-- <th>数量(份)</th>-->
- </tr>
- </thead>
- </table>
- <div style="margin-top:-1px; max-height: 400px;overflow-y: scroll;">
- <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <tbody id="active-submit-stu">
- <tr style="display: none">
- <th width="200"></th>
- <th width="400"></th>
- <th></th>
- </tr>
- <?php foreach ($data['_signDetails'] as $v):?>
- <tr class="tr_class_id_<?php echo $v['classId'];?> tr_class_id <?php echo ($v['classId'] == $data['currClassId'])?'':'hidden';?>">
- <td width="200"><?php echo $v['orderNo'];?></td>
- <td width="400"><?php echo $v['className'];?></td>
- <td><?php echo $v['studentName'];?></td>
- </tr>
- <?php endforeach;?>
- </tbody>
- </table>
- </div>
- </div>
- <?php endif;?>
- <table class="table table-bordered table-hover dataTable no-footer">
- <tr>
- <th rowspan="1" width="200">合计数量</th>
- <td><?php echo isset($data['outputDetails'][0]) && isset($data['outputDetails'][0]['no']) ? $data['outputDetails'][0]['no'] : 0;?></td>
- </tr>
- </table>
- <?php if($data['signDetails']):?>
- <?php foreach ($data['signDetails'] as $info):?>
- <table class="table table-bordered table-hover dataTable no-footer table_class_id_<?php echo $info['clazzId'];?> <?php echo ($info['clazzId'] == $data['currClassId'])?'':'hidden';?> table_class_id">
- <tr>
- <th width="200">签字</th>
- <td style="height:100px;">
- <img width="100" src="<?php echo $info['signUrl'];?>">
- </td>
- </tr>
- <tr>
- <th>职务</th>
- <td><?php echo $info['signRole'];?></td>
- </tr>
- <tr>
- <th>电话</th>
- <td><?php echo $info['signPhone'];?></td>
- </tr>
- </table>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- <?php endif;?>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/ims/jquery.datetimepicker.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script>
- $(document).ready(function () {
- //筛选班级
- $(".diy_select_list>li").click(function () {
- var classId = $(this).attr('val');
- if(classId){
- $(".tr_class_id").addClass('hidden');
- $(".tr_class_id_"+classId).removeClass('hidden');
- $(".table_class_id").addClass('hidden');
- $(".table_class_id_"+classId).removeClass('hidden');
- }
- });
- //后退
- $(".return-pre").click(function () {
- history.go(-1);
- });
- })
- </script>
- </body>
- </html>
|