Açıklama Yok

WorkDatil.html 64KB

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