暫無描述

Lawsuit.html 52KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>工单查询</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../css/bootstrap-select.css" />
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <!-- <link rel="stylesheet" href="../css/addappeal.css" /> -->
  12. <style>
  13. #sqzx th {
  14. padding: 5px 8px 5px 0;
  15. text-align: right;
  16. }
  17. .select {
  18. width: 150px;
  19. background-color: #fff;
  20. background-image: none;
  21. border: 1px solid #ccc;
  22. border-radius: 1px;
  23. color: inherit;
  24. padding: 6px 12px;
  25. }
  26. #sex {
  27. background-color: #fff;
  28. background-image: none;
  29. border: 1px solid #ccc;
  30. border-radius: 1px;
  31. color: inherit;
  32. padding: 6px 12px;
  33. }
  34. input {
  35. background-color: #fff;
  36. background-image: none;
  37. border: 1px solid #ccc;
  38. border-radius: 1px;
  39. color: inherit;
  40. padding: 6px 12px;
  41. }
  42. #sqzx td {
  43. padding: 6px 0 5px 10px;
  44. }
  45. .lxr ul li {
  46. float: left;
  47. list-style: none;
  48. width: 30%;
  49. margin-bottom: 5px;
  50. padding-top: 10px;
  51. }
  52. .clearFix:after {
  53. content: "";
  54. display: block;
  55. clear: both;
  56. }
  57. .form-group {
  58. padding-left: 40px;
  59. margin-bottom: 0;
  60. }
  61. textarea {
  62. height: 70px;
  63. border: 1px solid #ccc;
  64. border-radius: 1px;
  65. width: 50%;
  66. resize: none;
  67. }
  68. .textarea_box {
  69. margin-top: 10px;
  70. }
  71. .box_content {
  72. border-bottom: 1px solid #ccc;
  73. }
  74. .tj_content {
  75. border: 1px solid #e6e6e6;
  76. border-radius: 5px;
  77. }
  78. .t-shade {
  79. position: fixed;
  80. top: 0;
  81. left: 0;
  82. width: 100%;
  83. background: rgba(0, 0, 0, 0.48);
  84. z-index: 10004;
  85. display: none;
  86. }
  87. .lyxz .shade_k {
  88. z-index: 10005;
  89. width: 40%;
  90. left: 30%;
  91. position: absolute;
  92. background-color: rgb(255, 255, 255);
  93. box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
  94. margin: 20% auto;
  95. border-radius: 5px;
  96. }
  97. .shade_title {
  98. padding: 0 80px 0 20px;
  99. height: 42px;
  100. line-height: 42px;
  101. border-bottom: 1px solid #eee;
  102. font-size: 16px;
  103. color: #ffffff;
  104. overflow: hidden;
  105. background-color: #00a1cb;
  106. border-radius: 2px 2px 0 0;
  107. position: relative;
  108. border-top-left-radius: 5px;
  109. border-top-right-radius: 5px;
  110. }
  111. .cx {
  112. display: block;
  113. }
  114. .setwin {
  115. position: absolute;
  116. right: 15px;
  117. top: 5px;
  118. font-size: 0;
  119. line-height: initial;
  120. }
  121. .setwin a {
  122. position: relative;
  123. width: 16px;
  124. height: 16px;
  125. font-size: 20px;
  126. color: #fff;
  127. }
  128. .xg i {
  129. font-size: 16px;
  130. }
  131. .hidens {
  132. display: none;
  133. }
  134. .inpBox {
  135. border: 1px solid #cccccc;
  136. height: 31px;
  137. width: 220px;
  138. display: inline-block;
  139. position: relative;
  140. vertical-align: middle;
  141. position: absolute;
  142. left: 0px;
  143. top: 0px;
  144. z-index: 111;
  145. }
  146. .selDpart1 {
  147. position: absolute;
  148. left: 0px;
  149. top: 30px;
  150. z-index: 11111;
  151. width: 220px;
  152. line-height: 30px;
  153. background: #ffffff;
  154. display: none;
  155. }
  156. #sponsor {
  157. width: 218px;
  158. border: 1px solid #00a1cb;
  159. margin: 0;
  160. padding: 0;
  161. list-style: none;
  162. max-height: 212px;
  163. overflow-x: hidden;
  164. overflow-y: scroll;
  165. }
  166. #sponsor li {
  167. margin: 0;
  168. padding-left: 10px;
  169. width: 220px;
  170. height: 30px;
  171. line-height: 30px;
  172. list-style: none;
  173. }
  174. #sponsor li:hover {
  175. background: #00a1cb;
  176. }
  177. .addTree,
  178. .addTreeReactionCategory {
  179. background: #fff;
  180. position: absolute;
  181. width: 100%;
  182. border: 1px solid darkgrey;
  183. right: 0;
  184. top: 29px;
  185. display: none;
  186. z-index: 222;
  187. }
  188. .xl,
  189. .xlReactionCategory {
  190. display: inline-block;
  191. background: url(../../img/dropDown.png) no-repeat;
  192. height: 100%;
  193. background-position: center center;
  194. width: 20px;
  195. position: absolute;
  196. right: 0;
  197. top: 0px;
  198. /* background-color: #f7bc8b; */
  199. cursor: pointer;
  200. }
  201. .ztree li span {
  202. border: none;
  203. padding: 0;
  204. }
  205. .inps,
  206. .inpsReactionCategory {
  207. width: 217px;
  208. height: 29px;
  209. outline: none;
  210. border: 0;
  211. border-image-width: 0;
  212. padding: 0;
  213. padding-left: 3px;
  214. }
  215. .xl,
  216. .xlReactionCategory {
  217. display: inline-block;
  218. background: url(../img/dropDown.png) no-repeat;
  219. height: 100%;
  220. background-position: center center;
  221. width: 20px;
  222. position: absolute;
  223. right: 0;
  224. top: 0px;
  225. /* background-color: #f7bc8b; */
  226. cursor: pointer;
  227. }
  228. .Cleans,
  229. .CleansReactionCategory {
  230. display: inline-block;
  231. width: 20px;
  232. position: absolute;
  233. right: 21px;
  234. top: 8px;
  235. display: none;
  236. }
  237. .Min-width {
  238. width: 150px;
  239. }
  240. .btn-default {
  241. background: #ffffff;
  242. color: #000000;
  243. }
  244. </style>
  245. </head>
  246. <body class="gray-bg">
  247. <div class="wrapper wrapper-content animated fadeInRight">
  248. <div class="daoHang clearfix">
  249. <div class="dhLeft">
  250. <sapn>
  251. <i class="syIcon"></i>位置:
  252. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  253. <a href="javaScript:;">工单处理</a>&gt;
  254. <a href="" class="nowPosition">查询工单</a>
  255. </sapn>
  256. </div>
  257. <div class="dhRight">
  258. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  259. </div>
  260. </div>
  261. <div style="padding: 10px" class="tj_content clearFix">
  262. <div style="padding: 10px" class="tj_content clearFix">
  263. <div>
  264. <span>【搜索信息】</span>
  265. <div class="box_content">
  266. <table id="sqzx" style="width: 100%" border="0" cellspacing="0" cellpadding="0">
  267. <tr>
  268. <!-- <th>关键字:</th>
  269. <td>
  270. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  271. </td> -->
  272. <!-- <th>关键字:</th>
  273. <td>
  274. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  275. </td> -->
  276. <!-- <th>关键字:</th>
  277. <td>
  278. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  279. </td> -->
  280. <th>事项编号:</th>
  281. <td>
  282. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  283. </td>
  284. <th>工单状态:</th>
  285. <td>
  286. <select name="" id="state" class="select">
  287. <option selected="selected" value="">
  288. 请选择
  289. </option>
  290. <option value="0">新工单</option>
  291. <option value="1">待交办</option>
  292. <!-- <option value="10">待审核</option> -->
  293. <option value="2">待查收</option>
  294. <option value="3">
  295. 退回审核中
  296. </option>
  297. <option value="4">办理中</option>
  298. <option value="5">
  299. 延时审核中
  300. </option>
  301. <option value="6">已办理</option>
  302. <!-- <option value="7">已回访</option> -->
  303. <option value="11">
  304. 重办待交办
  305. </option>
  306. <option value="13">重办驳回</option>
  307. <option value="8">重办中</option>
  308. <option value="9">已结案</option>
  309. </select>
  310. </td>
  311. <th>时间:</th>
  312. <td colspan="3">
  313. <input id="starttime" class="photo x-color laydate-icon" type="text"
  314. autocomplete="off" style="height: 35px;" />-<input id="endtime"
  315. class="photo x-color laydate-icon" type="text" autocomplete="off"
  316. style="height: 35px;" />
  317. </td>
  318. </tr>
  319. <tr>
  320. <th>工单来源:</th>
  321. <td>
  322. <select class="select_" id="source"></select>
  323. </td>
  324. <th>反映类别:</th>
  325. <td style="position: relative;">
  326. <div class="inpBox">
  327. <input type="text" class="inpsReactionCategory" />
  328. <input type="hidden" id="keyid" />
  329. <i class="CleansReactionCategory fa fa-close"></i>
  330. <i class="xlReactionCategory xl_one"></i>
  331. <div class="addTreeReactionCategory xlAddReactionCategory">
  332. <ul id="addTreeDemoReactionCategory" class="ztree"></ul>
  333. </div>
  334. </div>
  335. </td>
  336. <th>来电号码:</th>
  337. <td>
  338. <input type="text" id="tel" placeholder="请输入来电号码" />
  339. </td>
  340. <th>来电人:</th>
  341. <td>
  342. <input type="text" id="name" class="Min-width" autocomplete="off" />
  343. </td>
  344. </tr>
  345. <tr>
  346. <th>工单标题:</th>
  347. <td>
  348. <input type="text" placeholder="输入工单标题" id="workOrderTitle" class="Min-width" />
  349. </td>
  350. <th>来电内容:</th>
  351. <td>
  352. <input type="text" placeholder="输入来电内容" id="workOrderContent" class="Min-width" />
  353. </td>
  354. <th>办理结果:</th>
  355. <td>
  356. <input type="text" placeholder="输入办理结果" id="workOrderProcessingResult"
  357. class="Min-width" />
  358. </td>
  359. </tr>
  360. <tr>
  361. <th>处理类型:</th>
  362. <td>
  363. <select class="select_" id="dealtype">
  364. <option value="">请选择</option>
  365. <option value="0">网络转派</option>
  366. <option value="1">当即办理</option>
  367. </select>
  368. </td>
  369. <th>类型:</th>
  370. <td>
  371. <select class="select_" id="type"></select>
  372. </td>
  373. <th>区域:</th>
  374. <td>
  375. <select class="select_" id="sourceAreas"></select>
  376. </td>
  377. <th>承办单位:</th>
  378. <td style="position: relative">
  379. <div class="inpBox">
  380. <input type="text" class="inps" onkeyup="darptSearch()" />
  381. <i class="Cleans fa fa-close"></i>
  382. <i class="xl xl_one"></i>
  383. <div class="addTree xlAdd">
  384. <ul id="addTreeDemo" class="ztree"></ul>
  385. </div>
  386. </div>
  387. <div class="selDpart1">
  388. <ul id="sponsor"></ul>
  389. </div>
  390. </td>
  391. </tr>
  392. <tr>
  393. <th>坐席:</th>
  394. <td>
  395. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  396. data-live-search="true">
  397. <option value="">请选择坐席</option>
  398. </select>
  399. </td>
  400. <th>审核员:</th>
  401. <td>
  402. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  403. multiple data-live-search="true">
  404. <option value="">
  405. 请选择调度员
  406. </option>
  407. </select>
  408. </td>
  409. <th>是否公开:</th>
  410. <td>
  411. <select id="isopen" name="select" class="form-control">
  412. <option value="">
  413. 请选择是否公开
  414. </option>
  415. <option value="0">
  416. 未公开
  417. </option>
  418. <option value="1">
  419. 已公开
  420. </option>
  421. </select>
  422. </td>
  423. </tr>
  424. <tr>
  425. <th>办理时间:</th>
  426. <td colspan="3">
  427. <input id="dealstarttime" class="photo x-color laydate-icon" type="text"
  428. autocomplete="off" style="height: 35px;" />-<input id="dealstrendtime"
  429. class="photo x-color laydate-icon" type="text" autocomplete="off"
  430. style="height: 35px;" />
  431. </td>
  432. <td colspan="7" style="text-align: center">
  433. <botton class="btns Seach">搜索</botton>
  434. <botton class="btns Export">导出</botton>
  435. </td>
  436. </tr>
  437. </table>
  438. </div>
  439. </div>
  440. <div>
  441. <div style="width: 100%; padding: 10px">
  442. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  443. data-pagination="true">
  444. <thead>
  445. <tr>
  446. <th data-formatter="serialNumber" data-align="center">
  447. 序号
  448. </th>
  449. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  450. 工单单号
  451. </th>
  452. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  453. 诉求标题
  454. </th>
  455. <th data-field="DeptName" data-align="center">
  456. 承办单位
  457. </th>
  458. <!-- <th data-field="OtherDeptName" data-align="center">
  459. 协办单位
  460. </th> -->
  461. <th data-field="UserName" data-align="center">
  462. 受理人
  463. </th>
  464. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  465. 办理状态
  466. </th>
  467. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  468. 时限
  469. </th>
  470. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  471. 办理时限
  472. </th>
  473. <th data-field="FilePath" data-formatter="setCode" data-align="center">
  474. 录音
  475. </th>
  476. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  477. 操作
  478. </th>
  479. </tr>
  480. </thead>
  481. <tbody class="list"></tbody>
  482. </table>
  483. </div>
  484. </div>
  485. </div>
  486. </div>
  487. <!--下载框-->
  488. <div class="t-shade lyxz">
  489. <div class="shade_k">
  490. <div class="shade_title">
  491. <span>录音播放与下载<srong class="cknum"></srong></span>
  492. <span class="setwin gbly"><a>x</a></span>
  493. </div>
  494. <div class="shade_content">
  495. <div class="Ly_box audiojs"></div>
  496. </div>
  497. </div>
  498. </div>
  499. <input type="hidden" id="PID" />
  500. <input type="hidden" id="Dpment" />
  501. </div>
  502. <script src="../js/bootstrap-select.js"></script>
  503. <script src="../css/laydate/laydate.js"></script>
  504. <script src="../My97DatePicker/WdatePicker.js"></script>
  505. <script src="../js/zTree/jquery.ztree.core.js"></script>
  506. <script src="../js/search/screen.js"></script>
  507. <script>
  508. $(document).ready(function () {
  509. var wid = helper.request.queryString("wid");
  510. if (wid) {
  511. $("#tel").val(wid);
  512. load();
  513. }
  514. laydate.skin('blue');
  515. laydate({
  516. elem: '#starttime',
  517. event: 'focus',
  518. istime: true,
  519. format: 'YYYY-MM-DD hh:mm:ss'
  520. });
  521. laydate({
  522. elem: '#endtime',
  523. event: 'focus',
  524. istime: true,
  525. format: 'YYYY-MM-DD hh:mm:ss'
  526. });
  527. laydate({
  528. elem: '#dealstarttime',
  529. event: 'focus',
  530. istime: true,
  531. format: 'YYYY-MM-DD hh:mm:ss'
  532. });
  533. laydate({
  534. elem: '#dealstrendtime',
  535. event: 'focus',
  536. istime: true,
  537. format: 'YYYY-MM-DD hh:mm:ss'
  538. });
  539. load();
  540. });
  541. //关闭录音弹出
  542. $(".gbly").click(function () {
  543. $(".lyxz").removeClass("cx");
  544. $("audio")[0].pause();
  545. });
  546. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  547. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  548. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  549. });
  550. //获取查询信息
  551. function load() {
  552. //坐席
  553. var usercodeID = "";
  554. var usercode_ = $("#ZX").val(); //坐席
  555. if (usercode_ != null) {
  556. $(usercode_).each(function (i, n) {
  557. var obj1 = "";
  558. obj1 = n + ",";
  559. usercodeID += obj1;
  560. });
  561. } else {
  562. usercodeID = "";
  563. }
  564. // 调度员
  565. var ddusercodeID = "";
  566. var ddusercode_ = $("#yardman").val(); //坐席
  567. if (ddusercode_ != null) {
  568. $(ddusercode_).each(function (i, n) {
  569. var obj2 = "";
  570. obj2 = n + ",";
  571. ddusercodeID += obj2;
  572. });
  573. } else {
  574. ddusercodeID = "";
  575. }
  576. //先销毁表格
  577. $("#orderlist").bootstrapTable("destroy");
  578. //初始化表格,动态从服务器加载数据
  579. $("#orderlist").bootstrapTable({
  580. method: "get", //使用get请求到服务器获取数据
  581. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  582. contentType: "application/x-www-form-urlencoded",
  583. striped: true, //表格显示条纹
  584. pagination: true, //启动分页
  585. pageSize: 10, //每页显示的记录数
  586. pageNumber: 1, //当前第几页
  587. pageList: [10, 20, 50, 100], //记录数可选列表
  588. search: false, //是否启用查询
  589. showColumns: false, //显示下拉框勾选要显示的列
  590. showRefresh: false, //显示刷新按钮
  591. sidePagination: "server", //表示服务端请求
  592. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  593. //设置为limit可以获取limit, offset, search, sort, order
  594. queryParamsType: "undefined",
  595. queryParams: function queryParams(params) {
  596. //设置查询参数
  597. //alert(params.pageNumber)
  598. var param = {
  599. page: params.pageNumber,
  600. pagesize: params.pageSize,
  601. workid: $("#wids").val().replace(/\s+/g, ""),
  602. state: $("#state").val(), //=工单状态
  603. type: $("#type").val(), //=工单类型
  604. //bigtype: $("#bigtype").val(), //=大类别
  605. //smalltype: $("#smalltype").val(), //=小类别
  606. key: $("#key").val(), //=关键字
  607. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  608. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  609. usercode: usercodeID, //=坐席工号
  610. ddusercode: ddusercodeID,
  611. keyid: $("#keyid").val(), //=关键词id
  612. source: $("#source").val(), //=来源&
  613. starttime: $("#starttime").val(), //=开始时间
  614. endtime: $("#endtime").val(), //=结束时间
  615. deptid: $("#PID").val(),
  616. type: $("#type").val(),
  617. dealtype: $("#dealtype").val(),
  618. sourcearea: $("#sourceAreas").val(), // 区域
  619. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  620. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  621. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  622. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  623. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  624. isopen: $("#isopen").val(),
  625. token: $.cookie("token"),
  626. };
  627. return param;
  628. },
  629. onLoadSuccess: function (data) {
  630. //加载成功时执行
  631. // layer.msg("加载成功");
  632. //console.log(data);
  633. },
  634. onLoadError: function () {
  635. //加载失败时执行
  636. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  637. },
  638. });
  639. }
  640. //状态
  641. function States(val, row) {
  642. var html = "";
  643. switch (val + "") {
  644. case "0":
  645. html = "新工单";
  646. if (row.F_IsReturn == 1) {
  647. html = "新工单(回退)";
  648. }
  649. break;
  650. case "1":
  651. html = "待交办";
  652. break;
  653. case "2":
  654. html = '<span style="color:#FF0000;">待查收</span>';
  655. break;
  656. case "3":
  657. html = "退回审核中";
  658. break;
  659. case "4":
  660. html = "办理中";
  661. break;
  662. case "5":
  663. html = "延时审核";
  664. break;
  665. case "6":
  666. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  667. html = "已办未果"
  668. } else {
  669. html = "已办理";
  670. }
  671. break;
  672. case "7":
  673. html = "已回访";
  674. break;
  675. case "8":
  676. html = "重办中";
  677. break;
  678. case "9":
  679. html = "已结案";
  680. break;
  681. case "10":
  682. html = "待审核";
  683. break;
  684. case "11":
  685. html = "重办待交办";
  686. break;
  687. // case '12':
  688. // html = '待审核';
  689. // break;
  690. case "13":
  691. html = "重办驳回";
  692. break;
  693. }
  694. return html;
  695. }
  696. //音频
  697. function setCode(val) {
  698. if (val) {
  699. return (
  700. '<div class="imgs" style="cursor: pointer;">' +
  701. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  702. val +
  703. '" />' +
  704. "</div>"
  705. );
  706. } else {
  707. return "";
  708. }
  709. }
  710. function View(val, row) {
  711. return '<div class="imgs" ><a class="" index="' + row.CreateUser +
  712. '" onclick= ckxq("' + row.F_WorkOrderId + '") >' + val + '</a></div>';
  713. }
  714. //编号
  715. function serialNumber(val, row, index) {
  716. return index + 1;
  717. }
  718. function GetCont(val) {
  719. if (val) {
  720. var str = "<div ";
  721. if (val.length > 10) {
  722. str = str + ' title="' + val + '" ';
  723. val = val.substr(0, 10) + "...";
  724. }
  725. return str + ">" + val + "</div>";
  726. } else {
  727. return "";
  728. }
  729. }
  730. //操作
  731. function Dispose(val, row) {
  732. var Rows = row.Buttons;
  733. var html = "";
  734. for (var i = 0; i < Rows.length; i++) {
  735. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  736. if (html1) {
  737. html1 = html1.replace("data", val);
  738. html1 = html1.replace("isProtect", row.F_IsProtect);
  739. html1 = html1.replace("row", row.F_MainDeptId);
  740. }
  741. html += html1;
  742. }
  743. return html;
  744. }
  745. //查看详情
  746. function ckxq(str) {
  747. layer.open({
  748. type: 2,
  749. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  750. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  751. title: "工单详情",
  752. area: ["100%", "100%"], //宽高
  753. });
  754. }
  755. //时限
  756. function OverTime(val, row) {
  757. if (val == 1) {
  758. return (
  759. '<div class="" style="cursor: pointer;">' +
  760. '<span class="Greens">' +
  761. row.GapTime +
  762. "</span>" +
  763. "</div>"
  764. );
  765. } else if (val == 2) {
  766. return (
  767. '<div class="" style="cursor: pointer;">' +
  768. '<span class="Yellows">' +
  769. row.GapTime +
  770. "</span>" +
  771. "</div>"
  772. );
  773. } else if (val == 3) {
  774. return (
  775. '<div class="" style="cursor: pointer;">' +
  776. '<span class="Reds">' +
  777. row.GapTime +
  778. "</span>" +
  779. "</div>"
  780. );
  781. }
  782. }
  783. //办理时限
  784. function BanTime(val) {
  785. if (val) {
  786. var time = val.substring(0, val.indexOf(" "));
  787. return (
  788. '<div class="" style="cursor: pointer;">' +
  789. "<span>" +
  790. time +
  791. "</span>" +
  792. "</div>"
  793. );
  794. }
  795. }
  796. //派单
  797. function pd(str) {
  798. layer.open({
  799. type: 2,
  800. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  801. title: "办理工单",
  802. area: ["87%", "80%"], //宽高
  803. });
  804. }
  805. //处理审核
  806. function auditdeal(str) {
  807. layer.open({
  808. type: 2,
  809. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  810. title: "处理审核",
  811. area: ["80%", "80%"], //宽高
  812. });
  813. }
  814. //编辑
  815. function bj(str) {
  816. layer.open({
  817. type: 2,
  818. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  819. title: "编辑工单",
  820. area: ["96%", "80%"], //宽高
  821. });
  822. }
  823. //删除
  824. function move(str) {
  825. layer.confirm(
  826. "确定删除工单?", {
  827. btn: ["是", "否"], //按钮
  828. },
  829. function () {
  830. $.post(
  831. huayi.config.callcenter_url +
  832. "WorkOrder/DelWorkOrder", {
  833. ids: str,
  834. token: $.cookie("token"),
  835. },
  836. function (result) {
  837. result = JSON.parse(result);
  838. if (result.state.toLowerCase() == "success") {
  839. debugger;
  840. layer.msg("删除成功");
  841. $("#orderlist").bootstrapTable("refresh");
  842. }
  843. }
  844. );
  845. }
  846. );
  847. }
  848. //提交
  849. function tj(str) {
  850. layer.confirm(
  851. "确定要提交工单么?", {
  852. btn: ["确定", "取消"], //按钮
  853. },
  854. function () {
  855. //请求后台数据
  856. /*发送请求*/
  857. $.post(
  858. huayi.config.callcenter_url +
  859. "WorkOrder/SubmitWorkOrder", {
  860. ids: str,
  861. token: $.cookie("token"),
  862. },
  863. function (result) {
  864. result = JSON.parse(result);
  865. if (result.state.toLowerCase() == "success") {
  866. layer.msg("提交成功");
  867. $("#orderlist").bootstrapTable("refresh");
  868. //load();
  869. }
  870. }
  871. );
  872. }
  873. );
  874. }
  875. //交办
  876. function jb(str) {
  877. layer.open({
  878. type: 2,
  879. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  880. title: "工单交办",
  881. area: ["87%", "80%"], //宽高
  882. });
  883. }
  884. //领导批示
  885. function lader(str) {
  886. layer.open({
  887. type: 2,
  888. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  889. title: "领导批示",
  890. area: ["60%", "80%"], //宽高
  891. });
  892. }
  893. //市长批示
  894. function city(str) {
  895. layer.open({
  896. type: 2,
  897. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  898. title: "市长批示",
  899. area: ["60%", "80%"], //宽高
  900. });
  901. }
  902. //办理
  903. function bl(str, isProtect) {
  904. layer.open({
  905. type: 2,
  906. content: "../CommonHtml/banli.html?wid=" +
  907. str +
  908. "&isProtect=" +
  909. isProtect, //iframe的url,no代表不显示滚动条
  910. title: "办理工单",
  911. area: ["60%", "80%"], //宽高
  912. });
  913. }
  914. //督办
  915. function Supervision(str) {
  916. layer.open({
  917. type: 2,
  918. content: "../CommonHtml/Supervision_.html?wid=" +
  919. str +
  920. "&type=1", //iframe的url,no代表不显示滚动条
  921. title: "督办",
  922. area: ["60%", "80%"], //宽高
  923. });
  924. }
  925. //督查
  926. function Supervision_(str) {
  927. layer.open({
  928. type: 2,
  929. content: "../CommonHtml/Supervision_.html?wid=" +
  930. str +
  931. "&type=2", //iframe的url,no代表不显示滚动条
  932. title: "监察",
  933. area: ["60%", "80%"], //宽高
  934. });
  935. }
  936. //审核
  937. function audit(str) {
  938. layer.open({
  939. type: 2,
  940. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  941. title: "审核",
  942. area: ["60%", "80%"], //宽高
  943. });
  944. }
  945. //转督办
  946. function zdb(str, row) {
  947. layer.open({
  948. type: 2,
  949. content: "../CommonHtml/superTrunl.html?wid=" +
  950. str +
  951. "&depId=" +
  952. row, //iframe的url,no代表不显示滚动条
  953. title: "督办工单",
  954. area: ["60%", "80%"], //宽高
  955. });
  956. }
  957. //不督办
  958. function ndb(str) {
  959. layer.confirm(
  960. "确定督办吗?", {
  961. btn: ["是", "否"], //按钮
  962. },
  963. function () {
  964. $.post(
  965. huayi.config.callcenter_url +
  966. "WorkOrder/RemindWorkOrder", {
  967. workorderid: str,
  968. type: 1,
  969. state: 2,
  970. token: $.cookie("token"),
  971. },
  972. function (result) {
  973. result = JSON.parse(result);
  974. if (result.state.toLowerCase() == "success") {
  975. layer.msg("操作成功");
  976. //load();
  977. $("#orderlist").bootstrapTable("refresh");
  978. }
  979. }
  980. );
  981. }
  982. );
  983. }
  984. //强制结案
  985. function StrongLawsuit(str) {
  986. layer.open({
  987. type: 2,
  988. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  989. title: "强制结案",
  990. area: ["60%", "80%"], //宽高
  991. });
  992. }
  993. //回退BackDtail
  994. function BackDtail(str) {
  995. layer.open({
  996. type: 2,
  997. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  998. title: "工单督办",
  999. area: ["60%", "80%"], //宽高
  1000. });
  1001. }
  1002. //查收
  1003. function cs(str) {
  1004. layer.confirm(
  1005. "确定要查收?", {
  1006. btn: ["是", "否"], //按钮
  1007. },
  1008. function () {
  1009. $.post(
  1010. huayi.config.callcenter_url +
  1011. "WorkOrder/ReceiveWorkOrder", {
  1012. workorderid: str,
  1013. token: $.cookie("token"),
  1014. },
  1015. function (result) {
  1016. result = JSON.parse(result);
  1017. if (result.state.toLowerCase() == "success") {
  1018. layer.msg("查收成功");
  1019. //load();
  1020. $("#orderlist").bootstrapTable("refresh");
  1021. }
  1022. }
  1023. );
  1024. }
  1025. );
  1026. }
  1027. //收回
  1028. function sh(str) {
  1029. layer.confirm(
  1030. "确定要回收?", {
  1031. btn: ["是", "否"], //按钮
  1032. },
  1033. function () {
  1034. $.post(
  1035. huayi.config.callcenter_url +
  1036. "WorkOrder/TakeBackWorkOrder", {
  1037. workorderid: str,
  1038. token: $.cookie("token"),
  1039. },
  1040. function (result) {
  1041. result = JSON.parse(result);
  1042. if (result.state.toLowerCase() == "success") {
  1043. layer.msg("回收");
  1044. //load();
  1045. $("#orderlist").bootstrapTable("refresh");
  1046. }
  1047. }
  1048. );
  1049. }
  1050. );
  1051. }
  1052. //强制回收
  1053. function recycles() {
  1054. layer.confirm("确定要强制退回吗?", {
  1055. btn: ["是", "否"], //按钮
  1056. });
  1057. }
  1058. //审核退回申请
  1059. function shth(str) {
  1060. layer.open({
  1061. type: 2,
  1062. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1063. title: "审核退回申请",
  1064. area: ["60%", "80%"], //宽高
  1065. });
  1066. }
  1067. //申请延时
  1068. function ys(str) {
  1069. layer.open({
  1070. type: 2,
  1071. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1072. title: "申请延时",
  1073. area: ["60%", "80%"], //宽高
  1074. });
  1075. }
  1076. //审核申请延时
  1077. function shys(str) {
  1078. layer.open({
  1079. type: 2,
  1080. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1081. title: "审核延时申请",
  1082. area: ["60%", "80%"], //宽高
  1083. });
  1084. }
  1085. //审核
  1086. function hf(str) {
  1087. layer.open({
  1088. type: 2,
  1089. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1090. title: "工单审核",
  1091. area: ["60%", "80%"], //宽高
  1092. });
  1093. }
  1094. //重办工单
  1095. function cb(str) {
  1096. layer.open({
  1097. type: 2,
  1098. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1099. title: "重办工单",
  1100. area: ["60%", "80%"], //宽高
  1101. });
  1102. }
  1103. //提交重办
  1104. function bhcb(str) {
  1105. //回退BackDtail
  1106. layer.open({
  1107. type: 2,
  1108. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1109. title: "驳回重办",
  1110. area: ["60%", "80%"], //宽高
  1111. });
  1112. }
  1113. //提交重办
  1114. function tjcb(str) {
  1115. layer.open({
  1116. type: 2,
  1117. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1118. title: "提交重办",
  1119. area: ["50%", "40%"], //宽高
  1120. });
  1121. // layer.confirm('确认提交重办吗?', {
  1122. // btn: ['是', '否'] //按钮
  1123. // }, function () {
  1124. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1125. // ids: str,
  1126. // "token": $.cookie("token")
  1127. // }, function(result) {
  1128. // result = JSON.parse(result);
  1129. // if(result.state.toLowerCase() == "success") {
  1130. // layer.msg("操作成功");
  1131. // //load();
  1132. // $("#orderlist").bootstrapTable('refresh');
  1133. // }
  1134. // })
  1135. // });
  1136. }
  1137. //结案
  1138. function Lawsuit(str) {
  1139. layer.open({
  1140. type: 2,
  1141. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1142. title: "诉求单结案",
  1143. area: ["60%", "80%"], //宽高
  1144. });
  1145. }
  1146. //退回
  1147. function returnRedo(str) {
  1148. layer.open({
  1149. type: 2,
  1150. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1151. title: "退回",
  1152. area: ["50%", "40%"], //宽高
  1153. });
  1154. }
  1155. //退回
  1156. function returnAuditor(str) {
  1157. layer.open({
  1158. type: 2,
  1159. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1160. title: "退回",
  1161. area: ["50%", "40%"], //宽高
  1162. });
  1163. }
  1164. //修改
  1165. function editProcessingResult(str) {
  1166. layer.open({
  1167. type: 2,
  1168. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1169. title: "修改",
  1170. area: ["50%", "50%"], //宽高
  1171. });
  1172. }
  1173. //上传文件
  1174. function upload() {
  1175. if (document.getElementById("upFile").files.length > 0) {
  1176. var formData = new FormData();
  1177. formData.append(
  1178. "upFile",
  1179. document.getElementById("upFile").files[0]
  1180. );
  1181. formData.append("token", $.cookie("token"));
  1182. $.ajax({
  1183. url: huayi.config.callcenter_url +
  1184. "/WorkOrder/UploadFile",
  1185. type: "POST",
  1186. data: formData,
  1187. /**
  1188. *必须false才会自动加上正确的Content-Type
  1189. */
  1190. contentType: false,
  1191. /**
  1192. * 必须false才会避开jQuery对 formdata 的默认处理
  1193. * XMLHttpRequest会对 formdata 进行正确的处理
  1194. */
  1195. processData: false,
  1196. success: function (result) {
  1197. document.getElementById(
  1198. "upFile"
  1199. ).outerHTML = document.getElementById(
  1200. "upFile"
  1201. ).outerHTML;
  1202. $("#upFile").change(function () {
  1203. upload();
  1204. });
  1205. var r = $.parseJSON(result);
  1206. if (r.state.toLowerCase() == "success") {
  1207. $(".fjnr").text(r.data);
  1208. $("#scfj").show();
  1209. }
  1210. },
  1211. });
  1212. } else {
  1213. layer.confirm("请上传文件!", {
  1214. btn: ["确定"],
  1215. });
  1216. }
  1217. }
  1218. //来源
  1219. function LY(obj) {
  1220. obj.empty();
  1221. obj.append(
  1222. '<option selected="selected" value="">请选择</option>'
  1223. );
  1224. $.getJSON(
  1225. huayi.config.callcenter_url +
  1226. "Dictionary/GetDicValueListById", {
  1227. token: $.cookie("token"),
  1228. id: 1,
  1229. },
  1230. function (data) {
  1231. if (data.state.toLowerCase() == "success") {
  1232. var content = data.data;
  1233. $(content).each(function (i, n) {
  1234. $(
  1235. "<option value='" +
  1236. n.F_ValueId +
  1237. "'>" +
  1238. n.F_Value +
  1239. "</option>"
  1240. ).appendTo(obj);
  1241. });
  1242. }
  1243. }
  1244. );
  1245. }
  1246. //类别
  1247. function LB(obj) {
  1248. obj.empty();
  1249. obj.append(
  1250. '<option selected="selected" value="">请选择</option>'
  1251. );
  1252. $.getJSON(
  1253. huayi.config.callcenter_url +
  1254. "Dictionary/GetDicValueListById", {
  1255. token: $.cookie("token"),
  1256. id: 2,
  1257. },
  1258. function (data) {
  1259. if (data.state.toLowerCase() == "success") {
  1260. var content = data.data;
  1261. $(content).each(function (i, n) {
  1262. $(
  1263. "<option value='" +
  1264. n.F_ValueId +
  1265. "'>" +
  1266. n.F_Value +
  1267. "</option>"
  1268. ).appendTo(obj);
  1269. });
  1270. }
  1271. }
  1272. );
  1273. }
  1274. // 主题
  1275. function ZT(obj) {
  1276. obj.empty();
  1277. obj.append(
  1278. '<option selected="selected" value="">请选择</option>'
  1279. );
  1280. $.getJSON(
  1281. huayi.config.callcenter_url +
  1282. "Dictionary/GetDicValueListById", {
  1283. token: $.cookie("token"),
  1284. id: 3,
  1285. },
  1286. function (data) {
  1287. if (data.state.toLowerCase() == "success") {
  1288. var content = data.data;
  1289. $(content).each(function (i, n) {
  1290. $(
  1291. "<option value='" +
  1292. n.F_ValueId +
  1293. "'>" +
  1294. n.F_Value +
  1295. "</option>"
  1296. ).appendTo(obj);
  1297. });
  1298. }
  1299. }
  1300. );
  1301. }
  1302. function tree() {
  1303. $.get(
  1304. huayi.config.callcenter_url + "Department/GetDeptList", {
  1305. token: $.cookie("token"),
  1306. // "pid": pid
  1307. },
  1308. function (result) {
  1309. result = $.parseJSON(result);
  1310. $.fn.zTree.init(
  1311. $("#addTreeDemo"),
  1312. setting1,
  1313. result.data
  1314. ); //实例化树形图
  1315. }
  1316. );
  1317. }
  1318. var setting1 = {
  1319. data: {
  1320. key: {
  1321. name: "F_DeptName",
  1322. },
  1323. simpleData: {
  1324. enable: true,
  1325. idKey: "F_DeptId",
  1326. pIdKey: "F_PartentId",
  1327. rootPId: 0,
  1328. },
  1329. },
  1330. callback: {
  1331. onClick: zTreeOnClick,
  1332. },
  1333. };
  1334. function zTreeOnClick(event, treeId, treeNode) {
  1335. if (treeNode.level >= 1) {
  1336. $(".inps").val(treeNode.F_DeptName);
  1337. $("#PID").val(treeNode.F_DeptId);
  1338. $("#Dpment").val(treeNode.F_DeptId);
  1339. $(".Cleans").show();
  1340. }
  1341. }
  1342. function Close() {
  1343. $(".lyxz").removeClass("cx");
  1344. if ($("audio").length > 0) {
  1345. $("audio")[0].pause();
  1346. }
  1347. }
  1348. </script>
  1349. </body>
  1350. </html>