ZZDianXin_UI - 郑州电信 演示

User-WorkDetails.html 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <link rel="stylesheet" href="../layui/css/layui.css" />
  8. <link rel="stylesheet" href="../css/iconfont.css" />
  9. <link href="../css/mui.min.css" rel="stylesheet" />
  10. <style>
  11. .order_state {
  12. padding: 2px 9px;
  13. background: #FD7C78;
  14. border: 0;
  15. }
  16. .order_icon {
  17. color: #FD7C78;
  18. vertical-align: baseline;
  19. }
  20. .order_title {
  21. color: #5FBEDA;
  22. line-height: 20px;
  23. margin-bottom: 7px;
  24. }
  25. .order_content,.order_HandleContent{
  26. line-height: 20px;
  27. }
  28. .order_HandleContent{
  29. display: none;
  30. }
  31. .order_content {
  32. line-height: 20px;
  33. }
  34. .head_pic {
  35. display: inline-block;
  36. width: 16px;
  37. height: 16px;
  38. vertical-align: middle;
  39. margin-right: 5px;
  40. }
  41. .icon_right {
  42. margin-right: 3px;
  43. }
  44. .gdgz {
  45. font-weight: normal;
  46. margin-top: 10px;
  47. }
  48. .gzDiv{
  49. display: none;
  50. }
  51. .layui-text h3 {
  52. font-size: 15px;
  53. }
  54. .detail_list div {
  55. margin-top: 5px;
  56. }
  57. .prompt_div{
  58. width: 80%;
  59. height: 180px;
  60. position: fixed;
  61. top: 0px;
  62. left: 0px;
  63. right: 0px;
  64. bottom: 0px;
  65. margin: auto;
  66. text-align: center;
  67. display: none;
  68. z-index: 99999;
  69. background: #FFFFFF;
  70. border-radius: 5px;
  71. -moz-border-radius: 5px;
  72. -webkit-border-radius: 5px;
  73. -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  74. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  75. text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  76. }
  77. .prompt_div .title{
  78. width: 100%;
  79. height: 50px;
  80. text-align: center;
  81. line-height: 50px;
  82. margin-top: 10px;
  83. }
  84. .prompt_div .content{
  85. width: 90%;
  86. margin-left: 5%;
  87. margin-top: 10px;
  88. }
  89. .prompt_div .content input{
  90. width: 100%;
  91. height: 30px;
  92. line-height: 30px;
  93. }
  94. .prompt_div .botdiv{
  95. margin-top: 20px;
  96. position: relative;
  97. }
  98. .prompt_div .botdiv .btn_confi{
  99. padding: 6px 12px;
  100. color: #007aff;
  101. /*background: #007aff;*/
  102. font-size: 14px;
  103. display: inline;
  104. position: absolute;
  105. left: 20px;
  106. }
  107. .prompt_div .botdiv .btn_cancel{
  108. padding: 6px 12px;
  109. color: #007aff;
  110. /*background: #007aff;*/
  111. font-size: 14px;
  112. display: inline;
  113. position: absolute;
  114. right: 20px;
  115. }
  116. .body_bj{
  117. width: 100%;
  118. height: 100%;
  119. background: #000000;
  120. position: fixed;
  121. top: 0px;
  122. z-index: 99998;
  123. display: none;
  124. filter:alpha(opacity=60);
  125. -moz-opacity:0.6;
  126. -khtml-opacity: 0.6;
  127. opacity: 0.6;
  128. }
  129. .img-box {
  130. float: left;
  131. width: 20%;
  132. height:60px;
  133. margin: 2%;
  134. text-align: center;
  135. }
  136. .img-box img{
  137. width: 100%;
  138. height: 100%;
  139. }
  140. .image-list {
  141. display: none;
  142. overflow: hidden;
  143. }
  144. .mui-preview-image.mui-fullscreen {
  145. position: fixed;
  146. z-index: 20;
  147. background-color: #000;
  148. }
  149. .mui-preview-header,
  150. .mui-preview-footer {
  151. position: absolute;
  152. width: 100%;
  153. left: 0;
  154. z-index: 10;
  155. }
  156. .mui-preview-header {
  157. height: 44px;
  158. top: 0;
  159. }
  160. .mui-preview-footer {
  161. height: 50px;
  162. bottom: 0px;
  163. }
  164. .mui-preview-header .mui-preview-indicator {
  165. display: block;
  166. line-height: 25px;
  167. color: #fff;
  168. text-align: center;
  169. margin: 15px auto 4;
  170. width: 70px;
  171. background-color: rgba(0, 0, 0, 0.4);
  172. border-radius: 12px;
  173. font-size: 16px;
  174. }
  175. .mui-preview-image {
  176. display: none;
  177. -webkit-animation-duration: 0.5s;
  178. animation-duration: 0.5s;
  179. -webkit-animation-fill-mode: both;
  180. animation-fill-mode: both;
  181. }
  182. .mui-preview-image.mui-preview-in {
  183. -webkit-animation-name: fadeIn;
  184. animation-name: fadeIn;
  185. }
  186. .mui-preview-image.mui-preview-out {
  187. background: none;
  188. -webkit-animation-name: fadeOut;
  189. animation-name: fadeOut;
  190. }
  191. .mui-preview-image.mui-preview-out .mui-preview-header,
  192. .mui-preview-image.mui-preview-out .mui-preview-footer {
  193. display: none;
  194. }
  195. .mui-zoom-scroller {
  196. position: absolute;
  197. display: -webkit-box;
  198. display: -webkit-flex;
  199. display: flex;
  200. -webkit-box-align: center;
  201. -webkit-align-items: center;
  202. align-items: center;
  203. -webkit-box-pack: center;
  204. -webkit-justify-content: center;
  205. justify-content: center;
  206. left: 0;
  207. right: 0;
  208. bottom: 0;
  209. top: 0;
  210. width: 100%;
  211. height: 100%;
  212. margin: 0;
  213. -webkit-backface-visibility: hidden;
  214. }
  215. .mui-zoom {
  216. -webkit-transform-style: preserve-3d;
  217. transform-style: preserve-3d;
  218. }
  219. .mui-slider .mui-slider-group .mui-slider-item img {
  220. width: auto;
  221. height: auto;
  222. max-width: 100%;
  223. max-height: 100%;
  224. }
  225. .mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
  226. width: 100%;
  227. }
  228. .mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
  229. display: inline-table;
  230. }
  231. .mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
  232. display: table-cell;
  233. vertical-align: middle;
  234. }
  235. .mui-preview-loading {
  236. position: absolute;
  237. width: 100%;
  238. height: 100%;
  239. top: 0;
  240. left: 0;
  241. display: none;
  242. }
  243. .mui-preview-loading.mui-active {
  244. display: block;
  245. }
  246. .mui-preview-loading .mui-spinner-white {
  247. position: absolute;
  248. top: 50%;
  249. left: 50%;
  250. margin-left: -25px;
  251. margin-top: -25px;
  252. height: 50px;
  253. width: 50px;
  254. }
  255. .mui-preview-image img.mui-transitioning {
  256. -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
  257. transition: transform 0.5s ease, opacity 0.5s ease;
  258. }
  259. @-webkit-keyframes fadeIn {
  260. 0% {
  261. opacity: 0;
  262. }
  263. 100% {
  264. opacity: 1;
  265. }
  266. }
  267. @keyframes fadeIn {
  268. 0% {
  269. opacity: 0;
  270. }
  271. 100% {
  272. opacity: 1;
  273. }
  274. }
  275. @-webkit-keyframes fadeOut {
  276. 0% {
  277. opacity: 1;
  278. }
  279. 100% {
  280. opacity: 0;
  281. }
  282. }
  283. @keyframes fadeOut {
  284. 0% {
  285. opacity: 1;
  286. }
  287. 100% {
  288. opacity: 0;
  289. }
  290. }
  291. p img {
  292. max-width: 100%;
  293. height: auto;
  294. }
  295. </style>
  296. </head>
  297. <body>
  298. <header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
  299. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  300. <h1 class="mui-center mui-title"><span class="Totle-box">任务详情</span></h1>
  301. </header>
  302. <div class="mui-content">
  303. <ul class="mui-table-view">
  304. <li class="mui-table-view-cell">
  305. <i class="iconfont icon-iconfont02 order_icon"></i><span class="workOrder"></span>
  306. <button type="button" class="order_state mui-btn mui-btn-primary">
  307. <!--待解决-->
  308. </button>
  309. </li>
  310. <li class="mui-table-view-cell">
  311. <h5 class="order_title"></h5>
  312. <p class='order_content'></p>
  313. <p class='order_HandleContent'></p>
  314. <button type="button" class="order_remind mui-btn mui-btn-primary" style="display: block;">催单</button>
  315. <div id="info" style="display: none;"></div>
  316. </li>
  317. <li class="mui-table-view-cell detail_list">
  318. <div class="clearFix">
  319. <p class="mui-pull-left"><i class="iconfont icon-dizhi icon_right"></i>事件地址:</p>
  320. <p class="mui-pull-right address"></p>
  321. </div></br>
  322. <div class="clearFix">
  323. <p class="mui-pull-left"><i class="mui-icon mui-icon-person icon_right" style="font-size: 20px;"></i>
  324. <!--<img class="head_pic" src="../img/shuijiao.jpg" alt="" />-->联系人:</p>
  325. <p class="mui-pull-right people"></p>
  326. </div></br>
  327. <!--<div class="clearFix">
  328. <p class="mui-pull-left">
  329. 性别:</p>
  330. <p class="mui-pull-right sex"></p>
  331. </div></br>
  332. <div class="clearFix">
  333. <p class="mui-pull-left">
  334. 邮箱:</p>
  335. <p class="mui-pull-right mailbox"></p>
  336. </div></br>
  337. <div class="clearFix">
  338. <p class="mui-pull-left">
  339. 邮编:</p>
  340. <p class="mui-pull-right zipcode"></p>
  341. </div></br>-->
  342. <div class="clearFix">
  343. <p class="mui-pull-left"><i class="iconfont icon-dianhua icon_right"></i>联系电话:</p>
  344. <p class="mui-pull-right phone"></p>
  345. </div></br>
  346. <div class="clearFix">
  347. <p class="mui-pull-left"><i class="iconfont icon-dianhua icon_right"></i>来电号码:</p>
  348. <p class="mui-pull-right comphone"></p>
  349. </div>
  350. <div class="clearFix" style="display: none;">
  351. <p class="mui-pull-left"><i class="iconfont icon-quanbu icon_right"></i>工单类型:</p>
  352. <p class="mui-pull-right order_type"></p>
  353. </div></br>
  354. <!--<div class="clearFix">
  355. <p class="mui-pull-left"><i class="iconfont icon-quanbu icon_right"></i>紧急程度:</p>
  356. <p class="mui-pull-right order_secrecy"></p>
  357. </div></br>
  358. <div class="clearFix">
  359. <p class="mui-pull-left"><i class="iconfont icon-quanbu icon_right"></i>保密程度:</p>
  360. <p class="mui-pull-right order_urgent"></p>
  361. </div></br>-->
  362. <!--<div class="clearFix">
  363. <p class="mui-pull-left"><i class="iconfont icon-quanbu icon_right"></i>来源:</p>
  364. <p class="mui-pull-right order_from"></p>
  365. </div></br>-->
  366. <div class="clearFix">
  367. <p class="mui-pull-left"><i class="iconfont icon-daichuli icon_right"></i>提交时间:</p>
  368. <p class="mui-pull-right order_time"></p>
  369. </div></br>
  370. <!--图片展示-->
  371. <div id='image-list' class="row image-list"></div>
  372. <h4 class="gdgz gzDiv">工单跟踪信息</h4>
  373. </li>
  374. <!--工单进度-->
  375. <li class="mui-table-view-cell gzDiv">
  376. <ul class="layui-timeline time_line" >
  377. </ul>
  378. </li>
  379. </ul>
  380. </div>
  381. <div class="prompt_div">
  382. <div class="title">提示</div>
  383. <div class="content"><input type="text" name="" id="tanipnt" placeholder="请输入催单内容" value="" /></div>
  384. <div class="botdiv">
  385. <div class="btn_confi">确定</div>
  386. <div class="btn_cancel">取消</div>
  387. </div>
  388. </div>
  389. <div class="body_bj"></div>
  390. <script src="../js/mui.min.js"></script>
  391. <script src="../js/zepto.js"></script>
  392. <script src="../js/echarts-all.js"></script>
  393. <script src="../js/huayi.http.js"></script>
  394. <script src="../js/huayi.config.js"></script>
  395. <script src="../js/mui.zoom.js"></script>
  396. <script src="../js/mui.previewimage.js"></script>
  397. <script type="text/javascript">
  398. mui.init()
  399. mui.previewImage();
  400. var usercode = localStorage.getItem("user1"); //获取本地存储
  401. var id=helper.request.queryString("id");
  402. $('.order_remind').on('tap',function(){
  403. $(".prompt_div").show();
  404. $(".body_bj").show();
  405. $(".btn_confi").click(function(){
  406. content=$("#tanipnt").val();
  407. $.ajax({
  408. type:"post",
  409. dataType: 'json',
  410. url:huayi.config.callcenter_url + '/APP/AdditionalWorkOrder',
  411. async:true,
  412. data:{
  413. usercode:usercode,
  414. workorderid:id,
  415. content:content
  416. },
  417. success:function(data){
  418. if(data.state=="success"){
  419. mui.toast('催单成功');
  420. }else{
  421. mui.toast(data.message);
  422. }
  423. }
  424. });
  425. $(".prompt_div").hide();
  426. $(".body_bj").hide();
  427. })
  428. $(".btn_cancel").click(function(){
  429. $(".prompt_div").hide();
  430. $(".body_bj").hide();
  431. mui.toast('取消');
  432. })
  433. })
  434. $.ajax({
  435. type:"get",
  436. url:huayi.config.callcenter_url + '/APP/GetWorkOrder',
  437. async:true,
  438. data:{
  439. usercode:usercode,
  440. workorderid:id
  441. },
  442. success:function(data){
  443. var con=JSON.parse(data);
  444. var conDetail=con.data.data[0];
  445. if(con.state.toLowerCase()=='success'){
  446. $('.workOrder').html('工单编号:'+conDetail.F_WorkOrderId+'');
  447. if(conDetail.F_WorkState==0){
  448. $('.order_state').html('已受理');
  449. $(".order_remind").show();
  450. }else if(conDetail.F_WorkState==9){
  451. $('.order_state').html('已处理');
  452. $(".order_remind").hide();
  453. $('.order_HandleContent').show();
  454. $('.order_HandleContent').html('处理内容:'+ conDetail.F_Result);
  455. }else{
  456. $('.order_state').html('办理中');
  457. }
  458. $('.order_title').html(''+conDetail.TypeName1+'标题:'+conDetail.F_ComTitle+'');
  459. $('.order_content').html(''+conDetail.TypeName1+'内容:'+conDetail.F_ComContent+'');
  460. $('.address').html(conDetail.AreaName+conDetail.F_SourceAddress);
  461. $('.people').html(conDetail.F_CusName);
  462. $('.phone').html(conDetail.F_CusPhone);
  463. $('.comphone').html(conDetail.F_ConPhone);
  464. $('.order_type').html(conDetail.TypeName1);
  465. $('.mailbox').html(conDetail.F_Email);
  466. $('.zipcode').html(conDetail.F_ZipCode);
  467. if(conDetail.F_Level == 1) {
  468. $('.order_secrecy').text("普通");
  469. } else if(conDetail.F_Level == 2) {
  470. $('.order_secrecy').text("紧急");
  471. }
  472. if(conDetail.F_IsProtect == 0) {
  473. $('.order_urgent').text("普通");
  474. } else {
  475. $('.order_urgent').text("保密");
  476. }
  477. if(conDetail.F_CusSex == 1) {
  478. $('.sex').text("男");
  479. } else if(conDetail.F_CusSex == 2){
  480. $('.sex').text("女");
  481. }else{
  482. $('.sex').text("");
  483. }
  484. $('.order_time').html(conDetail.F_CreateTime);
  485. $('.order_from').html(conDetail.SourceName);
  486. // $('.order_secrecy').html(conDetail.TypeName1);
  487. }
  488. //图片展示
  489. if(conDetail.File) {
  490. $(conDetail.File).each(function(i, n) {
  491. if(n.F_FileType == '.jpg'||n.F_FileType == '.png') {
  492. $('<div class="img-box"><img src="' + n.F_FileUrl + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
  493. $(".image-list").show();
  494. }
  495. // else if(n.F_FileType == '.docx') {
  496. // mui.toast('猜猜我是谁')
  497. // }
  498. })
  499. }
  500. //跟踪信息
  501. var time_line=con.data.gcdata;
  502. $(time_line).each(function(i,n){
  503. var oldmsg=n.F_Message
  504. var jqmsg="";
  505. var jqmsgnew;
  506. if(oldmsg.match(/-(\S*)\)/)==null){
  507. jqmsgnew=n.F_Message;
  508. }else{
  509. jqmsg=oldmsg.match(/-(\S*)\)/)[0];
  510. jqmsgnew=oldmsg.replace(jqmsg,"");
  511. }
  512. $('<li class="layui-timeline-item">'+
  513. '<i class="layui-icon layui-timeline-axis" style="z-index: 0;">&#xe63f;</i>'+
  514. '<div class="layui-timeline-content layui-text">'+
  515. '<h3 class="layui-timeline-title">'+ n.F_CreateTime +'</h3>'+
  516. // '<p>操作人:'+Agree+'</p>'+
  517. '<p>备注信息:'+jqmsgnew+'</p>'+
  518. '</div>'+
  519. '</li>').appendTo('.time_line')
  520. })
  521. }
  522. });
  523. </script>
  524. </body>
  525. </html>