admin-period.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. <legend><a href="{{rootUrl}}manage/item/{{pid}}/section">返回标段列表</a></legend>
  26. <!-- loop pmArray -->
  27. <table class="table table-striped table-hover">
  28. <legend><!-- if {{keymax}} == {{pmArray' value.numpname}} --><a mpid="{{pmArray' value.mpid}}"
  29. id="adelete" href="#delperiod"
  30. class="fR btn btn-link colGray"
  31. times="{{pmArray' value.times}}"
  32. nums = "{{pmArray' value.numpname}}"
  33. data-toggle="modal">删除本期#{{pmArray' value.times}}</a>
  34. <!-- endif -->第{{pmArray' value.numpname}}期 #{{pmArray' value.times}}
  35. </legend>
  36. <thead>
  37. <tr>
  38. <th>审批流程</th>
  39. <th>审批人</th>
  40. <th>审批状态</th>
  41. <th>审批意见</th>
  42. <th>操作</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <!-- loop pmArray' value.audits -->
  47. <tr>
  48. <td>{{pmArray' value' value.numaudit}}审</td>
  49. <td>{{pmArray' value' value.name}}{{pmArray' value' value.company}}</td>
  50. <td><span class="{{pmArray' value' value.colors}}">{{pmArray' value' value.status}}</span></td>
  51. <td>{{pmArray' value' value.auditcontent}}</td>
  52. <td>
  53. <!-- if {{keymax}} == {{pmArray' value.numpname}} -->
  54. <!-- if {{pmArray' value' value.enable}} == '2' -->
  55. <a href="#checking" id="achecking" maid="{{pmArray' value' value.maid}}" data-toggle="modal"
  56. class="colOrange">审核中</a>
  57. <!-- endif -->
  58. <!-- if {{pmArray' value' value.enable}} == '1' -->
  59. <a href="#unpass" id="aunpass" maid="{{pmArray' value' value.maid}}" data-toggle="modal"
  60. class="colRed">不通过</a>
  61. <a href="#pass" id="apass" maid="{{pmArray' value' value.maid}}" data-toggle="modal" class="colGreen">通过</a>
  62. <!-- endif -->
  63. <!-- endif -->
  64. </td>
  65. </tr>
  66. <!-- endloop -->
  67. </tbody>
  68. </table>
  69. <!-- endloop -->
  70. </div>
  71. </div>
  72. </div>
  73. <!--不通过-->
  74. <div class="modal hide fade" id="unpass">
  75. <input id="maid" name="maid" value="0" type="hidden"/>
  76. <input id="mpid" name="mpid" value="0" type="hidden"/>
  77. <div class="modal-header">
  78. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  79. <h3>设置审批不通过</h3>
  80. </div>
  81. <div class="modal-body">
  82. <p>确认是否设置该审批人审批状态为审批不通过?</p>
  83. </div>
  84. <div class="modal-footer">
  85. <button id="btnunpass" class="btn btn-danger">确认</button>
  86. <button class="btn" data-dismiss="modal">取消</button>
  87. </div>
  88. </div>
  89. <!--通过-->
  90. <div class="modal hide fade" id="pass">
  91. <div class="modal-header">
  92. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  93. <h3>设置审批通过</h3>
  94. </div>
  95. <div class="modal-body">
  96. <p>确认是否设置该审批人审批状态为审批通过?</p>
  97. </div>
  98. <div class="modal-footer">
  99. <button id="btnpass" class="btn btn-success">确认</button>
  100. <button class="btn" data-dismiss="modal">取消</button>
  101. </div>
  102. </div>
  103. <!--审批中-->
  104. <div class="modal hide fade" id="checking">
  105. <div class="modal-header">
  106. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  107. <h3>设置审批中</h3>
  108. </div>
  109. <div class="modal-body">
  110. <p>确认是否设置该审批人审批状态为审批中?</p>
  111. </div>
  112. <div class="modal-footer">
  113. <button id="btnchecking" class="btn btn-warning">确认</button>
  114. <button class="btn" data-dismiss="modal">取消</button>
  115. </div>
  116. </div>
  117. <!--删除本期-->
  118. <div class="modal hide fade" id="delperiod">
  119. <div class="modal-header">
  120. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  121. <h3>删除本期#<span class="times"></span></h3>
  122. </div>
  123. <div class="modal-body">
  124. <p>删除本期#<span class="times"></span>(第<span class="times"></span>次审批)后,将退回至上一次审批。</p>
  125. <p>当#1被删除后,将退回至上一期。</p>
  126. <p>确认是否删除第<span id="nums"></span>期#<span class="times"></span>?</p>
  127. </div>
  128. <div class="modal-footer">
  129. <button id="btndelete" class="btn btn-danger">确认</button>
  130. <button class="btn" data-dismiss="modal">取消</button>
  131. </div>
  132. </div>
  133. <script type="text/javascript">autoFlashHeight();</script>
  134. <script type="text/javascript">
  135. $(document).ready(function () {
  136. $("#achecking").click(function () {
  137. var maid = $(this).attr('maid');
  138. $("#maid").val(maid);
  139. });
  140. $("#aunpass").click(function () {
  141. var maid = $(this).attr('maid');
  142. $("#maid").val(maid);
  143. });
  144. $("#apass").click(function () {
  145. var maid = $(this).attr('maid');
  146. $("#maid").val(maid);
  147. });
  148. $("#adelete").click(function () {
  149. var mpid = $(this).attr('mpid');
  150. var times = $(this).attr('times');
  151. var nums = $(this).attr('nums');
  152. $("#mpid").val(mpid);
  153. $(".times").html(times);
  154. $("#nums").html(nums);
  155. });
  156. $("#btnpass").click(function () {
  157. var maid = $("#maid").val();
  158. $.ajax({
  159. type: "POST",
  160. dataType: "json",
  161. cache: false,
  162. data: {"op": 'pass', "maid": maid},
  163. url: "{{rootUrl}}manage/item/{{pmid}}/period",
  164. success: function (data) {
  165. if (data['status'] == "ok") {
  166. $("#delsection2").modal('hide');
  167. window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
  168. }
  169. }
  170. });
  171. });
  172. $("#btnunpass").click(function () {
  173. var maid = $("#maid").val();
  174. $.ajax({
  175. type: "POST",
  176. dataType: "json",
  177. cache: false,
  178. data: {"op": 'unpass', "maid": maid},
  179. url: "{{rootUrl}}manage/item/{{pmid}}/period",
  180. success: function (data) {
  181. if (data['status'] == "ok") {
  182. $("#delsection2").modal('hide');
  183. window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
  184. }
  185. }
  186. });
  187. });
  188. $("#btndelete").click(function () {
  189. var mpid = $("#mpid").val();
  190. $.ajax({
  191. type: "POST",
  192. dataType: "json",
  193. cache: false,
  194. data: {"op": 'delete', "mpid": mpid},
  195. url: "{{rootUrl}}manage/item/{{pmid}}/period",
  196. success: function (data) {
  197. if (data['status'] == "ok") {
  198. $("#delsection2").modal('hide');
  199. window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
  200. }
  201. }
  202. });
  203. });
  204. $("#btnchecking").click(function () {
  205. var maid = $("#maid").val();
  206. $.ajax({
  207. type: "POST",
  208. dataType: "json",
  209. cache: false,
  210. data: {"op": 'checking', "maid": maid},
  211. url: "{{rootUrl}}manage/item/{{pmid}}/period",
  212. success: function (data) {
  213. if (data['status'] == "ok") {
  214. $("#delsection2").modal('hide');
  215. window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
  216. }
  217. }
  218. });
  219. });
  220. });
  221. </script>
  222. </body>