ZZDianXin_UI - 郑州电信 演示

WorkDetails.html 26KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217
  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" style="-webkit-user-select:text;"></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. <div class="mui-table mui-table-view work-content ">
  483. <h5 class=" Active size-16">
  484. <span >投诉标题:<p id="F_ComTitle" ></p></span>
  485. </h5>
  486. <h5 class="Active size-16 " style="line-height: 15px;">
  487. <span>投诉内容:</span><h5 id="F_ComContent"></h5>
  488. </h5>
  489. </div>
  490. <!--</ul>-->
  491. <!--信息展示-->
  492. <ul class="mui-table-view size-14 message-box">
  493. <li class="work-content">
  494. <span>
  495. <i class="mui-icon mui-icon-location size-16"></i>
  496. 投诉地址:
  497. </span>
  498. <span id="AreaName"></span>
  499. <span id="AreaName_deta"></span>
  500. </li>
  501. <li class="work-content">
  502. <span>
  503. <i class="mui-icon mui-icon-person size-16"></i>
  504. 投诉人:
  505. </span>
  506. <span id="F_CusName"></span>
  507. </li>
  508. <li class="work-content">
  509. <span>
  510. <i class="mui-icon mui-icon-phone size-16"></i>
  511. 投诉人电话:
  512. </span>
  513. <span id="F_CusPhone">
  514. </span>
  515. </li>
  516. <li class="work-content">
  517. <span>
  518. <i class="mui-icon mui-icon-compose size-16"></i>
  519. 工单类型:
  520. </span>
  521. <span id="TypeName1"></span>
  522. </li>
  523. <li class="work-content" style="padding-bottom: 20px;">
  524. <span>
  525. <i class="mui-icon mui-icon-paperclip size-16"></i>
  526. 提交时间:
  527. </span><span id="F_CreateTime"></span>
  528. </li>
  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. // alert("ddd");
  604. jqmsgnew=data.data.gcdata[i].F_Message;
  605. // jqmsg=oldmsg.match(/-(\S*)\)/)[0];
  606. }else{
  607. jqmsg=oldmsg.match(/-(\S*)\)/)[0];
  608. jqmsgnew=oldmsg.replace(jqmsg,"");
  609. }
  610. div.innerHTML =
  611. '<h5 class="mui-badge-success mui-badge-inverted">' + data.data.gcdata[i].F_CreateTime + ' ' +
  612. // '<h5><span>操作人:</span><span>' + Agree + '</span></h5>' +
  613. '<h5><span>备注信息:</span><span class="Font">' + jqmsgnew + '</span></h5>';
  614. table.appendChild(div);
  615. }
  616. //按钮显示
  617. if(data.data.btndata.length > 0) {
  618. $('.BTS').show();
  619. for(var i = 0; i < data.data.btndata.length; i++) {
  620. $('<li class=" mui-media mui-col-xs-4">' +
  621. '<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>' +
  622. '</li>').appendTo(".mui-grid-9")
  623. }
  624. }
  625. //图片展示
  626. if(Data[0].File) {
  627. $(Data[0].File).each(function(i, n) {
  628. if(n.F_FileType == '.jpg'||n.F_FileType == '.png') {
  629. $('<div class="img-box"><img src="' + n.F_FileUrl + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
  630. $(".image-list").show();
  631. } else if(n.F_FileType == '.docx') {
  632. mui.toast('猜猜我是谁')
  633. }
  634. })
  635. }
  636. $(".Biaoqian").on("tap", function() {
  637. var a = $(this).attr("index");
  638. if(a == 14) {
  639. YS(); //延时
  640. } else if(a == 11) {
  641. CS(); //查收
  642. } else if(a == 12) {
  643. TH(); //退回
  644. } else if(a == 13) {
  645. Bl(); //办理
  646. //领导权限
  647. } else if(a == 15) {
  648. THSH(); //退回审核
  649. } else if(a == 17) {
  650. YSsh(); //延时审核
  651. } else if(a == 22) {
  652. QZ(); //强制结案
  653. } else if(a == 21) {
  654. HT(); //回退
  655. } else if(a == 5) {
  656. JB(); //交办
  657. } else if(a == 6) {
  658. LD(); //领导批示
  659. } else if(a == 7) {
  660. SZ(); //市长批示
  661. } else if(a == 8) {
  662. DB(); //督办
  663. } else if(a == 9) {
  664. JC(); //监察
  665. } else if(a == 10) {
  666. BacK(); //回收
  667. } else if(a == 1) {
  668. CK(); //查看
  669. } else if(a == 2) {
  670. BJ(); //编辑
  671. } else if(a == 18) {
  672. CB(); //重办
  673. } else if(a == 23) {
  674. PD(); //派单
  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. //派单
  707. function PD() {
  708. mui.openWindow({
  709. id: 'Work-jiaoban',
  710. url: 'Work-paidan.html',
  711. show: {
  712. aniShow: 'pop-in'
  713. },
  714. styles: {
  715. popGesture: 'hide'
  716. },
  717. waiting: {
  718. autoShow: true
  719. },
  720. extras: {
  721. name: vText,
  722. token: token
  723. }
  724. });
  725. }
  726. //重办
  727. function CB() {
  728. mui.openWindow({
  729. id: 'work-cb',
  730. url: 'work-cb.html',
  731. show: {
  732. aniShow: 'pop-in'
  733. },
  734. styles: {
  735. popGesture: 'hide'
  736. },
  737. waiting: {
  738. autoShow: true
  739. },
  740. extras: {
  741. name: vText,
  742. token: token
  743. }
  744. });
  745. }
  746. // 编辑
  747. function BJ() {
  748. mui.openWindow({
  749. id: 'bianji',
  750. url: 'Work-bianji.html',
  751. show: {
  752. aniShow: 'pop-in'
  753. },
  754. styles: {
  755. popGesture: 'hide'
  756. },
  757. waiting: {
  758. autoShow: true
  759. },
  760. extras: {
  761. name: vText,
  762. token: token
  763. }
  764. });
  765. }
  766. //查看
  767. function CK() {
  768. mui.openWindow({
  769. id: 'Work-yijian',
  770. url: 'Work-yijian.html',
  771. show: {
  772. aniShow: 'pop-in'
  773. },
  774. styles: {
  775. popGesture: 'hide'
  776. },
  777. waiting: {
  778. autoShow: true
  779. },
  780. extras: {
  781. name: vText,
  782. }
  783. });
  784. }
  785. //办理工单
  786. function Bl() {
  787. mui.openWindow({
  788. id: 'Work-banli',
  789. url: 'Work-banli.html',
  790. show: {
  791. aniShow: 'pop-in'
  792. },
  793. styles: {
  794. popGesture: 'hide'
  795. },
  796. waiting: {
  797. autoShow: true
  798. },
  799. extras: {
  800. name: vText,
  801. token: token
  802. }
  803. });
  804. }
  805. //延时申请
  806. function YS() {
  807. mui.openWindow({
  808. id: 'Work-YSsq',
  809. url: 'Work-YSsq.html',
  810. show: {
  811. aniShow: 'pop-in'
  812. },
  813. styles: {
  814. popGesture: 'hide'
  815. },
  816. waiting: {
  817. autoShow: true
  818. },
  819. extras: {
  820. name: vText,
  821. token: token
  822. }
  823. });
  824. }
  825. //延时审核
  826. function YSsh() {
  827. mui.openWindow({
  828. id: 'Work-YSsh',
  829. url: 'Work-YSsh.html',
  830. show: {
  831. aniShow: 'pop-in'
  832. },
  833. styles: {
  834. popGesture: 'hide'
  835. },
  836. waiting: {
  837. autoShow: true
  838. },
  839. extras: {
  840. name: vText,
  841. token: token
  842. }
  843. });
  844. }
  845. //查收工单
  846. function CS() {
  847. var btnArray = ['否', '是'];
  848. mui.confirm('确定要查收工单?', '提示', btnArray, function(e) {
  849. if(e.index == 1) {
  850. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/ReceiveWorkOrder', {
  851. data: {
  852. workorderid: $("#ID").text(),
  853. token: token
  854. },
  855. dataType: 'json', //服务器返回json格式数据
  856. type: 'post', //HTTP请求类型
  857. timeout: 10000, //超时时间设置为10秒;
  858. headers: {
  859. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  860. },
  861. success: function(data) {
  862. if(data.state.toLowerCase() == "success") {
  863. mui.toast("查收成功");
  864. var wobj = plus.webview.getWebviewById("WorkDetails");
  865. wobj.reload(true);
  866. }
  867. }
  868. })
  869. } else {
  870. mui.toast("取消查收");
  871. }
  872. })
  873. }
  874. //删除
  875. function move() {
  876. var btnArray = ['否', '是'];
  877. mui.confirm('确定要删除工单?', '提示', btnArray, function(f) {
  878. if(f.index == 1) {
  879. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/DelWorkOrder', {
  880. data: {
  881. ids: $("#ID").text(),
  882. token: token
  883. },
  884. dataType: 'json', //服务器返回json格式数据
  885. type: 'post', //HTTP请求类型
  886. timeout: 10000, //超时时间设置为10秒;
  887. headers: {
  888. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  889. },
  890. success: function(data) {
  891. if(data.state.toLowerCase() == "success") {
  892. mui.toast("删除成功");
  893. var wobj = plus.webview.getWebviewById("Work-list");
  894. wobj.reload(true);
  895. }
  896. }
  897. })
  898. } else {
  899. mui.toast("取消删除");
  900. }
  901. })
  902. }
  903. //提交
  904. function tj() {
  905. var btnArray = ['否', '是'];
  906. mui.confirm('确定提交工单?', '提示', btnArray, function(h) {
  907. if(h.index == 1) {
  908. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/SubmitWorkOrder', {
  909. data: {
  910. ids: $("#ID").text(),
  911. token: token
  912. },
  913. dataType: 'json', //服务器返回json格式数据
  914. type: 'post', //HTTP请求类型
  915. timeout: 10000, //超时时间设置为10秒;
  916. headers: {
  917. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  918. },
  919. success: function(data) {
  920. if(data.state.toLowerCase() == "success") {
  921. mui.toast("提交成功");
  922. var wobj = plus.webview.getWebviewById("WorkDetails");
  923. wobj.reload(true);
  924. }
  925. }
  926. })
  927. } else {
  928. mui.toast("取消提交");
  929. }
  930. })
  931. }
  932. //退回申请
  933. function TH() {
  934. mui.openWindow({
  935. id: 'THsq',
  936. url: 'Work-THsq.html',
  937. show: {
  938. aniShow: 'pop-in'
  939. },
  940. styles: {
  941. popGesture: 'hide'
  942. },
  943. waiting: {
  944. autoShow: true
  945. },
  946. extras: {
  947. name: vText,
  948. token: token
  949. }
  950. });
  951. }
  952. //申请审核
  953. function THSH() {
  954. mui.openWindow({
  955. id: 'Work-THsh',
  956. url: 'Work-THsh.html',
  957. show: {
  958. aniShow: 'pop-in'
  959. },
  960. styles: {
  961. popGesture: 'hide'
  962. },
  963. waiting: {
  964. autoShow: true
  965. },
  966. extras: {
  967. name: vText,
  968. token: token
  969. }
  970. });
  971. }
  972. //强制结案
  973. function QZ() {
  974. mui.openWindow({
  975. id: 'Work-QZja',
  976. url: 'Work-QZja.html',
  977. show: {
  978. aniShow: 'pop-in'
  979. },
  980. styles: {
  981. popGesture: 'hide'
  982. },
  983. waiting: {
  984. autoShow: true
  985. },
  986. extras: {
  987. name: vText,
  988. token: token
  989. }
  990. });
  991. }
  992. //督办
  993. function DB() {
  994. mui.openWindow({
  995. id: 'Work-DB',
  996. url: 'Work-DB.html',
  997. show: {
  998. aniShow: 'pop-in'
  999. },
  1000. styles: {
  1001. popGesture: 'hide'
  1002. },
  1003. waiting: {
  1004. autoShow: true
  1005. },
  1006. extras: {
  1007. name: vText,
  1008. token: token
  1009. }
  1010. });
  1011. }
  1012. //监察
  1013. function JC() {
  1014. mui.openWindow({
  1015. id: 'Work-JC',
  1016. url: 'Work-JC.html',
  1017. show: {
  1018. aniShow: 'pop-in'
  1019. },
  1020. styles: {
  1021. popGesture: 'hide'
  1022. },
  1023. waiting: {
  1024. autoShow: true
  1025. },
  1026. extras: {
  1027. name: vText,
  1028. token: token
  1029. }
  1030. });
  1031. }
  1032. //收回
  1033. function BacK() {
  1034. var btnArray = ['否', '是'];
  1035. mui.confirm('确定要回收工单?', '提示', btnArray, function(e) {
  1036. if(e.index == 1) {
  1037. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/TakeBackWorkOrder', {
  1038. data: {
  1039. workorderid: $("#ID").text(),
  1040. token: token
  1041. },
  1042. dataType: 'json', //服务器返回json格式数据
  1043. type: 'post', //HTTP请求类型
  1044. timeout: 10000, //超时时间设置为10秒;
  1045. headers: {
  1046. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  1047. },
  1048. success: function(data) {
  1049. if(data.state.toLowerCase() == "success") {
  1050. mui.toast("回收成功");
  1051. var wobj = plus.webview.getWebviewById("WorkDetails");
  1052. wobj.reload(true);
  1053. }
  1054. }
  1055. })
  1056. } else {
  1057. mui.toast("取消");
  1058. }
  1059. })
  1060. }
  1061. //回退
  1062. function HT() {
  1063. mui.openWindow({
  1064. id: 'Work-HT',
  1065. url: 'Work-HT.html',
  1066. show: {
  1067. aniShow: 'pop-in'
  1068. },
  1069. styles: {
  1070. popGesture: 'hide'
  1071. },
  1072. waiting: {
  1073. autoShow: true
  1074. },
  1075. extras: {
  1076. name: vText,
  1077. token: token
  1078. }
  1079. });
  1080. }
  1081. //领导审批
  1082. function LD() {
  1083. mui.openWindow({
  1084. id: 'Work-LD.html',
  1085. url: 'Work-LD.html',
  1086. show: {
  1087. aniShow: 'pop-in'
  1088. },
  1089. styles: {
  1090. popGesture: 'hide'
  1091. },
  1092. waiting: {
  1093. autoShow: true
  1094. },
  1095. extras: {
  1096. name: vText,
  1097. token: token
  1098. }
  1099. });
  1100. }
  1101. //市长批示
  1102. function SZ() {
  1103. mui.openWindow({
  1104. id: 'Work-SZ',
  1105. url: 'Work-SZ.html',
  1106. show: {
  1107. aniShow: 'pop-in'
  1108. },
  1109. styles: {
  1110. popGesture: 'hide'
  1111. },
  1112. waiting: {
  1113. autoShow: true
  1114. },
  1115. extras: {
  1116. name: vText,
  1117. token: token
  1118. }
  1119. });
  1120. }
  1121. $(".Tap").on('tap', function() {
  1122. createDownload();
  1123. })
  1124. })
  1125. </script>
  1126. </body>
  1127. </html>