myWord_frm3.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title></title>
  8. <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
  9. <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
  10. <link rel="stylesheet" href="../../css/projeck.css">
  11. <style>
  12. html,body{
  13. background: #fff;
  14. }
  15. .api_layout{
  16. width: 100%;
  17. position: relative;
  18. padding: 16px;
  19. -webkit-box-sizing: border-box;
  20. box-sizing: border-box;
  21. }
  22. .column-list{
  23. padding: 10px 13px;
  24. border: 2px solid #f2f4fb;
  25. -webkit-box-sizing: border-box;
  26. box-sizing: border-box;
  27. -webkit-border-radius: 5px;
  28. -moz-border-radius: 5px;
  29. border-radius: 5px;
  30. border-top:2px solid #16a085;
  31. margin-bottom: 10px;
  32. }
  33. .column-list li:last-child{
  34. margin-bottom: 0;
  35. }
  36. .header-img{
  37. width: 50px;
  38. height: 50px;
  39. -webkit-border-radius: 50%;
  40. -moz-border-radius: 50%;
  41. border-radius: 50%;
  42. object-fit: cover;
  43. margin-right: 10px;
  44. }
  45. .wordOrder-info span{
  46. display: block;
  47. font-size: 14px;
  48. color: #002257;
  49. }
  50. .examine-status{
  51. font-size: 12px;
  52. font-style: normal;
  53. color: #16a085;
  54. position: absolute;
  55. top: 5px;
  56. right: 0;
  57. }
  58. .examine-process{
  59. margin-top: 10px;
  60. }
  61. .column{
  62. border: 1px solid #eaeff3;
  63. background: #fff;
  64. padding: 10px;
  65. border-radius: 5px;
  66. }
  67. .small_title{
  68. font-size:12px;
  69. color: #74b9e7;
  70. display: block;
  71. font-style: normal;
  72. }
  73. .large_title{
  74. margin: 10px 0;
  75. }
  76. .technological-process{
  77. margin-top: 10px;
  78. display: flex;
  79. justify-content: flex-start;
  80. /* flex-wrap: wrap; */
  81. white-space: nowrap;
  82. overflow-x: scroll;
  83. -webkit-overflow-scrolling: touch;
  84. }
  85. .col{
  86. color: red;
  87. font-size: 12px;
  88. display: inline-flex;
  89. justify-content: space-between;
  90. align-items: center;
  91. flex-wrap: nowrap;
  92. padding-right: 10px;
  93. /*width: 25%;*/
  94. }
  95. .name-adopt,
  96. .name-reject,
  97. .name-waited,
  98. .name-waiting {
  99. display: block;
  100. padding: 3px 6px;
  101. -webkit-border-radius: 5px;
  102. -moz-border-radius: 5px;
  103. border-radius: 5px;
  104. margin-bottom: 5px;
  105. }
  106. .name-adopt {
  107. border: 1px solid #16a085;
  108. color: #16a085;
  109. }
  110. .name-reject {
  111. border: 1px solid red;
  112. color: red;
  113. }
  114. .name-waited {
  115. border: 1px solid #fa8c16;
  116. color: #fa8c16;
  117. }
  118. .name-waiting {
  119. border: 1px solid #bfbfbf;
  120. color: #bfbfbf;
  121. }
  122. .name:last-child{
  123. margin-bottom: 0;
  124. }
  125. .ico-j{
  126. display: block;
  127. width: 15px;
  128. height: 15px;
  129. background: url("../../image/Arrow.png") no-repeat;
  130. background-size: contain;
  131. margin-left: 10px;
  132. }
  133. .col:last-child{
  134. padding-right: 0;
  135. }
  136. .col:last-child .ico-j{
  137. display: none;
  138. }
  139. .examine-success{
  140. background: #1abc9c;
  141. }
  142. .staff_name{
  143. width: 50px;
  144. height: 50px;
  145. -webkit-border-radius: 50%;
  146. -moz-border-radius: 50%;
  147. border-radius: 50%;
  148. margin-right: 10px;
  149. line-height: 50px;
  150. text-align: center;
  151. color: #fff;
  152. }
  153. .message-section-staff,
  154. .message-id-time {
  155. display: flex;
  156. }
  157. </style>
  158. </head>
  159. <body>
  160. <div class="api_layout">
  161. <ul id="seeApply">
  162. </ul>
  163. </div>
  164. <div class="noText hide">
  165. <img src="../../image/noText.png" alt="">
  166. </div>
  167. </body>
  168. </html>
  169. <script type="text/template" id="templateApply">
  170. {{ for (var i = 0;i<it.length;i++) { }}
  171. <li class="column-list" onclick="openExamineDetails('{{=it[i].id}}','{{=it[i].status}}')">
  172. <div class="wordOrder-info relative">
  173. <div class="img-title flex-start">
  174. {{?it[i].staff_avatar === null}}
  175. <p class="staff_name" style="background:#{{=Math.random().toString(16).slice(2,8)}}">{{=it[i].staff.substr(it[i].staff.length-1,1)}}</p>
  176. {{??}}
  177. <img src="{{=it[i].staff_avatar}}" alt="" class="header-img">
  178. {{?}}
  179. <div class="message-container">
  180. <div class="message-section-staff">
  181. <span>{{=it[i].staff}}</span>
  182. <span style="margin-left: 15px">{{=it[i].section}}</span>
  183. </div>
  184. <div class="message-id-time">
  185. <span>编号:#{{=it[i].id}}</span>
  186. <span style="margin-left: 15px">{{=it[i].created_at}}</span>
  187. </div>
  188. </div>
  189. </div>
  190. <i class="examine-status">通过</i>
  191. </div>
  192. <div class="examine-process">
  193. <div class="column">
  194. <i class="small_title">{{=it[i].classify}}</i>
  195. <h2 class="large_title">{{=it[i].title}}</h2>
  196. <div class="technological-process">
  197. {{ for(var prop in it[i].flows) { }}
  198. <div class="col">
  199. <div class="name_list">
  200. {{?it[i].flows[prop].status == 2}}
  201. {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
  202. <span class="name-adopt name">{{=it[i].flows[prop].flow[j]}}</span>
  203. {{ } }}
  204. {{??it[i].flows[prop].status == 3}}
  205. {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
  206. <span class="name-reject name">{{=it[i].flows[prop].flow[j]}}</span>
  207. {{ } }}
  208. {{??it[i].flows[prop].status == 1}}
  209. {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
  210. <span class="name-waited name">{{=it[i].flows[prop].flow[j]}}</span>
  211. {{ } }}
  212. {{??it[i].flows[prop].status == 0}}
  213. {{ for (var j = 0;j<it[i].flows[prop].flow.length;j++) { }}
  214. <span class="name-waiting name">{{=it[i].flows[prop].flow[j]}}</span>
  215. {{ } }}
  216. {{?}}
  217. </div>
  218. <i class="ico-j"></i>
  219. </div>
  220. {{ } }}
  221. </div>
  222. </div>
  223. </div>
  224. </li>
  225. {{ } }}
  226. </script>
  227. <script type="text/javascript" src="../../script/api.js"></script>
  228. <script type="text/javascript" src="../../script/doT.min.js"></script>
  229. <script src="../../script/config.js" charset="utf-8"></script>
  230. <script type="text/javascript">
  231. var toast = new auiToast();
  232. apiready = function () {
  233. $api.fixStatusBar($api.dom('header'));
  234. var token = api.pageParam.data;
  235. var headers = {
  236. "Authorization": "Bearer " + token
  237. };
  238. getApplyList(headers)
  239. };
  240. function getApplyList(headers) {
  241. $http.fnReuestData(UrlRouter.getApplyList,headers,'get',{status:2},function (ret,err) {
  242. if (ret.code === 0) {
  243. toast.hide()
  244. if (ret.data.data.length>0) {
  245. $api.addCls($api.dom('.noText'), 'hide');
  246. $apis.html(seeApply,'#templateApply',ret.data.data);
  247. }else {
  248. $apis.html(seeApply,'#templateApply',ret.data.data);
  249. $api.removeCls($api.dom('.noText'), 'hide');
  250. }
  251. }else {
  252. toast.hide()
  253. $api.removeCls($api.dom('.noText'), 'hide');
  254. }
  255. })
  256. }
  257. // 审核,详情
  258. function openExamineDetails(id,status) {
  259. var params={
  260. ID:id,
  261. status:status
  262. }
  263. $event.openWin('myWordOrderReject_win','myWordOrderReject_win',params,'')
  264. }
  265. </script>