虞城12345_前端

WorkDetails.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  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. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  10. <link href="../css/mui.min.css" rel="stylesheet" />
  11. <script src="../js/mui.min.js"></script>
  12. <style>
  13. /*通过CSS*/
  14. .mui-bar-nav {
  15. background-color: #00a1cb;
  16. }
  17. .mui-title {
  18. color: #fff;
  19. }
  20. .mui-action-back {
  21. color: #fff;
  22. }
  23. .Phone img {
  24. width: 13px;
  25. height: 13px;
  26. border-radius: 50%;
  27. /* vertical-align: text-bottom;*/
  28. margin-right: 3px;
  29. vertical-align: initial;
  30. }
  31. .size-16 {
  32. font-size: 16px;
  33. }
  34. .States {
  35. background: #fd7c7d;
  36. color: #fff;
  37. padding: 3px 6px;
  38. border-radius: 5px;
  39. }
  40. .mui-table-view-cell {
  41. padding-right: 20px!important;
  42. }
  43. .Active {
  44. color: #00a1cb;
  45. }
  46. .Active p {
  47. color: #000;
  48. font-weight: 400;
  49. }
  50. .size-12 {
  51. font-size: 12px;
  52. }
  53. .size-14 {
  54. font-size: 14px;
  55. }
  56. .size-16 {
  57. font-size: 16px;
  58. }
  59. .mui-card-footer a {
  60. display: inline-block;
  61. text-align: center;
  62. font-size: 14px;
  63. }
  64. .mui-card-footer a:active {
  65. color: #00a1cb;
  66. }
  67. .mui-padding {
  68. padding: 11px 15px;
  69. padding-right: 20px!important;
  70. /*border-bottom: 1px solid #c8c7cc;*/
  71. }
  72. .GDgz {
  73. background-color: #fff;
  74. }
  75. .GDgz span {
  76. line-height: 18px;
  77. margin-right: 3px;
  78. }
  79. .mui-modal {
  80. display: block
  81. }
  82. .work-content {
  83. padding: 5px 12px;
  84. }
  85. .work-content span {
  86. line-height: 20px;
  87. }
  88. .Caozuo a {
  89. color: #000;
  90. }
  91. #Popover_0 {
  92. top: 50px;
  93. background-color: #fff;
  94. }
  95. #next-header {
  96. background-color: #fff;
  97. }
  98. .mui-grid-view.mui-grid-9 {
  99. background: #fff;
  100. border: none;
  101. }
  102. .mui-grid-view.mui-grid-9 .mui-table-view-cell {
  103. border: none;
  104. }
  105. #F_ComContent {
  106. line-height: 20px;
  107. font-size: 14px;
  108. text-indent: 20px;
  109. padding-bottom: 10px;
  110. }
  111. .message-box {
  112. padding-top: 20px;
  113. }
  114. .message-box li {
  115. padding-top: 5px;
  116. }
  117. .mui-card-footer:before,
  118. .mui-card-header:after {
  119. background-color: #fff;
  120. }
  121. .DIV {
  122. margin-bottom: 20px;
  123. }
  124. .BTS {
  125. display: none;
  126. }
  127. .img-box {
  128. float: left;
  129. width: 20%;
  130. height:60px;
  131. margin: 2%;
  132. text-align: center;
  133. }
  134. .img-box img{
  135. width: 100%;
  136. height: 100%;
  137. }
  138. .image-list {
  139. display: none;
  140. overflow: hidden;
  141. }
  142. .mui-preview-image.mui-fullscreen {
  143. position: fixed;
  144. z-index: 20;
  145. background-color: #000;
  146. }
  147. .mui-preview-header,
  148. .mui-preview-footer {
  149. position: absolute;
  150. width: 100%;
  151. left: 0;
  152. z-index: 10;
  153. }
  154. .mui-preview-header {
  155. height: 44px;
  156. top: 0;
  157. }
  158. .mui-preview-footer {
  159. height: 50px;
  160. bottom: 0px;
  161. }
  162. .mui-preview-header .mui-preview-indicator {
  163. display: block;
  164. line-height: 25px;
  165. color: #fff;
  166. text-align: center;
  167. margin: 15px auto 4;
  168. width: 70px;
  169. background-color: rgba(0, 0, 0, 0.4);
  170. border-radius: 12px;
  171. font-size: 16px;
  172. }
  173. .mui-preview-image {
  174. display: none;
  175. -webkit-animation-duration: 0.5s;
  176. animation-duration: 0.5s;
  177. -webkit-animation-fill-mode: both;
  178. animation-fill-mode: both;
  179. }
  180. .mui-preview-image.mui-preview-in {
  181. -webkit-animation-name: fadeIn;
  182. animation-name: fadeIn;
  183. }
  184. .mui-preview-image.mui-preview-out {
  185. background: none;
  186. -webkit-animation-name: fadeOut;
  187. animation-name: fadeOut;
  188. }
  189. .mui-preview-image.mui-preview-out .mui-preview-header,
  190. .mui-preview-image.mui-preview-out .mui-preview-footer {
  191. display: none;
  192. }
  193. .mui-zoom-scroller {
  194. position: absolute;
  195. display: -webkit-box;
  196. display: -webkit-flex;
  197. display: flex;
  198. -webkit-box-align: center;
  199. -webkit-align-items: center;
  200. align-items: center;
  201. -webkit-box-pack: center;
  202. -webkit-justify-content: center;
  203. justify-content: center;
  204. left: 0;
  205. right: 0;
  206. bottom: 0;
  207. top: 0;
  208. width: 100%;
  209. height: 100%;
  210. margin: 0;
  211. -webkit-backface-visibility: hidden;
  212. }
  213. .mui-zoom {
  214. -webkit-transform-style: preserve-3d;
  215. transform-style: preserve-3d;
  216. }
  217. .mui-slider .mui-slider-group .mui-slider-item img {
  218. width: auto;
  219. height: auto;
  220. max-width: 100%;
  221. max-height: 100%;
  222. }
  223. .mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
  224. width: 100%;
  225. }
  226. .mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
  227. display: inline-table;
  228. }
  229. .mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
  230. display: table-cell;
  231. vertical-align: middle;
  232. }
  233. .mui-preview-loading {
  234. position: absolute;
  235. width: 100%;
  236. height: 100%;
  237. top: 0;
  238. left: 0;
  239. display: none;
  240. }
  241. .mui-preview-loading.mui-active {
  242. display: block;
  243. }
  244. .mui-preview-loading .mui-spinner-white {
  245. position: absolute;
  246. top: 50%;
  247. left: 50%;
  248. margin-left: -25px;
  249. margin-top: -25px;
  250. height: 50px;
  251. width: 50px;
  252. }
  253. .mui-preview-image img.mui-transitioning {
  254. -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
  255. transition: transform 0.5s ease, opacity 0.5s ease;
  256. }
  257. @-webkit-keyframes fadeIn {
  258. 0% {
  259. opacity: 0;
  260. }
  261. 100% {
  262. opacity: 1;
  263. }
  264. }
  265. @keyframes fadeIn {
  266. 0% {
  267. opacity: 0;
  268. }
  269. 100% {
  270. opacity: 1;
  271. }
  272. }
  273. @-webkit-keyframes fadeOut {
  274. 0% {
  275. opacity: 1;
  276. }
  277. 100% {
  278. opacity: 0;
  279. }
  280. }
  281. @keyframes fadeOut {
  282. 0% {
  283. opacity: 1;
  284. }
  285. 100% {
  286. opacity: 0;
  287. }
  288. }
  289. p img {
  290. max-width: 100%;
  291. height: auto;
  292. }
  293. .BTS ul{
  294. overflow: hidden;
  295. }
  296. .BTS ul li{
  297. float: left;
  298. }
  299. .BTS ul li a{
  300. }
  301. .btn_agree{
  302. text-align: center;
  303. width: 80%;
  304. font-size: 14px !important;
  305. margin: 10px 10%;
  306. height: 30px;
  307. line-height: 4px !important;
  308. border: 1px solid #007aff;
  309. color: #FFFFFF;
  310. -moz-border-radius: 5px; /* Firefox */
  311. -webkit-border-radius: 5px; /* Safari 和 Chrome */
  312. border-radius: 5px; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
  313. }
  314. </style>
  315. </head>
  316. <body>
  317. <header class="mui-bar mui-bar-nav" style="padding-right: 15px;height: 50px;color: #fff;">
  318. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  319. <h1 class="mui-title">工单详情</h1>
  320. </header>
  321. <div class="mui-content">
  322. <!--<ul class="mui-table-view mui-table-view-chevron">-->
  323. <!--<li class="mui-padding">-->
  324. <div class=" mui-table mui-table-view mui-padding" style="margin-top: 0;">
  325. <div class="mui-table-cell mui-col-xs-10">
  326. <h4 class="mui-ellipsis size-16">
  327. <span>工单编号:</span><span id="ID"></span>
  328. </h4>
  329. </div>
  330. <div class="mui-table-cell mui-col-xs-2 mui-text-right">
  331. <span class="mui-h5 States" style="display: none;">待解决</span>
  332. </div>
  333. </div>
  334. <!--<div class="mui-table mui-table-view work-content ">
  335. <h5 class=" Active size-16">
  336. <span >投诉标题:<p id="F_ComTitle" ></p></span>
  337. </h5>
  338. <h5 class="Active size-16 " style="line-height: 15px;">
  339. <span>投诉内容:</span><h5 id="F_ComContent"></h5>
  340. </h5>
  341. </div>-->
  342. <!--信息展示-->
  343. <ul class="mui-table-view size-14 message-box">
  344. <li class="work-content">
  345. <span >投诉标题:</span>
  346. <span style="color:#000000;" id="F_ComTitle" ></span>
  347. </li>
  348. <li class="work-content">
  349. <span >投诉内容:</span>
  350. <span style="color:#989898;" id="F_ComContent" ></span>
  351. </li>
  352. <li class="work-content">
  353. <span>
  354. <i class="mui-icon mui-icon-location size-16"></i>
  355. 投诉地址:
  356. </span>
  357. <span id="AreaName"></span>
  358. <span id="AreaName_deta"></span>
  359. </li>
  360. <li class="work-content">
  361. <span>
  362. <i class="mui-icon mui-icon-person size-16"></i>
  363. 投诉人:
  364. </span>
  365. <span id="F_CusName"></span>
  366. </li>
  367. <li class="work-content">
  368. <span>
  369. <i class="mui-icon mui-icon-phone size-16"></i>
  370. 投诉人电话:
  371. </span>
  372. <span id="F_CusPhone">
  373. </span>
  374. </li>
  375. <li class="work-content">
  376. <span>
  377. <i class="mui-icon mui-icon-compose size-16"></i>
  378. 工单类型:
  379. </span>
  380. <span id="TypeName1"></span>
  381. </li>
  382. <li class="work-content" style="padding-bottom: 20px;">
  383. <span>
  384. <i class="mui-icon mui-icon-paperclip size-16"></i>
  385. 提交时间:
  386. </span><span id="F_CreateTime"></span>
  387. </li>
  388. <!--图片展示-->
  389. <li class="work-content" style="padding-bottom: 20px;">
  390. <div id='image-list' class="row image-list"></div>
  391. </li>
  392. </ul>
  393. <div class="mui-table-view BTS">
  394. <h4 class="mui-ellipsis size-16" style="padding: 20px 0px 0px 10px; margin: 0px;">操作按钮:</h4>
  395. <div class="mui-card-footer">
  396. <ul class="mui-table-view mui-grid-view mui-grid-9">
  397. </ul>
  398. </div>
  399. </div>
  400. <!--工单进程-->
  401. <div class="mui-table-view work-content ">
  402. <div class="mui-table-cell mui-col-xs-10">
  403. <h4 class="mui-ellipsis size-16" style="padding: 6px ;">工单跟踪信息</h4>
  404. </div>
  405. </div>
  406. <!--工单进度-->
  407. <div class="mui-padding GDgz">
  408. </div>
  409. <!--<nav class="mui-bar mui-bar-tab ">
  410. <a href="#Popover_0" class="mui-tab-item">
  411. <span class="mui-icon mui-icon-compose"></span>添加评论</a>
  412. </nav>-->
  413. </div>
  414. <script src="../js/app.js"></script>
  415. <script src="../js/zepto.js"></script>
  416. <script src="../js/huayi.config.js"></script>
  417. <script src="../js/huayi.http.js"></script>
  418. <script src="../js/mui.zoom.js"></script>
  419. <script src="../js/mui.previewimage.js"></script>
  420. <script type="text/javascript">
  421. mui.init();
  422. mui.previewImage();
  423. mui.init({
  424. swipeBack: true //启用右滑关闭功能
  425. });
  426. var id = helper.request.queryString("id");
  427. mui.plusReady(function() {
  428. var wv = plus.webview.currentWebview();
  429. var vText = wv.name;
  430. var token = localStorage.getItem("token");
  431. var ID = document.getElementById("ID").innerHTML = vText;
  432. //工单详情
  433. mui.ajax(huayi.config.callcenter_url + '/WorkOrder/GetWorkOrder', {
  434. data: {
  435. workorderid: vText,
  436. "token": localStorage.getItem("token")
  437. },
  438. dataType: 'json', //服务器返回json格式数据
  439. type: 'get', //HTTP请求类型
  440. timeout: 10000, //超时时间设置为10秒;
  441. headers: {
  442. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  443. },
  444. success: function(data) {
  445. var Data = data.data.data;
  446. // alert(JSON.stringify(Data[0]));
  447. document.getElementById("F_ComTitle").innerHTML = Data[0].F_ComTitle; //标题
  448. document.getElementById("F_ComContent").innerHTML = Data[0].F_ComContent; //内容
  449. //地址
  450. document.getElementById("AreaName").innerHTML = Data[0].AreaName;
  451. //地址详情
  452. document.getElementById("AreaName_deta").innerHTML = Data[0].F_SourceAddress;
  453. //投诉人
  454. document.getElementById("F_CusName").innerHTML = Data[0].F_CusName;
  455. //电话
  456. document.getElementById("F_CusPhone").innerHTML = Data[0].F_CusPhone;
  457. //类型
  458. document.getElementById("TypeName1").innerHTML = Data[0].TypeName1;
  459. //时间
  460. document.getElementById("F_CreateTime").innerHTML = Data[0].F_CreateTime;
  461. //办理过程
  462. for(var i = 0; i < data.data.gcdata.length; i++) {
  463. var table = document.body.querySelector('.GDgz');
  464. var div = document.createElement('div');
  465. div.className = 'DIV';
  466. // if (data.data.gcdata[i].UserName == null) {
  467. // Agree = "市民";
  468. // } else{
  469. // Agree =data.data.gcdata[i].UserName
  470. // }
  471. var oldmsg=data.data.gcdata[i].F_Message;
  472. // alert(oldmsg.match(/-(\S*)\)/));
  473. var jqmsg="";
  474. var jqmsgnew;
  475. if(oldmsg.match(/-(\S*)\)/)==null){
  476. // alert("ddd");
  477. jqmsgnew=data.data.gcdata[i].F_Message;
  478. // jqmsg=oldmsg.match(/-(\S*)\)/)[0];
  479. }else{
  480. jqmsg=oldmsg.match(/-(\S*)\)/)[0];
  481. jqmsgnew=oldmsg.replace(jqmsg,"");
  482. }
  483. div.innerHTML =
  484. '<h5 class="mui-badge-success mui-badge-inverted">' + data.data.gcdata[i].F_CreateTime + ' ' +
  485. // '<h5><span>操作人:</span><span>' + Agree + '</span></h5>' +
  486. '<h5><span>备注信息:</span><span class="Font">' + jqmsgnew + '</span></h5>';
  487. table.appendChild(div);
  488. }
  489. //按钮显示
  490. if(data.data.btndata.length > 0) {
  491. $('.BTS').show();
  492. for(var i = 0; i < data.data.btndata.length; i++) {
  493. $('<li class=" mui-media mui-col-xs-4">' +
  494. '<button type="button" data-loading-text="提交中" index="' + data.data.btndata[i].key + '" class="mui-btn mui-btn-primary mui-btn-block block_button btn_agree Biaoqian">' + data.data.btndata[i].value + '</button>' +
  495. '</li>').appendTo(".mui-grid-9")
  496. }
  497. }
  498. //图片展示
  499. if(Data[0].File) {
  500. $(Data[0].File).each(function(i, n) {
  501. if(n.F_FileType == '.jpg'||n.F_FileType == '.png') {
  502. $('<div class="img-box"><img src="' + n.F_FileUrl +
  503. '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
  504. $(".image-list").show();
  505. } else if(n.F_FileType == '.docx') {
  506. mui.toast('猜猜我是谁')
  507. }
  508. })
  509. }
  510. $(".Biaoqian").on("tap", function() {
  511. var a = $(this).attr("index");
  512. if(a == 14) {
  513. YS(); //延时
  514. } else if(a == 11) {
  515. CS(); //查收
  516. } else if(a == 12) {
  517. TH(); //退回
  518. } else if(a == 13) {
  519. Bl(); //办理
  520. //领导权限
  521. } else if(a == 15) {
  522. THSH(); //退回审核
  523. } else if(a == 17) {
  524. YSsh(); //延时审核
  525. } else if(a == 22) {
  526. QZ(); //强制结案
  527. } else if(a == 21) {
  528. HT(); //回退
  529. } else if(a == 5) {
  530. JB(); //交办
  531. } else if(a == 6) {
  532. LD(); //领导批示
  533. } else if(a == 7) {
  534. SZ(); //市长批示
  535. } else if(a == 8) {
  536. DB(); //督办
  537. } else if(a == 9) {
  538. JC(); //监察
  539. } else if(a == 10) {
  540. BacK(); //回收
  541. } else if(a == 1) {
  542. CK(); //查看
  543. } else if(a == 2) {
  544. BJ(); //编辑
  545. } else if(a == 23) {
  546. PD(); //重办
  547. } else if(a == 25) {
  548. SIGN(); //签收
  549. }else if(a == 26) {
  550. REUSE(); //签收
  551. }
  552. })
  553. },
  554. error: function(xhr, type, errorThrown) {
  555. //异常处理;
  556. }
  557. });
  558. //交办
  559. function JB() {
  560. mui.openWindow({
  561. id: 'jiaoban1',
  562. url: 'jiaoban1.html',
  563. show: {
  564. aniShow: 'pop-in'
  565. },
  566. styles: {
  567. popGesture: 'hide'
  568. },
  569. waiting: {
  570. autoShow: false
  571. },
  572. extras: {
  573. name: vText,
  574. token: token
  575. }
  576. });
  577. }
  578. //签收工单
  579. function SIGN() {
  580. var btnArray = ['否', '是'];
  581. mui.confirm('确定要签收工单?', '提示', btnArray, function(e) {
  582. if(e.index == 1) {
  583. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/SignWorkOrder', {
  584. data: {
  585. workorderid: $("#ID").text(),
  586. token: localStorage.getItem("token")
  587. },
  588. dataType: 'json', //服务器返回json格式数据
  589. type: 'post', //HTTP请求类型
  590. timeout: 10000, //超时时间设置为10秒;
  591. headers: {
  592. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  593. },
  594. success: function(data) {
  595. if(data.state.toLowerCase() == "success") {
  596. mui.toast("签收成功");
  597. var wobj = plus.webview.getWebviewById("WorkDetails");
  598. wobj.reload(true);
  599. } else {
  600. mui.toast(data.massage);
  601. }
  602. }
  603. })
  604. } else {
  605. mui.toast("取消签收");
  606. }
  607. })
  608. }//拒收工单
  609. function REUSE() {
  610. var btnArray = ['否', '是'];
  611. mui.confirm('确定要拒收工单?', '提示', btnArray, function(e) {
  612. if(e.index == 1) {
  613. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/RefuseWorkOrder', {
  614. data: {
  615. workorderid: $("#ID").text(),
  616. token: localStorage.getItem("token")
  617. },
  618. dataType: 'json', //服务器返回json格式数据
  619. type: 'post', //HTTP请求类型
  620. timeout: 10000, //超时时间设置为10秒;
  621. headers: {
  622. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  623. },
  624. success: function(data) {
  625. if(data.state.toLowerCase() == "success") {
  626. mui.toast("拒收成功");
  627. var wobj = plus.webview.getWebviewById("Work-list");
  628. wobj.reload(true);
  629. } else {
  630. mui.toast(data.massage);
  631. }
  632. }
  633. })
  634. } else {
  635. mui.toast("取消拒收");
  636. }
  637. })
  638. }
  639. //查看
  640. function CK() {
  641. mui.openWindow({
  642. id: 'Work-yijian',
  643. url: 'Work-yijian.html',
  644. show: {
  645. aniShow: 'pop-in'
  646. },
  647. styles: {
  648. popGesture: 'hide'
  649. },
  650. waiting: {
  651. autoShow: true
  652. },
  653. extras: {
  654. name: vText,
  655. }
  656. });
  657. }
  658. //办理工单
  659. function Bl() {
  660. mui.openWindow({
  661. id: 'Work-banli',
  662. url: 'Work-banli.html',
  663. show: {
  664. aniShow: 'pop-in'
  665. },
  666. styles: {
  667. popGesture: 'hide'
  668. },
  669. waiting: {
  670. autoShow: true
  671. },
  672. extras: {
  673. name: vText,
  674. token: token
  675. }
  676. });
  677. }
  678. })
  679. </script>
  680. </body>
  681. </html>