index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>工单列表详情页</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
  13. <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
  14. <!-- <link rel="stylesheet" type="text/css" href="../script/lib/layui/admin/style/admin.css?v9" media="all"> -->
  15. <link rel="stylesheet" type="text/css" href="../script/lib/fancybox/jquery.fancybox.css">
  16. <script src="../script/lib/jquery/jquery.min.js"></script>
  17. <script src="../script/lib/layui/layui.js"></script>
  18. <script src="../script/lib/echarts/echarts.common.min.js"></script>
  19. <script src="../script/lib/miniui/miniui.js"></script>
  20. <script><{Dever::script()}></script>
  21. <script src="../script/dever/core.js"></script>
  22. <script type="text/javascript" src="../script/lib/valid/jquery.validationEngine.min.js?v3"></script>
  23. <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
  24. <script type="text/javascript" src="../script/lib/fancybox/jquery.fancybox.js"></script>
  25. <script src="../script/lib/manage/main.js?v1"></script>
  26. <style>
  27. body{
  28. /*overflow: hidden;*/
  29. background:white;
  30. padding-left: 20px;
  31. height:100%;
  32. }
  33. .layui-col-space15 {
  34. margin: 9.5px;
  35. }
  36. .layui-col-xs4{
  37. /*font-size: 15px;*/
  38. }
  39. .layui-col-xs6{
  40. margin-top: 15px;
  41. /*font-size: 14px;*/
  42. /*margin-left:10px;*/
  43. }
  44. .onebor{
  45. width: 750px;
  46. padding-left: 25px;
  47. padding-bottom: 10px;
  48. border: 1px solid #ddd;
  49. /*border-left: 1px solid grey;
  50. border-right: 1px solid grey;
  51. border-bottom: 1px solid grey;*/
  52. /*margin-top: -8px;*/
  53. margin-bottom: 40px;
  54. box-shadow: 3px 10px 7px -15px;
  55. border-radius: 15px;
  56. }
  57. .desc{
  58. margin-top:10px;
  59. margin-bottom: 15px;
  60. width: 728px;
  61. }
  62. .chu{
  63. margin-top:10px;
  64. margin-bottom: 10px;
  65. /*font-size: 14px;*/
  66. }
  67. .bian{
  68. margin-bottom:15px;
  69. /*font-size: 14px;*/
  70. }
  71. .gongdan{
  72. margin-top:20px;
  73. margin-bottom:-23px;
  74. margin-left:12px;
  75. /*font-size:14px;*/
  76. }
  77. .layout{
  78. width: 100%;
  79. height: 100%;
  80. display: flex;
  81. justify-content : space-around;
  82. font-size:14px;
  83. }
  84. .aside{
  85. flex:0;
  86. height: 100%;
  87. /*overflow-y: auto;*/
  88. background: white;
  89. }
  90. .article{
  91. /*flex:1;*/
  92. width:230px;
  93. height: 100%;
  94. /*overflow-y: auto;/*/
  95. background: white;
  96. }
  97. .row1{
  98. margin-left:10px;
  99. margin-top:20px;
  100. }
  101. .row2{
  102. margin-left:15px;
  103. margin-top:80px;
  104. /*box-shadow: 3px 10px 32px -6px;*/
  105. /*margin-bottom: 15px;*/
  106. }
  107. .row3{
  108. margin-left:15px;
  109. margin-bottom:10px;
  110. }
  111. .layui-btn-primary {
  112. border: 0px solid #C9C9C9;
  113. background-color: #dedede;
  114. color: #555;
  115. /*font-size: 5px;*/
  116. width: 90px;
  117. height: 36px;
  118. /*box-shadow: 3px 10px 32px -6px;*/
  119. }
  120. .layuiadmin-btn-list {
  121. display: inline-block;
  122. height: 38px;
  123. line-height: 38px;
  124. padding: 0 18px;
  125. background-color: #009688;
  126. color: #fff;
  127. white-space: nowrap;
  128. text-align: center;
  129. font-size: 14px;
  130. border: none;
  131. border-radius: 2px;
  132. cursor: pointer;
  133. }
  134. .time {
  135. border: 0px solid #C9C9C9;
  136. background-color: #ededed;
  137. color: #555;
  138. /*font-size: 5px;*/
  139. width: auto;
  140. height: 36px;
  141. margin-bottom: 10px;
  142. }
  143. .layui-icon-praise{
  144. margin-left: -30px;
  145. margin-right: 10px;
  146. /*margin-top: 100px;*/
  147. }
  148. /*.top {
  149. border: 1px solid #C9C9C9;
  150. background-color: #1d953f
  151. ;
  152. color: #555;
  153. font-size: 10px;
  154. width: 100px;
  155. height: 36px;
  156. }*/
  157. .layui-col-md4{
  158. margin-top: 10px;
  159. /*margin-bottom:10px;*/
  160. }
  161. .you{
  162. /*margin-left:90px;*/
  163. position: relative;
  164. top: -45px;
  165. left: 180px;
  166. }
  167. .role{
  168. margin-left:-80px;
  169. }
  170. .content{
  171. margin-top:20px;
  172. margin-bottom: 10px;
  173. /*box-shadow: 3px 10px 32px -6px;*/
  174. }
  175. .list{
  176. margin-top: 20px;
  177. margin-bottom: 10px;
  178. }
  179. .show{
  180. margin-left: 20px;
  181. }
  182. .video{
  183. margin-bottom: 10px;
  184. }
  185. /*.topcontent{
  186. margin:10px 20px 10px 10px;
  187. }*/
  188. </style>
  189. </head>
  190. <body>
  191. <div class="layout">
  192. <aside class='aside'>
  193. <{if($info['status']<3):}>
  194. <div class="layui-row row1">
  195. <div class="anniu">
  196. <button class="btn btn-default layui-btn layuiadmin-btn-list" type="button" style="vertical-align: middle;margin-bottom: 2px;" onclick="finish()">完成关闭</button>
  197. <button class="btn btn-default layui-btn layuiadmin-btn-list" id="quxiao" style="vertical-align: middle;margin-bottom: 2px;" onclick="quxiao();">取消关闭</button>
  198. <{if(isset($hui)):}>
  199. <button class="btn btn-default layui-btn layuiadmin-btn-list" id="huifu" style="vertical-align: middle;margin-bottom: 2px;" onclick="fastEdit($(this),'<{$hui}>')">回复/指派</button>
  200. <{endif}>
  201. </div>
  202. </div>
  203. <{endif}>
  204. <div class="layui-row">
  205. <div class="gongdan">
  206. <div style="margin-bottom:10px"><span>工单号:<{$info['work_num']}></span><span style="margin-left:25px">创建时间:<{$info['cdate']}></span></div>
  207. <div class="grid-demo" style="margin-bottom:10px"><span>创建人:<{$info['admin']}></span><span style="margin-left:25px"><{$info['branch_name']}></span></div>
  208. <div class="grid-demo" style="margin-bottom:10px"><span>工单来源:<{$info['source_name']}></span><span style="margin-left:50px">相关系统产品:<{$info['product_name']}></span></div>
  209. </div>
  210. </div>
  211. <div class="layui-row bian">
  212. <div class="you"><button class="layui-btn layui-btn-radius layui-btn-primary1" style=" color: <{$info['color']}>;background: #f6f5ec; margin-left: 450px;margin-bottom: -19px;width: 120px;"><{$info['priority_name']}></button></div>
  213. </div>
  214. <div class="layui-row onebor">
  215. <div>
  216. <div class="grid-demo" style="margin-top:20px;margin-bottom:20px;">姓名:<{$info['user_name']}><span style="margin-left:200px;"><{$info['role_name']}></span></div>
  217. <div style="margin-bottom:20px;">手机号:<{$info['mobile']}><span style="margin-left:200px;"><{$info['idcard']}></span></div>
  218. <div class="grid-demo" style="margin-bottom:20px;">类别:<{$info['cate_name']}></div>
  219. <div class="grid-demo grid-demo-bg desc">描述:<{$info['desc']}></div>
  220. </div>
  221. <!-- <div class="layui-col-xs6">
  222. <div class="grid-demo">姓名:<{$info['user_name']}></div>
  223. </div>
  224. <div class="layui-col-xs6 role">
  225. <{if(isset($info['role_name']) && $info['role_name']):}>
  226. <div class="grid-demo">代理商角色:<{$info['role_name']}></div>
  227. <{endif}>
  228. </div>
  229. <div class="layui-col-xs6 ">
  230. <div class="grid-demo">手机号:<{$info['mobile']}></div>
  231. </div>
  232. <div class="layui-col-xs6 role">
  233. <div class="grid-demo">身份证号:<{$info['idcard']}></div>
  234. </div>
  235. <div class="layui-col-xs6 ">
  236. <div class="grid-demo">类别:<{$info['cate_name']}></div>
  237. </div>
  238. <div class="layui-col-bg layui-col-md8 ">
  239. <div class="grid-demo grid-demo-bg desc">描述:<{$info['desc']}></div>
  240. </div> -->
  241. <div class="layui-row">
  242. <{if(isset($info['video']) && $info['video']):}>
  243. <div style="float:left;">
  244. <video class="player " height="100px" src="<{$info['video']}>" onclick="player($(this))">查看视频</video>
  245. </div>
  246. <{endif}>
  247. <{if(isset($info['pic']) && $info['pic']):}>
  248. <div id="layer-photos-<{$info['id']}>" class="grid-demo layer-photos-demo " id="tk">
  249. <{foreach($info['pic'] as $k => $v):}>
  250. <img src='<{$v}>' id='show' class="fd show" height='100px'>
  251. <{endforeach}>
  252. </div>
  253. <{endif}>
  254. </div>
  255. </div>
  256. <div class="layui-row content">
  257. <{if(isset($info_log)):}>
  258. <{foreach($info_log as $k => $v):}>
  259. <div class="layui-row onebor">
  260. <div class="layui-row list">
  261. <div class="chu">
  262. <div class="grid-demo"><span >处理时间:<{$v['cdate']}></span><span style="margin-left:20px">处理人:<{$v['admin_group']}></span><span style="margin-left:20px"><{$v['appoint_admin']}></span></div>
  263. </div>
  264. </div>
  265. <div class="layui-col-bg layui-col-md8 ">
  266. <div class="grid-demo grid-demo-bg desc">描述:<{$v['desc']}></div>
  267. </div>
  268. <div class="layui-row ">
  269. <{if(isset($v['video'])):}>
  270. <div style="float:left;">
  271. <video class="player " height="100px" src="<{$v['video']}>" onclick="player($(this))">查看视频</video>
  272. </div>
  273. <{endif}>
  274. <div id="layer-photos_log-<{$v['id']}>" class="layer-photos-demo" id="tk">
  275. <{if(isset($v['pic'])):}>
  276. <{foreach($v['pic'] as $k1 => $v1):}>
  277. <img src='<{$v1}>' class="fd show" height='100px'>
  278. <{endforeach}>
  279. <{endif}>
  280. </div>
  281. </div>
  282. </div>
  283. <{endforeach}>
  284. <{endif}>
  285. </div>
  286. </aside>
  287. <article class="article">
  288. <div class="layui-row row2">
  289. <div class="layui-col-lg row3">
  290. <div class="grid-demo "><i class="layui-icon layui-icon-praise" style=" color: #1E9FFF;"></i><{$info['cdate']}></div>
  291. </div>
  292. <div class="layui-col-lg row3">
  293. <div class="grid-demo"><{$info['admin']}></div>
  294. </div>
  295. <div class="layui-col-lg row3">
  296. <div class="grid-demo">
  297. <button class="layui-btn layui-btn-radius layui-btn-primary">创建工单</button>
  298. </div>
  299. </div>
  300. <{if(isset($zhi)):}>
  301. <{foreach($zhi as $k => $v):}>
  302. <div class="layui-col-lg row3">
  303. <div class="grid-demo"><i class="layui-icon layui-icon-praise" style=" color: #1E9FFF;"></i><{$v['cdate']}></div>
  304. </div>
  305. <div class="layui-col-lg row3">
  306. <div class="grid-demo"><{$v['admin']}></div>
  307. </div>
  308. <{if($v['time']):}>
  309. <div class="layui-col-lg row3">
  310. <div class="grid-demo"><button class="layui-btn layui-btn-radius layui-btn-primary time"><{$v['time']}></button></div>
  311. </div>
  312. <{endif}>
  313. <{if($v['finish']):}>
  314. <div class="layui-col-lg row3">
  315. <div class="grid-demo">
  316. <!-- <button type="button" class="layui-btn"> -->
  317. <button class="layui-btn layui-btn-radius layui-btn-primary"><{$v['finish']}></button>
  318. <!-- </button> -->
  319. </div>
  320. </div>
  321. <{endif}>
  322. <{endforeach}>
  323. <{endif}>
  324. <{if(isset($jilu['time']) && $jilu['time'] ):}>
  325. <div class="layui-col-lg row3">
  326. <div class="grid-demo "><i class="layui-icon layui-icon-praise" style=" color: #1E9FFF;"></i><{$jilu['time']}></div>
  327. <div class="grid-demo" style="margin-bottom:10px; margin-top:10px;"><{$info['admin']}></div>
  328. <{endif}>
  329. <{if(isset($jilu['finish']) && $jilu['finish']):}>
  330. <div class="layui-col-lg row3">
  331. <div class="grid-demo">
  332. <!-- <button type="button" class="layui-btn"> -->
  333. <button class="layui-btn layui-btn-radius layui-btn-primary" style="margin-left:-15px;"><{$jilu['finish']}></button>
  334. <!-- </button> -->
  335. </div>
  336. </div>
  337. <{endif}>
  338. </div>
  339. </article>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. <!-- <input id="id" name="id" value="<{$info['id']}>" type='hidden'/> -->
  345. </div>
  346. <script>
  347. var layer;
  348. layui.use(['layer', 'form'], function(){
  349. layer = layui.layer;
  350. $('.layer-photos-demo').each(function() {
  351. layer.photos({
  352. photos: '#' + $(this).attr('id')
  353. ,anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
  354. });
  355. })
  356. });
  357. function player(e){
  358. vUrl = e.attr('src');
  359. // '<{$info['video']}>'; //获取到播放的url
  360. var loadstr = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop">' +
  361. '<source src='+vUrl+' type="video/mp4"></source></video>';
  362. layer.open({
  363. type: 1,
  364. title: false,
  365. area: ['730px', '500px'],
  366. shade: [0.8, 'rgb(14, 16, 22)'],
  367. skin: 'demo-class',
  368. content: loadstr,
  369. shadeClose:true,
  370. });
  371. }
  372. function finish()
  373. {
  374. var id = '<{$info['id']}>';
  375. if (!id) {
  376. layui.layer.alert('工单id不存在');
  377. return;
  378. };
  379. // alert(111);
  380. layer.confirm('确定完成关闭吗', function() {
  381. $.ajax({
  382. type: "GET",
  383. url: config.host + "lib/manage.setInfoStatus",
  384. data: {
  385. id: id,
  386. json : 1,
  387. },
  388. dataType: "json",
  389. success: function (data) {
  390. // var index = config.host + "lib/manage.code&id=<{$active_id}>";
  391. location.reload();
  392. layui.layer.closeAll();
  393. },
  394. });
  395. });
  396. }
  397. function quxiao()
  398. {
  399. var id = '<{$info['id']}>';
  400. if (!id) {
  401. layui.layer.alert('工单id不存在');
  402. return;
  403. };
  404. // alert(111);
  405. layer.confirm('确定取消关闭吗', function() {
  406. $.ajax({
  407. type: "GET",
  408. url: config.host + "lib/manage.setInfoStatus",
  409. data: {
  410. id: id,
  411. type: '1',
  412. json : 1,
  413. },
  414. dataType: "json",
  415. success: function (data) {
  416. location.reload();
  417. layui.layer.closeAll();
  418. },
  419. });
  420. });
  421. }
  422. // var function fastEdit
  423. // function huifu()
  424. // {
  425. // }
  426. </script>
  427. </body>
  428. </html>