Няма описание

LawsuitMedia.html 54KB

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