説明なし

WorkDatil.html 40KB

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