RouteList.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>流转记录</title>
  7. <link href="../AFrontEnd/css/animate.css" rel="stylesheet" />
  8. <link href="../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  9. <link href="../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  10. <link href="../AFrontEnd/css/style.css" rel="stylesheet" />
  11. <link href="../bpmn/css/bpmn-set.css" rel="stylesheet" />
  12. <script>document.write("<link href='../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. <style>
  14. #routeList td {
  15. border-right: 1px solid #E1E6EB;
  16. }
  17. .opinionclass td {
  18. border:0 !important;
  19. }
  20. .opinionclass tr:hover {
  21. background:inherit !important
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div ng-controller="formeditCtrl as ctl" id="app" ng-cloak>
  27. <div class="sp-box">
  28. <div class="sp-col-10"><strong>流程类型:</strong></div>{{ctl.flow.FLOWNAME}}
  29. <div id="toolbar">
  30. <div class="toolbar-item">
  31. <div class="item-color-wait"></div>
  32. <div class="item-name">待办理</div>
  33. </div>
  34. <div class="toolbar-item">
  35. <div class="item-color-process"></div>
  36. <div class="item-name">正办理</div>
  37. </div>
  38. <div class="toolbar-item">
  39. <div class="item-color-done"></div>
  40. <div class="item-name">已办理</div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="sp-box">
  45. <div class="sp-col-10"><strong>标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题:</strong></div>{{ctl.flow.TITLE}}
  46. </div>
  47. <table class="sp-table" style="width:calc(100%)">
  48. <thead>
  49. <tr>
  50. <th width="150"><div style="width: 133px; font-weight: 600">发送节点</div></th>
  51. <th width="150"><div style="width: 133px; font-weight: 600">发送人</div></th>
  52. <th width="150"><div style="width: 133px; font-weight: 600">发出时间</div></th>
  53. <th width="150"><div style="width: 133px; font-weight: 600">办理节点</div></th>
  54. <th width="100"><div style="width: 84px; font-weight: 600">办理单位</div></th>
  55. <th width="100"><div style="width: 84px; font-weight: 600">办理人</div></th>
  56. <th width="100"><div style="width: 84px; font-weight: 600">办理类型</div></th>
  57. <th width="100"><div style="width: 84px; font-weight: 600">办理状态</div></th>
  58. <th width="100"><div style="width: 134px; font-weight: 600">接件时间</div></th>
  59. <th><div style="font-weight: 600">回复意见</div></th>
  60. </tr>
  61. </thead>
  62. </table>
  63. <div style="overflow-y:auto;max-height:700px">
  64. <table class="sp-table" style="margin-top:-38px;" id="routeList">
  65. <thead>
  66. <tr>
  67. <th width="150"><div style="width: 133px; font-weight: 600">发送节点</div></th>
  68. <th width="150"><div style="width: 133px; font-weight: 600">发送人</div></th>
  69. <th width="150"><div style="width: 133px; font-weight: 600">发出时间</div></th>
  70. <th width="150"><div style="width: 133px; font-weight: 600">办理节点</div></th>
  71. <th width="100"><div style="width: 84px; font-weight: 600">办理单位</div></th>
  72. <th width="100"><div style="width: 84px; font-weight: 600">办理人</div></th>
  73. <th width="100"><div style="width: 84px; font-weight: 600">办理类型</div></th>
  74. <th width="100"><div style="width: 84px; font-weight: 600">办理状态</div></th>
  75. <th width="100"><div style="width: 134px; font-weight: 600">接件时间</div></th>
  76. <th><div style="font-weight: 600">回复意见</div></th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <tr ng-repeat="item in ctl.routeList" repeat-finish>
  81. <td ng-bind="item.STARTNODENAME"></td>
  82. <td ng-bind="item.USERNAMEFROM"></td>
  83. <td ng-bind="item.RECEIVEDATE"></td>
  84. <td ng-bind="item.ENDNODENAME" ng-style="item.borderStyle"></td>
  85. <td ng-bind="item.SECTNAME" ng-style="item.borderStyle"></td>
  86. <td ng-bind="item.USERNAME" ng-style="item.borderStyle"></td>
  87. <td ng-bind="item.KIND1" ng-style="item.borderStyle"></td>
  88. <td ng-bind="item.STATUS1" ng-style="item.borderStyle"></td>
  89. <td ng-bind="item.SIGNDATE" ng-style="item.borderStyle"></td>
  90. <td ng-style="item.borderStyle" style="text-align:left; padding:0px;margin:0px">
  91. <table border="0" class="opinionclass" width="100%" style="margin:0px;padding:0px;">
  92. <tr ng-repeat="itemOpinion in item.OPINIONARRAY">
  93. <td ng-bind="itemOpinion.OPINION" style="text-align:left"></td>
  94. <td ng-bind="itemOpinion.CMANNAME" width="150"></td>
  95. <td ng-bind="itemOpinion.CDATE" width="150"></td>
  96. </tr>
  97. </table>
  98. </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </div>
  103. </div>
  104. <script src="../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  105. <script src="../AFrontEnd/js/laydate/laydate.js"></script>
  106. <script src="../AFrontEnd/js/angularjs/angular.js"></script>
  107. <script src="../AFrontEnd/js/angularjs/dirPagination.js"></script>
  108. <script src="../apiurljs.js"></script>
  109. <script src="../js/sm4.js"></script>
  110. <script>document.write('<scri' + 'pt src="../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  111. <script>
  112. 'use strict';
  113. var app = angular.module('app', [
  114. ]);
  115. app.controller("formeditCtrl", ["$scope", "$http", "$timeout", function ($scope, $http, $timeout) {
  116. var self = this;
  117. var s4 = new SM4Util();
  118. self.get_AccessToken = localStorage.getItem("GlWorkPlatform-AccessToken");
  119. self.routeid = sp.getUrlName("routeid");
  120. self.routeinfoid = sp.getUrlName("routeinfoid");
  121. self.directionid = sp.getUrlName("directionid");
  122. self.formeditid = sp.getUrlName("formeditid");
  123. var postCfg = {
  124. headers: {
  125. 'Content-Type': 'application/json',
  126. 'Authorization': "Bearer " + self.get_AccessToken
  127. }
  128. };
  129. var data = {
  130. directionid: self.directionid,
  131. userid: self.userId,
  132. routeid: self.routeid,
  133. routeinfoid: self.routeinfoid,
  134. }
  135. $http.post(apiurljs.login + "g2app/abase/queryDataRouteList", { data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
  136. .success(function (obj) {
  137. var res = strToJson(s4.decryptData_CBC(obj.data));
  138. console.log(res.data)
  139. self.flow = res.data[0];
  140. res.data.forEach(function (item) {
  141. if (item.STATUSINFO == 'START') {
  142. item.SIGNDATE = item.RECEIVEDATE;
  143. item.STARTNODENAME = "开始";
  144. item.USERNAMEFROM = item.USERNAME;
  145. }
  146. if (item.STATUS == 0) item.borderStyle = { "background-color": "white" };
  147. if (item.STATUS == 1) item.borderStyle = { "background-color": "#f05d2e" };
  148. if (item.STATUS == 2) item.borderStyle = { "background-color": "#1890ff" };
  149. if (item.STATUS == 3) item.borderStyle = { "background-color": "white" };
  150. if (item.STATUS == 100) item.borderStyle = { "background-color": "white" };
  151. if (item.STATUS == 4) item.borderStyle = { "background-color": "#00a900" };
  152. if (item.KIND == 0) {
  153. item.KIND1 = "转办";
  154. if (item.STATUS == 0) item.STATUS1 = "草稿";
  155. if (item.STATUS == 1) item.STATUS1 = "待办";
  156. if (item.STATUS == 2) item.STATUS1 = "在办";
  157. if (item.STATUS == 3) item.STATUS1 = "发送中";
  158. if (item.STATUS == 100) item.STATUS1 = "等待";
  159. if (item.STATUS == 4) {
  160. if (item.KINDCOUNT == 0)
  161. item.STATUS1 = "已阅";
  162. else
  163. item.STATUS1 = "已转";
  164. }
  165. }
  166. else {
  167. item.KIND1 = "阅办";
  168. if (item.STATUS == 0) item.STATUS1 = "草稿";
  169. if (item.STATUS == 1) item.STATUS1 = "待办";
  170. if (item.STATUS == 2) item.STATUS1 = "在办";
  171. if (item.STATUS == 3) item.STATUS1 = "发送中";
  172. if (item.STATUS == 100) item.STATUS1 = "等待";
  173. if (item.STATUS == 4) {
  174. if (item.KINDCOUNT == 0)
  175. item.STATUS1 = "已阅";
  176. else
  177. item.STATUS1 = "已转";
  178. }
  179. }
  180. })
  181. self.routeList = res.data;
  182. console.log(self.routeList)
  183. })
  184. }])
  185. app.directive("repeatFinish", function () {
  186. return {
  187. link: function (scope) {
  188. if (scope.$last == true) {
  189. setTimeout(function () {
  190. //$("#routeList").rowspan(0)
  191. //$("#routeList").rowspan(1)
  192. //$("#routeList").rowspan(2)
  193. }, 10);
  194. }
  195. }
  196. };
  197. });
  198. jQuery.fn.rowspan = function (colIdx) { //封装的一个JQuery小插件
  199. return this.each(function () {
  200. var that;
  201. $('tr', this).each(function (row) {
  202. $('td:eq(' + colIdx + ')', this).filter(':visible').each(function () {
  203. if (that != null && $(this).html() == $(that).html()) {
  204. if (colIdx == 0) {
  205. var rowspan = $(that).attr("rowSpan");
  206. if (rowspan == undefined) {
  207. $(that).attr("rowSpan", 1);
  208. rowspan = $(that).attr("rowSpan");
  209. }
  210. rowspan = Number(rowspan) + 1;
  211. $(that).attr("rowSpan", rowspan);
  212. $(this).hide();
  213. } else {
  214. if ($(this).prev().html() == $(that).prev().html()) {
  215. var rowspan = $(that).attr("rowSpan");
  216. if (rowspan == undefined) {
  217. $(that).attr("rowSpan", 1);
  218. rowspan = $(that).attr("rowSpan");
  219. }
  220. rowspan = Number(rowspan) + 1;
  221. $(that).attr("rowSpan", rowspan);
  222. $(this).hide();
  223. }
  224. }
  225. } else {
  226. that = this;
  227. }
  228. });
  229. });
  230. });
  231. }
  232. </script>
  233. </body>
  234. </html>