No Description

client_index.html 14KB

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