Brak opisu

WorkDatil.html 38KB

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