sign-list-my_create.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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" data-icon="Z"></span></a>&nbsp;我发起的签署</h1>
  24. </div>
  25. <div class="project">
  26. <div class="proSection">
  27. <ul class="nav nav-pills">
  28. <li>
  29. <select id="itemlist">
  30. <option value="0">请选择项目</option>
  31. <!-- if !empty({{itemlist}}) -->
  32. <!-- loop itemlist -->
  33. <option value="{{itemlist' value.project}}" <!-- if {{project}} == {{itemlist' value.project}} -->selected<!-- endif --> >{{itemlist' value.pname}}</option>
  34. <!-- endloop -->
  35. <!-- endif -->
  36. </select>&nbsp;
  37. </li>
  38. <li>
  39. <select id="tenderlist">
  40. <option value="0">请选择标段</option>
  41. <!-- if !empty({{tenderlist}}) -->
  42. <!-- loop tenderlist -->
  43. <option value="{{tenderlist' value.tender}}" <!-- if {{tender}} == {{tenderlist' value.tender}} -->selected<!-- endif -->>{{tenderlist' value.pmname}}</option>
  44. <!-- endloop -->
  45. <!-- endif -->
  46. </select>&nbsp;
  47. </li>
  48. <li>
  49. <select id="phasenolist">
  50. <option value="0">请选择期数</option>
  51. <!-- if !empty({{phasenolist}}) -->
  52. <!-- loop phasenolist -->
  53. <option value="{{phasenolist' value.phaseno}}" <!-- if {{phaseno}} == {{phasenolist' value.phaseno}} -->selected<!-- endif -->>第{{ToChinaseNum(phasenolist' value.numpname)}}期</option>
  54. <!-- endloop -->
  55. <!-- endif -->
  56. </select>&nbsp;
  57. </li>
  58. </ul>
  59. <table class="table">
  60. <thead>
  61. <tr><th width="50%">报表名</th><th width="20%">项目-标段-期数</th><th width="10%">发起时间</th><th width="10%">状态</th><th width="10%">操作</th></tr>
  62. </thead>
  63. <tbody>
  64. <!-- if !empty({{mylist}}) -->
  65. <!-- loop mylist -->
  66. <tr>
  67. <td width="">{{mylist' value.name}}</td>
  68. <td>{{mylist' value.project}}-{{mylist' value.tender}}-第{{ToChinaseNum(mylist' value.phaseno)}}期</td>
  69. <td>{{formatDate(mylist' value.aintime,'Y-m-d')}}</td>
  70. <td><!-- if {{mylist' value.status}} == 'checked' --><span class="colGreen">完成</span><br>{{formatDate(mylist' value.sintime,'Y-m-d')}}<!-- elseif {{mylist' value.status}} == 'checking' --><span class="colOrange">签署中</span><br><!-- endif --></td>
  71. <td width=""><a class="btn btn-small" href="/sign/view/{{mylist' value.sid}}?status=mylist">查看报表</a>&nbsp;<a class="btn btn-small <!-- if {{mylist' value.ishare}} == 1 -->btn-success<!-- endif -->" onclick="sharesign('{{mylist' value.ishare}}','{{mylist' value.sid}}');" href="#share" title="分享" id="sharebtn{{mylist' value.sid}}" data-toggle="modal"><span class="icon-share <!-- if {{mylist' value.ishare}} == 1 -->icon-white<!-- endif -->"></span></a></td>
  72. </tr>
  73. <!-- endloop -->
  74. <!-- endif -->
  75. </tbody>
  76. </table>
  77. <div class="pagination">
  78. <ul>
  79. {{pager}}
  80. </ul>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <!--内容-->
  86. </div>
  87. </div>
  88. <!-- 添加签署人弹出 -->
  89. <div id="share" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  90. <div class="modal-header">
  91. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  92. <h3 id="myModalLabel">分享报表</h3>
  93. </div>
  94. <div class="modal-body">
  95. <form class="form-horizontal">
  96. <div class="control-group">
  97. <input type="hidden" id="sharesid" value="">
  98. <label class="control-label" for="ishare"></label>
  99. <div class="controls">
  100. <div class="checkbox" >
  101. <label style="display: inline-block" id="ishare">
  102. <input checked="" type="checkbox" name=""> 启用
  103. </label>
  104. </div>
  105. </div>
  106. <div id="showshare" style="display:none">
  107. <label class="control-label" for="shareurl">分享地址</label>
  108. <div class="controls">
  109. <input placeholder="这是该项目的KEY" id="shareurl" value="{{rootUrl}}share?sid=" style="cursor: text" readonly class="span4" onfocus="this.select()" onmouseover="this.focus()" type="text">
  110. <p>分享以上链接即可免登录查阅标该报表。</p>
  111. </div>
  112. </div>
  113. </div>
  114. </form>
  115. </div>
  116. </div>
  117. <!-- 添加签署人弹出 -->
  118. <script type="text/javascript">autoFlashHeight();</script>
  119. <script>
  120. function sharesign(flag,sid){
  121. if(parseInt(flag)){
  122. $('#ishare input').prop('checked',true);
  123. $('#showshare').show();
  124. }else{
  125. $('#ishare input').prop('checked',false);
  126. $('#showshare').hide();
  127. }
  128. $('#shareurl').attr('value', '{{rootUrl}}share?sid='+sid);
  129. $('#sharesid').val(sid);
  130. }
  131. $(function(){
  132. $('#ishare').click(function(e){
  133. if(e.target.tagName != "INPUT")
  134. return;
  135. $.ajax({
  136. type: 'get',
  137. url: '/sign/changeshare',
  138. data: {status:$('#ishare input').prop('checked'),sid:$('#sharesid').val()},
  139. dataType: 'json',
  140. success: function(result){
  141. if(result.code == 400){
  142. alert(result.msg);
  143. }else{
  144. if(result.status){
  145. $('#sharebtn'+$('#sharesid').val()).addClass("btn-success");
  146. $('#sharebtn'+$('#sharesid').val()).children('span').addClass('icon-white');
  147. $('#showshare').show();
  148. $('#sharebtn'+$('#sharesid').val()).attr('onclick',"sharesign('1','"+$('#sharesid').val()+"')");
  149. }else{
  150. $('#sharebtn'+$('#sharesid').val()).removeClass("btn-success");
  151. $('#sharebtn'+$('#sharesid').val()).children('span').removeClass('icon-white');
  152. $('#showshare').hide();
  153. $('#sharebtn'+$('#sharesid').val()).attr('onclick',"sharesign('0','"+$('#sharesid').val()+"')");
  154. }
  155. }
  156. }
  157. })
  158. })
  159. })
  160. </script>
  161. <script>
  162. $(function(){
  163. $('#itemlist').change(function(){
  164. var url = '/sign/mylist';
  165. if($(this).val() != 0){
  166. url += '/project/'+$(this).val();
  167. }
  168. window.location.href = url;
  169. });
  170. $('#tenderlist').change(function(){
  171. var url = '/sign/mylist/project/'+$('#itemlist').val();
  172. if($(this).val() != 0){
  173. url += '/tender/'+$(this).val();
  174. }
  175. window.location.href = url;
  176. })
  177. $('#phasenolist').change(function(){
  178. var url = '/sign/mylist/project/'+$('#itemlist').val()+'/tender/'+$('#tenderlist').val();
  179. if($(this).val() != 0){
  180. url += '/phaseno/'+$(this).val();
  181. }
  182. window.location.href = url;
  183. })
  184. })
  185. </script>
  186. </body>