永城市12345_前端 - 这个不用

User-WorkDetails.html 15KB

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