_outList.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!--退库-->
  2. <div class="ims-box">
  3. <form action="<?php echo Yii::app()->createUrl('imsStore/useOut',array('useOutType' => 'out')); ?>" method="get">
  4. <div class="screen clearfix">
  5. <div class="diy_select select-isUse">
  6. <input type="hidden" id="isUse" name="isUse" class="diy_select_input" value="0">
  7. <div class="diy_select_txt pm_status_txt">请选择状态</div>
  8. <div class="diy_select_btn"></div>
  9. <ul class="diy_select_list pm_status" style="display: none;">
  10. <li val="0">请选择状态</li>
  11. <li val="1">审核中</li>
  12. <li val="2">审核通过</li>
  13. <li val="3">审核驳回</li>
  14. <li val="4">已取消</li>
  15. </ul>
  16. </div>
  17. <div class="diy_select select-inputStatus">
  18. <!--<span>品目类型:</span>-->
  19. <input type="hidden" id="inputStatus" name="inputStatus" class="diy_select_input" value="0">
  20. <div class="diy_select_txt pm_name_txt">请选择退库状态</div>
  21. <div class="diy_select_btn"></div>
  22. <ul class="diy_select_list pm_name" style="display: none;">
  23. <li val="0">请选择退库状态</li>
  24. <li val="1">待确定</li>
  25. <li val="2">已确定</li>
  26. </ul>
  27. </div>
  28. <div class="diy_select select-itemType">
  29. <!--<span>品目类型:</span>-->
  30. <input type="hidden" id="itemType" name="itemType" class="diy_select_input" value="0">
  31. <div class="diy_select_txt pm_name_txt">请选择品目类型</div>
  32. <div class="diy_select_btn"></div>
  33. <ul class="diy_select_list pm_name" style="display: none;">
  34. <li val="0">请选择品目类型</li>
  35. <li val="2">产成品</li>
  36. <li val="3">低值易耗品</li>
  37. </ul>
  38. </div>
  39. <div class="diy_select select-itemId">
  40. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  41. <div class="diy_select_txt pm_name_txt">请选择品目名称</div>
  42. <div class="diy_select_btn"></div>
  43. <ul class="diy_select_list pm_name" style="display: none;">
  44. <li val="0">请选择品目名称</li>
  45. <?php foreach ($itemList as $key => $value): ?>
  46. <li val="<?php echo $value['itemId']; ?>"><?php echo $value['itemName']; ?></li>
  47. <?php endforeach; ?>
  48. </ul>
  49. </div>
  50. <div class="date">
  51. <span>退库时间:</span>
  52. <input type="text" readonly name="startDate" class="some_class" value="" id="some_class_1"/> --
  53. <input type="text" readonly name="endDate" class="some_class" value="" id="some_class_2"/>
  54. </div>
  55. <button type="submit" class="label-primary-s bth-s">搜索</button>
  56. <button type="button" class="label-primary-s bth-s add_out_order">新增退库单</button>
  57. </div>
  58. </form>
  59. <div class="table-box">
  60. <table id="record-table"
  61. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  62. style="font-size:12px">
  63. <thead>
  64. <tr>
  65. <th>退库编号</th>
  66. <th>退库标题</th>
  67. <th>退库品目类型</th>
  68. <th>退库时间</th>
  69. <th>退库人</th>
  70. <th>审批状态</th>
  71. <th>退库状态</th>
  72. <th>操作</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <?php if (isset($pmDataList['list']) && $pmDataList['list']): ?>
  77. <?php foreach ($pmDataList['list'] as $key => $outputDetails):?>
  78. <tr>
  79. <td><?php echo isset($outputDetails['inCode']) ? $outputDetails['inCode'] : ''; ?></td>
  80. <td><?php echo isset($outputDetails['inTitle']) ? $outputDetails['inTitle'] : ''; ?></td>
  81. <td>
  82. <?php if(isset($outputDetails['itemType'])):?>
  83. <?php if($outputDetails['itemType'] == 2):?>
  84. 产成品
  85. <?php elseif($outputDetails['itemType'] == 3):?>
  86. 低值易耗品
  87. <?php endif;?>
  88. <?php endif;?>
  89. </td>
  90. <td><?php echo date('Y/m/d', strtotime($outputDetails['inDate'])); ?></td>
  91. <td><?php echo isset($outputDetails['userName'])?$outputDetails['userName']:''; ?></td>
  92. <td><?php echo $outputDetails['statusName']; ?></td>
  93. <td><?php echo $outputDetails['inputStatusName']; ?></td>
  94. <td>
  95. <?php $processInfo = $outputDetails['processInfo'];?>
  96. <?php if(isset($processInfo['showReset']) && $processInfo['showReset']):?>
  97. <a href="<?php echo $this->createUrl('imsStore/outAddEdit', array('outId' => $outputDetails['inId'])); ?>" class="" outId="<?php echo $outputDetails['inId'] ?>">编辑</a>
  98. <?php endif;?>
  99. <?php if(isset($processInfo['showDelete']) && $processInfo['showDelete']):?>
  100. <a href="javascript:;" class="del-stop-btn" doType="del" businessKey="<?php echo $processInfo['businessKey'] ?>">删除</a>
  101. <?php endif;?>
  102. <?php if(isset($processInfo['showStop']) && $processInfo['showStop']):?>
  103. <a href="javascript:;" class="del-stop-btn" doType="stop" businessKey="<?php echo $processInfo['businessKey'] ?>">中止</a>
  104. <?php endif;?>
  105. <?php if(isset($processInfo['showUrge']) && $processInfo['showUrge']):?>
  106. <a href="javascript:;" class="btn-urge" businessKey="<?php echo $processInfo['businessKey'] ?>">催办</a>
  107. <?php endif;?>
  108. <a href="<?php echo $this->createUrl('imsStore/outView', array('outId' => $outputDetails['inId'])); ?>">查看</a>
  109. <?php if(!$outputDetails['inputStatus']):?>
  110. <a href="javascript:;" class="confirm-out" outId="<?php echo $outputDetails['inId'] ?>">确认退库</a>
  111. <?php endif;?>
  112. </td>
  113. </tr>
  114. <?php endforeach; ?>
  115. <?php endif; ?>
  116. </tbody>
  117. </table>
  118. <?php if ($pmDataList): ?>
  119. <div class="col-sm-12">
  120. <ul class="pagination">
  121. <?php
  122. $params = array();
  123. if (isset($_GET['isUse']) && $_GET['isUse']) {
  124. $params['isUse'] = $_GET['isUse'];
  125. }
  126. if (isset($_GET['itemId']) && $_GET['itemId']) {
  127. $params['itemId'] = $_GET['itemId'];
  128. }
  129. if (isset($_GET['startDate']) && $_GET['startDate']) {
  130. $params['startDate'] = $_GET['startDate'];
  131. }
  132. if (isset($_GET['endDate']) && $_GET['endDate']) {
  133. $params['endDate'] = $_GET['endDate'];
  134. }
  135. if (isset($_GET['page'])) {
  136. $params['page'] = $_GET['page'];
  137. } else {
  138. $params['page'] = 1;
  139. }
  140. if (isset($_GET['inputStatus']) && $_GET['inputStatus']) {
  141. $params['inputStatus'] = $_GET['inputStatus'];
  142. }
  143. if (isset($_GET['itemType']) && $_GET['itemType']) {
  144. $params['itemType'] = $_GET['itemType'];
  145. }
  146. $params['useOutType'] = 'out';
  147. echo formatPage($pmDataList, 'imsStore/useOut', $params);
  148. ?>
  149. </ul>
  150. </div>
  151. <?php endif; ?>
  152. </div>
  153. </div>