暂无描述

client_index.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  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 href="css/index.css" rel="stylesheet" />
  11. </head>
  12. <body>
  13. <!--待审批列表-->
  14. <div class="mui-content">
  15. <div class="mui-card cardfixe" >
  16. <div class="mui-card-content itemtit">
  17. <ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Dispatch_">
  18. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state4">
  19. <div class="DSP mess_num" style="display: block;">0</div>
  20. <a class="client">
  21. <div class="Icon icon-1">
  22. <img src="../img/icon_01.png" class="mui-icon-img-1h" style="display: none;" />
  23. <img src="../img/icon_01c.png" class="mui-icon-img-1c" style="display: block;" />
  24. </div>
  25. <div class="mui-media-body state" style="color:#22c9a8;">待办理</div>
  26. </a>
  27. <div class="sanjiao_down" style="display: block;"></div>
  28. </li>
  29. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state1">
  30. <div class="YBL mess_num" style="display: block;">0</div>
  31. <a class="pend">
  32. <div class="Icon icon-1">
  33. <img src="../img/icon_02.png" class="mui-icon-img-1h dwc-1" />
  34. <img src="../img/icon_02c.png" class="mui-icon-img-1c dwc-2" />
  35. </div>
  36. <div class="mui-media-body dwc-color">已办理</div>
  37. </a>
  38. <div class="sanjiao_down dwc-2" style="display: none;"></div>
  39. </li>
  40. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state2">
  41. <div class="YFP mess_num" style="display: block;">0</div>
  42. <a class="finsh">
  43. <div class="Icon icon-1">
  44. <img src="../img/icon_03.png" class="mui-icon-img-1h" />
  45. <img src="../img/icon_03c.png" class="mui-icon-img-1c" />
  46. </div>
  47. <div class="mui-media-body">已分配</div>
  48. </a>
  49. <div class="sanjiao_down" style="display: none;"></div>
  50. </li>
  51. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state5">
  52. <div class="TD mess_num" style="display: block;">0</div>
  53. <a class="waiting">
  54. <div class="Icon icon-1">
  55. <img src="../img/icon_04.png" class="mui-icon-img-1h dwc-1" />
  56. <img src="../img/icon_04c.png" class="mui-icon-img-1c dwc-2" />
  57. </div>
  58. <div class="mui-media-body">已退回</div>
  59. </a>
  60. <div class="sanjiao_down" style="display: none;"></div>
  61. </li>
  62. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state7">
  63. <!--<div class="mess_num" style="display: block;">99</div>-->
  64. <a class="haveorder">
  65. <div class="Icon icon-1">
  66. <img src="../img/icon_02.png" class="mui-icon-img-1h dwc-1" />
  67. <img src="../img/icon_02c.png" class="mui-icon-img-1c dwc-2" />
  68. </div>
  69. <div class="mui-media-body">待处理</div>
  70. </a>
  71. <div class="sanjiao_down" style="display: none;"></div>
  72. </li>
  73. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state8">
  74. <!--<div class="mess_num" style="display: block;">99</div>-->
  75. <a class="processed">
  76. <div class="Icon icon-1">
  77. <img src="../img/icon_02.png" class="mui-icon-img-1h dwc-1" />
  78. <img src="../img/icon_02c.png" class="mui-icon-img-1c dwc-2" />
  79. </div>
  80. <div class="mui-media-body">已处理</div>
  81. </a>
  82. <div class="sanjiao_down" style="display: none;"></div>
  83. </li>
  84. </ul>
  85. </div>
  86. </div>
  87. <!--待交办-->
  88. <div class="mui-content mui-content mui-scroll-wrapper workList" id="pullrefresh">
  89. <div class="mui-scroll">
  90. <ul class="mui-table-view" id="OA_task_2">
  91. </ul>
  92. </div>
  93. <div class="noinfor" style="text-align: center; font-size: 16px;">
  94. </div>
  95. <!--<div class="itemdiv userList" id="pullrefresh" style="display: block;"></div>-->
  96. </div>
  97. <div style="width: 100%; height: 50px;"></div>
  98. <!--底部-->
  99. <nav class="mui-tabs">
  100. <a class="mui-tabs-item mui-active" href="client_index.html">
  101. <span class="mui-icon iconfont">
  102. <img src="../img/task_c.png" />
  103. </span>
  104. <span class="mui-tab-label">任务中心</span>
  105. </a>
  106. <a class="mui-tabs-item reminder" href="press_list.html" style="display: none;">
  107. <span class="mui-icon iconfont">
  108. <img src="../img/reminder.png" />
  109. </span>
  110. <span class="mui-tab-label">超期工单</span>
  111. </a>
  112. <a class="mui-tabs-item" href="Setting-1.html">
  113. <span class="mui-icon iconfont">
  114. <img src="../img/personage.png" />
  115. </span>
  116. <span class="mui-tab-label">我的</span>
  117. </a>
  118. </nav>
  119. <div class="add_icon">
  120. <!--<img src="../img/add_icon.png" />-->
  121. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker">反馈</button>
  122. </div>
  123. <script src="../js/zepto.js"></script>
  124. <script src="../js/mui.min.js"></script>
  125. <script src="../Script/Common/huayi.config.js"></script>
  126. <script src="../Script/Common/huayi.http.js"></script>
  127. <script src="js/index.js"></script>
  128. <script type="text/javascript">
  129. var itype = helper.request.queryString("itype");
  130. var page = 1; //页数
  131. var pageSize = 10; //每页显示条目
  132. var total; //数据总条数
  133. if (UserType==2||UserType==3) {
  134. $(".state").text("待接单");
  135. }
  136. if(UserType==0){
  137. $(".state1").hide();
  138. }
  139. if(UserType==-1) {
  140. $(".add_icon").show();
  141. $(".reminder").hide();
  142. $(".state5").hide();
  143. $(".state6").hide();
  144. $(".state7").hide();
  145. $(".state8").hide();
  146. }else if(UserType==0){
  147. $(".add_icon").show();
  148. $(".state1").show();
  149. $(".state2").show();
  150. $(".state3").hide();
  151. $(".reminder").hide();
  152. $(".state5").show();
  153. $(".state6").hide();
  154. $(".state7").hide();
  155. $(".state8").hide();
  156. }else if(UserType==1){
  157. $(".add_icon").show();
  158. $(".reminder").show();
  159. $(".state5").hide();
  160. $(".state6").hide();
  161. $(".state7").hide();
  162. $(".state8").hide();
  163. }else if(UserType==2){
  164. $(".add_icon").show()
  165. $(".reminder").show();
  166. $(".state5").hide();
  167. $(".state6").hide();
  168. $(".state7").hide();
  169. $(".state8").hide();
  170. }else if(UserType==3){
  171. $(".state4").hide();
  172. $(".state1").hide();
  173. $(".state2").hide();
  174. $(".state3").hide();
  175. $(".add_icon").hide();
  176. $(".reminder").show();
  177. itype = 1
  178. }else if(UserType==4){
  179. $(".add_icon").show();
  180. $(".state1").show();
  181. $(".state2").hide();
  182. $(".state3").hide();
  183. $(".reminder").hide();
  184. $(".state5").hide();
  185. $(".state6").hide();
  186. $(".state7").hide();
  187. $(".state8").hide();
  188. }else {
  189. itype = helper.request.queryString("itype");
  190. }
  191. mui.init({
  192. swipeBack: false,
  193. pullRefresh: {
  194. container: '#pullrefresh',
  195. up: {
  196. contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
  197. contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
  198. callback: pullupRefresh
  199. }
  200. }
  201. });
  202. // 页面跳转
  203. $('.client').on('tap', function() {
  204. window.location.href = "client_index.html";
  205. });
  206. // 待完成
  207. $('.pend').on('tap', function() {
  208. window.location.href = "pend_index.html";
  209. });
  210. // 已创单
  211. $('.finsh').on('tap', function() {
  212. window.location.href = "Have_list.html";
  213. });
  214. // 综合查询
  215. // $('.inquire').on('tap', function() {
  216. // window.location.href = "../fisrt_comprehensive/report.html";
  217. // });
  218. // 待接单
  219. $('.client').on('tap', function() {
  220. window.location.href = "client_index.html";
  221. });
  222. // 已退回
  223. $('.waiting').on('tap', function() {
  224. window.location.href = "Retired_list.html";
  225. });
  226. //待处理
  227. $('.haveorder').on('tap', function() {
  228. window.location.href = "haveorder_list.html";
  229. });
  230. //已处理
  231. $('.processed').on('tap', function() {
  232. window.location.href = "processed_list.html";
  233. });
  234. Ajax();
  235. //下拉刷新
  236. function pullupRefresh() {
  237. setTimeout(function() {
  238. mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
  239. $.ajax({
  240. url: huayi.config.callcenter_url + 'WxLogin/GetList',
  241. data: {
  242. // ltype: itype,
  243. // openid: helper.cookies.get("openid"), //微信openid
  244. OpenId:openid,
  245. pageindex: page,
  246. pagesize: pageSize,
  247. state:0
  248. },
  249. async: true,
  250. dataType: 'json',
  251. type: 'get', //HTTP请求类型
  252. success: function(data) {
  253. total = data.total;
  254. if(data.rows && data.rows.length > 0) {
  255. data.rows.WorkOrderID
  256. $(data.rows).each(function(i, n) {
  257. if(n.F_UserName == "") {
  258. receiver = '</span><span class="font-color1">未选择创建人</span>'
  259. } else {
  260. receiver = '</span><span class="font-color3">创建人' + n.F_CreateBy + n.F_UserName + '</span>'
  261. //receiver= '受理人:'+n.CreateUser
  262. }
  263. // |<button class="mui-btn-primary">重要' + '</button> 重要程度
  264. $('<a class="mui-card mui-card-detail order" data-index="' + n.F_ID + '"><div class="mui-card-header"><div class="fl"><span>' + n.F_TypeName +
  265. '</span><span>'+
  266. '</span><span id="" style="margin-left:25px;">' +
  267. '</span></div><div class="fr"><span>' + n.F_CreateOn +
  268. '</span></div></div>' +
  269. '<div class="mui-card-content"><div class="mui-card-content-inner"><p class="font-color2 details_line" style="padding:13px 0">' + n.F_Description +
  270. '</p><div class="mui-card-content-inner-span"><span id="">' + n.F_StateName +
  271. '</span><span id="">' + n.F_WorkOrderCode + receiver +
  272. '</div></div></div></a>').appendTo('#OA_task_2');
  273. });
  274. //工单跳转
  275. $('.order').on('tap', function() {
  276. var index = $(this).attr('data-index');
  277. window.location.href = "details.html?id=" + index + '&itype=' + 123;
  278. });
  279. }
  280. },
  281. error: function(xhr, type, errorThrown) {
  282. //异常处理;
  283. }
  284. })
  285. }, 1000);
  286. }
  287. //获取数据
  288. function Ajax() {
  289. $(".order").remove();
  290. $.ajax({
  291. url: huayi.config.callcenter_url + 'WxLogin/GetList',
  292. data: {
  293. // ltype: itype,
  294. // openid: helper.cookies.get("openid"), //微信openid
  295. OpenId:openid,
  296. pageindex: page,
  297. pagesize: pageSize,
  298. state:0
  299. },
  300. async: true,
  301. dataType: 'json',
  302. type: 'get', //HTTP请求类型
  303. success: function(data) {
  304. if(document.getElementById('hy_loading')){
  305. document.getElementById('hy_loading').style.opacity = 0;
  306. document.getElementById('hy_loading').remove();
  307. }
  308. if(data.rows && data.rows.length > 0) {
  309. data.rows.WorkOrderID
  310. $(data.rows).each(function(i, n) {
  311. if(n.F_UserName == "") {
  312. receiver = '</span><span class="font-color1">未选择创建人</span>'
  313. } else {
  314. receiver = '</span><span class="font-color3">创建人:' + n.F_CreateBy + n.F_CreateName+ '</span>'
  315. //receiver= '受理人:'+n.CreateUser
  316. }
  317. //|<button class="mui-btn-primary">重要' + '</button> 重要程度
  318. $('<a class="mui-card mui-card-detail order" data-index="' + n.F_ID + '"><div class="mui-card-header"><div class="fl"><span>' + n.F_TypeName +
  319. '</span><span>'+
  320. '</span><span id="" style="margin-left:25px;">' +
  321. '</span></div><div class="fr"><span>' + n.F_CreateOn +
  322. '</span></div></div>' +
  323. '<div class="mui-card-content"><div class="mui-card-content-inner"><p class="font-color2 details_line" style="padding:13px 0">' + n.F_Description +
  324. '</p><div class="mui-card-content-inner-span"><span id="">' + n.F_StateName +
  325. '</span><span id="">' + n.F_WorkOrderCode + receiver +
  326. '</div></div></div></a>').appendTo('#OA_task_2');
  327. });
  328. //工单跳转
  329. $('.order').on('tap', function() {
  330. var index = $(this).attr('data-index');
  331. window.location.href = "details.html?id=" + index + '&itype=' + 123;
  332. });
  333. } else{
  334. $(".noinfor").text("暂无信息");
  335. }
  336. // alert(openid)
  337. },
  338. error: function(xhr, type, errorThrown) {
  339. //异常处理;
  340. // alert(openid)
  341. }
  342. })
  343. }
  344. $('.turnGo').on('tap', function() {
  345. window.location.href = "WorkSearch.html";
  346. })
  347. </script>
  348. </body>
  349. </html>