虞城12345_前端

WorkDetails.html 27KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  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. #F_ComContent {
  103. line-height: 20px;
  104. font-size: 14px;
  105. text-indent: 20px;
  106. padding-bottom: 10px;
  107. }
  108. .message-box {
  109. padding-top: 20px;
  110. }
  111. .message-box li {
  112. padding-top: 5px;
  113. }
  114. .mui-card-footer:before,
  115. .mui-card-header:after {
  116. background-color: #fff;
  117. }
  118. .DIV {
  119. margin-bottom: 20px;
  120. }
  121. /*.BTS{
  122. display: none;
  123. }*/
  124. .mui-preview-image.mui-fullscreen {
  125. position: fixed;
  126. z-index: 20;
  127. background-color: #000;
  128. }
  129. .mui-preview-header,
  130. .mui-preview-footer {
  131. position: absolute;
  132. width: 100%;
  133. left: 0;
  134. z-index: 10;
  135. }
  136. .mui-preview-header {
  137. height: 44px;
  138. top: 0;
  139. }
  140. .mui-preview-footer {
  141. height: 50px;
  142. bottom: 0px;
  143. }
  144. .mui-preview-header .mui-preview-indicator {
  145. display: block;
  146. line-height: 25px;
  147. color: #fff;
  148. text-align: center;
  149. margin: 15px auto 4;
  150. width: 70px;
  151. background-color: rgba(0, 0, 0, 0.4);
  152. border-radius: 12px;
  153. font-size: 16px;
  154. }
  155. .mui-preview-image {
  156. display: none;
  157. -webkit-animation-duration: 0.5s;
  158. animation-duration: 0.5s;
  159. -webkit-animation-fill-mode: both;
  160. animation-fill-mode: both;
  161. }
  162. .mui-preview-image.mui-preview-in {
  163. -webkit-animation-name: fadeIn;
  164. animation-name: fadeIn;
  165. }
  166. .mui-preview-image.mui-preview-out {
  167. background: none;
  168. -webkit-animation-name: fadeOut;
  169. animation-name: fadeOut;
  170. }
  171. .mui-preview-image.mui-preview-out .mui-preview-header,
  172. .mui-preview-image.mui-preview-out .mui-preview-footer {
  173. display: none;
  174. }
  175. .mui-zoom-scroller {
  176. position: absolute;
  177. display: -webkit-box;
  178. display: -webkit-flex;
  179. display: flex;
  180. -webkit-box-align: center;
  181. -webkit-align-items: center;
  182. align-items: center;
  183. -webkit-box-pack: center;
  184. -webkit-justify-content: center;
  185. justify-content: center;
  186. left: 0;
  187. right: 0;
  188. bottom: 0;
  189. top: 0;
  190. width: 100%;
  191. height: 100%;
  192. margin: 0;
  193. -webkit-backface-visibility: hidden;
  194. }
  195. .mui-zoom {
  196. -webkit-transform-style: preserve-3d;
  197. transform-style: preserve-3d;
  198. }
  199. .mui-slider .mui-slider-group .mui-slider-item img {
  200. width: auto;
  201. height: auto;
  202. max-width: 100%;
  203. max-height: 100%;
  204. }
  205. .mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
  206. width: 100%;
  207. }
  208. .mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
  209. display: inline-table;
  210. }
  211. .mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
  212. display: table-cell;
  213. vertical-align: middle;
  214. }
  215. .mui-preview-loading {
  216. position: absolute;
  217. width: 100%;
  218. height: 100%;
  219. top: 0;
  220. left: 0;
  221. display: none;
  222. }
  223. .mui-preview-loading.mui-active {
  224. display: block;
  225. }
  226. .mui-preview-loading .mui-spinner-white {
  227. position: absolute;
  228. top: 50%;
  229. left: 50%;
  230. margin-left: -25px;
  231. margin-top: -25px;
  232. height: 50px;
  233. width: 50px;
  234. }
  235. .mui-preview-image img.mui-transitioning {
  236. -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
  237. transition: transform 0.5s ease, opacity 0.5s ease;
  238. }
  239. @-webkit-keyframes fadeIn {
  240. 0% {
  241. opacity: 0;
  242. }
  243. 100% {
  244. opacity: 1;
  245. }
  246. }
  247. @keyframes fadeIn {
  248. 0% {
  249. opacity: 0;
  250. }
  251. 100% {
  252. opacity: 1;
  253. }
  254. }
  255. @-webkit-keyframes fadeOut {
  256. 0% {
  257. opacity: 1;
  258. }
  259. 100% {
  260. opacity: 0;
  261. }
  262. }
  263. @keyframes fadeOut {
  264. 0% {
  265. opacity: 1;
  266. }
  267. 100% {
  268. opacity: 0;
  269. }
  270. }
  271. p img {
  272. max-width: 100%;
  273. height: auto;
  274. }
  275. .img-box {
  276. float: left;
  277. width: 20%;
  278. height:60px;
  279. margin: 2%;
  280. text-align: center;
  281. }
  282. .img-box img{
  283. width: 100%;
  284. height: 100%;
  285. }
  286. .image-list {
  287. display: none;
  288. overflow: hidden;
  289. }
  290. .mui-preview-image.mui-fullscreen {
  291. position: fixed;
  292. z-index: 20;
  293. background-color: #000;
  294. }
  295. .mui-preview-header,
  296. .mui-preview-footer {
  297. position: absolute;
  298. width: 100%;
  299. left: 0;
  300. z-index: 10;
  301. }
  302. .mui-preview-header {
  303. height: 44px;
  304. top: 0;
  305. }
  306. .mui-preview-footer {
  307. height: 50px;
  308. bottom: 0px;
  309. }
  310. .mui-preview-header .mui-preview-indicator {
  311. display: block;
  312. line-height: 25px;
  313. color: #fff;
  314. text-align: center;
  315. margin: 15px auto 4;
  316. width: 70px;
  317. background-color: rgba(0, 0, 0, 0.4);
  318. border-radius: 12px;
  319. font-size: 16px;
  320. }
  321. .mui-preview-image {
  322. display: none;
  323. -webkit-animation-duration: 0.5s;
  324. animation-duration: 0.5s;
  325. -webkit-animation-fill-mode: both;
  326. animation-fill-mode: both;
  327. }
  328. .mui-preview-image.mui-preview-in {
  329. -webkit-animation-name: fadeIn;
  330. animation-name: fadeIn;
  331. }
  332. .mui-preview-image.mui-preview-out {
  333. background: none;
  334. -webkit-animation-name: fadeOut;
  335. animation-name: fadeOut;
  336. }
  337. .mui-preview-image.mui-preview-out .mui-preview-header,
  338. .mui-preview-image.mui-preview-out .mui-preview-footer {
  339. display: none;
  340. }
  341. .mui-zoom-scroller {
  342. position: absolute;
  343. display: -webkit-box;
  344. display: -webkit-flex;
  345. display: flex;
  346. -webkit-box-align: center;
  347. -webkit-align-items: center;
  348. align-items: center;
  349. -webkit-box-pack: center;
  350. -webkit-justify-content: center;
  351. justify-content: center;
  352. left: 0;
  353. right: 0;
  354. bottom: 0;
  355. top: 0;
  356. width: 100%;
  357. height: 100%;
  358. margin: 0;
  359. -webkit-backface-visibility: hidden;
  360. }
  361. .mui-zoom {
  362. -webkit-transform-style: preserve-3d;
  363. transform-style: preserve-3d;
  364. }
  365. .mui-slider .mui-slider-group .mui-slider-item img {
  366. width: auto;
  367. height: auto;
  368. max-width: 100%;
  369. max-height: 100%;
  370. }
  371. .mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
  372. width: 100%;
  373. }
  374. .mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
  375. display: inline-table;
  376. }
  377. .mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
  378. display: table-cell;
  379. vertical-align: middle;
  380. }
  381. .mui-preview-loading {
  382. position: absolute;
  383. width: 100%;
  384. height: 100%;
  385. top: 0;
  386. left: 0;
  387. display: none;
  388. }
  389. .mui-preview-loading.mui-active {
  390. display: block;
  391. }
  392. .mui-preview-loading .mui-spinner-white {
  393. position: absolute;
  394. top: 50%;
  395. left: 50%;
  396. margin-left: -25px;
  397. margin-top: -25px;
  398. height: 50px;
  399. width: 50px;
  400. }
  401. .mui-preview-image img.mui-transitioning {
  402. -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
  403. transition: transform 0.5s ease, opacity 0.5s ease;
  404. }
  405. @-webkit-keyframes fadeIn {
  406. 0% {
  407. opacity: 0;
  408. }
  409. 100% {
  410. opacity: 1;
  411. }
  412. }
  413. @keyframes fadeIn {
  414. 0% {
  415. opacity: 0;
  416. }
  417. 100% {
  418. opacity: 1;
  419. }
  420. }
  421. @-webkit-keyframes fadeOut {
  422. 0% {
  423. opacity: 1;
  424. }
  425. 100% {
  426. opacity: 0;
  427. }
  428. }
  429. @keyframes fadeOut {
  430. 0% {
  431. opacity: 1;
  432. }
  433. 100% {
  434. opacity: 0;
  435. }
  436. }
  437. p img {
  438. max-width: 100%;
  439. height: auto;
  440. }
  441. .BTS ul{
  442. overflow: hidden;
  443. }
  444. .BTS ul li{
  445. float: left;
  446. }
  447. .BTS ul li a{
  448. }
  449. .btn_agree{
  450. text-align: center;
  451. width: 80%;
  452. font-size: 14px !important;
  453. margin: 10px 10%;
  454. height: 30px;
  455. line-height: 4px !important;
  456. border: 1px solid #007aff;
  457. color: #FFFFFF;
  458. -moz-border-radius: 5px; /* Firefox */
  459. -webkit-border-radius: 5px; /* Safari 和 Chrome */
  460. border-radius: 5px; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
  461. }
  462. </style>
  463. </head>
  464. <body class="feedback">
  465. <header class="mui-bar mui-bar-nav" style="padding-right: 15px;height: 50px;color: #fff;">
  466. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  467. <h1 class="mui-title">工单详情</h1>
  468. </header>
  469. <div class="mui-content">
  470. <!--<ul class="mui-table-view mui-table-view-chevron">-->
  471. <!--<li class="mui-padding">-->
  472. <div class=" mui-table mui-table-view mui-padding" style="margin-top: 0;">
  473. <div class="mui-table-cell mui-col-xs-10">
  474. <h4 class="mui-ellipsis size-16">
  475. <span>工单编号:</span><span id="ID"></span>
  476. </h4>
  477. </div>
  478. <div class="mui-table-cell mui-col-xs-2 mui-text-right">
  479. <span class="mui-h5 States" style="display: none;">待解决</span>
  480. </div>
  481. </div>
  482. <!--信息展示-->
  483. <ul class="mui-table-view size-14 message-box">
  484. <li class="work-content">
  485. <span >投诉标题:</span>
  486. <span style="color:#000000;" id="F_ComTitle" ></span>
  487. </li>
  488. <li class="work-content">
  489. <span >投诉内容:</span>
  490. <span style="color:#000000;" id="F_ComContent" ></span>
  491. </li>
  492. <li class="work-content">
  493. <span>
  494. <i class="mui-icon mui-icon-location size-16"></i>
  495. 投诉地址:
  496. </span>
  497. <span id="AreaName"></span>
  498. <span id="AreaName_deta"></span>
  499. </li>
  500. <li class="work-content">
  501. <span>
  502. <i class="mui-icon mui-icon-person size-16"></i>
  503. 投诉人:
  504. </span>
  505. <span id="F_CusName"></span>
  506. </li>
  507. <li class="work-content">
  508. <span>
  509. <i class="mui-icon mui-icon-phone size-16"></i>
  510. 投诉人电话:
  511. </span>
  512. <span id="F_CusPhone">
  513. </span>
  514. </li>
  515. <li class="work-content">
  516. <span>
  517. <i class="mui-icon mui-icon-compose size-16"></i>
  518. 工单类型:
  519. </span>
  520. <span id="TypeName1"></span>
  521. </li>
  522. <li class="work-content" style="padding-bottom: 20px;">
  523. <span>
  524. <i class="mui-icon mui-icon-paperclip size-16"></i>
  525. 提交时间:
  526. </span><span id="F_CreateTime"></span>
  527. </li>
  528. <!--图片展示-->
  529. <li class="work-content" style="padding-bottom: 20px;">
  530. <div id='image-list' class="row image-list"></div>
  531. </li>
  532. </ul>
  533. <!--按键展示-->
  534. <div class="mui-table-view BTS">
  535. <h4 class="mui-ellipsis size-16" style="padding: 20px 0px 0px 10px; margin: 0px;">操作按钮:</h4>
  536. <div class="mui-card-footer">
  537. <ul class="mui-table-view mui-grid-view mui-grid-9">
  538. </ul>
  539. </div>
  540. </div>
  541. <!--工单进程-->
  542. <div class="mui-table-view work-content ">
  543. <div class="mui-table-cell mui-col-xs-10">
  544. <h4 class="mui-ellipsis size-16" style="padding: 6px ;">工单跟踪信息</h4>
  545. </div>
  546. </div>
  547. <!--工单进度-->
  548. <div class="mui-padding GDgz">
  549. </div>
  550. </div>
  551. <script src="../js/app.js"></script>
  552. <script src="../js/zepto.js"></script>
  553. <script src="../js/huayi.config.js"></script>
  554. <script src="../js/mui.zoom.js"></script>
  555. <script src="../js/mui.previewimage.js"></script>
  556. <script type="text/javascript">
  557. mui.init({
  558. swipeBack: true //启用右滑关闭功能
  559. });
  560. mui.previewImage();
  561. mui.plusReady(function() {
  562. var wv = plus.webview.currentWebview();
  563. var vText = wv.name;
  564. var ID = document.getElementById("ID").innerHTML = vText;
  565. var token = localStorage.getItem("token");
  566. //工单详情
  567. mui.ajax(huayi.config.callcenter_url + '/WorkOrder/GetWorkOrder', {
  568. data: {
  569. workorderid: vText,
  570. "token": token
  571. },
  572. dataType: 'json', //服务器返回json格式数据
  573. type: 'get', //HTTP请求类型
  574. timeout: 10000, //超时时间设置为10秒;
  575. headers: {
  576. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  577. },
  578. success: function(data) {
  579. var Data = data.data.data;
  580. document.getElementById("F_ComTitle").innerHTML = Data[0].F_ComTitle; //标题
  581. document.getElementById("F_ComContent").innerHTML = Data[0].F_ComContent; //内容
  582. //地址
  583. document.getElementById("AreaName").innerHTML = Data[0].AreaName;
  584. //地址详情
  585. document.getElementById("AreaName_deta").innerHTML = Data[0].F_SourceAddress;
  586. //投诉人
  587. document.getElementById("F_CusName").innerHTML = Data[0].F_CusName;
  588. //电话
  589. document.getElementById("F_CusPhone").innerHTML = Data[0].F_CusPhone;
  590. //类型
  591. document.getElementById("TypeName1").innerHTML = Data[0].TypeName1;
  592. //时间
  593. document.getElementById("F_CreateTime").innerHTML = Data[0].F_CreateTime;
  594. //办理过程
  595. for(var i = 0; i < data.data.gcdata.length; i++) {
  596. var table = document.body.querySelector('.GDgz');
  597. var div = document.createElement('div');
  598. div.className = 'DIV';
  599. var oldmsg=data.data.gcdata[i].F_Message;
  600. var jqmsg="";
  601. var jqmsgnew;
  602. if(oldmsg.match(/-(\S*)\)/)==null){
  603. jqmsgnew=data.data.gcdata[i].F_Message;
  604. }else{
  605. jqmsg=oldmsg.match(/-(\S*)\)/)[0];
  606. jqmsgnew=oldmsg.replace(jqmsg,"");
  607. }
  608. div.innerHTML =
  609. '<h5 class="mui-badge-success mui-badge-inverted">' + data.data.gcdata[i].F_CreateTime + ' ' +
  610. // '<h5><span>操作人:</span><span>' + Agree + '</span></h5>' +
  611. '<h5><span>备注信息:</span><span class="Font">' + jqmsgnew + '</span></h5>';
  612. table.appendChild(div);
  613. }
  614. //按钮显示
  615. if(data.data.btndata.length > 0) {
  616. $('.BTS').show();
  617. for(var i = 0; i < data.data.btndata.length; i++) {
  618. $('<li class=" mui-media mui-col-xs-4">' +
  619. '<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>' +
  620. '</li>').appendTo(".mui-grid-9")
  621. }
  622. }
  623. //图片展示
  624. if(Data[0].File) {
  625. $(Data[0].File).each(function(i, n) {
  626. if(n.F_FileType == '.jpg'||n.F_FileType == '.png') {
  627. $('<div class="img-box"><img src="' + n.F_FileUrl + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
  628. $(".image-list").show();
  629. } else if(n.F_FileType == '.docx') {
  630. mui.toast('猜猜我是谁')
  631. }
  632. })
  633. }
  634. $(".Biaoqian").on("tap", function() {
  635. var a = $(this).attr("index");
  636. if(a == 14) {
  637. YS(); //延时
  638. } else if(a == 11) {
  639. CS(); //查收
  640. } else if(a == 12) {
  641. TH(); //退回
  642. } else if(a == 13) {
  643. Bl(); //办理
  644. //领导权限
  645. } else if(a == 15) {
  646. THSH(); //退回审核
  647. } else if(a == 17) {
  648. YSsh(); //延时审核
  649. } else if(a == 22) {
  650. QZ(); //强制结案
  651. } else if(a == 21) {
  652. HT(); //回退
  653. } else if(a == 5) {
  654. JB(); //交办
  655. } else if(a == 6) {
  656. LD(); //领导批示
  657. } else if(a == 7) {
  658. SZ(); //市长批示
  659. } else if(a == 8) {
  660. DB(); //督办
  661. } else if(a == 9) {
  662. JC(); //监察
  663. } else if(a == 10) {
  664. BacK(); //回收
  665. } else if(a == 1) {
  666. CK(); //查看
  667. } else if(a == 2) {
  668. BJ(); //编辑
  669. } else if(a == 18) {
  670. CB(); //重办
  671. } else if(a == 23) {
  672. PD(); //派单
  673. } else if(a ==19) {
  674. JAn(); //结案
  675. }else if(a == 3) {
  676. move(); //删除
  677. }else if(a == 4) {
  678. tj(); //提交
  679. }
  680. })
  681. },
  682. error: function(xhr, type, errorThrown) {
  683. //异常处理;
  684. }
  685. });
  686. //交办
  687. function JB() {
  688. mui.openWindow({
  689. id: 'Work-jiaoban',
  690. url: 'Work-jiaoban.html',
  691. show: {
  692. aniShow: 'pop-in'
  693. },
  694. styles: {
  695. popGesture: 'hide'
  696. },
  697. waiting: {
  698. autoShow: true
  699. },
  700. extras: {
  701. name: vText,
  702. token: token
  703. }
  704. });
  705. }
  706. // function JB() {
  707. // var nwaiting = plus.nativeUI.showWaiting();
  708. // webviewShow = plus.webview.create("Work-jiaoban.html"); //后台创建webview并打开show.html
  709. // webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件
  710. // nwaiting.close(); //新webview的载入完毕后关闭等待框
  711. // webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
  712. // wobj.reload(true);
  713. // }, false);
  714. // }
  715. //派单
  716. function PD() {
  717. mui.openWindow({
  718. id: 'Work-jiaoban',
  719. url: 'Work-paidan.html',
  720. show: {
  721. aniShow: 'pop-in'
  722. },
  723. styles: {
  724. popGesture: 'hide'
  725. },
  726. waiting: {
  727. autoShow: true
  728. },
  729. extras: {
  730. name: vText,
  731. token: token
  732. }
  733. });
  734. }
  735. //重办
  736. function CB() {
  737. mui.openWindow({
  738. id: 'work-cb',
  739. url: 'work-cb.html',
  740. show: {
  741. aniShow: 'pop-in'
  742. },
  743. styles: {
  744. popGesture: 'hide'
  745. },
  746. waiting: {
  747. autoShow: true
  748. },
  749. extras: {
  750. name: vText,
  751. token: token
  752. }
  753. });
  754. }
  755. //结案
  756. function JAn() {
  757. mui.openWindow({
  758. id: 'work-JieAn',
  759. url: 'Work-JieAn.html',
  760. show: {
  761. aniShow: 'pop-in'
  762. },
  763. styles: {
  764. popGesture: 'hide'
  765. },
  766. waiting: {
  767. autoShow: true
  768. },
  769. extras: {
  770. name: vText,
  771. token: token
  772. }
  773. });
  774. }
  775. function BJ() {
  776. mui.openWindow({
  777. id: 'bianji',
  778. url: 'Work-bianji.html',
  779. show: {
  780. aniShow: 'pop-in'
  781. },
  782. styles: {
  783. popGesture: 'hide'
  784. },
  785. waiting: {
  786. autoShow: true
  787. },
  788. extras: {
  789. name: vText,
  790. token: token
  791. }
  792. });
  793. }
  794. //查看
  795. function CK() {
  796. mui.openWindow({
  797. id: 'Work-yijian',
  798. url: 'Work-yijian.html',
  799. show: {
  800. aniShow: 'pop-in'
  801. },
  802. styles: {
  803. popGesture: 'hide'
  804. },
  805. waiting: {
  806. autoShow: true
  807. },
  808. extras: {
  809. name: vText,
  810. }
  811. });
  812. }
  813. //办理工单
  814. function Bl() {
  815. mui.openWindow({
  816. id: 'Work-banli',
  817. url: 'Work-banli.html',
  818. show: {
  819. aniShow: 'pop-in'
  820. },
  821. styles: {
  822. popGesture: 'hide'
  823. },
  824. waiting: {
  825. autoShow: true
  826. },
  827. extras: {
  828. name: vText,
  829. token: token
  830. }
  831. });
  832. }
  833. //延时申请
  834. function YS() {
  835. mui.openWindow({
  836. id: 'Work-YSsq',
  837. url: 'Work-YSsq.html',
  838. show: {
  839. aniShow: 'pop-in'
  840. },
  841. styles: {
  842. popGesture: 'hide'
  843. },
  844. waiting: {
  845. autoShow: true
  846. },
  847. extras: {
  848. name: vText,
  849. token: token
  850. }
  851. });
  852. }
  853. //延时审核
  854. function YSsh() {
  855. mui.openWindow({
  856. id: 'Work-YSsh',
  857. url: 'Work-YSsh.html',
  858. show: {
  859. aniShow: 'pop-in'
  860. },
  861. styles: {
  862. popGesture: 'hide'
  863. },
  864. waiting: {
  865. autoShow: true
  866. },
  867. extras: {
  868. name: vText,
  869. token: token
  870. }
  871. });
  872. }
  873. //查收工单
  874. function CS() {
  875. var btnArray = ['否', '是'];
  876. mui.confirm('确定要查收工单?', '提示', btnArray, function(e) {
  877. if(e.index == 1) {
  878. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/ReceiveWorkOrder', {
  879. data: {
  880. workorderid: $("#ID").text(),
  881. token: token
  882. },
  883. dataType: 'json', //服务器返回json格式数据
  884. type: 'post', //HTTP请求类型
  885. timeout: 10000, //超时时间设置为10秒;
  886. headers: {
  887. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  888. },
  889. success: function(data) {
  890. if(data.state.toLowerCase() == "success") {
  891. mui.toast("查收成功");
  892. var wobj = plus.webview.getWebviewById("WorkDetails");
  893. wobj.reload(true);
  894. }
  895. }
  896. })
  897. } else {
  898. mui.toast("取消查收");
  899. }
  900. })
  901. }
  902. //删除
  903. function move() {
  904. var btnArray = ['否', '是'];
  905. mui.confirm('确定要删除工单?', '提示', btnArray, function(f) {
  906. if(f.index == 1) {
  907. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/DelWorkOrder', {
  908. data: {
  909. ids: $("#ID").text(),
  910. token: token
  911. },
  912. dataType: 'json', //服务器返回json格式数据
  913. type: 'post', //HTTP请求类型
  914. timeout: 10000, //超时时间设置为10秒;
  915. headers: {
  916. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  917. },
  918. success: function(data) {
  919. if(data.state.toLowerCase() == "success") {
  920. mui.toast("删除成功");
  921. var wobj = plus.webview.getWebviewById("WorkDetails");
  922. wobj.reload(true);
  923. }
  924. }
  925. })
  926. } else {
  927. mui.toast("取消删除");
  928. }
  929. })
  930. }
  931. //提交
  932. function tj() {
  933. var btnArray = ['否', '是'];
  934. mui.confirm('确定提交工单?', '提示', btnArray, function(h) {
  935. if(h.index == 1) {
  936. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/SubmitWorkOrder', {
  937. data: {
  938. ids: $("#ID").text(),
  939. token: token
  940. },
  941. dataType: 'json', //服务器返回json格式数据
  942. type: 'post', //HTTP请求类型
  943. timeout: 10000, //超时时间设置为10秒;
  944. headers: {
  945. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  946. },
  947. success: function(data) {
  948. if(data.state.toLowerCase() == "success") {
  949. mui.toast("提交成功");
  950. var wobj = plus.webview.getWebviewById("WorkDetails");
  951. wobj.reload(true);
  952. }
  953. }
  954. })
  955. } else {
  956. mui.toast("取消提交");
  957. }
  958. })
  959. }
  960. //退回申请
  961. function TH() {
  962. mui.openWindow({
  963. id: 'THsq',
  964. url: 'Work-THsq.html',
  965. show: {
  966. aniShow: 'pop-in'
  967. },
  968. styles: {
  969. popGesture: 'hide'
  970. },
  971. waiting: {
  972. autoShow: true
  973. },
  974. extras: {
  975. name: vText,
  976. token: token
  977. }
  978. });
  979. }
  980. //申请审核
  981. function THSH() {
  982. mui.openWindow({
  983. id: 'Work-THsh',
  984. url: 'Work-THsh.html',
  985. show: {
  986. aniShow: 'pop-in'
  987. },
  988. styles: {
  989. popGesture: 'hide'
  990. },
  991. waiting: {
  992. autoShow: true
  993. },
  994. extras: {
  995. name: vText,
  996. token: token
  997. }
  998. });
  999. }
  1000. //强制结案
  1001. function QZ() {
  1002. mui.openWindow({
  1003. id: 'Work-QZja',
  1004. url: 'Work-QZja.html',
  1005. show: {
  1006. aniShow: 'pop-in'
  1007. },
  1008. styles: {
  1009. popGesture: 'hide'
  1010. },
  1011. waiting: {
  1012. autoShow: true
  1013. },
  1014. extras: {
  1015. name: vText,
  1016. token: token
  1017. }
  1018. });
  1019. }
  1020. //督办
  1021. function DB() {
  1022. mui.openWindow({
  1023. id: 'Work-DB',
  1024. url: 'Work-DB.html',
  1025. show: {
  1026. aniShow: 'pop-in'
  1027. },
  1028. styles: {
  1029. popGesture: 'hide'
  1030. },
  1031. waiting: {
  1032. autoShow: true
  1033. },
  1034. extras: {
  1035. name: vText,
  1036. token: token
  1037. }
  1038. });
  1039. }
  1040. //监察
  1041. function JC() {
  1042. mui.openWindow({
  1043. id: 'Work-JC',
  1044. url: 'Work-JC.html',
  1045. show: {
  1046. aniShow: 'pop-in'
  1047. },
  1048. styles: {
  1049. popGesture: 'hide'
  1050. },
  1051. waiting: {
  1052. autoShow: true
  1053. },
  1054. extras: {
  1055. name: vText,
  1056. token: token
  1057. }
  1058. });
  1059. }
  1060. //收回
  1061. function BacK() {
  1062. var btnArray = ['否', '是'];
  1063. mui.confirm('确定要回收工单?', '提示', btnArray, function(e) {
  1064. if(e.index == 1) {
  1065. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/TakeBackWorkOrder', {
  1066. data: {
  1067. workorderid: $("#ID").text(),
  1068. token: token
  1069. },
  1070. dataType: 'json', //服务器返回json格式数据
  1071. type: 'post', //HTTP请求类型
  1072. timeout: 10000, //超时时间设置为10秒;
  1073. headers: {
  1074. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  1075. },
  1076. success: function(data) {
  1077. if(data.state.toLowerCase() == "success") {
  1078. mui.toast("回收成功");
  1079. var wobj = plus.webview.getWebviewById("WorkDetails");
  1080. wobj.reload(true);
  1081. }
  1082. }
  1083. })
  1084. } else {
  1085. mui.toast("取消");
  1086. }
  1087. })
  1088. }
  1089. //回退
  1090. function HT() {
  1091. mui.openWindow({
  1092. id: 'Work-HT',
  1093. url: 'Work-HT.html',
  1094. show: {
  1095. aniShow: 'pop-in'
  1096. },
  1097. styles: {
  1098. popGesture: 'hide'
  1099. },
  1100. waiting: {
  1101. autoShow: true
  1102. },
  1103. extras: {
  1104. name: vText,
  1105. token: token
  1106. }
  1107. });
  1108. }
  1109. //领导审批
  1110. function LD() {
  1111. mui.openWindow({
  1112. id: 'Work-LD.html',
  1113. url: 'Work-LD.html',
  1114. show: {
  1115. aniShow: 'pop-in'
  1116. },
  1117. styles: {
  1118. popGesture: 'hide'
  1119. },
  1120. waiting: {
  1121. autoShow: true
  1122. },
  1123. extras: {
  1124. name: vText,
  1125. token: token
  1126. }
  1127. });
  1128. }
  1129. //市长批示
  1130. function SZ() {
  1131. mui.openWindow({
  1132. id: 'Work-SZ',
  1133. url: 'Work-SZ.html',
  1134. show: {
  1135. aniShow: 'pop-in'
  1136. },
  1137. styles: {
  1138. popGesture: 'hide'
  1139. },
  1140. waiting: {
  1141. autoShow: true
  1142. },
  1143. extras: {
  1144. name: vText,
  1145. token: token
  1146. }
  1147. });
  1148. }
  1149. $(".Tap").on('tap', function() {
  1150. createDownload();
  1151. })
  1152. })
  1153. </script>
  1154. </body>
  1155. </html>