Нет описания

integratedQuery.html 51KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>综合查询</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../css/bootstrap-select.css" />
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <!-- <link rel="stylesheet" href="../css/addappeal.css" /> -->
  12. <style>
  13. #sqzx th {
  14. padding: 5px 8px 5px 0;
  15. text-align: right;
  16. }
  17. 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. </select>
  318. </td>
  319. </tr>
  320. <tr>
  321. <th>办理结果:</th>
  322. <td>
  323. <input type="text" placeholder="输入办理结果" id="workOrderProcessingResult"
  324. class="form-control" />
  325. </td>
  326. <th>工单状态:</th>
  327. <td>
  328. <select name="" id="state" class="form-control">
  329. <option selected="selected" value="">
  330. 请选择
  331. </option>
  332. <option value="0">新工单</option>
  333. <option value="1">待交办</option>
  334. <!-- <option value="10">待审核</option> -->
  335. <option value="2">待查收</option>
  336. <option value="3">
  337. 退回审核中
  338. </option>
  339. <option value="4">办理中</option>
  340. <option value="5">
  341. 延时审核中
  342. </option>
  343. <option value="6">已办理</option>
  344. <!-- <option value="7">已回访</option> -->
  345. <option value="11">
  346. 重办待交办
  347. </option>
  348. <option value="13">重办驳回</option>
  349. <option value="8">重办中</option>
  350. <option value="9">已结案</option>
  351. </select>
  352. </td>
  353. <th>来电类型:</th>
  354. <td>
  355. <select class="form-control Min-width" id="type"></select>
  356. <botton class="btns Seach">搜索</botton>
  357. </td>
  358. </tr>
  359. <tr>
  360. <th>承办单位:</th>
  361. <td style="position: relative">
  362. <div class="inpBox">
  363. <input type="text" class="inps" onkeyup="darptSearch()" />
  364. <i class="Cleans fa fa-close"></i>
  365. <i class="xl xl_one"></i>
  366. <div class="addTree xlAdd">
  367. <ul id="addTreeDemo" class="ztree"></ul>
  368. </div>
  369. </div>
  370. <div class="selDpart1">
  371. <ul id="sponsor"></ul>
  372. </div>
  373. </td>
  374. <th>反映类别:</th>
  375. <td style="position: relative;">
  376. <div class="inpBox">
  377. <input type="text" class="inpsReactionCategory" />
  378. <input type="hidden" id="keyid" />
  379. <i class="CleansReactionCategory fa fa-close"></i>
  380. <i class="xlReactionCategory xl_one"></i>
  381. <div class="addTreeReactionCategory xlAddReactionCategory">
  382. <ul id="addTreeDemoReactionCategory" class="ztree"></ul>
  383. </div>
  384. </div>
  385. </td>
  386. <th>是否公开:</th>
  387. <td>
  388. <select id="isopen" class="form-control Min-width" name="select">
  389. <option value="">
  390. 请选择是否公开
  391. </option>
  392. <option value="0">
  393. 未公开
  394. </option>
  395. <option value="1">
  396. 已公开
  397. </option>
  398. </select>
  399. <botton class="btns Export">导出</botton>
  400. </td>
  401. </tr>
  402. <tr>
  403. </tr>
  404. </table>
  405. </div>
  406. </div>
  407. <div>
  408. <div style="width: 100%; padding: 10px">
  409. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  410. data-pagination="true">
  411. <thead>
  412. <tr>
  413. <th data-formatter="serialNumber" data-align="center">
  414. 序号
  415. </th>
  416. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  417. 工单单号
  418. </th>
  419. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  420. 诉求标题
  421. </th>
  422. <th data-field="DeptName" data-align="center">
  423. 承办单位
  424. </th>
  425. <!-- <th data-field="OtherDeptName" data-align="center">
  426. 协办单位
  427. </th> -->
  428. <th data-field="UserName" data-align="center">
  429. 受理人
  430. </th>
  431. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  432. 办理状态
  433. </th>
  434. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  435. 时限
  436. </th>
  437. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  438. 办理时限
  439. </th>
  440. <th data-field="FilePath" data-formatter="setCode" data-align="center">
  441. 录音
  442. </th>
  443. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  444. 操作
  445. </th>
  446. </tr>
  447. </thead>
  448. <tbody class="list"></tbody>
  449. </table>
  450. </div>
  451. </div>
  452. </div>
  453. </div>
  454. <!--下载框-->
  455. <div class="t-shade lyxz">
  456. <div class="shade_k">
  457. <div class="shade_title">
  458. <span>录音播放与下载<srong class="cknum"></srong></span>
  459. <span class="setwin gbly"><a>x</a></span>
  460. </div>
  461. <div class="shade_content">
  462. <div class="Ly_box audiojs"></div>
  463. </div>
  464. </div>
  465. </div>
  466. <input type="hidden" id="PID" />
  467. <input type="hidden" id="Dpment" />
  468. </div>
  469. <script src="../js/bootstrap-select.js"></script>
  470. <script src="../css/laydate/laydate.js"></script>
  471. <script src="../My97DatePicker/WdatePicker.js"></script>
  472. <script src="../js/zTree/jquery.ztree.core.js"></script>
  473. <script src="../js/search/screen.js"></script>
  474. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  475. <script>
  476. $(document).ready(function () {
  477. var wid = helper.request.queryString("wid");
  478. if (wid) {
  479. $("#tel").val(wid);
  480. load();
  481. }
  482. laydate.skin('blue');
  483. laydate({
  484. elem: '#starttime',
  485. event: 'focus',
  486. istime: true,
  487. format: 'YYYY-MM-DD hh:mm:ss'
  488. });
  489. laydate({
  490. elem: '#endtime',
  491. event: 'focus',
  492. istime: true,
  493. format: 'YYYY-MM-DD hh:mm:ss'
  494. });
  495. laydate({
  496. elem: '#dealstarttime',
  497. event: 'focus',
  498. istime: true,
  499. format: 'YYYY-MM-DD hh:mm:ss'
  500. });
  501. laydate({
  502. elem: '#dealstrendtime',
  503. event: 'focus',
  504. istime: true,
  505. format: 'YYYY-MM-DD hh:mm:ss'
  506. });
  507. load();
  508. });
  509. //关闭录音弹出
  510. $(".gbly").click(function () {
  511. $(".lyxz").removeClass("cx");
  512. $("audio")[0].pause();
  513. });
  514. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  515. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  516. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  517. });
  518. //获取查询信息
  519. function load() {
  520. //坐席
  521. var usercodeID = "";
  522. var usercode_ = $("#ZX").val(); //坐席
  523. if (usercode_ != null) {
  524. $(usercode_).each(function (i, n) {
  525. var obj1 = "";
  526. obj1 = n + ",";
  527. usercodeID += obj1;
  528. });
  529. } else {
  530. usercodeID = "";
  531. }
  532. // 调度员
  533. var ddusercodeID = "";
  534. var ddusercode_ = $("#yardman").val(); //坐席
  535. if (ddusercode_ != null) {
  536. $(ddusercode_).each(function (i, n) {
  537. var obj2 = "";
  538. obj2 = n + ",";
  539. ddusercodeID += obj2;
  540. });
  541. } else {
  542. ddusercodeID = "";
  543. }
  544. //先销毁表格
  545. $("#orderlist").bootstrapTable("destroy");
  546. //初始化表格,动态从服务器加载数据
  547. $("#orderlist").bootstrapTable({
  548. method: "get", //使用get请求到服务器获取数据
  549. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  550. contentType: "application/x-www-form-urlencoded",
  551. striped: true, //表格显示条纹
  552. pagination: true, //启动分页
  553. pageSize: 10, //每页显示的记录数
  554. pageNumber: 1, //当前第几页
  555. pageList: [10, 20, 50, 100], //记录数可选列表
  556. search: false, //是否启用查询
  557. showColumns: false, //显示下拉框勾选要显示的列
  558. showRefresh: false, //显示刷新按钮
  559. sidePagination: "server", //表示服务端请求
  560. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  561. //设置为limit可以获取limit, offset, search, sort, order
  562. queryParamsType: "undefined",
  563. queryParams: function queryParams(params) {
  564. //设置查询参数
  565. //alert(params.pageNumber)
  566. var param = {
  567. page: params.pageNumber,
  568. pagesize: params.pageSize,
  569. workid: $("#wids").val().replace(/\s+/g, ""),
  570. state: $("#state").val(), //=工单状态
  571. type: $("#type").val(), //=工单类型
  572. //bigtype: $("#bigtype").val(), //=大类别
  573. //smalltype: $("#smalltype").val(), //=小类别
  574. key: $("#key").val(), //=关键字
  575. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  576. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  577. usercode: usercodeID, //=坐席工号
  578. ddusercode: ddusercodeID,
  579. keyid: $("#keyid").val(), //=关键词id
  580. source: $("#source").val(), //=来源&
  581. starttime: $("#starttime").val(), //=开始时间
  582. endtime: $("#endtime").val(), //=结束时间
  583. deptid: $("#PID").val(),
  584. type: $("#type").val(),
  585. dealtype: $("#dealtype").val(),
  586. sourcearea: $("#sourceAreas").val(), // 区域
  587. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  588. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  589. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  590. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  591. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  592. isopen: $("#isopen").val(),
  593. comprehensive: 1,
  594. token: $.cookie("token"),
  595. };
  596. return param;
  597. },
  598. onLoadSuccess: function (data) {
  599. //加载成功时执行
  600. // layer.msg("加载成功");
  601. //console.log(data);
  602. },
  603. onLoadError: function () {
  604. //加载失败时执行
  605. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  606. },
  607. });
  608. }
  609. //状态
  610. function States(val, row) {
  611. var html = "";
  612. switch (val + "") {
  613. case "0":
  614. html = "新工单";
  615. if (row.F_IsReturn == 1) {
  616. html = "新工单(回退)";
  617. }
  618. break;
  619. case "1":
  620. html = "待交办";
  621. break;
  622. case "2":
  623. html = '<span style="color:#FF0000;">待查收</span>';
  624. break;
  625. case "3":
  626. html = "退回审核中";
  627. break;
  628. case "4":
  629. html = "办理中";
  630. break;
  631. case "5":
  632. html = "延时审核";
  633. break;
  634. case "6":
  635. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  636. html = "已办未果"
  637. } else {
  638. html = "已办理";
  639. }
  640. break;
  641. case "7":
  642. html = "已回访";
  643. break;
  644. case "8":
  645. html = "重办中";
  646. break;
  647. case "9":
  648. html = "已结案";
  649. break;
  650. case "10":
  651. html = "待审核";
  652. break;
  653. case "11":
  654. html = "重办待交办";
  655. break;
  656. // case '12':
  657. // html = '待审核';
  658. // break;
  659. case "13":
  660. html = "重办驳回";
  661. break;
  662. }
  663. return html;
  664. }
  665. //音频
  666. function setCode(val) {
  667. if (val) {
  668. return (
  669. '<div class="imgs" style="cursor: pointer;">' +
  670. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  671. val +
  672. '" />' +
  673. "</div>"
  674. );
  675. } else {
  676. return "";
  677. }
  678. }
  679. //编号
  680. function serialNumber(val, row, index) {
  681. return index + 1;
  682. }
  683. function GetCont(val) {
  684. if (val) {
  685. var str = "<div ";
  686. if (val.length > 10) {
  687. str = str + ' title="' + val + '" ';
  688. val = val.substr(0, 10) + "...";
  689. }
  690. return str + ">" + val + "</div>";
  691. } else {
  692. return "";
  693. }
  694. }
  695. //操作
  696. function Dispose(val, row) {
  697. var Rows = row.Buttons;
  698. var html = "";
  699. for (var i = 0; i < Rows.length; i++) {
  700. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  701. if (html1) {
  702. html1 = html1.replace("data", val);
  703. html1 = html1.replace("isProtect", row.F_IsProtect);
  704. html1 = html1.replace("row", row.F_MainDeptId);
  705. }
  706. html += html1;
  707. }
  708. return html;
  709. }
  710. //查看详情
  711. function ckxq(str) {
  712. layer.open({
  713. type: 2,
  714. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  715. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  716. title: "工单详情",
  717. area: ["100%", "100%"], //宽高
  718. });
  719. }
  720. //时限
  721. function OverTime(val, row) {
  722. if (val == 1) {
  723. return (
  724. '<div class="" style="cursor: pointer;">' +
  725. '<span class="Greens">' +
  726. row.GapTime +
  727. "</span>" +
  728. "</div>"
  729. );
  730. } else if (val == 2) {
  731. return (
  732. '<div class="" style="cursor: pointer;">' +
  733. '<span class="Yellows">' +
  734. row.GapTime +
  735. "</span>" +
  736. "</div>"
  737. );
  738. } else if (val == 3) {
  739. return (
  740. '<div class="" style="cursor: pointer;">' +
  741. '<span class="Reds">' +
  742. row.GapTime +
  743. "</span>" +
  744. "</div>"
  745. );
  746. }
  747. }
  748. //办理时限
  749. function BanTime(val) {
  750. if (val) {
  751. var time = val.substring(0, val.indexOf(" "));
  752. return (
  753. '<div class="" style="cursor: pointer;">' +
  754. "<span>" +
  755. time +
  756. "</span>" +
  757. "</div>"
  758. );
  759. }
  760. }
  761. //派单
  762. function pd(str) {
  763. layer.open({
  764. type: 2,
  765. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  766. title: "办理工单",
  767. area: ["87%", "80%"], //宽高
  768. });
  769. }
  770. //处理审核
  771. function auditdeal(str) {
  772. layer.open({
  773. type: 2,
  774. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  775. title: "处理审核",
  776. area: ["80%", "80%"], //宽高
  777. });
  778. }
  779. //编辑
  780. function bj(str) {
  781. layer.open({
  782. type: 2,
  783. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  784. title: "编辑工单",
  785. area: ["96%", "80%"], //宽高
  786. });
  787. }
  788. //删除
  789. function move(str) {
  790. layer.confirm(
  791. "确定删除工单?", {
  792. btn: ["是", "否"], //按钮
  793. },
  794. function () {
  795. $.post(
  796. huayi.config.callcenter_url +
  797. "WorkOrder/DelWorkOrder", {
  798. ids: str,
  799. token: $.cookie("token"),
  800. },
  801. function (result) {
  802. result = JSON.parse(result);
  803. if (result.state.toLowerCase() == "success") {
  804. debugger;
  805. layer.msg("删除成功");
  806. $("#orderlist").bootstrapTable("refresh");
  807. }
  808. }
  809. );
  810. }
  811. );
  812. }
  813. //提交
  814. function tj(str) {
  815. layer.confirm(
  816. "确定要提交工单么?", {
  817. btn: ["确定", "取消"], //按钮
  818. },
  819. function () {
  820. //请求后台数据
  821. /*发送请求*/
  822. $.post(
  823. huayi.config.callcenter_url +
  824. "WorkOrder/SubmitWorkOrder", {
  825. ids: str,
  826. token: $.cookie("token"),
  827. },
  828. function (result) {
  829. result = JSON.parse(result);
  830. if (result.state.toLowerCase() == "success") {
  831. layer.msg("提交成功");
  832. $("#orderlist").bootstrapTable("refresh");
  833. //load();
  834. }
  835. }
  836. );
  837. }
  838. );
  839. }
  840. //交办
  841. function jb(str) {
  842. layer.open({
  843. type: 2,
  844. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  845. title: "工单交办",
  846. area: ["87%", "80%"], //宽高
  847. });
  848. }
  849. //领导批示
  850. function lader(str) {
  851. layer.open({
  852. type: 2,
  853. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  854. title: "领导批示",
  855. area: ["60%", "80%"], //宽高
  856. });
  857. }
  858. //市长批示
  859. function city(str) {
  860. layer.open({
  861. type: 2,
  862. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  863. title: "市长批示",
  864. area: ["60%", "80%"], //宽高
  865. });
  866. }
  867. //办理
  868. function bl(str, isProtect) {
  869. layer.open({
  870. type: 2,
  871. content: "../CommonHtml/banli.html?wid=" +
  872. str +
  873. "&isProtect=" +
  874. isProtect, //iframe的url,no代表不显示滚动条
  875. title: "办理工单",
  876. area: ["60%", "80%"], //宽高
  877. });
  878. }
  879. //督办
  880. function Supervision(str) {
  881. layer.open({
  882. type: 2,
  883. content: "../CommonHtml/Supervision_.html?wid=" +
  884. str +
  885. "&type=1", //iframe的url,no代表不显示滚动条
  886. title: "督办",
  887. area: ["60%", "80%"], //宽高
  888. });
  889. }
  890. //督查
  891. function Supervision_(str) {
  892. layer.open({
  893. type: 2,
  894. content: "../CommonHtml/Supervision_.html?wid=" +
  895. str +
  896. "&type=2", //iframe的url,no代表不显示滚动条
  897. title: "监察",
  898. area: ["60%", "80%"], //宽高
  899. });
  900. }
  901. //审核
  902. function audit(str) {
  903. layer.open({
  904. type: 2,
  905. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  906. title: "审核",
  907. area: ["60%", "80%"], //宽高
  908. });
  909. }
  910. //转督办
  911. function zdb(str, row) {
  912. layer.open({
  913. type: 2,
  914. content: "../CommonHtml/superTrunl.html?wid=" +
  915. str +
  916. "&depId=" +
  917. row, //iframe的url,no代表不显示滚动条
  918. title: "督办工单",
  919. area: ["60%", "80%"], //宽高
  920. });
  921. }
  922. //不督办
  923. function ndb(str) {
  924. layer.confirm(
  925. "确定督办吗?", {
  926. btn: ["是", "否"], //按钮
  927. },
  928. function () {
  929. $.post(
  930. huayi.config.callcenter_url +
  931. "WorkOrder/RemindWorkOrder", {
  932. workorderid: str,
  933. type: 1,
  934. state: 2,
  935. token: $.cookie("token"),
  936. },
  937. function (result) {
  938. result = JSON.parse(result);
  939. if (result.state.toLowerCase() == "success") {
  940. layer.msg("操作成功");
  941. //load();
  942. $("#orderlist").bootstrapTable("refresh");
  943. }
  944. }
  945. );
  946. }
  947. );
  948. }
  949. //强制结案
  950. function StrongLawsuit(str) {
  951. layer.open({
  952. type: 2,
  953. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  954. title: "强制结案",
  955. area: ["60%", "80%"], //宽高
  956. });
  957. }
  958. //回退BackDtail
  959. function BackDtail(str) {
  960. layer.open({
  961. type: 2,
  962. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  963. title: "工单督办",
  964. area: ["60%", "80%"], //宽高
  965. });
  966. }
  967. //查收
  968. function cs(str) {
  969. layer.confirm(
  970. "确定要查收?", {
  971. btn: ["是", "否"], //按钮
  972. },
  973. function () {
  974. $.post(
  975. huayi.config.callcenter_url +
  976. "WorkOrder/ReceiveWorkOrder", {
  977. workorderid: str,
  978. token: $.cookie("token"),
  979. },
  980. function (result) {
  981. result = JSON.parse(result);
  982. if (result.state.toLowerCase() == "success") {
  983. layer.msg("查收成功");
  984. //load();
  985. $("#orderlist").bootstrapTable("refresh");
  986. }
  987. }
  988. );
  989. }
  990. );
  991. }
  992. //收回
  993. function sh(str) {
  994. layer.confirm(
  995. "确定要回收?", {
  996. btn: ["是", "否"], //按钮
  997. },
  998. function () {
  999. $.post(
  1000. huayi.config.callcenter_url +
  1001. "WorkOrder/TakeBackWorkOrder", {
  1002. workorderid: str,
  1003. token: $.cookie("token"),
  1004. },
  1005. function (result) {
  1006. result = JSON.parse(result);
  1007. if (result.state.toLowerCase() == "success") {
  1008. layer.msg("回收");
  1009. //load();
  1010. $("#orderlist").bootstrapTable("refresh");
  1011. }
  1012. }
  1013. );
  1014. }
  1015. );
  1016. }
  1017. //强制回收
  1018. function recycles() {
  1019. layer.confirm("确定要强制退回吗?", {
  1020. btn: ["是", "否"], //按钮
  1021. });
  1022. }
  1023. //审核退回申请
  1024. function shth(str) {
  1025. layer.open({
  1026. type: 2,
  1027. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1028. title: "审核退回申请",
  1029. area: ["60%", "80%"], //宽高
  1030. });
  1031. }
  1032. //申请延时
  1033. function ys(str) {
  1034. layer.open({
  1035. type: 2,
  1036. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1037. title: "申请延时",
  1038. area: ["60%", "80%"], //宽高
  1039. });
  1040. }
  1041. //审核申请延时
  1042. function shys(str) {
  1043. layer.open({
  1044. type: 2,
  1045. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1046. title: "审核延时申请",
  1047. area: ["60%", "80%"], //宽高
  1048. });
  1049. }
  1050. //审核
  1051. function hf(str) {
  1052. layer.open({
  1053. type: 2,
  1054. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1055. title: "工单审核",
  1056. area: ["60%", "80%"], //宽高
  1057. });
  1058. }
  1059. //重办工单
  1060. function cb(str) {
  1061. layer.open({
  1062. type: 2,
  1063. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1064. title: "重办工单",
  1065. area: ["60%", "80%"], //宽高
  1066. });
  1067. }
  1068. //提交重办
  1069. function bhcb(str) {
  1070. //回退BackDtail
  1071. layer.open({
  1072. type: 2,
  1073. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1074. title: "驳回重办",
  1075. area: ["60%", "80%"], //宽高
  1076. });
  1077. }
  1078. //提交重办
  1079. function tjcb(str) {
  1080. layer.open({
  1081. type: 2,
  1082. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1083. title: "提交重办",
  1084. area: ["50%", "40%"], //宽高
  1085. });
  1086. // layer.confirm('确认提交重办吗?', {
  1087. // btn: ['是', '否'] //按钮
  1088. // }, function () {
  1089. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1090. // ids: str,
  1091. // "token": $.cookie("token")
  1092. // }, function(result) {
  1093. // result = JSON.parse(result);
  1094. // if(result.state.toLowerCase() == "success") {
  1095. // layer.msg("操作成功");
  1096. // //load();
  1097. // $("#orderlist").bootstrapTable('refresh');
  1098. // }
  1099. // })
  1100. // });
  1101. }
  1102. //结案
  1103. function Lawsuit(str) {
  1104. layer.open({
  1105. type: 2,
  1106. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1107. title: "诉求单结案",
  1108. area: ["60%", "80%"], //宽高
  1109. });
  1110. }
  1111. //退回
  1112. function returnRedo(str) {
  1113. layer.open({
  1114. type: 2,
  1115. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1116. title: "退回",
  1117. area: ["50%", "40%"], //宽高
  1118. });
  1119. }
  1120. //退回
  1121. function returnAuditor(str) {
  1122. layer.open({
  1123. type: 2,
  1124. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1125. title: "退回",
  1126. area: ["50%", "40%"], //宽高
  1127. });
  1128. }
  1129. //修改
  1130. function editProcessingResult(str) {
  1131. layer.open({
  1132. type: 2,
  1133. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1134. title: "修改",
  1135. area: ["50%", "50%"], //宽高
  1136. });
  1137. }
  1138. //上传文件
  1139. function upload() {
  1140. if (document.getElementById("upFile").files.length > 0) {
  1141. var formData = new FormData();
  1142. formData.append(
  1143. "upFile",
  1144. document.getElementById("upFile").files[0]
  1145. );
  1146. formData.append("token", $.cookie("token"));
  1147. $.ajax({
  1148. url: huayi.config.callcenter_url +
  1149. "/WorkOrder/UploadFile",
  1150. type: "POST",
  1151. data: formData,
  1152. /**
  1153. *必须false才会自动加上正确的Content-Type
  1154. */
  1155. contentType: false,
  1156. /**
  1157. * 必须false才会避开jQuery对 formdata 的默认处理
  1158. * XMLHttpRequest会对 formdata 进行正确的处理
  1159. */
  1160. processData: false,
  1161. success: function (result) {
  1162. document.getElementById(
  1163. "upFile"
  1164. ).outerHTML = document.getElementById(
  1165. "upFile"
  1166. ).outerHTML;
  1167. $("#upFile").change(function () {
  1168. upload();
  1169. });
  1170. var r = $.parseJSON(result);
  1171. if (r.state.toLowerCase() == "success") {
  1172. $(".fjnr").text(r.data);
  1173. $("#scfj").show();
  1174. }
  1175. },
  1176. });
  1177. } else {
  1178. layer.confirm("请上传文件!", {
  1179. btn: ["确定"],
  1180. });
  1181. }
  1182. }
  1183. //来源
  1184. function LY(obj) {
  1185. obj.empty();
  1186. obj.append(
  1187. '<option selected="selected" value="">请选择</option>'
  1188. );
  1189. $.getJSON(
  1190. huayi.config.callcenter_url +
  1191. "Dictionary/GetDicValueListById", {
  1192. token: $.cookie("token"),
  1193. id: 1,
  1194. },
  1195. function (data) {
  1196. if (data.state.toLowerCase() == "success") {
  1197. var content = data.data;
  1198. $(content).each(function (i, n) {
  1199. $(
  1200. "<option value='" +
  1201. n.F_ValueId +
  1202. "'>" +
  1203. n.F_Value +
  1204. "</option>"
  1205. ).appendTo(obj);
  1206. });
  1207. }
  1208. }
  1209. );
  1210. }
  1211. //类别
  1212. function LB(obj) {
  1213. obj.empty();
  1214. obj.append(
  1215. '<option selected="selected" value="">请选择</option>'
  1216. );
  1217. $.getJSON(
  1218. huayi.config.callcenter_url +
  1219. "Dictionary/GetDicValueListById", {
  1220. token: $.cookie("token"),
  1221. id: 2,
  1222. },
  1223. function (data) {
  1224. if (data.state.toLowerCase() == "success") {
  1225. var content = data.data;
  1226. $(content).each(function (i, n) {
  1227. $(
  1228. "<option value='" +
  1229. n.F_ValueId +
  1230. "'>" +
  1231. n.F_Value +
  1232. "</option>"
  1233. ).appendTo(obj);
  1234. });
  1235. }
  1236. }
  1237. );
  1238. }
  1239. // 主题
  1240. function ZT(obj) {
  1241. obj.empty();
  1242. obj.append(
  1243. '<option selected="selected" value="">请选择</option>'
  1244. );
  1245. $.getJSON(
  1246. huayi.config.callcenter_url +
  1247. "Dictionary/GetDicValueListById", {
  1248. token: $.cookie("token"),
  1249. id: 3,
  1250. },
  1251. function (data) {
  1252. if (data.state.toLowerCase() == "success") {
  1253. var content = data.data;
  1254. $(content).each(function (i, n) {
  1255. $(
  1256. "<option value='" +
  1257. n.F_ValueId +
  1258. "'>" +
  1259. n.F_Value +
  1260. "</option>"
  1261. ).appendTo(obj);
  1262. });
  1263. }
  1264. }
  1265. );
  1266. }
  1267. function tree() {
  1268. $.get(
  1269. huayi.config.callcenter_url + "Department/GetDeptList", {
  1270. token: $.cookie("token"),
  1271. // "pid": pid
  1272. },
  1273. function (result) {
  1274. result = $.parseJSON(result);
  1275. $.fn.zTree.init(
  1276. $("#addTreeDemo"),
  1277. setting1,
  1278. result.data
  1279. ); //实例化树形图
  1280. }
  1281. );
  1282. }
  1283. var setting1 = {
  1284. data: {
  1285. key: {
  1286. name: "F_DeptName",
  1287. },
  1288. simpleData: {
  1289. enable: true,
  1290. idKey: "F_DeptId",
  1291. pIdKey: "F_PartentId",
  1292. rootPId: 0,
  1293. },
  1294. },
  1295. callback: {
  1296. onClick: zTreeOnClick,
  1297. },
  1298. };
  1299. function zTreeOnClick(event, treeId, treeNode) {
  1300. if (treeNode.level >= 1) {
  1301. $(".inps").val(treeNode.F_DeptName);
  1302. $("#PID").val(treeNode.F_DeptId);
  1303. $("#Dpment").val(treeNode.F_DeptId);
  1304. $(".Cleans").show();
  1305. }
  1306. }
  1307. function Close() {
  1308. $(".lyxz").removeClass("cx");
  1309. if ($("audio").length > 0) {
  1310. $("audio")[0].pause();
  1311. }
  1312. }
  1313. </script>
  1314. </body>
  1315. </html>