No Description

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