Nessuna descrizione

LawsuitMarketing.html 54KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  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. //获取查询信息
  589. function load() {
  590. //三方通话
  591. var threeWayCall;
  592. if ($("#dealtype").val() === "2") {
  593. threeWayCall = 1
  594. } else {
  595. threeWayCall = 0
  596. }
  597. //先销毁表格
  598. $("#orderlist").bootstrapTable("destroy");
  599. //初始化表格,动态从服务器加载数据
  600. $("#orderlist").bootstrapTable({
  601. method: "get", //使用get请求到服务器获取数据
  602. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  603. contentType: "application/x-www-form-urlencoded",
  604. striped: true, //表格显示条纹
  605. pagination: true, //启动分页
  606. pageSize: 10, //每页显示的记录数
  607. pageNumber: 1, //当前第几页
  608. pageList: [10, 20, 50, 100], //记录数可选列表
  609. search: false, //是否启用查询
  610. showColumns: false, //显示下拉框勾选要显示的列
  611. showRefresh: false, //显示刷新按钮
  612. sidePagination: "server", //表示服务端请求
  613. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  614. //设置为limit可以获取limit, offset, search, sort, order
  615. queryParamsType: "undefined",
  616. queryParams: function queryParams(params) {
  617. //设置查询参数
  618. //alert(params.pageNumber)
  619. var param = {
  620. page: params.pageNumber,
  621. pagesize: params.pageSize,
  622. workid: $("#wids").val().replace(/\s+/g, ""),
  623. state: $("#state").val(), //=工单状态
  624. type: $("#type").val(), //=工单类型
  625. //bigtype: $("#bigtype").val(), //=大类别
  626. //smalltype: $("#smalltype").val(), //=小类别
  627. key: $("#key").val(), //=关键字
  628. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  629. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  630. usercode: selectMultiple($("#ZX")), //=坐席工号
  631. ddusercode: selectMultiple($("#yardman")),
  632. closeuser:$("#closeuser").val(),
  633. keyid: $("#keyid").val(), //=关键词id
  634. source: $("#source").val(), //=来源&
  635. starttime: $("#starttime").val(), //=开始时间
  636. endtime: $("#endtime").val(), //=结束时间
  637. deptid: $("#PID").val(),
  638. type: $("#type").val(),
  639. dealtype: $("#dealtype").val(),
  640. business: threeWayCall,
  641. sourcearea: $("#sourceAreas").val(), // 区域
  642. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  643. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  644. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  645. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  646. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  647. isopen: $("#isopen").val(), // 是否公开
  648. business: $("#threeWayCall").val(), // 三方通话
  649. splituser: $("#leaderCharge").val(), // 分管领导
  650. islike: $("#islike").val(), // 查询类型
  651. dbgd: $("#whetherSupervisor").val(), // 是否督办
  652. jianhang: 3, // 多媒体
  653. token: $.cookie("token"),
  654. };
  655. // 导出参数
  656. exportParams = param;
  657. return param;
  658. },
  659. onLoadSuccess: function (data) {
  660. //加载成功时执行
  661. // layer.msg("加载成功");
  662. //console.log(data);
  663. },
  664. onLoadError: function () {
  665. //加载失败时执行
  666. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  667. },
  668. });
  669. }
  670. //状态
  671. function States(val, row) {
  672. var html = "";
  673. switch (val + "") {
  674. case "0":
  675. html = "新工单";
  676. if (row.F_IsReturn == 1) {
  677. html = "新工单(回退)";
  678. }
  679. break;
  680. case "1":
  681. html = "待交办";
  682. break;
  683. case "2":
  684. html = '<span style="color:#FF0000;">待查收</span>';
  685. break;
  686. case "3":
  687. html = "退回审核中";
  688. break;
  689. case "4":
  690. html = "办理中";
  691. break;
  692. case "5":
  693. html = "延时审核";
  694. break;
  695. case "6":
  696. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  697. html = "已办未果"
  698. } else {
  699. html = "已办理";
  700. }
  701. break;
  702. case "7":
  703. html = "已回访";
  704. break;
  705. case "8":
  706. html = "重办中";
  707. break;
  708. case "9":
  709. html = "已结案";
  710. break;
  711. case "10":
  712. html = "待审核";
  713. break;
  714. case "11":
  715. html = "重办待交办";
  716. break;
  717. // case '12':
  718. // html = '待审核';
  719. // break;
  720. case "13":
  721. html = "重办驳回";
  722. break;
  723. }
  724. return html;
  725. }
  726. //音频
  727. function setCode(val) {
  728. if (val) {
  729. return (
  730. '<div class="imgs" style="cursor: pointer;">' +
  731. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  732. val +
  733. '" />' +
  734. "</div>"
  735. );
  736. } else {
  737. return "";
  738. }
  739. }
  740. //编号
  741. function serialNumber(val, row, index) {
  742. return index + 1;
  743. }
  744. // 关联工单类型
  745. function isReleaseFormatter(val, row) {
  746. if (String(val) === "2") {
  747. return "<span style='color: #e02433'>主工单</span>"
  748. } else if (String(val) === "3") {
  749. return "<span style='color: #e02433'>子工单</span>"
  750. }
  751. }
  752. function GetCont(val) {
  753. if (val) {
  754. var str = "<div ";
  755. if (val.length > 10) {
  756. str = str + ' title="' + val + '" ';
  757. val = val.substr(0, 10) + "...";
  758. }
  759. return str + ">" + val + "</div>";
  760. } else {
  761. return "";
  762. }
  763. }
  764. // 是否督办
  765. function superviseFormatter(val, row) {
  766. var arr = ["否", "是"];
  767. var str = arr[val];
  768. return str;
  769. }
  770. //操作
  771. function Dispose(val, row) {
  772. var Rows = row.Buttons;
  773. var html = "";
  774. for (var i = 0; i < Rows.length; i++) {
  775. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  776. if (html1) {
  777. html1 = html1.replace("data", val);
  778. html1 = html1.replace("isProtect", row.F_IsProtect);
  779. html1 = html1.replace("row", row.F_MainDeptId);
  780. }
  781. html += html1;
  782. }
  783. return html;
  784. }
  785. //查看详情
  786. function ckxq(str) {
  787. layer.open({
  788. type: 2,
  789. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  790. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  791. title: "工单详情",
  792. area: ["100%", "100%"], //宽高
  793. });
  794. }
  795. //时限
  796. function OverTime(val, row) {
  797. if (val == 1) {
  798. return (
  799. '<div class="" style="cursor: pointer;">' +
  800. '<span class="Greens">' +
  801. row.GapTime +
  802. "</span>" +
  803. "</div>"
  804. );
  805. } else if (val == 2) {
  806. return (
  807. '<div class="" style="cursor: pointer;">' +
  808. '<span class="Yellows">' +
  809. row.GapTime +
  810. "</span>" +
  811. "</div>"
  812. );
  813. } else if (val == 3) {
  814. return (
  815. '<div class="" style="cursor: pointer;">' +
  816. '<span class="Reds">' +
  817. row.GapTime +
  818. "</span>" +
  819. "</div>"
  820. );
  821. }
  822. }
  823. //办理时限
  824. function BanTime(val) {
  825. if (val) {
  826. var time = val.substring(0, val.indexOf(" "));
  827. return (
  828. '<div class="" style="cursor: pointer;">' +
  829. "<span>" +
  830. time +
  831. "</span>" +
  832. "</div>"
  833. );
  834. }
  835. }
  836. //派单
  837. function pd(str) {
  838. layer.open({
  839. type: 2,
  840. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  841. title: "办理工单",
  842. area: ["87%", "80%"], //宽高
  843. });
  844. }
  845. //处理审核
  846. function auditdeal(str) {
  847. layer.open({
  848. type: 2,
  849. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  850. title: "处理审核",
  851. area: ["80%", "80%"], //宽高
  852. });
  853. }
  854. //编辑
  855. function bj(str) {
  856. layer.open({
  857. type: 2,
  858. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  859. title: "编辑工单",
  860. area: ["96%", "80%"], //宽高
  861. });
  862. }
  863. //删除
  864. function move(str) {
  865. layer.confirm(
  866. "确定删除工单?", {
  867. btn: ["是", "否"], //按钮
  868. },
  869. function () {
  870. $.post(
  871. huayi.config.callcenter_url +
  872. "WorkOrder/DelWorkOrder", {
  873. ids: str,
  874. token: $.cookie("token"),
  875. },
  876. function (result) {
  877. result = JSON.parse(result);
  878. if (result.state.toLowerCase() == "success") {
  879. debugger;
  880. layer.msg("删除成功");
  881. $("#orderlist").bootstrapTable("refresh");
  882. }
  883. }
  884. );
  885. }
  886. );
  887. }
  888. //提交
  889. function tj(str) {
  890. layer.confirm(
  891. "确定要提交工单么?", {
  892. btn: ["确定", "取消"], //按钮
  893. },
  894. function () {
  895. //请求后台数据
  896. /*发送请求*/
  897. $.post(
  898. huayi.config.callcenter_url +
  899. "WorkOrder/SubmitWorkOrder", {
  900. ids: str,
  901. token: $.cookie("token"),
  902. },
  903. function (result) {
  904. result = JSON.parse(result);
  905. if (result.state.toLowerCase() == "success") {
  906. layer.msg("提交成功");
  907. $("#orderlist").bootstrapTable("refresh");
  908. //load();
  909. }
  910. }
  911. );
  912. }
  913. );
  914. }
  915. //交办
  916. function jb(str) {
  917. layer.open({
  918. type: 2,
  919. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  920. title: "工单交办",
  921. area: ["87%", "80%"], //宽高
  922. });
  923. }
  924. //领导批示
  925. function lader(str) {
  926. layer.open({
  927. type: 2,
  928. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  929. title: "领导批示",
  930. area: ["60%", "80%"], //宽高
  931. });
  932. }
  933. //市长批示
  934. function city(str) {
  935. layer.open({
  936. type: 2,
  937. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  938. title: "市长批示",
  939. area: ["60%", "80%"], //宽高
  940. });
  941. }
  942. //办理
  943. function bl(str, isProtect) {
  944. layer.open({
  945. type: 2,
  946. content: "../CommonHtml/banli.html?wid=" +
  947. str +
  948. "&isProtect=" +
  949. isProtect, //iframe的url,no代表不显示滚动条
  950. title: "办理工单",
  951. area: ["60%", "80%"], //宽高
  952. });
  953. }
  954. //督办
  955. function Supervision(str) {
  956. layer.open({
  957. type: 2,
  958. content: "../CommonHtml/Supervision_.html?wid=" +
  959. str +
  960. "&type=1", //iframe的url,no代表不显示滚动条
  961. title: "督办",
  962. area: ["60%", "80%"], //宽高
  963. });
  964. }
  965. //督查
  966. function Supervision_(str) {
  967. layer.open({
  968. type: 2,
  969. content: "../CommonHtml/Supervision_.html?wid=" +
  970. str +
  971. "&type=2", //iframe的url,no代表不显示滚动条
  972. title: "监察",
  973. area: ["60%", "80%"], //宽高
  974. });
  975. }
  976. //审核
  977. function audit(str) {
  978. layer.open({
  979. type: 2,
  980. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  981. title: "审核",
  982. area: ["60%", "80%"], //宽高
  983. });
  984. }
  985. //转督办
  986. function zdb(str, row) {
  987. layer.open({
  988. type: 2,
  989. content: "../CommonHtml/superTrunl.html?wid=" +
  990. str +
  991. "&depId=" +
  992. row, //iframe的url,no代表不显示滚动条
  993. title: "督办工单",
  994. area: ["60%", "80%"], //宽高
  995. });
  996. }
  997. //不督办
  998. function ndb(str) {
  999. layer.confirm(
  1000. "确定督办吗?", {
  1001. btn: ["是", "否"], //按钮
  1002. },
  1003. function () {
  1004. $.post(
  1005. huayi.config.callcenter_url +
  1006. "WorkOrder/RemindWorkOrder", {
  1007. workorderid: str,
  1008. type: 1,
  1009. state: 2,
  1010. token: $.cookie("token"),
  1011. },
  1012. function (result) {
  1013. result = JSON.parse(result);
  1014. if (result.state.toLowerCase() == "success") {
  1015. layer.msg("操作成功");
  1016. //load();
  1017. $("#orderlist").bootstrapTable("refresh");
  1018. }
  1019. }
  1020. );
  1021. }
  1022. );
  1023. }
  1024. //强制结案
  1025. function StrongLawsuit(str) {
  1026. layer.open({
  1027. type: 2,
  1028. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1029. title: "强制结案",
  1030. area: ["60%", "80%"], //宽高
  1031. });
  1032. }
  1033. //回退BackDtail
  1034. function BackDtail(str) {
  1035. layer.open({
  1036. type: 2,
  1037. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1038. title: "工单督办",
  1039. area: ["60%", "80%"], //宽高
  1040. });
  1041. }
  1042. //查收
  1043. function cs(str) {
  1044. layer.confirm(
  1045. "确定要查收?", {
  1046. btn: ["是", "否"], //按钮
  1047. },
  1048. function () {
  1049. $.post(
  1050. huayi.config.callcenter_url +
  1051. "WorkOrder/ReceiveWorkOrder", {
  1052. workorderid: str,
  1053. token: $.cookie("token"),
  1054. },
  1055. function (result) {
  1056. result = JSON.parse(result);
  1057. if (result.state.toLowerCase() == "success") {
  1058. layer.msg("查收成功");
  1059. //load();
  1060. $("#orderlist").bootstrapTable("refresh");
  1061. }
  1062. }
  1063. );
  1064. }
  1065. );
  1066. }
  1067. //收回
  1068. function sh(str) {
  1069. layer.confirm(
  1070. "确定要回收?", {
  1071. btn: ["是", "否"], //按钮
  1072. },
  1073. function () {
  1074. $.post(
  1075. huayi.config.callcenter_url +
  1076. "WorkOrder/TakeBackWorkOrder", {
  1077. workorderid: str,
  1078. token: $.cookie("token"),
  1079. },
  1080. function (result) {
  1081. result = JSON.parse(result);
  1082. if (result.state.toLowerCase() == "success") {
  1083. layer.msg("回收");
  1084. //load();
  1085. $("#orderlist").bootstrapTable("refresh");
  1086. }
  1087. }
  1088. );
  1089. }
  1090. );
  1091. }
  1092. //强制回收
  1093. function recycles() {
  1094. layer.confirm("确定要强制退回吗?", {
  1095. btn: ["是", "否"], //按钮
  1096. });
  1097. }
  1098. //审核退回申请
  1099. function shth(str) {
  1100. layer.open({
  1101. type: 2,
  1102. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1103. title: "审核退回申请",
  1104. area: ["60%", "80%"], //宽高
  1105. });
  1106. }
  1107. //申请延时
  1108. function ys(str) {
  1109. layer.open({
  1110. type: 2,
  1111. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1112. title: "申请延时",
  1113. area: ["60%", "80%"], //宽高
  1114. });
  1115. }
  1116. //审核申请延时
  1117. function shys(str) {
  1118. layer.open({
  1119. type: 2,
  1120. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1121. title: "审核延时申请",
  1122. area: ["60%", "80%"], //宽高
  1123. });
  1124. }
  1125. //审核
  1126. function hf(str) {
  1127. layer.open({
  1128. type: 2,
  1129. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1130. title: "工单审核",
  1131. area: ["60%", "80%"], //宽高
  1132. });
  1133. }
  1134. //重办工单
  1135. function cb(str) {
  1136. layer.open({
  1137. type: 2,
  1138. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1139. title: "重办工单",
  1140. area: ["60%", "80%"], //宽高
  1141. });
  1142. }
  1143. //提交重办
  1144. function bhcb(str) {
  1145. //回退BackDtail
  1146. layer.open({
  1147. type: 2,
  1148. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1149. title: "驳回重办",
  1150. area: ["60%", "80%"], //宽高
  1151. });
  1152. }
  1153. //提交重办
  1154. function tjcb(str) {
  1155. layer.open({
  1156. type: 2,
  1157. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1158. title: "提交重办",
  1159. area: ["50%", "40%"], //宽高
  1160. });
  1161. // layer.confirm('确认提交重办吗?', {
  1162. // btn: ['是', '否'] //按钮
  1163. // }, function () {
  1164. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1165. // ids: str,
  1166. // "token": $.cookie("token")
  1167. // }, function(result) {
  1168. // result = JSON.parse(result);
  1169. // if(result.state.toLowerCase() == "success") {
  1170. // layer.msg("操作成功");
  1171. // //load();
  1172. // $("#orderlist").bootstrapTable('refresh');
  1173. // }
  1174. // })
  1175. // });
  1176. }
  1177. //结案
  1178. function Lawsuit(str) {
  1179. layer.open({
  1180. type: 2,
  1181. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1182. title: "诉求单结案",
  1183. area: ["60%", "80%"], //宽高
  1184. });
  1185. }
  1186. //转督办
  1187. function zdb(str, row) {
  1188. layer.open({
  1189. type: 2,
  1190. content: "../CommonHtml/superTrunl.html?wid=" + str,
  1191. title: "督办工单",
  1192. area: ["60%", "80%"], //宽高
  1193. });
  1194. }
  1195. //退回
  1196. function returnRedo(str) {
  1197. layer.open({
  1198. type: 2,
  1199. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1200. title: "退回",
  1201. area: ["50%", "40%"], //宽高
  1202. });
  1203. }
  1204. //退回
  1205. function returnAuditor(str) {
  1206. layer.open({
  1207. type: 2,
  1208. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1209. title: "退回",
  1210. area: ["50%", "40%"], //宽高
  1211. });
  1212. }
  1213. //修改
  1214. function editProcessingResult(str) {
  1215. layer.open({
  1216. type: 2,
  1217. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1218. title: "修改",
  1219. area: ["50%", "70%"], //宽高
  1220. });
  1221. }
  1222. //来源
  1223. function LY(obj) {
  1224. obj.empty();
  1225. obj.append(
  1226. '<option selected="selected" value="">请选择</option>'
  1227. );
  1228. $.getJSON(
  1229. huayi.config.callcenter_url +
  1230. "Dictionary/GetDicValueListById", {
  1231. token: $.cookie("token"),
  1232. id: 1,
  1233. },
  1234. function (data) {
  1235. if (data.state.toLowerCase() == "success") {
  1236. var content = data.data;
  1237. $(content).each(function (i, n) {
  1238. $(
  1239. "<option value='" +
  1240. n.F_ValueId +
  1241. "'>" +
  1242. n.F_Value +
  1243. "</option>"
  1244. ).appendTo(obj);
  1245. });
  1246. }
  1247. }
  1248. );
  1249. }
  1250. //类别
  1251. function LB(obj) {
  1252. obj.empty();
  1253. obj.append(
  1254. '<option selected="selected" value="">请选择</option>'
  1255. );
  1256. $.getJSON(
  1257. huayi.config.callcenter_url +
  1258. "Dictionary/GetDicValueListById", {
  1259. token: $.cookie("token"),
  1260. id: 2,
  1261. },
  1262. function (data) {
  1263. if (data.state.toLowerCase() == "success") {
  1264. var content = data.data;
  1265. $(content).each(function (i, n) {
  1266. $(
  1267. "<option value='" +
  1268. n.F_ValueId +
  1269. "'>" +
  1270. n.F_Value +
  1271. "</option>"
  1272. ).appendTo(obj);
  1273. });
  1274. }
  1275. }
  1276. );
  1277. }
  1278. // 主题
  1279. function ZT(obj) {
  1280. obj.empty();
  1281. obj.append(
  1282. '<option selected="selected" value="">请选择</option>'
  1283. );
  1284. $.getJSON(
  1285. huayi.config.callcenter_url +
  1286. "Dictionary/GetDicValueListById", {
  1287. token: $.cookie("token"),
  1288. id: 3,
  1289. },
  1290. function (data) {
  1291. if (data.state.toLowerCase() == "success") {
  1292. var content = data.data;
  1293. $(content).each(function (i, n) {
  1294. $(
  1295. "<option value='" +
  1296. n.F_ValueId +
  1297. "'>" +
  1298. n.F_Value +
  1299. "</option>"
  1300. ).appendTo(obj);
  1301. });
  1302. }
  1303. }
  1304. );
  1305. }
  1306. function tree() {
  1307. $.get(
  1308. huayi.config.callcenter_url + "Department/GetDeptList", {
  1309. token: $.cookie("token"),
  1310. // "pid": pid
  1311. },
  1312. function (result) {
  1313. result = $.parseJSON(result);
  1314. $.fn.zTree.init(
  1315. $("#addTreeDemo"),
  1316. setting1,
  1317. result.data
  1318. ); //实例化树形图
  1319. }
  1320. );
  1321. }
  1322. var setting1 = {
  1323. data: {
  1324. key: {
  1325. name: "F_DeptName",
  1326. },
  1327. simpleData: {
  1328. enable: true,
  1329. idKey: "F_DeptId",
  1330. pIdKey: "F_PartentId",
  1331. rootPId: 0,
  1332. },
  1333. },
  1334. callback: {
  1335. onClick: zTreeOnClick,
  1336. },
  1337. };
  1338. function zTreeOnClick(event, treeId, treeNode) {
  1339. // if (treeNode.level >= 1) {
  1340. $(".inps").val(treeNode.F_DeptName);
  1341. $("#PID").val(treeNode.F_DeptId);
  1342. $("#Dpment").val(treeNode.F_DeptId);
  1343. $(".Cleans").show();
  1344. // }
  1345. }
  1346. function Close() {
  1347. $(".lyxz").removeClass("cx");
  1348. if ($("audio").length > 0) {
  1349. $("audio")[0].pause();
  1350. }
  1351. }
  1352. // 导出文件
  1353. $(".exportFile").click(function() {
  1354. exportParams.isdc = 1;
  1355. exportFileFun("WorkOrder/GetList", exportParams)
  1356. })
  1357. </script>
  1358. </body>
  1359. </html>