Нет описания

WorkDatil.html 59KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164
  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.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link href="../css/init.css" rel="stylesheet" />
  12. <script src="../css/laydate/laydate.js"></script>
  13. <link href="../css/WorkOrder/seeProjectDetail.css" rel="stylesheet" />
  14. <script src="../My97DatePicker/WdatePicker.js"></script>
  15. <style>
  16. .ld-service li {
  17. float: left;
  18. font-size: 14px;
  19. color: #000;
  20. padding: 5px 15px;
  21. cursor: pointer;
  22. }
  23. .cr-click {
  24. border-bottom: 2px solid #00a1cb;
  25. }
  26. .Shows {
  27. display: block !important;
  28. }
  29. .complain {
  30. display: none;
  31. }
  32. .Borders {
  33. border: 1px solid #d7d7d7;
  34. }
  35. .form-group {
  36. margin-top: 10px;
  37. }
  38. .Table {
  39. width: 100%;
  40. }
  41. tbody {
  42. border: 1px solid #ccc;
  43. }
  44. .Table th {
  45. width: 7%;
  46. padding: 5px 8px 10px 0;
  47. text-align: right;
  48. }
  49. .Table td {
  50. padding: 6px;
  51. }
  52. .bor_bootm {
  53. border-bottom: 1px solid #ccc;
  54. }
  55. .datil_ul {
  56. padding-left: 0;
  57. }
  58. .datil_ul li {
  59. width: 25%;
  60. padding: 5px;
  61. float: left;
  62. }
  63. .wh_btn input {
  64. background: rgb(0, 161, 203);
  65. }
  66. .XGXX {
  67. margin-left: 0;
  68. }
  69. /*.authority{
  70. display: none;
  71. }*/
  72. /*.layui-layer-phimg img{
  73. width: 100% !important;
  74. height: auto !important;
  75. }*/
  76. .layui-layer-imguide {
  77. display: block !important;
  78. }
  79. .gray-bg {
  80. overflow: auto;
  81. }
  82. .img-box .img_mask i {
  83. position: absolute;
  84. right: 5px;
  85. top: 5px;
  86. display: inline-block;
  87. width: 13px;
  88. height: 12px;
  89. cursor: pointer;
  90. color: #fff;
  91. }
  92. .tdWidth td {
  93. width: 20%;
  94. }
  95. </style>
  96. </head>
  97. <body class="gray-bg">
  98. <div class="wrapper wrapper-content animated fadeInRight">
  99. <ul class="ld-service clearfix">
  100. <li itemtype="0" class="cr-click" itemtype="0">工单信息</li>
  101. <li itemtype="1" itemtype="1">交办信息</li>
  102. <li itemtype="3" itemtype="3">办理情况</li>
  103. <li itemtype="3" itemtype="3">延时审核</li>
  104. <li itemtype="3" itemtype="3">退回审核</li>
  105. <li itemtype="4" itemtype="4">回访信息</li>
  106. <li itemtype="7" itemtype="7">办理过程</li>
  107. </ul>
  108. <div class="Content_box">
  109. <!--诉求信息-->
  110. <div class="complain Shows DCL">
  111. <div style="width: 100%;padding: 10px;">
  112. <table class="Table" border="0" cellspacing="0" cellpadding="0">
  113. <tbody>
  114. <tr class="bor_bootm tdWidth">
  115. <th>名字:</th>
  116. <td><span class="F_CusName"></span></td>
  117. <th>来源:</th>
  118. <td><span class="LY"></span></td>
  119. <!-- <th>来电号码:</th>
  120. <td><span class="F_ConPhone"></span></td> -->
  121. <th>联系号码:</th>
  122. <td><span class="F_CusPhone"></span></td>
  123. <th></th>
  124. <td></td>
  125. </tr>
  126. <tr>
  127. <th>标题:</th>
  128. <td colspan="7">
  129. <span class="F_ComTitle"></span>
  130. </td>
  131. </tr>
  132. <tr>
  133. <th>内容:</th>
  134. <td colspan="7">
  135. <span class="F_ComContent"></span>
  136. </td>
  137. </tr>
  138. <tr>
  139. <th>附件:</th>
  140. <td colspan="7">
  141. <div class="FJ file_imgs">
  142. </div>
  143. </td>
  144. </tr>
  145. <tr class="bor_bootm">
  146. <th>事件地址:</th>
  147. <td colspan="7">
  148. <span class="AreaName" style="margin-right: 10px;"></span>
  149. </td>
  150. </tr>
  151. <tr class="tdWidth">
  152. <th>类型:</th>
  153. <td>
  154. <span class="LX"></span>
  155. </td>
  156. <th>紧急程度:</th>
  157. <td>
  158. <span class="CD"></span>
  159. </td>
  160. <th>主题词:</th>
  161. <td><span class="subjectWords"></span></td>
  162. <th>密级:</th>
  163. <td>
  164. <span class="MJ"></span>
  165. </td>
  166. </tr>
  167. <tr>
  168. <th>处理结果:</th>
  169. <td colspan="7">
  170. <span class="Result"></span>
  171. </td>
  172. </tr>
  173. <tr class="bor_bootm">
  174. <th>结案意见:</th>
  175. <td colspan="7">
  176. <span class="F_FinalOpinion"></span>
  177. </td>
  178. </tr>
  179. </tbody>
  180. </table>
  181. </div>
  182. <div style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;回访内容</div>
  183. <div style="width: 100%;padding: 10px;">
  184. <table class="Table" border="" cellspacing="0" cellpadding="0">
  185. <theard>
  186. <tr>
  187. <td class="text-center" style="min-width:50px;">次数</td>
  188. <td class="text-center" style="min-width:100px;">回访人</td>
  189. <td class="text-center" style="min-width:100px;">回访方式</td>
  190. <td class="text-center" style="min-width:100px;">回访内容</td>
  191. <td class="text-center" style="min-width:100px;">回访结果</td>
  192. <td class="text-center" style="min-width:100px;">操作时间</td>
  193. <td class="text-center authority" style="min-width:100px;">操作</td>
  194. </tr>
  195. </theard>
  196. <tbody class="HGXX">
  197. </tbody>
  198. </table>
  199. </div>
  200. </div>
  201. <!--交办信息-->
  202. <div class="complain DCL">
  203. <div style="width: 100%;padding: 10px;">
  204. <table class="Table" border="" cellspacing="0" cellpadding="0">
  205. <theard>
  206. <tr>
  207. <td class="text-center" style="width:60px;">次数</td>
  208. <td class="text-center" style="width:114px;">交办时间</td>
  209. <td class="text-center" style="width:114px;">办理时限</td>
  210. <td class="text-center" style="min-width:80px;">承办单位</td>
  211. <td class="text-center" style="min-width: 200px;">交办意见</td>
  212. <td class="text-center authority" style="min-width: 100px;">操作</td>
  213. </tr>
  214. </theard>
  215. <tbody class="JBXX">
  216. </tbody>
  217. </table>
  218. </div>
  219. </div>
  220. <!--办理情况-->
  221. <div class="complain DCL ">
  222. <div style="width: 100%;padding: 10px;">
  223. <table class="Table" border="" cellspacing="0" cellpadding="0">
  224. <theard>
  225. <tr>
  226. <td class="text-center" style="min-width:80px;">办理责任人</td>
  227. <td class="text-center" style="min-width:80px;">联系方式</td>
  228. <td class="text-center" style="min-width:80px;">职务</td>
  229. <td class="text-center" style="min-width:80px;">二级单位处理结果</td>
  230. <td class="text-center" style="min-width:80px;">处理结果</td>
  231. <td class="text-center" style="min-width:80px;">单位</td>
  232. <td class="text-center" style="min-width:80px;">办理时间</td>
  233. <td class="text-center" style="min-width:80px;">附件</td>
  234. <td class="text-center" style="min-width:80px;">扫描件</td>
  235. <!--<td class="text-center authority" style="min-width:80px;">操作</td>-->
  236. </tr>
  237. </theard>
  238. <tbody class="BLQK">
  239. </tbody>
  240. </table>
  241. </div>
  242. </div>
  243. <!--延时情况-->
  244. <div class="complain DCL ">
  245. <div style="width: 100%;padding: 10px;">
  246. <table class="Table" border="" cellspacing="0" cellpadding="0">
  247. <theard>
  248. <tr>
  249. <td class="text-center" style="min-width:100px;">次数</td>
  250. <td class="text-center" style="min-width:100px;">状态</td>
  251. <td class="text-center" style="min-width:100px;">申请时间</td>
  252. <td class="text-center" style="min-width:100px;">申请原因</td>
  253. <td class="text-center" style="min-width:100px;">审核时间</td>
  254. <td class="text-center" style="min-width:80px;">审核意见</td>
  255. <td class="text-center authority" style="min-width:100px;">操作</td>
  256. </tr>
  257. </theard>
  258. <tbody class="YSSHS">
  259. </tbody>
  260. </table>
  261. </div>
  262. </div>
  263. <!--退回审核-->
  264. <div class="complain DCL ">
  265. <div style="width: 100%;padding: 10px;">
  266. <table class="Table" border="" cellspacing="0" cellpadding="0">
  267. <theard>
  268. <tr>
  269. <td class="text-center" style="min-width:100px;">次数</td>
  270. <td class="text-center" style="min-width:100px;">申请时间</td>
  271. <td class="text-center" style="min-width:100px;">申请原因</td>
  272. <td class="text-center" style="min-width:100px;">状态</td>
  273. <td class="text-center" style="min-width:100px;">审核时间</td>
  274. <td class="text-center" style="min-width:80px;">审核意见</td>
  275. <td class="text-center authority" style="min-width:100px;">操作</td>
  276. </tr>
  277. </theard>
  278. <tbody class="YTHHS">
  279. </tbody>
  280. </table>
  281. </div>
  282. </div>
  283. <!--回访内容-->
  284. <div class="complain DCL">
  285. <div style="width: 100%;padding: 10px;">
  286. <table class="Table" border="" cellspacing="0" cellpadding="0">
  287. <theard>
  288. <tr>
  289. <td class="text-center" style="min-width:50px;">次数</td>
  290. <td class="text-center" style="min-width:100px;">回访人</td>
  291. <td class="text-center" style="min-width:100px;">回访方式</td>
  292. <td class="text-center" style="min-width:100px;">回访内容</td>
  293. <td class="text-center" style="min-width:100px;">回访结果</td>
  294. <td class="text-center" style="min-width:100px;">操作时间</td>
  295. <td class="text-center authority" style="min-width:100px;">操作</td>
  296. </tr>
  297. </theard>
  298. <tbody class="HGXX">
  299. </tbody>
  300. </table>
  301. </div>
  302. </div>
  303. <!--办理过程-->
  304. <div class="complain DCL " id="BLGC">
  305. <div style="width: 100%;padding: 10px;">
  306. <table class="Table" border="" cellspacing="0" cellpadding="0">
  307. <theard>
  308. <tr>
  309. <td class="text-center" style="min-width:50px;">序号</td>
  310. <td class="text-center" style="min-width:100px;">事项</td>
  311. <td class="text-center" style="min-width:100px;">操作时间</td>
  312. </tr>
  313. </theard>
  314. <tbody id="BLGC_">
  315. </tbody>
  316. </table>
  317. </div>
  318. </div>
  319. <div class="clearfix">
  320. <ul class="clearfix datil_ul">
  321. <li>
  322. 单号:
  323. <span class="DH"></span>
  324. </li>
  325. <li>
  326. 状态:
  327. <span class='ZT'></span>
  328. </li>
  329. <li>
  330. 受理人:
  331. <span class="SL"></span>
  332. </li>
  333. <li>
  334. 处理方式:
  335. <span class="CLFS"></span>
  336. </li>
  337. <li>
  338. 提交时间:
  339. <span class="submitTime"></span>
  340. </li>
  341. <li>
  342. 办理时间:
  343. <span class="SLHJ"></span>
  344. </li>
  345. <li>
  346. 结案时间:
  347. <span class="lawsuitTime"></span>
  348. </li>
  349. </ul>
  350. <div class="clearfix wh_btn" style="width:100%;text-align:center;margin:10px 0;">
  351. <input type="hidden" class="hidWid" />
  352. &nbsp;&nbsp;<input type="button" class="change release authority" value="修改" />
  353. &nbsp;&nbsp;<input type="button" value="打印预览" class="print" />
  354. &nbsp;&nbsp;<input type="button" value="关闭" class="closexq" />
  355. </div>
  356. <input type="hidden" id="Change" />
  357. </div>
  358. </div>
  359. </div>
  360. <script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
  361. <script src="../js/mousewheel/jquery.mousewheel.min.js"></script>
  362. <script src="../js/WorkOrder/jquery.drag.js"></script>
  363. <script>
  364. var wid = helper.request.queryString("wid");
  365. var printType = helper.request.queryString("printType");
  366. $(document).ready(function () {
  367. if (wid) {
  368. load();
  369. $("#Change").val(wid);
  370. //预览
  371. $(".print").click(function () {
  372. layer.open({
  373. type: 2,
  374. content: "PrintPreview-1.html?wid=" + wid + "&printType=" + printType, //iframe的url,no代表不显示滚动条
  375. title: '打印/导出',
  376. area: ['788.8px', '90%'], //宽高
  377. });
  378. //window.location.href = "PrintPreview-1.html?wid=" + wid;
  379. })
  380. //关闭
  381. $(".closexq").click(function () {
  382. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  383. parent.layer.close(index); //再执行关闭
  384. })
  385. }
  386. //弹屏右侧切换效果
  387. $(".ld-service li").click(function () {
  388. $(this).addClass("cr-click").siblings().removeClass("cr-click");
  389. var index = $(this).index();
  390. var ss = $(this).attr("itemtype");
  391. $(".Content_box").find(".complain").eq(index).addClass("Shows").siblings().removeClass(
  392. "Shows");
  393. });
  394. function load() {
  395. $.ajax({
  396. type: "get",
  397. url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
  398. dataType: 'json',
  399. async: false,
  400. data: {
  401. workorderid: wid,
  402. token: $.cookie("token")
  403. },
  404. success: function (result) {
  405. if (result.state.toLowerCase() == "success") {
  406. var Data = result.data.data;
  407. var State = Data[0].F_WorkState;
  408. var CLFS = Data[0].F_IsResult;
  409. var isprotect = Data[0].isprotect;
  410. var level = Data[0].F_Level;
  411. $(".F_CusName").text(Data[0].F_CusName);
  412. $(".F_ConPhone").text(Data[0].F_CusPhone);
  413. $(".F_CusPhone").text(Data[0].F_ConPhone);
  414. $(".F_ComTitle").text(Data[0].F_ComTitle);
  415. $('.F_ComContent').text(Data[0].F_ComContent);
  416. $('.F_SourceAddress').text(Data[0].F_SourceAddress);
  417. $(".store_Lng").val(Data[0].F_Longitude);
  418. $(".store_Lat").val(Data[0].F_Latitude);
  419. $('.F_FinalOpinion').text(Data[0].F_FinalOpinion);
  420. $('.LRSJ').text(Data[0].F_CreateTime); //录入时间
  421. $('.submitTime').text(Data[0].F_SubmitTime); //提交时间
  422. $('.SLHJ').text(Data[0].F_DealTime); //办理时间
  423. $('.lawsuitTime').text(Data[0].F_CloseTime); //结案时间
  424. $('.SL').text(Data[0].UserName);
  425. $(".DH").text(Data[0].F_WorkOrderId);
  426. $(".LY").text(Data[0].SourceName);
  427. $(".subjectWords").text(Data[0].KeyName);
  428. $(".LX").text(Data[0].TypeName1);
  429. $(".Result").text(Data[0].F_Result);
  430. $(".AreaName").text(Data[0].AreaName + "--" + Data[0].F_SourceAddress);
  431. //附件
  432. var HTML;
  433. $(Data[0].File).each(function (i, v) {
  434. // HTML = '<a style="margin-right:5px;" href="' + n.F_FileUrl + '" download="' + n.F_FileName.substring(19)+ '">' + n.F_FileName.substring(19) + '</a>'
  435. // $(HTML).appendTo($('.FJ'));
  436. var $list = $(".FJ");
  437. if (v.F_FileType == ".jpg" || v.F_FileType == ".png" || v
  438. .F_FileType == ".image") {
  439. //原来的图片
  440. var $li = $(
  441. //<i class="glyphicon glyphicon-download-alt" aria-hidden="true"></i>
  442. '<li><span class="img_mask"><a href="' + v
  443. .F_FileUrl +
  444. '" download="w3logo" title="点击下载"></a></span>' +
  445. '<img layer-src="' + v.F_FileUrl + '" alt="' + v
  446. .F_FileName + '" src="' + v.F_FileUrl +
  447. '" title="图片"/>' +
  448. // '<span class="file_name">' + v.F_FileName + '</span>' +
  449. '</li>'
  450. );
  451. $list.append($li);
  452. } else {
  453. var $liFile = $(
  454. //<i class="glyphicon glyphicon-download-alt" aria-hidden="true"></i>
  455. '<li><span class="img_mask"><a href="' + v
  456. .F_FileUrl +
  457. '" download="w3logo" title="点击下载"> <i class="fa fa-download" aria-hidden="true"></i></a></span>' +
  458. '<div class="noThumb" title="文件"><i class="glyphicon glyphicon-paperclip"></i><p>无法预览</p></div>' +
  459. // '<span class="file_name">' + v.F_FileName + '</span>' +
  460. '</li>'
  461. );
  462. $list.append($liFile);
  463. }
  464. })
  465. layer.photos({
  466. photos: '.FJ',
  467. anim: 5, //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
  468. title: '查看图片',
  469. move: '.layui-layer-title',
  470. shadeClose: false,
  471. closeBtn: 1,
  472. area: ['80%', '90%'],
  473. tab: function (pic, layero) {
  474. $('.layui-layer-content').on("mousewheel",
  475. function (e, d) {
  476. helper.methods.zoomImg($(
  477. '#layui-layer-photos').find(
  478. 'img[alt="' + pic.alt + '"]'
  479. ), d);
  480. $('#layui-layer-photos').find(
  481. 'img[alt="' + pic.alt + '"]')
  482. .dragging({
  483. move: "both", //拖动方向,x y both
  484. randomPosition: false //初始位置是否随机
  485. });
  486. return false;
  487. });
  488. helper.methods.initLayerPhotos(
  489. '#layui-layer-photos', pic, layero);
  490. },
  491. });
  492. if (State == 0) {
  493. $('.ZT').text("新工单");
  494. } else if (State == 1) {
  495. $('.ZT').text("待交办");
  496. } else if (State == 2) {
  497. $('.ZT').text("待查收");
  498. } else if (State == 3) {
  499. $('.ZT').text("退回审核中");
  500. } else if (State == 4) {
  501. $('.ZT').text("办理中");
  502. } else if (State == 5) {
  503. $('.ZT').text("延时审核中");
  504. } else if (State == 6) {
  505. $('.ZT').text("已办理");
  506. } else if (State == 7) {
  507. $('.ZT').text("已回访");
  508. } else if (State == 8) {
  509. $('.ZT').text("重办中");
  510. } else if (State == 9) {
  511. $('.ZT').text("已结案");
  512. } else if (State == 10) {
  513. $('.ZT').text("待审核");
  514. } else if (State == 11) {
  515. $('.ZT').text("重办待交办");
  516. } else if (State == 13) {
  517. $('.ZT').text("重办驳回");
  518. }
  519. //办理方式
  520. if (CLFS == 0) {
  521. $('.CLFS').text("网络转办");
  522. } else {
  523. $('.CLFS').text("当即办理");
  524. }
  525. //密级程度
  526. if (Data[0].F_IsProtect == 0) {
  527. $('.MJ').text("普通");
  528. } else {
  529. $('.MJ').text("保密");
  530. }
  531. //紧急程度
  532. if (Data[0].F_Level == 1) {
  533. $('.CD').text("普通");
  534. } else if (Data[0].F_Level == 2) {
  535. $('.CD').text("紧急");
  536. }
  537. //办理情况
  538. var htmls = '';
  539. if (result.data.bldata.length < 0) {
  540. htmls = '<tr>' +
  541. '<td class="text-center">' + n.UserName + '</td>' +
  542. '</tr>';
  543. }
  544. $(".BLQK").empty();
  545. //console.log(result.data.bldata);
  546. $(result.data.bldata).each(function (i, n) {
  547. //类型
  548. var bval = n.F_Type;
  549. switch (bval + '') {
  550. case '1':
  551. bval = '主办';
  552. break;
  553. case '2':
  554. bval = '协办';
  555. break;
  556. }
  557. //是和否有处理结果
  558. var isProResultValue = n.F_IsProResult + "";
  559. switch (isProResultValue) {
  560. case "0":
  561. isProResultValue = "默认";
  562. break;
  563. case "1":
  564. isProResultValue = "是";
  565. break;
  566. case "2":
  567. isProResultValue = "否";
  568. break;
  569. }
  570. //是否满意
  571. var isSatisfiedValue = n.F_IsSatisfied + "";
  572. switch (isSatisfiedValue) {
  573. case "0":
  574. isSatisfiedValue = "未评价";
  575. break;
  576. case "1":
  577. isSatisfiedValue = "满意";
  578. break;
  579. case "2":
  580. isSatisfiedValue = "基本满意";
  581. break;
  582. case "3":
  583. isSatisfiedValue = "不满意";
  584. break;
  585. }
  586. //沟通时间
  587. var connectTimeValue = n.F_ConnectTime;
  588. switch (connectTimeValue) {
  589. case null:
  590. connectTimeValue = "";
  591. break;
  592. default:
  593. connectTimeValue = n.F_ConnectTime;
  594. }
  595. //职务
  596. var dutiesValue
  597. switch (n.F_Duties) {
  598. case "":
  599. dutiesValue = ""
  600. break;
  601. case null:
  602. dutiesValue = ""
  603. break;
  604. default:
  605. dutiesValue = n.F_Duties
  606. break;
  607. }
  608. //处理情况
  609. var situationValue
  610. switch (n.F_Situation) {
  611. case "":
  612. situationValue = ""
  613. break;
  614. case null:
  615. situationValue = ""
  616. break;
  617. default:
  618. situationValue = n.F_Situation
  619. break;
  620. }
  621. htmls += '<tr>' +
  622. '<td class="text-center">' + n.F_DealUser + '</td>' +
  623. '<td class="text-center">' + n.F_DealUserContact +
  624. '</td>' +
  625. '<td class="text-center">' + dutiesValue + '</td>' +
  626. '<td class="text-center">' + situationValue + '</td>' +
  627. '<td class="text-center">' + result.data.data[0].F_NewResult + '</td>' +
  628. '<td class="text-center">' + n.DeptName + '</td>' +
  629. '<td class="text-center">' + n.F_CreateTime + '</td>' +
  630. '<td class="text-center">'
  631. //办理情况附件
  632. var FileHtml;
  633. $(n.File).each(function (j, m) {
  634. if (m.F_FileType == ".jpg" || m.F_FileType ==
  635. ".png") {
  636. FileHtml =
  637. '<img style="width:15px; height:15px" border="0" src="' +
  638. m.F_FileUrl + '" alt="' + m.F_FileName +
  639. '"></td>';
  640. } else {
  641. FileHtml = m.F_FileName.substring(19);
  642. }
  643. htmls +=
  644. '<div><a style="margin-right:5px;" target="view_window" href="' +
  645. m.F_FileUrl + '" download="' + m
  646. .F_FileName + '">' + m.F_FileName.substring(
  647. 19) + '</a></div></td>';
  648. })
  649. htmls += '<td class="text-center">'
  650. var scanFileHtml
  651. $(result.data.data[0].Files).each(function (j, m) {
  652. if (m.F_FileType == ".jpg" || m.F_FileType ==
  653. ".png") {
  654. scanFileHtml =
  655. '<img style="width:15px; height:15px" border="0" src="' +
  656. m.F_FileUrl + '" alt="' + m.F_FileName +
  657. '"></td>';
  658. } else {
  659. scanFileHtml = m.F_FileName.substring(19);
  660. }
  661. htmls +=
  662. '<div><a style="margin-right:5px;" target="view_window" href="' +
  663. m.F_FileUrl + '" download="' + m
  664. .F_FileName + '">' + m.F_FileName.substring(
  665. 19) + '</a></div></td>';
  666. })
  667. htmls += '</tr>';
  668. })
  669. $(htmls).appendTo($(".BLQK"));
  670. //三级办理情况
  671. var SJhtmls = '';
  672. if (result.data.ejbldata.length < 0) {
  673. SJhtmls = '<tr>' +
  674. '<td class="text-center">' + n.UserName + '</td>' +
  675. '</tr>';
  676. }
  677. $(result.data.ejbldata).each(function (i, n) {
  678. var bval = n.F_Type;
  679. switch (bval + '') {
  680. case '1':
  681. bval = '主办';
  682. break;
  683. case '2':
  684. bval = '协办';
  685. break;
  686. }
  687. //是否有处理结果
  688. var isProResultValue = n.F_IsProResult + "";
  689. switch (isProResultValue) {
  690. case "0":
  691. isProResultValue = "默认";
  692. break;
  693. case "1":
  694. isProResultValue = "是";
  695. break;
  696. case "2":
  697. isProResultValue = "否";
  698. break;
  699. }
  700. //是否满意
  701. var isSatisfiedValue = n.F_IsSatisfied + "";
  702. switch (isSatisfiedValue) {
  703. case "0":
  704. isSatisfiedValue = "未评价";
  705. break;
  706. case "1":
  707. isSatisfiedValue = "满意";
  708. break;
  709. case "2":
  710. isSatisfiedValue = "基本满意";
  711. break;
  712. case "3":
  713. isSatisfiedValue = "不满意";
  714. break;
  715. }
  716. //沟通时间
  717. var connectTimeValue = n.F_ConnectTime;
  718. switch (connectTimeValue) {
  719. case null:
  720. connectTimeValue = "";
  721. break;
  722. default:
  723. connectTimeValue = n.F_ConnectTime;
  724. }
  725. //职务
  726. var dutiesValue
  727. switch (n.F_Duties) {
  728. case "":
  729. dutiesValue = ""
  730. break;
  731. case null:
  732. dutiesValue = ""
  733. break;
  734. default:
  735. dutiesValue = n.F_Duties
  736. break;
  737. }
  738. //处理情况
  739. var situationValue
  740. switch (n.F_Situation) {
  741. case "":
  742. situationValue = ""
  743. break;
  744. case null:
  745. situationValue = ""
  746. break;
  747. default:
  748. situationValue = n.F_Situation
  749. break;
  750. }
  751. SJhtmls += '<tr>' +
  752. '<td class="text-center">' + n.F_DealUser + '</td>' +
  753. '<td class="text-center">' + n.F_DealUserContact +
  754. '</td>' +
  755. '<td class="text-center">' + dutiesValue + '</td>' +
  756. '<td class="text-center">' + situationValue + '</td>' +
  757. '<td class="text-center">' + n.DeptName + '</td>' +
  758. '<td class="text-center" data-formatter="shtype">' +
  759. bval + '</td>' +
  760. '<td class="text-center">' + n.F_Result + '</td>' +
  761. '<td class="text-center">' + n.F_CreateTime + '</td>' +
  762. '<td class="text-center">' + isProResultValue +
  763. '</td>' +
  764. '<td class="text-center">' + n.F_ProSituation +
  765. '</td>' +
  766. '<td class="text-center">' + connectTimeValue +
  767. '</td>' +
  768. '<td class="text-center">' + n.F_ConnectMode + '</td>' +
  769. '<td class="text-center">' + isSatisfiedValue +
  770. '</td>' +
  771. '<td class="text-center">'
  772. //办理情况附件
  773. var FileHtml;
  774. $(n.File).each(function (j, m) {
  775. if (m.F_FileType == ".jpg" || m.F_FileType ==
  776. ".png") {
  777. FileHtml =
  778. '<img style="width:15px; height:15px" border="0" src="' +
  779. m.F_FileUrl + '" alt="' + m.F_FileName +
  780. '">'
  781. } else {
  782. FileHtml = m.F_FileName.substring(19)
  783. }
  784. SJhtmls +=
  785. '<div><a style="margin-right:5px;" target="view_window" href="' +
  786. m.F_FileUrl + '" download="' + m
  787. .F_FileName + '">' + m.F_FileName.substring(
  788. 19) + '</a></div>';
  789. })
  790. SJhtmls += '</tr>'
  791. })
  792. $(SJhtmls).appendTo($(".SJBLQK"));
  793. //回访内容
  794. var htmlss = '';
  795. if (result.data.hfdata.length < 0) {
  796. htmlss = '<tr>' +
  797. '<td class="text-center">' + n.UserName + '</td>' +
  798. '</tr>';
  799. } else {
  800. $(".HGXX").empty();
  801. $(result.data.hfdata).each(function (i, n) {
  802. var a;
  803. var b;
  804. if (n.F_IsSatisfie == 0) {
  805. a = "不满意";
  806. } else {
  807. a = "满意";
  808. }
  809. if (n.F_Type == 0) {
  810. b = "电话";
  811. } else if (n.F_Type == 1) {
  812. b = "微信";
  813. } else if (n.F_Type == 2) {
  814. b = "APP";
  815. } else if (n.F_Type == 3) {
  816. b = "网站";
  817. } else if (n.F_Type == 4) {
  818. b = "微博";
  819. } else if (n.F_Type == 5) {
  820. b = "信箱";
  821. }
  822. htmlss += '<tr>' +
  823. '<td class="text-center">' + (i + 1) + '</td>' +
  824. '<td class="text-center">' + n.F_VisitUser +
  825. '</td>' +
  826. '<td class="text-center">' + b + '</td>' +
  827. '<td class="text-center">' + n.F_Result + '</td>' +
  828. '<td class="text-center">' + a + '</td>' +
  829. '<td class="text-center">' + n.F_CreateTime +
  830. '</td>' +
  831. '<td class="text-center authority">' +
  832. '<botton class="btns HFXG " index="' + n.F_Id +
  833. '" visituser="' + n.F_VisitUser + '"' +
  834. 'result="' + n.F_Result + '" callid="" type="' + n
  835. .F_Type + '" issatisfie="' + n.F_IsSatisfie +
  836. '">修改</botton>' +
  837. '</td>' +
  838. '</tr>';
  839. })
  840. $(htmlss).appendTo($(".HGXX"));
  841. //交办信息
  842. var jbxx = '';
  843. $(".JBXX").empty();
  844. $(result.data.jbdata).each(function (i, n) {
  845. //debugger;
  846. var OtherDeptName = n.OtherDeptName == null ? '-' : n
  847. .OtherDeptName;
  848. var StandardNames = n.StandardNames == null ? '-' : n
  849. .StandardNames;
  850. jbxx += '<tr>' +
  851. '<td class="text-center">' + (i + 1) + '</td>' +
  852. '<td class="text-center">' + n.F_CreateTime +
  853. '</td>' +
  854. '<td class="text-center">' + n.F_LimitTime +
  855. '</td>' +
  856. '<td class="text-center">' + n.DeptName + '</td>' +
  857. '<td class="text-center">' + n.F_AssignedOpinion +
  858. '</td>' +
  859. '<td class="text-center authority"><botton class="btns XGXX " data_time="' +
  860. n.F_LimitTime + '" data_Opinio="' + n
  861. .F_AssignedOpinion + '" index="' + n.F_Id +
  862. '">修改</botton></td>' +
  863. '</tr>';
  864. })
  865. $(jbxx).appendTo($(".JBXX"));
  866. //督办信息
  867. var htmlsss = '';
  868. if (result.data.dbdata.length < 0) {
  869. htmlsss = '<tr>' +
  870. '<td class="text-center">' + n.UserName + '</td>' +
  871. '</tr>';
  872. } else {
  873. $(".DBXX").empty();
  874. $(result.data.dbdata).each(function (i, n) {
  875. htmlsss = htmlsss + '<tr>' +
  876. '<td class="text-center">' + (i + 1) + '</td>' +
  877. '<td class="text-center">' + n.UserName +
  878. '</td>' +
  879. '<td class="text-center">' + n.F_Content +
  880. '</td>' +
  881. '<td class="text-center">' + n.F_CreateTime +
  882. '</td>' +
  883. '</tr>';
  884. })
  885. $(htmlsss).appendTo($(".DBXX"));
  886. //监察
  887. var html_ = '';
  888. $(".JC").empty();
  889. $(result.data.jcdata).each(function (i, n) {
  890. html_ += '<tr>' +
  891. '<td class="text-center">' + (i + 1) + '</td>' +
  892. '<td class="text-center">' + n.UserName +
  893. '</td>' +
  894. '<td class="text-center">' + n.F_Content +
  895. '</td>' +
  896. '<td class="text-center">' + n.F_CreateTime +
  897. '</td>' +
  898. '</tr>';
  899. })
  900. $(html_).appendTo($(".JC"));
  901. //延时审核
  902. var Ysh = '';
  903. $(".YSSHS").empty();
  904. $(result.data.ysdata).each(function (i, n) {
  905. var a = '未审核';
  906. if (n.F_IsAudit == '1') {
  907. a = '同意';
  908. }
  909. if (n.F_IsAudit == '2') {
  910. a = '拒绝';
  911. }
  912. Ysh += '<tr>' +
  913. '<td class="text-center">' + (i + 1) + '</td>' +
  914. '<td class="text-center">' + a + '</td>' +
  915. '<td class="text-center">' + n.F_NewTime +
  916. '</td>' +
  917. '<td class="text-center">' + n.F_Reason +
  918. '</td>' +
  919. '<td class="text-center">' + n.F_AgreeTime +
  920. '</td>' +
  921. '<td class="text-center">' + n.F_RefuseReason +
  922. '</td>' +
  923. '<td class="text-center authority"><botton class="btns LYSSH " index="' +
  924. n.F_Id + '" reason="' + n.F_RefuseReason +
  925. '" >修改</botton></td>' +
  926. '</tr>';
  927. })
  928. $(Ysh).appendTo($(".YSSHS"));
  929. //退回审核
  930. var Ths = '';
  931. $(".YTHHS").empty();
  932. $(result.data.thdata).each(function (i, n) {
  933. var a = '未审核';
  934. var AuditTime;
  935. var AuditReason;
  936. if (n.F_IsAudit == '1') {
  937. a = '同意';
  938. }
  939. if (n.F_IsAudit == '2') {
  940. a = '拒绝';
  941. }
  942. if (n.F_AuditTime == null) {
  943. AuditTime = "";
  944. } else {
  945. AuditTime = n.F_AuditTime
  946. }
  947. if (n.F_AuditReason == null) {
  948. AuditReason = '';
  949. } else {
  950. AuditReason = n.F_AuditReason
  951. }
  952. Ths += '<tr>' +
  953. '<td class="text-center">' + (i + 1) + '</td>' +
  954. '<td class="text-center">' + n.F_CreateTime +
  955. '</td>' +
  956. '<td class="text-center">' + n.F_Result +
  957. '</td>' +
  958. '<td class="text-center">' + a + '</td>' +
  959. '<td class="text-center">' + AuditTime +
  960. '</td>' +
  961. '<td class="text-center">' + AuditReason +
  962. '</td>' +
  963. '<td class="text-center authority"><botton class="btns LTHSH " index="' +
  964. n.F_Id + '" reason="' + n.F_AuditReason +
  965. '" >修改</botton></td>' +
  966. '</tr>';
  967. })
  968. $(Ths).appendTo($(".YTHHS"));
  969. //办理过程
  970. $("#BLGC_").empty();
  971. if ($.cookie('code') != 'WLDW' && $.cookie('code') !=
  972. 'EJWLDW') {
  973. $(result.data.gcdata).each(function (i, n) {
  974. var html = '<tr>' +
  975. '<td class="text-center">' + (i + 1) +
  976. '</td>' +
  977. '<td class="text-center">' + n.F_Message +
  978. '</td>' +
  979. '<td class="text-center">' + n
  980. .F_CreateTime + '</td>' +
  981. '</tr>';
  982. $(html).appendTo($("#BLGC_"));
  983. });
  984. }
  985. }
  986. }
  987. //转媒体按钮显示或隐藏
  988. if (result.data.issend == '1') {
  989. $(".mediaTransfer").show();
  990. } else {
  991. $(".mediaTransfer").hide();
  992. }
  993. //修改按钮显示或隐藏
  994. if (result.data.isedit == '1') {
  995. $(".authority").show();
  996. } else {
  997. $(".authority").hide();
  998. }
  999. //修改交办意见
  1000. $('.XGXX').click(function () {
  1001. var index = $(this).attr('index');
  1002. layer.open({
  1003. type: 2,
  1004. content: "../CommonHtml/XGjiaoban.html?wid=" +
  1005. index, //iframe的url,no代表不显示滚动条
  1006. title: '修改交办信息',
  1007. area: ['48%', '60%'], //宽高
  1008. });
  1009. //window.location.href = "../CommonHtml/XGjiaoban1.html?id=" + index + "&wid=" + wid; //iframe的url,no代表不显示滚动条
  1010. })
  1011. //修改回访意见
  1012. $(".HFXG").click(function () {
  1013. var index = $(this).attr('index');
  1014. layer.open({
  1015. type: 2,
  1016. content: "../CommonHtml/XGHF.html?wid=" +
  1017. index, //iframe的url,no代表不显示滚动条
  1018. title: '修改回访信息',
  1019. area: ['58%', '60%'], //宽高
  1020. });
  1021. //window.location.href = "../CommonHtml/XGHF.html?wid=" + index; //iframe的url,no代表不显示滚动条
  1022. });
  1023. //修改回退信息
  1024. $(".HtxxBtn").click(function () {
  1025. var index = $(this).attr('index');
  1026. layer.open({
  1027. type: 2,
  1028. content: "../CommonHtml/BackDatil.html?wid=" +
  1029. index + '&tab=0', //iframe的url,no代表不显示滚动条
  1030. title: '修改回退信息',
  1031. area: ['58%', '60%'], //宽高
  1032. })
  1033. //window.location.href = "../CommonHtml/BackDatil.html?wid=" + index+'&tab=0'
  1034. })
  1035. //修改审核延时
  1036. $(".LYSSH").click(function () {
  1037. var index = $(this).attr('index');
  1038. layer.open({
  1039. type: 2,
  1040. content: "../CommonHtml/YSSH.html?wid=" +
  1041. index, //iframe的url,no代表不显示滚动条
  1042. title: '修改延时审核',
  1043. area: ['58%', '60%'], //宽高
  1044. })
  1045. //window.location.href = "../CommonHtml/YSSH.html?wid=" + index;
  1046. })
  1047. //修改退回审核
  1048. $(".LTHSH").click(function () {
  1049. var index = $(this).attr('index');
  1050. layer.open({
  1051. type: 2,
  1052. content: "../CommonHtml/lSHTH.html?wid=" +
  1053. index, //iframe的url,no代表不显示滚动条
  1054. title: '修改退回审核',
  1055. area: ['58%', '60%'], //宽高
  1056. })
  1057. //window.location.href = "../CommonHtml/lSHTH.html?wid=" + index;
  1058. })
  1059. }
  1060. }
  1061. })
  1062. }
  1063. //转媒体
  1064. $('.mediaTransfer').click(function () {
  1065. layer.open({
  1066. content: '是否要转媒体?',
  1067. btn: ['是', '否'],
  1068. yes: function (index, layero) {
  1069. $.post(huayi.config.callcenter_url + "WorkOrder/ReleaseWorkOrder", {
  1070. workorderid: wid, //工单编号
  1071. isrelease: 1, //(0撤回,1转媒体)
  1072. token: $.cookie("token")
  1073. }, function (result) {
  1074. var data = JSON.parse(result);
  1075. if (data.state == "success") {
  1076. $(".mediaTransfer").hide();
  1077. var index = parent.layer.getFrameIndex(window
  1078. .name); //先得到当前iframe层的索引
  1079. parent.layer.close(index); //再执行关闭
  1080. parent.$('#orderlist').bootstrapTable('refresh');
  1081. parent.layer.msg("转媒体成功");
  1082. }
  1083. })
  1084. }
  1085. })
  1086. });
  1087. //修改
  1088. $(".change").click(function () {
  1089. var str = $("#Change").val();
  1090. layer.open({
  1091. type: 2,
  1092. content: "../CommonHtml/XGwordel.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1093. title: '修改交办信息',
  1094. area: ['80%', '80%'], //宽高
  1095. })
  1096. // layer.open({
  1097. // type: 2,
  1098. // content: "../CommonHtml/XGwordel.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1099. // title: '编辑工单',
  1100. // area: ['96%', '80%'], //宽高
  1101. // window.location.href = "../CommonHtml/XGwordel.html?wid=" + str;
  1102. // });
  1103. })
  1104. });
  1105. </script>
  1106. </body>
  1107. </html>