_cancleList.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!--退库-->
  2. <div class="ims-box">
  3. <form action="<?php echo Yii::app()->createUrl('imsStore/useOut',array('useOutType' => 'cancle')); ?>" method="get">
  4. <div class="screen clearfix">
  5. <div class="date">
  6. 订单号:<input type="text" id="inCode" name="inCode" class="inCode" value=""/>
  7. </div>
  8. <div class="diy_select select-itemId">
  9. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  10. <div class="diy_select_txt pm_name_txt">请选择品目名称</div>
  11. <div class="diy_select_btn"></div>
  12. <ul class="diy_select_list pm_name" style="display: none;">
  13. <li val="0">请选择品目名称</li>
  14. <?php foreach ($itemList as $key => $value): ?>
  15. <li val="<?php echo $value['itemId']; ?>"><?php echo $value['itemName']; ?></li>
  16. <?php endforeach; ?>
  17. </ul>
  18. </div>
  19. <div class="date">
  20. <span>退库时间:</span>
  21. <input type="text" readonly name="startDate" class="some_class" value="" id="some_class_1"/> --
  22. <input type="text" readonly name="endDate" class="some_class" value="" id="some_class_2"/>
  23. </div>
  24. <button type="submit" class="label-primary-s bth-s">搜索</button>
  25. <button type="button" class="label-primary-s bth-s cancle_out">取消发放</button>
  26. </div>
  27. </form>
  28. <div class="table-box">
  29. <table id="record-table"
  30. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  31. style="font-size:12px">
  32. <thead>
  33. <tr>
  34. <th>品目名称</th>
  35. <th>取消数量</th>
  36. <th>退库学生名单</th>
  37. <th>财务订单</th>
  38. <th>操作</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <?php if (isset($pmDataList['list']) && $pmDataList['list']): ?>
  43. <?php foreach ($pmDataList['list'] as $key => $input):?>
  44. <tr>
  45. <td><?php echo $input['itemName']; ?></td>
  46. <td><?php echo $input['studentNo']; ?></td>
  47. <td><?php echo isset($input['studentNo']) ? $input['studentNo'] : ''; ?></td>
  48. <td><?php echo isset($input['orderNo']) ? $input['orderNo'] : ''; ?></td>
  49. <td><a href="<?php echo $this->createUrl('imsStore/deliveryOutView', array('inId' => $input['coId'])); ?>" class="get-btn" inId="<?php echo $input['coId'] ?>">查看</a></td>
  50. </tr>
  51. <?php endforeach; ?>
  52. <?php endif; ?>
  53. </tbody>
  54. </table>
  55. <?php if ($pmDataList): ?>
  56. <div class="col-sm-12">
  57. <ul class="pagination">
  58. <?php
  59. $params = array();
  60. if (isset($_GET['isUse']) && $_GET['isUse']) {
  61. $params['isUse'] = $_GET['isUse'];
  62. }
  63. if (isset($_GET['itemId']) && $_GET['itemId']) {
  64. $params['itemId'] = $_GET['itemId'];
  65. }
  66. if (isset($_GET['inCode']) && $_GET['inCode']) {
  67. $params['inCode'] = $_GET['inCode'];
  68. }
  69. if (isset($_GET['startDate']) && $_GET['startDate']) {
  70. $params['startDate'] = $_GET['startDate'];
  71. }
  72. if (isset($_GET['endDate']) && $_GET['endDate']) {
  73. $params['endDate'] = $_GET['endDate'];
  74. }
  75. if (isset($_GET['page'])) {
  76. $params['page'] = $_GET['page'];
  77. } else {
  78. $params['page'] = 1;
  79. }
  80. $params['useOutType'] = 'out';
  81. echo formatPage($pmDataList, 'imsStore/useOut', $params);
  82. ?>
  83. </ul>
  84. </div>
  85. <?php endif; ?>
  86. </div>
  87. </div>
  88. <!-- 关联正式订单弹层 -->
  89. <div class="layer-relate" style="display: none">
  90. <div class="layer-filter"></div>
  91. <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  92. style="font-size:12px">
  93. <thead>
  94. <tr>
  95. <th>班级</th>
  96. <th>学生姓名</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. </tbody>
  101. </table>
  102. <div class="col-sm-12">
  103. <a href="#" class="prev">上一页</a>
  104. <span class="now_page">1</span>/<span class="last_page">1</span>
  105. <a href="#" class="next">下一页</a>
  106. <input type="hidden" name="inId" value="0">
  107. </div>
  108. </div>