Sin descripción

TimeOut-list.html 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>超时提醒</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link href="../css/mui.min.css" rel="stylesheet" />
  10. <link rel="stylesheet" href="../css/iconfont.css" />
  11. <style>
  12. .mui-bar-popover {
  13. width: 30%;
  14. }
  15. .mui-popover.mui-bar-popover .mui-table-view {
  16. width: 100%;
  17. }
  18. .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
  19. text-align: center;
  20. }
  21. .san {
  22. font-size: 14px;
  23. margin-right: 5px
  24. }
  25. .nav_a {
  26. border-right: 1px solid #ccc;
  27. }
  28. .go_search {
  29. background: #fff!important;
  30. border: 1px solid #ccc!important;
  31. border-radius: 17px!important;
  32. }
  33. .new_title {
  34. color: #000;
  35. font-size: 16px;
  36. }
  37. .list_new_icon {
  38. margin-right: 5px;
  39. font-size: 20px;
  40. vertical-align: middle;
  41. }
  42. .time i {
  43. font-size: 18px!important;
  44. }
  45. .time{
  46. color: #ed5565;
  47. }
  48. .finish {
  49. color: #5ccb91;
  50. }
  51. .going {
  52. color: #febd23;
  53. }
  54. .waiting {
  55. color: #fd7c78;
  56. }
  57. .advice,
  58. .time {
  59. margin-left: 15px;
  60. }
  61. body {
  62. background-color: #fafafa;
  63. }
  64. .mui-content {
  65. background-color: #fafafa;
  66. }
  67. ul {
  68. font-size: 16px;
  69. color: #8f8f94;
  70. }
  71. .mui-btn {
  72. padding: 10px;
  73. }
  74. .mui-content-padded {
  75. margin: 0;
  76. }
  77. /*.mui-active {
  78. background: #fff;
  79. }*/
  80. #icon-menu {
  81. color: #fff;
  82. }
  83. .size-16 {
  84. font-size: 16px;
  85. }
  86. .Dwc {
  87. margin-bottom: 20px;
  88. }
  89. .mui-icon {
  90. font-size: 20px;
  91. }
  92. .red {
  93. color: red;
  94. }
  95. .cheng {
  96. color: #f88868;
  97. }
  98. .mui-col-xs-10 {
  99. padding-left: 15px;
  100. }
  101. .mui-h {
  102. font-size: 16px;
  103. color: #000;
  104. }
  105. .List-box span {
  106. letter-spacing: 1px;
  107. }
  108. .mui-table-view-cell.mui-active {
  109. background-color: #fff;
  110. }
  111. .mui-collapse-content {
  112. position: relative;
  113. }
  114. .mui-collapse-content:after {
  115. position: absolute;
  116. right: 0;
  117. bottom: 0;
  118. left: 15px;
  119. height: 1px;
  120. content: '';
  121. -webkit-transform: scaleY(.5);
  122. transform: scaleY(.5);
  123. background-color: #c8c7cc;
  124. }
  125. .mui-collapse-content:before {
  126. position: absolute;
  127. right: 0;
  128. bottom: 0;
  129. left: 15px;
  130. height: 1px;
  131. content: '';
  132. -webkit-transform: scaleY(.5);
  133. transform: scaleY(.5);
  134. background-color: #c8c7cc;
  135. }
  136. .mui-mix-left {
  137. padding-left: 20px;
  138. margin-left: 10px;
  139. }
  140. .mui-segmented-control .mui-control-item.mui-active {
  141. border-color: #00a1cb;
  142. border: 1px solid #00a1cb;
  143. color: #fff;
  144. background-color: #00a1cb;
  145. }
  146. .mui-segmented-control {
  147. border: 1px solid #00a1cb;
  148. }
  149. .mui-action-back {
  150. color: #fff;
  151. }
  152. .Phone img {
  153. width: 13px;
  154. height: 13px;
  155. border-radius: 50%;
  156. /* vertical-align: text-bottom;*/
  157. margin-right: 3px;
  158. vertical-align: initial;
  159. }
  160. .mui-h6 {
  161. font-size: 12px;
  162. }
  163. .mui-span-box {
  164. margin-left: 25px;
  165. }
  166. .dwc {
  167. color: #34ad37;
  168. }
  169. .mui-control-item {
  170. line-height: 30px!important;
  171. }
  172. .mui-search.mui-active:before {
  173. top: 25px;
  174. }
  175. .turnGo {
  176. border: none;
  177. }
  178. #menu{
  179. display: none;
  180. color: #fff;
  181. padding-top: 10px;
  182. font-size: 30px;
  183. }
  184. .Totle{
  185. text-align: center;
  186. margin-top: 10px;
  187. }
  188. .mui-action-back {
  189. color: #fff;
  190. }
  191. </style>
  192. </head>
  193. <body>
  194. <header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
  195. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  196. <h1 class="mui-center mui-title">超时列表</h1>
  197. </header>
  198. <div class="mui-content mui-scroll-wrapper" id="pullrefresh">
  199. <div class="mui-scroll">
  200. <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="order_list">
  201. <li class="mui-table-view-cell">
  202. <div class="mui-input-row mui-search ">
  203. <input type="search" class="mui-input-clear go_search Width" placeholder="搜索" style="margin-bottom: 0;">
  204. </div>
  205. </li>
  206. </ul>
  207. <div class="Totle">
  208. <p class="Totle_num"></p>
  209. </div>
  210. </div>
  211. <!--右上角弹出菜单-->
  212. </div>
  213. <script src="../js/mui.min.js"></script>
  214. <script src="../js/zepto.js"></script>
  215. <script src="../js/huayi.config.js"></script>
  216. <script type="text/javascript">
  217. mui.plusReady(function() {
  218. var page = 1; //页数
  219. var pageSize = 10; //每页显示条目
  220. var total; //数据总条数
  221. var keyw;
  222. plus.nativeUI.closeWaiting();
  223. //显示当前页面
  224. mui.currentWebview.show();
  225. Ajax();
  226. $('.go_search').on('input focus', function() {
  227. keyw = $(this).val();
  228. page = 1;
  229. console.log(keyw);
  230. Ajax(keyw);
  231. });
  232. mui.init({
  233. swipeBack: false,
  234. pullRefresh: {
  235. container: '#pullrefresh',
  236. up: {
  237. contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
  238. contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
  239. callback: pullupRefresh
  240. }
  241. }
  242. });
  243. function pullupRefresh() {
  244. setTimeout(function() {
  245. mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
  246. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetTimeOutList', {
  247. data: {
  248. token: localStorage.getItem("token"),
  249. extensionphone: 1,
  250. page: page,
  251. pagesize:pageSize,
  252. },
  253. dataType: 'json', //服务器返回json格式数据
  254. type: 'get', //HTTP请求类型
  255. timeout: 10000, //超时时间设置为10秒;
  256. headers: {
  257. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  258. },
  259. success: function(data) {
  260. total = data.total;
  261. $('.Totle_num').val('工单数量'+total);
  262. for(var i = 0; i < data.rows.length; i++) {
  263. var a = data.rows[i].TypeName;
  264. var c = data.rows[i].F_WorkState;
  265. var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
  266. var TypeName = '';
  267. if(!a) {
  268. TypeName = "其他来源"
  269. } else {
  270. TypeName = a
  271. }
  272. var html = '';
  273. if(c == 0) {
  274. html = '新工单';
  275. if(data.rows[i].F_IsReturn == 1) {
  276. html = '新工单(回退)';
  277. }
  278. }else if(c == 1){
  279. html = '待交办';
  280. }else if(c == 2){
  281. html = '待查收';
  282. }else if(c == 3){
  283. html = '退回审核中';
  284. }else if(c == 4){
  285. html = '办理中';
  286. }else if(c == 5){
  287. html = '延时审核';
  288. }else if(c == 6){
  289. html = '已办理';
  290. }else if(c == 7){
  291. html = '已办理';
  292. }else if(c == 8){
  293. html = '重办中';
  294. }else if(c == 9){
  295. html = '已结案';
  296. }
  297. $('<li class="mui-table-view-cell order" data-index="' + data.rows[i].F_WorkOrderId + '">' +
  298. '<div class="mui-table">' +
  299. '<div class="mui-table-cell mui-col-xs-12">' +
  300. '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_ComTitle + '</h5>' +
  301. ' <p class="mui-h6 mui-ellipsis">' +
  302. '<span class="advice"><i class="mui-icon iconfont icon-duihao1" style="font-size: 14px;color: #5ccb91; margin-right: 5px;"></i>' + html + '</span>' +
  303. '<span class="advice">办理时限:' + time + '</span>' +
  304. '<span class="time"><i class="mui-icon iconfont icon-shijian"style="font-size: 14px; margin-right: 5px;">' +
  305. '</i>' + data.rows[i].GapTime + '</span>' +
  306. ' </p>' +
  307. ' </div>' +
  308. '</div>' +
  309. '</li>').appendTo('#order_list');
  310. }
  311. },
  312. error: function(xhr, type, errorThrown) {
  313. //异常处理;
  314. }
  315. })
  316. }, 1000);
  317. }
  318. function Ajax() {
  319. $(".order").remove();
  320. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetTimeOutList', {
  321. data: {
  322. token: localStorage.getItem("token"),
  323. extensionphone: 1,
  324. page: page,
  325. pagesize:pageSize,
  326. key:keyw
  327. },
  328. dataType: 'json', //服务器返回json格式数据
  329. type: 'get', //HTTP请求类型
  330. timeout: 10000, //超时时间设置为10秒;
  331. headers: {
  332. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  333. },
  334. success: function(data) {
  335. total = data.total;
  336. console.log(total);
  337. $('.Totle_num').text('共有'+total+'条工单');
  338. for(var i = 0; i < data.rows.length; i++) {
  339. var a = data.rows[i].TypeName;
  340. var c = data.rows[i].F_WorkState;
  341. var time = data.rows[i].LimitTime.substring(0, data.rows[i].LimitTime.indexOf(' '));
  342. var TypeName = '';
  343. if(!a) {
  344. TypeName = "其他来源"
  345. } else {
  346. TypeName = a
  347. }
  348. var html = '';
  349. if(c == 0) {
  350. html = '新工单';
  351. if(data.rows[i].F_IsReturn == 1) {
  352. html = '新工单(回退)';
  353. }
  354. }else if(c == 1){
  355. html = '待交办';
  356. }else if(c == 2){
  357. html = '待查收';
  358. }else if(c == 3){
  359. html = '退回审核中';
  360. }else if(c == 4){
  361. html = '办理中';
  362. }else if(c == 5){
  363. html = '延时审核';
  364. }else if(c == 6){
  365. html = '已办理';
  366. }else if(c == 7){
  367. html = '已办理';
  368. }else if(c == 8){
  369. html = '重办中';
  370. }else if(c == 9){
  371. html = '已结案';
  372. }
  373. $('<li class="mui-table-view-cell order" data-index="' + data.rows[i].F_WorkOrderId + '">' +
  374. '<div class="mui-table">' +
  375. '<div class="mui-table-cell mui-col-xs-12">' +
  376. '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_ComTitle + '</h5>' +
  377. ' <p class="mui-h6 mui-ellipsis">' +
  378. '<span class="advice"><i class="mui-icon iconfont icon-duihao1" style="font-size: 14px;color: #5ccb91; margin-right: 5px;"></i>' + html + '</span>' +
  379. '<span class="advice">办理时限:' + time + '</span>' +
  380. '<span class="time"><i class="mui-icon iconfont icon-shijian"style="font-size: 14px; margin-right: 5px;">' +
  381. '</i>' + data.rows[i].GapTime + '</span>' +
  382. ' </p>' +
  383. ' </div>' +
  384. '</div>' +
  385. '</li>').appendTo('#order_list');
  386. }
  387. },
  388. error: function(xhr, type, errorThrown) {
  389. //异常处理;
  390. }
  391. })
  392. }
  393. $('#order_list').on('tap', '.order', function() {
  394. var id = $(this).attr('data-index');
  395. mui.openWindow({
  396. id: 'WorkDetails',
  397. url: 'WorkDetails.html',
  398. show: {
  399. aniShow: 'pop-in'
  400. },
  401. styles: {
  402. popGesture: 'hide'
  403. },
  404. waiting: {
  405. autoShow: false
  406. },
  407. extras: {
  408. name: id,
  409. }
  410. });
  411. })
  412. });
  413. </script>
  414. </body>
  415. </html>