admin-section.html 8.0 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. <link rel=stylesheet href={{rootUrl}}global/css/bootstrap.css>
  9. <link rel=stylesheet href={{rootUrl}}global/css/style.css>
  10. <script src={{rootUrl}}global/js/jquery-1.9.1.min.js></script>
  11. <script src={{rootUrl}}global/js/bootstrap.js></script>
  12. <script src={{rootUrl}}global/js/jl.js></script>
  13. </head>
  14. <body>
  15. <div class="wrapHeader">
  16. <h1 class="mainLogo" title="纵横计量支付"></h1>
  17. <div class="sysTools"><a title="返回首页" href="index.html"><i class="icon-circle-arrow-left icon-white"></i></a>&nbsp;&nbsp;&nbsp;<a
  18. title="纵横官网" target="_blank" href="http://smartcost.com.cn"><i class="icon-home icon-white"></i></a></div>
  19. </div>
  20. <!-- include "top" -->
  21. <div class="warpAdmin">
  22. <!-- include "menu" -->
  23. <div class="adminContent">
  24. <div class="adminMain">
  25. <!-- loop typeArray -->
  26. <table class="table table-striped table-hover">
  27. <legend><a href="#" data-toggle="modal" id="del_{{typeArray' value.stid}}"
  28. stid="{{typeArray' value.stid}}" stname="{{typeArray' value.stname}}"
  29. class="fR btn btn-link colGray">删除标段类型</a>{{typeArray' value.stname}},key:{{typeArray' value.stkey}}
  30. </legend>
  31. <thead>
  32. <tr>
  33. <th width="40">id</th>
  34. <th>标段名称</th>
  35. <th>创建人</th>
  36. <th>标段总额</th>
  37. <th>标段状态</th>
  38. <th>操作</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <!-- loop typeArray' value.datarows -->
  43. <!-- if {{typeArray' value' value.stid}} == {{typeArray' value.stid}} -->
  44. <tr>
  45. <td>{{typeArray' value' value.pmid}}</td>
  46. <td><a href="/manage/item/{{typeArray' value' value.pmid}}/period">{{typeArray' value' value.pmname}}</a></td>
  47. <th>{{typeArray' value' value.name}}{{typeArray' value' value.company}}</th>
  48. <td>{{typeArray' value' value.contracttotal}}</td>
  49. <th><span
  50. class="colOrange">#{{typeArray' value' value.num}} {{typeArray' value' value.status}}</span>
  51. </th>
  52. <td><a href="#" id="delsec_{{typeArray' value' value.pmid}}" pmid="{{typeArray' value' value.pmid}}" proname="{{typeArray' value' value.pmname}}" class="colGray" data-toggle="modal">删除</a></td>
  53. </tr>
  54. <!-- endif -->
  55. <!-- endloop -->
  56. </tbody>
  57. </table>
  58. <!-- endloop -->
  59. </div>
  60. </div>
  61. </div>
  62. <!--删除标段不可删除-->
  63. <div class="modal hide fade" id="delsection">
  64. <div class="modal-header">
  65. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  66. <h3>删除标段确认</h3>
  67. </div>
  68. <div class="modal-body">
  69. <p>标段下还有期数,不能删除该标段。</p>
  70. </div>
  71. <div class="modal-footer">
  72. <button class="btn" data-dismiss="modal">关闭</button>
  73. </div>
  74. </div>
  75. <!--删除本期-->
  76. <div class="modal hide fade" id="delsection2">
  77. <input id="pmid" type="hidden" name="pmid" value="0"/>
  78. <div class="modal-header">
  79. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  80. <h3>删除标段确认</h3>
  81. </div>
  82. <div class="modal-body">
  83. <p id="tippro"></p>
  84. <p>删除后,将无法恢复。</p>
  85. <p>请谨慎操作!</p>
  86. </div>
  87. <div class="modal-footer">
  88. <a id="delsecok" class="btn btn-danger">确认</a>
  89. <button class="btn" data-dismiss="modal">取消</button>
  90. </div>
  91. </div>
  92. <!--删除标段不可删除-->
  93. <div class="modal hide fade" id="deltype">
  94. <div class="modal-header">
  95. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  96. <h3>删除标段类型确认</h3>
  97. </div>
  98. <div class="modal-body">
  99. <p>标段类型下还有标段,不能删除该标段类型。</p>
  100. </div>
  101. <div class="modal-footer">
  102. <button class="btn" data-dismiss="modal">关闭</button>
  103. </div>
  104. </div>
  105. <!--删除标段可删除-->
  106. <div class="modal hide fade" id="deltype2">
  107. <input id="stid" type="hidden" name="stid" value="0"/>
  108. <div class="modal-header">
  109. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  110. <h3>删除标段类型确认</h3>
  111. </div>
  112. <div class="modal-body">
  113. <p id="tip"></p>
  114. <p>删除后,将无法恢复。</p>
  115. <p>请谨慎操作!</p>
  116. </div>
  117. <div class="modal-footer">
  118. <a id="deltypeok" class="btn btn-danger">确认</a>
  119. <button class="btn" data-dismiss="modal">取消</button>
  120. </div>
  121. </div>
  122. <script type="text/javascript">autoFlashHeight();</script>
  123. <script type="text/javascript">
  124. $(document).ready(function () {
  125. $("a[id^='del_']").click(function () {
  126. var stid = $(this).attr('stid');
  127. var stname = $(this).attr('stname');
  128. $.ajax({
  129. type: "POST",
  130. dataType: "json",
  131. cache: false,
  132. data: {"type": 'del', "stid": stid},
  133. url: "{{rootUrl}}manage/item/{{pid}}/section",
  134. success: function (data) {
  135. if (data['status'] == "1") {
  136. $("#deltype").modal('show');
  137. } else {
  138. $("#stid").val(stid);
  139. $("#tip").html("确认删除标段类型“" + stname + "”?");
  140. $("#deltype2").modal('show');
  141. }
  142. }
  143. });
  144. });
  145. $("#deltypeok").click(function () {
  146. var stid = $("#stid").val();
  147. $.ajax({
  148. type: "POST",
  149. dataType: "json",
  150. cache: false,
  151. data: {"type": 'delpro', "stid": stid},
  152. url: "{{rootUrl}}manage/item/{{pid}}/section",
  153. success: function (data) {
  154. if (data['status'] == "ok") {
  155. $("#deltype2").modal('hide');
  156. window.location.href = "{{rootUrl}}manage/item/{{pid}}/section";
  157. }
  158. }
  159. });
  160. });
  161. $("a[id^='delsec_']").click(function () {
  162. var pmid = $(this).attr('pmid');
  163. var proname = $(this).attr('proname');
  164. $.ajax({
  165. type: "POST",
  166. dataType: "json",
  167. cache: false,
  168. data: {"type": 'delmcheck', "pmid": pmid},
  169. url: "{{rootUrl}}manage/item/{{pid}}/section",
  170. success: function (data) {
  171. if (data['status'] == "1") {
  172. $("#delsection").modal('show');
  173. } else {
  174. $("#pmid").val(pmid);
  175. $("#tippro").html("确认删除标段“" + proname + "”?");
  176. $("#delsection2").modal('show');
  177. }
  178. }
  179. });
  180. });
  181. $("#delsecok").click(function () {
  182. var pmid = $("#pmid").val();
  183. $.ajax({
  184. type: "POST",
  185. dataType: "json",
  186. cache: false,
  187. data: {"type": 'delmpro', "pmid": pmid},
  188. url: "{{rootUrl}}manage/item/{{pid}}/section",
  189. success: function (data) {
  190. if (data['status'] == "ok") {
  191. $("#delsection2").modal('hide');
  192. window.location.href = "{{rootUrl}}manage/item/{{pid}}/section";
  193. }
  194. }
  195. });
  196. });
  197. });
  198. </script>
  199. </body>