sign.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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/jquery.datetimepicker.css"/>
  12. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  13. <style>
  14. .out-tit{text-align:center; line-height:30px;font-size:20px;color:#000;}
  15. .out-paper {padding:20px; margin:10px 20px; border:1px solid #ccc;}
  16. .out-paper td,.out-paper th{height:37px;text-align:center;}
  17. .out-paper th{background:#f5f5f5}
  18. .set-btns{margin:20px;}
  19. .set-btns a{width:100px;text-align:center;line-height:30px;border:1px solid #ccc;border-radius:3px;color:#333;cursor:pointer;}
  20. .set-btns a:hover{background:#13b773;color:#fff;}
  21. .hidden{display: none;}
  22. .diy_select{margin-bottom:10px;}
  23. </style>
  24. </head>
  25. <body>
  26. <div class="set-btns clearfix">
  27. <a href="javascript:;" class="fl return-pre">返回</a>
  28. <!-- <a href="javascript:;" class="fr">导出</a> -->
  29. </div>
  30. <?php if($data):?>
  31. <div class="out-paper">
  32. <div class="out-tit">领用出库单</div>
  33. <div class="diy_select">
  34. <div class="diy_select_txt">
  35. <?php echo isset($data['className'][$data['currClassId']])?$data['className'][$data['currClassId']]:'请选择班级';?>
  36. </div>
  37. <input type="hidden" id="goodsId" name="goodsId" class="diy_select_input" value="0">
  38. <div class="diy_select_btn"></div>
  39. <ul class="diy_select_list" style="display: none;">
  40. <?php
  41. $i = 0;
  42. $classId = 0;
  43. ?>
  44. <?php if($data['className']):?>
  45. <?php foreach ($data['className'] as $cId => $cName):?>
  46. <?php (!$i)&&$classId = $cId;?>
  47. <li val="<?php echo $cId;?>"><?php echo $cName;?></li>
  48. <?php endforeach;?>
  49. <?php else:?>
  50. <li val="2">暂无班级</li>
  51. <?php endif;?>
  52. </ul>
  53. </div>
  54. <table class="table table-bordered dataTable no-footer">
  55. <tr>
  56. <th width="200">学校</th>
  57. <td><?php echo $data['storageName'];?></td>
  58. <th width="200">品目</th>
  59. <td><?php echo isset($data['outputDetails'][0]) && isset($data['outputDetails'][0]['itemName']) ? $data['outputDetails'][0]['itemName'] : '';?></td>
  60. <th width="200">领用日期</th>
  61. <td><?php echo date('Y-m-d',strtotime($data['outDate']));?></td>
  62. </tr>
  63. </table>
  64. <?php if($data['_signDetails']):?>
  65. <div style="font-size:12px;margin-bottom: 25px;">
  66. <table style="margin-bottom:0" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  67. <thead>
  68. <tr>
  69. <th width="200">财务订单号</th>
  70. <!-- <th width="200">年级</th>-->
  71. <th width="400">班级</th>
  72. <th>学生</th>
  73. <!-- <th>数量(份)</th>-->
  74. </tr>
  75. </thead>
  76. </table>
  77. <div style="margin-top:-1px; max-height: 400px;overflow-y: scroll;">
  78. <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  79. <tbody id="active-submit-stu">
  80. <tr style="display: none">
  81. <th width="200"></th>
  82. <th width="400"></th>
  83. <th></th>
  84. </tr>
  85. <?php foreach ($data['_signDetails'] as $v):?>
  86. <tr class="tr_class_id_<?php echo $v['classId'];?> tr_class_id <?php echo ($v['classId'] == $data['currClassId'])?'':'hidden';?>">
  87. <td width="200"><?php echo $v['orderNo'];?></td>
  88. <td width="400"><?php echo $v['className'];?></td>
  89. <td><?php echo $v['studentName'];?></td>
  90. </tr>
  91. <?php endforeach;?>
  92. </tbody>
  93. </table>
  94. </div>
  95. </div>
  96. <?php endif;?>
  97. <table class="table table-bordered table-hover dataTable no-footer">
  98. <tr>
  99. <th rowspan="1" width="200">合计数量</th>
  100. <td><?php echo isset($data['outputDetails'][0]) && isset($data['outputDetails'][0]['no']) ? $data['outputDetails'][0]['no'] : 0;?></td>
  101. </tr>
  102. </table>
  103. <?php if($data['signDetails']):?>
  104. <?php foreach ($data['signDetails'] as $info):?>
  105. <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">
  106. <tr>
  107. <th width="200">签字</th>
  108. <td style="height:100px;">
  109. <img width="100" src="<?php echo $info['signUrl'];?>">
  110. </td>
  111. </tr>
  112. <tr>
  113. <th>职务</th>
  114. <td><?php echo $info['signRole'];?></td>
  115. </tr>
  116. <tr>
  117. <th>电话</th>
  118. <td><?php echo $info['signPhone'];?></td>
  119. </tr>
  120. </table>
  121. <?php endforeach;?>
  122. <?php endif;?>
  123. </div>
  124. <?php endif;?>
  125. <script src="/js/productset/jquery.min.js"></script>
  126. <script src="/js/ims/jquery.datetimepicker.js"></script>
  127. <script src="/js/ims/xsgl.js"></script>
  128. <script src="/js/layer/layer.js"></script>
  129. <script>
  130. $(document).ready(function () {
  131. //筛选班级
  132. $(".diy_select_list>li").click(function () {
  133. var classId = $(this).attr('val');
  134. if(classId){
  135. $(".tr_class_id").addClass('hidden');
  136. $(".tr_class_id_"+classId).removeClass('hidden');
  137. $(".table_class_id").addClass('hidden');
  138. $(".table_class_id_"+classId).removeClass('hidden');
  139. }
  140. });
  141. //后退
  142. $(".return-pre").click(function () {
  143. history.go(-1);
  144. });
  145. })
  146. </script>
  147. </body>
  148. </html>