Aucune description

Retired_list.html 13KB

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