sign-list-all.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>纵横计量支付系统</title>
  6. <meta name=description content=计量支付>
  7. <meta name=copyright content=smartcost.com.cn>
  8. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  9. <link rel=stylesheet href="{{rootUrl}}global/css/bootstrap.css">
  10. <link rel=stylesheet href={{rootUrl}}global/css/style.css>
  11. <script src={{rootUrl}}global/js/jquery-1.9.1.min.js></script>
  12. <script src={{rootUrl}}global/js/bootstrap.js></script>
  13. <script src={{rootUrl}}global/js/jl.js></script>
  14. </head>
  15. <body>
  16. <!-- include "top" -->
  17. <div class="wrapContent">
  18. <!-- include "left" -->
  19. <div class="mainContainer">
  20. <!--内容-->
  21. <div class="mainContent">
  22. <div class="title clearfix">
  23. <h1><a href="/sign/index" title="返回"><span class="closePanel" aria-hidden="true"
  24. data-icon="Z"></span></a>&nbsp;所有报表</h1>
  25. </div>
  26. <div class="project">
  27. <div class="proSection">
  28. <ul class="nav nav-pills">
  29. <li>
  30. <select id="itemlist">
  31. <option value="0">请选择项目</option>
  32. <!-- if !empty({{itemlist}}) -->
  33. <!-- loop itemlist -->
  34. <option value="{{itemlist' value.project}}" <!-- if {{project}} == {{itemlist' value.project}} -->selected<!-- endif --> >{{itemlist' value.pname}}</option>
  35. <!-- endloop -->
  36. <!-- endif -->
  37. </select>&nbsp;
  38. </li>
  39. <li>
  40. <select id="tenderlist">
  41. <option value="0">请选择标段</option>
  42. <!-- if !empty({{tenderlist}}) -->
  43. <!-- loop tenderlist -->
  44. <option value="{{tenderlist' value.tender}}" <!-- if {{tender}} == {{tenderlist' value.tender}} -->selected<!-- endif -->>{{tenderlist' value.pmname}}</option>
  45. <!-- endloop -->
  46. <!-- endif -->
  47. </select>&nbsp;
  48. </li>
  49. <li>
  50. <select id="phasenolist">
  51. <option value="0">请选择期数</option>
  52. <!-- if !empty({{phasenolist}}) -->
  53. <!-- loop phasenolist -->
  54. <option value="{{phasenolist' value.phaseno}}" <!-- if {{phaseno}} == {{phasenolist' value.phaseno}} -->selected<!-- endif -->>第{{ToChinaseNum(phasenolist' value.numpname)}}期</option>
  55. <!-- endloop -->
  56. <!-- endif -->
  57. </select>&nbsp;
  58. </li>
  59. <li>
  60. <div class="checkbox"><label>&nbsp;<input type="checkbox" id="nosign" <!-- if {{nosign}} == 1 -->checked<!-- endif -->>未发起签署报表</label></div>
  61. </li>
  62. </ul>
  63. <table class="table">
  64. <thead>
  65. <tr>
  66. <th width="40%">报表名</th>
  67. <th width="20%">项目-标段-期数</th>
  68. <th width="10%">生成</th>
  69. <th width="10%">发起</th>
  70. <th width="10%">状态</th>
  71. <th width="10%">操作</th>
  72. </tr>
  73. </thead>
  74. <tbody>
  75. <!-- if !empty({{list}}) -->
  76. <!-- loop list -->
  77. <tr>
  78. <td width="">{{list' value.name}}</td>
  79. <td>{{list' value.project}}-{{list' value.tender}}-第{{ToChinaseNum(list' value.phaseno)}}期</td>
  80. <td>{{list' value.ownname}}<br>{{formatDate(list' value.intime,'Y-m-d')}}</td>
  81. <td><!-- if !empty({{list' value.auditname}}) -->{{list' value.auditname}}<!-- endif --><br><!-- if !empty({{list' value.aintime}}) -->{{formatDate(list' value.aintime,'Y-m-d')}}<!-- endif --></td>
  82. <td><!-- if {{list' value.status}} == 'checked' --><span class="colGreen">完成</span><br>{{formatDate(list' value.sintime,'Y-m-d')}}<!-- elseif {{list' value.status}} == 'checking' --><span class="colOrange">签署中</span><br><!-- elseif {{list' value.status}} == 'uncheck' -->未发起签署<!-- endif --></td>
  83. <td width=""><a class="btn btn-small" href="/sign/view/{{list' value.sid}}">查看报表</a><!-- if {{list' value.status}} == 'uncheck' -->&nbsp;<a class="btn btn-danger btn-small delbtn" href="#del" data-toggle="modal" delid="{{list' value.sid}}">删除</a><!-- endif --></td>
  84. </tr>
  85. <!-- endloop -->
  86. <!-- endif -->
  87. </tbody>
  88. </table>
  89. <div class="pagination">
  90. <ul>
  91. {{pager}}
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <!--内容-->
  98. </div>
  99. </div>
  100. <div id="del" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
  101. <div class="modal-dialog">
  102. <div class="modal-content">
  103. <div class="modal-body">
  104. <h4>确认删除该报表?</h4>
  105. </div>
  106. <div class="modal-footer">
  107. <input type="hidden" id="delid" value="">
  108. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  109. <button type="button" class="btn btn-danger" id="delbtn2">确认删除</button>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <script type="text/javascript">autoFlashHeight();</script>
  115. <script>
  116. $(function(){
  117. $('#itemlist').change(function(){
  118. var url = '/sign/list';
  119. if($(this).val() != 0){
  120. url += '/project/'+$(this).val();
  121. }
  122. if($('#nosign').is(':checked')){
  123. url += '/nosign';
  124. }
  125. window.location.href = url;
  126. });
  127. $('#tenderlist').change(function(){
  128. var url = '/sign/list/project/'+$('#itemlist').val();
  129. if($(this).val() != 0){
  130. url += '/tender/'+$(this).val();
  131. }
  132. if($('#nosign').is(':checked')){
  133. url += '/nosign';
  134. }
  135. window.location.href = url;
  136. });
  137. $('#phasenolist').change(function(){
  138. var url = '/sign/list/project/'+$('#itemlist').val()+'/tender/'+$('#tenderlist').val();
  139. if($(this).val() != 0){
  140. url += '/phaseno/'+$(this).val();
  141. }
  142. if($('#nosign').is(':checked')){
  143. url += '/nosign';
  144. }
  145. window.location.href = url;
  146. });
  147. $('#nosign').change(function(){
  148. var url = '/sign/list';
  149. if($('#itemlist').val() != 0){
  150. url += '/project/'+$('#itemlist').val();
  151. }
  152. if($('#tenderlist').val() != 0){
  153. url += '/tender/'+$('#tenderlist').val();
  154. }
  155. if($('#phasenolist').val() != 0){
  156. url += '/phaseno/'+$('#phasenolist').val();
  157. }
  158. if($(this).is(':checked')){
  159. url += '/nosign';
  160. }
  161. window.location.href = url;
  162. });
  163. $('.delbtn').on('click',function(){
  164. $('#delid').val($(this).attr('delid'));
  165. });
  166. $('#delbtn2').click(function(){
  167. var id = $('#delid').val();
  168. $.ajax({
  169. type: 'post',
  170. url: '/sign/list',
  171. data:{delid:id},
  172. dataType: 'json',
  173. success: function(data){
  174. if(data.code == 200){
  175. var url = '/sign/list';
  176. if($('#itemlist').val() != 0){
  177. url += '/project/'+$('#itemlist').val();
  178. }
  179. if($('#tenderlist').val() != 0){
  180. url += '/tender/'+$('#tenderlist').val();
  181. }
  182. if($('#phasenolist').val() != 0){
  183. url += '/phaseno/'+$('#phasenolist').val();
  184. }
  185. if($('#nosign').is(':checked')){
  186. url += '/nosign';
  187. }
  188. window.location.href = url;
  189. }else{
  190. alert('删除出错');
  191. }
  192. }
  193. })
  194. })
  195. })
  196. </script>
  197. </body>