ZZDianXin_UI - 郑州电信 演示

Work-list.html 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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. .finish {
  46. color: #5ccb91;
  47. }
  48. .going {
  49. color: #febd23;
  50. }
  51. .waiting {
  52. color: #fd7c78;
  53. }
  54. .advice,
  55. .time {
  56. margin-left: 15px;
  57. }
  58. body {
  59. background-color: #fafafa;
  60. }
  61. .mui-content {
  62. background-color: #fafafa;
  63. }
  64. ul {
  65. font-size: 16px;
  66. color: #8f8f94;
  67. }
  68. .mui-btn {
  69. padding: 10px;
  70. }
  71. .mui-content-padded {
  72. margin: 0;
  73. }
  74. /*.mui-active {
  75. background: #fff;
  76. }*/
  77. #icon-menu {
  78. color: #fff;
  79. }
  80. .size-16 {
  81. font-size: 16px;
  82. }
  83. .Dwc {
  84. margin-bottom: 20px;
  85. }
  86. .mui-icon {
  87. font-size: 20px;
  88. }
  89. .red {
  90. color: red;
  91. }
  92. .cheng {
  93. color: #f88868;
  94. }
  95. .mui-col-xs-10 {
  96. padding-left: 15px;
  97. }
  98. .mui-h {
  99. font-size: 16px;
  100. color: #000;
  101. }
  102. .List-box span {
  103. letter-spacing: 1px;
  104. }
  105. .mui-table-view-cell.mui-active {
  106. background-color: #fff;
  107. }
  108. .mui-collapse-content {
  109. position: relative;
  110. }
  111. .mui-collapse-content:after {
  112. position: absolute;
  113. right: 0;
  114. bottom: 0;
  115. left: 15px;
  116. height: 1px;
  117. content: '';
  118. -webkit-transform: scaleY(.5);
  119. transform: scaleY(.5);
  120. background-color: #c8c7cc;
  121. }
  122. .mui-collapse-content:before {
  123. position: absolute;
  124. right: 0;
  125. bottom: 0;
  126. left: 15px;
  127. height: 1px;
  128. content: '';
  129. -webkit-transform: scaleY(.5);
  130. transform: scaleY(.5);
  131. background-color: #c8c7cc;
  132. }
  133. .mui-mix-left {
  134. padding-left: 20px;
  135. margin-left: 10px;
  136. }
  137. .mui-segmented-control .mui-control-item.mui-active {
  138. border-color: #00a1cb;
  139. border: 1px solid #00a1cb;
  140. color: #fff;
  141. background-color: #00a1cb;
  142. }
  143. .mui-segmented-control {
  144. border: 1px solid #00a1cb;
  145. }
  146. .mui-action-back {
  147. color: #fff;
  148. }
  149. .Phone img {
  150. width: 13px;
  151. height: 13px;
  152. border-radius: 50%;
  153. /* vertical-align: text-bottom;*/
  154. margin-right: 3px;
  155. vertical-align: initial;
  156. }
  157. .mui-h6 {
  158. font-size: 12px;
  159. }
  160. .mui-span-box {
  161. margin-left: 25px;
  162. }
  163. .dwc {
  164. color: #34ad37;
  165. }
  166. .mui-control-item {
  167. line-height: 30px!important;
  168. }
  169. .mui-search.mui-active:before {
  170. top: 25px;
  171. }
  172. .turnGo {
  173. border: none;
  174. }
  175. #menu {
  176. display: none;
  177. color: #fff;
  178. padding-top: 10px;
  179. font-size: 30px;
  180. }
  181. .Totle {
  182. text-align: center;
  183. margin-top: 10px;
  184. }
  185. .mui-action-back {
  186. color: #fff;
  187. }
  188. </style>
  189. </head>
  190. <body>
  191. <header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
  192. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  193. <h1 class="mui-center mui-title"><span class="Totle-box"></span><span class="Totle"></span></h1>
  194. </header>
  195. <div class="mui-content mui-scroll-wrapper" id="pullrefresh">
  196. <div class="mui-scroll">
  197. <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="order_list">
  198. <li class="mui-table-view-cell">
  199. <div class="mui-input-row mui-search ">
  200. <input type="search" class="mui-input-clear go_search Width" placeholder="请输入关键字" style="margin-bottom: 0;">
  201. </div>
  202. </li>
  203. </ul>
  204. </div>
  205. <!--右上角弹出菜单-->
  206. </div>
  207. <script src="../js/mui.min.js"></script>
  208. <script src="../js/zepto.js"></script>
  209. <script src="../js/huayi.config.js"></script>
  210. <script src="../js/huayi.http.js"></script>
  211. <script type="text/javascript">
  212. window.onload = function() {
  213. mui.plusReady(function() {
  214. // var isdeal=helper.request.queryString("isdeal");
  215. var token = localStorage.getItem("token");
  216. var page = 1; //页数
  217. var pageSize = 10; //每页显示条目
  218. var total; //数据总条数
  219. var wv = plus.webview.currentWebview();
  220. // var token = wv.token;
  221. var isdeal = wv.isdeal; //工单状态
  222. var wids = wv.wids;
  223. var index = wv.index; //交办条件
  224. var LXRs = wv.LXRs;
  225. var issatisfie = wv.issatisfie //满意度
  226. var LXRphones = wv.LXRphones;
  227. var ZXResults = wv.ZXResults;
  228. var zhuTiResults = wv.zhuTiResults;
  229. var userResults = wv.userResults;
  230. var DWResults = wv.DWResults;
  231. var keyw;
  232. var State;
  233. // alert(isdeal);
  234. plus.nativeUI.closeWaiting();
  235. //显示当前页面
  236. mui.currentWebview.show();
  237. if(isdeal == 0) {
  238. $(".Totle-box").text('待办理');
  239. } else if(isdeal == 1) {
  240. $(".Totle-box").text('已办理');
  241. }
  242. Ajax();
  243. $('.go_search').on('input focus', function() {
  244. keyw = $(this).val();
  245. page = 1;
  246. Ajax(keyw);
  247. });
  248. mui.init({
  249. swipeBack: false,
  250. pullRefresh: {
  251. container: '#pullrefresh',
  252. up: {
  253. contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
  254. contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
  255. callback: pullupRefresh
  256. }
  257. }
  258. });
  259. function pullupRefresh() {
  260. setTimeout(function() {
  261. mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
  262. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetEJDWDealList', {
  263. data: {
  264. token: token,
  265. state: State,
  266. extensionphone: 1,
  267. page: page,
  268. key: keyw,
  269. pagesize: pageSize,
  270. workid: wids,
  271. type: userResults, //=工单类型
  272. tel: LXRphones, //=客户电话
  273. name: LXRs, //=客户名称
  274. usercode: ZXResults, //=坐席工号
  275. deptid: DWResults,
  276. keyid: zhuTiResults, //=关键词id
  277. tab: isdeal
  278. },
  279. dataType: 'json', //服务器返回json格式数据
  280. type: 'get', //HTTP请求类型
  281. timeout: 10000, //超时时间设置为10秒;
  282. headers: {
  283. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  284. },
  285. success: function(data) {
  286. total = data.total;
  287. $('.Totle_num').val('工单数量' + total);
  288. for(var i = 0; i < data.rows.length; i++) {
  289. var a = data.rows[i].TypeName;
  290. var c = data.rows[i].F_WorkState;
  291. var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
  292. var time1=data.rows[i].LimitTime
  293. if (time1 == null) {
  294. shixian = "";
  295. } else{
  296. shixian = "办理时限:"+ data.rows[i].LimitTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '))
  297. }
  298. var TypeName = '';
  299. if(!a) {
  300. TypeName = "其他来源"
  301. } else {
  302. TypeName = a
  303. }
  304. var html = '';
  305. if(c == 0) {
  306. html = '新工单';
  307. if(data.rows[i].F_IsReturn == 1) {
  308. html = '新工单(回退)';
  309. }
  310. } else if(c == 1) {
  311. html = '待交办';
  312. } else if(c == 2) {
  313. html = '待查收';
  314. } else if(c == 3) {
  315. html = '退回审核中';
  316. } else if(c == 4) {
  317. html = '办理中';
  318. } else if(c == 5) {
  319. html = '延时审核';
  320. } else if(c == 6) {
  321. html = '已办理';
  322. } else if(c == 7) {
  323. html = '已办理';
  324. } else if(c == 8) {
  325. html = '重办中';
  326. } else if(c == 9) {
  327. html = '已结案';
  328. }
  329. $('<li class="mui-table-view-cell order" data-index="' + data.rows[i].F_WorkOrderId + '">' +
  330. '<div class="mui-table">' +
  331. '<div class="mui-table-cell mui-col-xs-12">' +
  332. '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_ComTitle + '</h5>' +
  333. ' <p class="mui-h6 mui-ellipsis">' +
  334. '<span class="advice"><i class="mui-icon mui-icon-compose"></i>' + a + '</span>' +
  335. '<span class="advice">' + shixian + '</span>' +
  336. '<span class="time">提交时间:' + time + '</span>' +
  337. ' </p>' +
  338. ' </div>' +
  339. '</div>' +
  340. '</li>').appendTo('#order_list');
  341. }
  342. },
  343. error: function(xhr, type, errorThrown) {
  344. //异常处理;
  345. }
  346. })
  347. }, 1000);
  348. }
  349. function Ajax() {
  350. $(".order").remove();
  351. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetEJDWDealList', {
  352. data: {
  353. token: token,
  354. state: State,
  355. extensionphone: 1,
  356. page: page,
  357. key: keyw,
  358. pagesize: pageSize,
  359. workid: wids,
  360. type: userResults, //=工单类型
  361. tel: LXRphones, //=客户电话
  362. name: LXRs, //=客户名称
  363. usercode: ZXResults, //=坐席工号
  364. deptid: DWResults,
  365. keyid: zhuTiResults, //=关键词id
  366. tab: isdeal
  367. },
  368. dataType: 'json', //服务器返回json格式数据
  369. type: 'get', //HTTP请求类型
  370. timeout: 10000, //超时时间设置为10秒;
  371. headers: {
  372. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  373. },
  374. success: function(data) {
  375. total = data.total;
  376. // alert(JSON.stringify(data.rows))
  377. $(".Totle").text('(' + total + ')');
  378. for(var i = 0; i < data.rows.length; i++) {
  379. var a = data.rows[i].TypeName;
  380. var c = data.rows[i].F_WorkState;
  381. var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
  382. var time1=data.rows[i].LimitTime
  383. if (time1 == null) {
  384. shixian = "";
  385. } else{
  386. shixian = "办理时限:"+data.rows[i].LimitTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '))
  387. }
  388. var TypeName = '';
  389. if(!a) {
  390. TypeName = "其他来源"
  391. } else {
  392. TypeName = a
  393. }
  394. var html = '';
  395. if(c == 0) {
  396. html = '新工单';
  397. if(data.rows[i].F_IsReturn == 1) {
  398. html = '新工单(回退)';
  399. }
  400. } else if(c == 1) {
  401. html = '待交办';
  402. } else if(c == 2) {
  403. html = '待查收';
  404. } else if(c == 3) {
  405. html = '退回审核中';
  406. } else if(c == 4) {
  407. html = '办理中';
  408. } else if(c == 5) {
  409. html = '延时审核';
  410. } else if(c == 6) {
  411. html = '已办理';
  412. } else if(c == 7) {
  413. html = '已办理';
  414. } else if(c == 8) {
  415. html = '重办中';
  416. } else if(c == 9) {
  417. html = '已结案';
  418. }
  419. $('<li class="mui-table-view-cell order" data-index="' + data.rows[i].F_WorkOrderId + '">' +
  420. '<div class="mui-table">' +
  421. '<div class="mui-table-cell mui-col-xs-12">' +
  422. '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_ComTitle + '</h5>' +
  423. ' <p class="mui-h6 mui-ellipsis">' +
  424. '<span class="advice"><i class="mui-icon mui-icon-compose"></i>' + a + '</span>' +
  425. '<span class="advice">' + shixian + '</span>' +
  426. '<span class="time">提交时间:' + time + '</span>' +
  427. ' </p>' +
  428. ' </div>' +
  429. '</div>' +
  430. '</li>').appendTo('#order_list');
  431. }
  432. },
  433. error: function(xhr, type, errorThrown) {
  434. //异常处理;
  435. }
  436. })
  437. }
  438. $('#order_list').on('tap', '.order', function() {
  439. var id = $(this).attr('data-index');
  440. mui.openWindow({
  441. id: 'WorkDetails',
  442. url: 'WorkDetails.html',
  443. show: {
  444. aniShow: 'pop-in'
  445. },
  446. styles: {
  447. popGesture: 'hide'
  448. },
  449. waiting: {
  450. autoShow: true
  451. },
  452. extras: {
  453. name: id,
  454. token: token
  455. }
  456. });
  457. })
  458. //list跳转
  459. // $('#order_list').on('tap', '.order', function() {
  460. // var id = $(this).attr('data-index');
  461. // var nwaiting = plus.nativeUI.showWaiting();
  462. // webviewShow = plus.webview.create("WorkDetails.html?id="+id); //后台创建webview并打开show.html
  463. // webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件
  464. // nwaiting.close(); //新webview的载入完毕后关闭等待框
  465. // webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
  466. // }, false);
  467. // });
  468. //list跳转
  469. $('.Notification').on('tap', function() {
  470. var nwaiting = plus.nativeUI.showWaiting();
  471. webviewShow = plus.webview.create("Undertake/Notification-list.html"); //后台创建webview并打开show.html
  472. webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件
  473. nwaiting.close(); //新webview的载入完毕后关闭等待框
  474. webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
  475. }, false);
  476. });
  477. $('.turnGo').on('tap', function() {
  478. mui.openWindow({
  479. id: 'CaXun',
  480. url: 'CaXun.html',
  481. show: {
  482. autoShow: false
  483. },
  484. extras: {
  485. tab: Index,
  486. token: token
  487. }
  488. });
  489. })
  490. // $('#order_list').on('tap', function() {
  491. // var nwaiting = plus.nativeUI.showWaiting();
  492. // webviewShow = plus.webview.create("WorkDetails.html"); //后台创建webview并打开show.html
  493. // webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件
  494. // nwaiting.close(); //新webview的载入完毕后关闭等待框
  495. // webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
  496. // }, false);
  497. // })
  498. });
  499. }
  500. </script>
  501. </body>
  502. </html>