Keine Beschreibung

Waiting_list.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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. <div class="mui-content">
  14. <div class="mui-card cardfixe" >
  15. <div class="mui-card-content itemtit">
  16. <ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Dispatch_">
  17. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state4">
  18. <!--<div class="mess_num" style="display: block;">99</div>-->
  19. <a class="client">
  20. <div class="Icon icon-1">
  21. <img src="../img/icon_01.png" class="mui-icon-img-1h" style="display: none;" />
  22. <img src="../img/icon_01c.png" class="mui-icon-img-1c" style="display: block;" />
  23. </div>
  24. <div class="mui-media-body state" style="color:#22c9a8;">待审批</div>
  25. </a>
  26. <div class="sanjiao_down" style="display: block;"></div>
  27. </li>
  28. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state1">
  29. <!--<div class="mess_num" style="display: block;">99</div>-->
  30. <a class="pend">
  31. <div class="Icon icon-1">
  32. <img src="../img/icon_02.png" class="mui-icon-img-1h dwc-1" />
  33. <img src="../img/icon_02c.png" class="mui-icon-img-1c dwc-2" />
  34. </div>
  35. <div class="mui-media-body dwc-color">已参与</div>
  36. </a>
  37. <div class="sanjiao_down dwc-2" style="display: none;"></div>
  38. </li>
  39. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state2">
  40. <!--<div class="mess_num" style="display: block;">99</div>-->
  41. <a class="finsh">
  42. <div class="Icon icon-1">
  43. <img src="../img/icon_03.png" class="mui-icon-img-1h" />
  44. <img src="../img/icon_03c.png" class="mui-icon-img-1c" />
  45. </div>
  46. <div class="mui-media-body">已完成</div>
  47. </a>
  48. <div class="sanjiao_down" style="display: none;"></div>
  49. </li>
  50. <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 state3">
  51. <!--<div class="mess_num" style="display: block;">99</div>-->
  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_01.png" class="mui-icon-img-1h" style="display: none;" />
  66. <img src="../img/icon_01c.png" class="mui-icon-img-1c" style="display: block;" />
  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_03.png" class="mui-icon-img-1h" />
  88. <img src="../img/icon_03c.png" class="mui-icon-img-1c" />
  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. var itype = helper.request.queryString("itype");
  147. var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
  148. // alert(openid);
  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. itype = 0
  168. $(".add_icon").show();
  169. $(".reminder").show();
  170. $(".state5").hide();
  171. $(".state6").hide();
  172. $(".state7").hide();
  173. $(".state8").hide();
  174. }else if(UserType==0){
  175. itype = 0
  176. $(".add_icon").show();
  177. $(".state1").show();
  178. $(".state2").hide();
  179. $(".reminder").show();
  180. $(".state5").hide();
  181. $(".state6").hide();
  182. $(".state7").hide();
  183. $(".state8").hide();
  184. }else if(UserType==1){
  185. $(".add_icon").show();
  186. $(".reminder").show();
  187. $(".state5").hide();
  188. $(".state6").hide();
  189. $(".state7").hide();
  190. $(".state8").hide();
  191. }else if(UserType==2){
  192. $(".add_icon").show()
  193. $(".reminder").show();
  194. $(".state5").hide();
  195. $(".state6").hide();
  196. $(".state7").hide();
  197. $(".state8").hide();
  198. }else if(UserType==3){
  199. $(".state4").hide();
  200. $(".state1").hide();
  201. $(".state2").hide();
  202. $(".state3").hide();
  203. $(".add_icon").show()
  204. $(".reminder").show();
  205. itype = 1
  206. }else {
  207. itype = helper.request.queryString("itype");
  208. }
  209. mui.init({
  210. swipeBack: false,
  211. pullRefresh: {
  212. container: '#pullrefresh',
  213. up: {
  214. contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
  215. contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
  216. callback: pullupRefresh
  217. }
  218. }
  219. });
  220. // 页面跳转
  221. $('.client').on('tap', function() {
  222. window.location.href = "client_index.html";
  223. });
  224. // 待完成
  225. $('.pend').on('tap', function() {
  226. window.location.href = "pend_index.html";
  227. });
  228. // 已完成
  229. $('.finsh').on('tap', function() {
  230. window.location.href = "finsh_index.html";
  231. });
  232. // 综合查询
  233. $('.inquire').on('tap', function() {
  234. window.location.href = "../fisrt_comprehensive/report.html";
  235. });
  236. // 待接单
  237. $('.waiting').on('tap', function() {
  238. window.location.href = "Waiting_list.html";
  239. });
  240. //待处理
  241. $('.haveorder').on('tap', function() {
  242. window.location.href = "haveorder_list.html";
  243. });
  244. //已处理
  245. $('.processed').on('tap', function() {
  246. window.location.href = "processed_list.html";
  247. });
  248. Ajax();
  249. //下拉刷新
  250. function pullupRefresh() {
  251. setTimeout(function() {
  252. mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
  253. $.ajax({
  254. url: huayi.config.callcenter_url + 'WxLogin/GetList',
  255. data: {
  256. ltype: itype,
  257. openid: helper.cookies.get("openid"), //微信openid
  258. page: page,
  259. pagesize: pageSize,
  260. state:0
  261. },
  262. async: true,
  263. dataType: 'json',
  264. type: 'get', //HTTP请求类型
  265. success: function(data) {
  266. total = data.total;
  267. if(data.rows && data.rows.length > 0) {
  268. data.rows.WorkOrderID
  269. $(data.rows).each(function(i, n) {
  270. if(n.CreateUser == "") {
  271. receiver = '</span><span class="font-color1">未选择创建人</span>'
  272. } else {
  273. receiver = '</span><span class="font-color3">创建人' + n.CreateUser + '</span>'
  274. //receiver= '受理人:'+n.CreateUser
  275. }
  276. var builName
  277. if (n.buildingname== null) {
  278. builName=""
  279. } else{
  280. builName=n.buildingname
  281. }
  282. var proName
  283. if (n.proname==null) {
  284. proName=""
  285. } else{
  286. proName=n.proname
  287. }
  288. // if(data.rows){
  289. //
  290. // }
  291. console.log(n.Customer);
  292. // |<button class="mui-btn-primary">重要' + '</button> 重要程度
  293. $('<a class="mui-card mui-card-detail order" data-index="' + n.WorkOrderID + '"><div class="mui-card-header"><div class="fl"><span>' + n.TypeClassName +
  294. '</span>|<span>' + n.OwnerRelations +
  295. '</span></div><div class="fr"><span>' + n.CreateTime +
  296. '</span></div></div>' +
  297. '<div class="mui-card-content"><div class="mui-card-content-inner"><p class="font-color2 details_line">' + n.Detail +
  298. '</p><p class="font-color3 margin">' + n.areaname + proName + builName +
  299. '</p><div class="mui-card-content-inner-span"><span id="">' + n.Customer +
  300. '</span><span id="">' + n.CustomerTel + receiver +
  301. '</div></div></div></a>').appendTo('#OA_task_2');
  302. });
  303. //工单跳转
  304. $('.order').on('tap', function() {
  305. var index = $(this).attr('data-index');
  306. window.location.href = "details.html?id=" + index + '&itype=' + itype;
  307. });
  308. }
  309. },
  310. error: function(xhr, type, errorThrown) {
  311. //异常处理;
  312. }
  313. })
  314. }, 1000);
  315. }
  316. //获取数据
  317. function Ajax() {
  318. $(".order").remove();
  319. $.ajax({
  320. url: huayi.config.callcenter_url + 'WxLogin/GetList',
  321. data: {
  322. ltype: itype,
  323. // openid: helper.cookies.get("openid"), //微信openid
  324. openid:openid,
  325. page: page,
  326. pagesize: pageSize,
  327. isaudit:1,
  328. state:2,
  329. },
  330. async: true,
  331. dataType: 'json',
  332. type: 'get', //HTTP请求类型
  333. success: function(data) {
  334. if(document.getElementById('hy_loading')){
  335. document.getElementById('hy_loading').style.opacity = 0;
  336. document.getElementById('hy_loading').remove();
  337. }
  338. if(data.rows && data.rows.length > 0) {
  339. data.rows.WorkOrderID
  340. $(data.rows).each(function(i, n) {
  341. if(n.CreateUser == "") {
  342. receiver = '</span><span class="font-color1">未选择创建人</span>'
  343. } else {
  344. receiver = '</span><span class="font-color3">创建人:' + n.F_CreateBy + '</span>'
  345. //receiver= '受理人:'+n.CreateUser
  346. }
  347. var builName
  348. if (n.buildingname==null) {
  349. builName=""
  350. } else{
  351. builName=n.buildingname
  352. }
  353. var proName
  354. if (n.proname==null) {
  355. proName=""
  356. } else{
  357. proName=n.proname
  358. }
  359. console.log(n.Customer);
  360. //|<button class="mui-btn-primary">重要' + '</button> 重要程度
  361. $('<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 +
  362. '</span>|<span>' + n.F_TypeName +
  363. '</span></div><div class="fr"><span>' + n.F_CreateOn +
  364. '</span></div></div>' +
  365. '<div class="mui-card-content"><div class="mui-card-content-inner"><p class="font-color2 details_line">' + n.F_Description +
  366. '</p><p class="font-color3 margin">' + n.F_DeptName + proName + builName +
  367. '</p><div class="mui-card-content-inner-span"><span id="">' + n.F_Salesman +
  368. '</span><span id="">' + n.F_CusPhone + receiver +
  369. '</div></div></div></a>').appendTo('#OA_task_2');
  370. });
  371. //工单跳转
  372. $('.order').on('tap', function() {
  373. var index = $(this).attr('data-index');
  374. window.location.href = "details.html?id=" + index + '&itype=' + itype;
  375. });
  376. } else{
  377. $(".noinfor").text("暂无信息");
  378. }
  379. },
  380. error: function(xhr, type, errorThrown) {
  381. //异常处理;
  382. }
  383. })
  384. }
  385. $('.turnGo').on('tap', function() {
  386. window.location.href = "WorkSearch.html";
  387. })
  388. </script>
  389. </body>
  390. </html>