No Description

haveDoneToAudit.html 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  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="../css/WorkOrder/WorkOrderList.css">
  13. </head>
  14. <body class="gray-bg">
  15. <div class="wrapper wrapper-content animated fadeInRight">
  16. <div class="daoHang clearfix">
  17. <div class="dhLeft">
  18. <sapn>
  19. <i class="syIcon"></i>位置:
  20. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  21. <a href="" class="nowPosition">已办待审核</a>
  22. </sapn>
  23. </div>
  24. <div class="dhRight">
  25. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  26. </div>
  27. </div>
  28. <div style="padding: 10px" class="tj_content clearFix">
  29. <div style="padding: 10px" class="tj_content clearFix">
  30. <div>
  31. <span>【搜索信息】</span>
  32. <div class="box_content">
  33. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  34. <tr>
  35. <th>工单来源:</th>
  36. <td>
  37. <select class="form-control" id="source">
  38. </select>
  39. </td>
  40. <th>来电号码:</th>
  41. <td>
  42. <input type="text" id="tel" class="form-control" />
  43. </td>
  44. <th>录入时间:</th>
  45. <td colspan="3">
  46. <input type="text" id="starttime" class="photo x-color laydate-icon" autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="photo x-color laydate-icon" autocomplete="off" style="height: 35px;" />
  47. </td>
  48. </tr>
  49. <tr>
  50. <th>事项编号:</th>
  51. <td>
  52. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  53. </td>
  54. <th><span class="nameJustified">来电人:</span></th>
  55. <td>
  56. <input type="text" id="name" class="form-control" />
  57. </td>
  58. <th>办理时间:</th>
  59. <td colspan="3">
  60. <input id="dealstarttime" class="photo x-color laydate-icon" type="text" autocomplete="off" style="height: 35px;" />
  61. ——
  62. <input id="dealstrendtime" class="photo x-color laydate-icon" type="text" autocomplete="off" style="height: 35px;" />
  63. </td>
  64. </tr>
  65. <tr>
  66. <th>受话坐席:</th>
  67. <td>
  68. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  69. data-live-search="true">
  70. <option value="">请选择坐席</option>
  71. </select>
  72. </td>
  73. <th><span class="nameJustified">审核员:</span></th>
  74. <td>
  75. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  76. multiple data-live-search="true">
  77. <option value="">请选择调度员</option>
  78. </select>
  79. </td>
  80. <th>反映区域:</th>
  81. <td>
  82. <select name="" id="sourceAreas" class="form-control Min-width">
  83. </select>
  84. <botton class="btns Seach">搜索</botton>
  85. </td>
  86. </tr>
  87. <tr>
  88. <th>承办单位:</th>
  89. <td style="position: relative;">
  90. <div class="inpBox">
  91. <input type="text" class="inps" />
  92. <i class="Cleans fa fa-close"></i>
  93. <i class="xl xl_one"></i>
  94. <div class="addTree xlAdd">
  95. <ul id="addTreeDemo" class="ztree"></ul>
  96. </div>
  97. </div>
  98. <div class="selDpart1">
  99. <ul id="sponsor">
  100. </ul>
  101. </div>
  102. </td>
  103. <th>来电类型:</th>
  104. <td>
  105. <select class="form-control" id="type">
  106. </select>
  107. </td>
  108. <th><span class="nameJustified">关键字:</span></th>
  109. <td>
  110. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  111. <botton class="btns exportFile">导出</botton>
  112. </td>
  113. </tr>
  114. </table>
  115. </div>
  116. </div>
  117. <div>
  118. <ul class="nav nav-tabs ul_tab" role="tablist">
  119. <li class="active">
  120. <a>热线件</a>
  121. </li>
  122. <li>
  123. <a>督办件</a>
  124. </li>
  125. </ul>
  126. <div style="width: 100%; padding: 10px">
  127. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  128. data-pagination="true">
  129. <thead>
  130. <tr>
  131. <th data-formatter="serialNumber" data-align="center">
  132. 序号
  133. </th>
  134. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  135. 工单单号
  136. </th>
  137. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  138. 诉求标题
  139. </th>
  140. <th data-field="DeptName" data-align="center">
  141. 承办单位
  142. </th>
  143. <!-- <th data-field="OtherDeptName" data-align="center">
  144. 协办单位
  145. </th> -->
  146. <th data-field="UserName" data-align="center">
  147. 受理人
  148. </th>
  149. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  150. 办理状态
  151. </th>
  152. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  153. 时限
  154. </th>
  155. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  156. 办理时限
  157. </th>
  158. <!--<th
  159. data-field="FilePath"
  160. data-formatter="setCode"
  161. data-align="center"
  162. >
  163. 录音
  164. </th>-->
  165. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  166. 操作
  167. </th>
  168. </tr>
  169. </thead>
  170. <tbody class="list"></tbody>
  171. </table>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <!--下载框-->
  177. <div class="t-shade lyxz">
  178. <div class="shade_k">
  179. <div class="shade_title">
  180. <span>录音播放与下载<srong class="cknum"></srong></span>
  181. <span class="setwin gbly"><a>x</a></span>
  182. </div>
  183. <div class="shade_content">
  184. <div class="Ly_box audiojs"></div>
  185. </div>
  186. </div>
  187. </div>
  188. <input type="hidden" id="PID" />
  189. <input type="hidden" id="Dpment" />
  190. </div>
  191. <script src="../js/layui/layui.js"></script>
  192. <script src="../js/bootstrap-select.js"></script>
  193. <script src="../css/laydate/laydate.js"></script>
  194. <script src="../My97DatePicker/WdatePicker.js"></script>
  195. <script src="../js/zTree/jquery.ztree.core.js"></script>
  196. <script src="../js/search/screen.js"></script>
  197. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  198. <script src="../js/WorkOrder/orderListOperation.js"></script>
  199. <script>
  200. var db = 0;
  201. var exportParams; // 导出参数
  202. var jianhang = helper.request.queryString("jianhang");
  203. $(document).ready(function () {
  204. var wid = helper.request.queryString("wid");
  205. if (wid) {
  206. $("#tel").val(wid);
  207. load();
  208. }
  209. laydate.skin('blue');
  210. laydate({
  211. elem: '#starttime',
  212. event: 'focus',
  213. istime: true,
  214. format: 'YYYY-MM-DD hh:mm:ss'
  215. });
  216. laydate({
  217. elem: '#dealstarttime',
  218. event: 'focus',
  219. istime: true,
  220. format: 'YYYY-MM-DD hh:mm:ss'
  221. });
  222. laydate({
  223. elem: '#dealstrendtime',
  224. event: 'focus',
  225. istime: true,
  226. format: 'YYYY-MM-DD hh:mm:ss'
  227. });
  228. laydate({
  229. elem: '#endtime',
  230. event: 'focus',
  231. istime: true,
  232. format: 'YYYY-MM-DD hh:mm:ss'
  233. });
  234. load();
  235. $('.ul_tab li').click(function () {
  236. $(this).addClass("active").siblings().removeClass("active");
  237. var index = $(this).index();
  238. if (index === 0) {
  239. db = 0;
  240. } else if (index === 1) {
  241. db = 1
  242. }
  243. load();
  244. })
  245. });
  246. //关闭录音弹出
  247. $(".gbly").click(function () {
  248. $(".lyxz").removeClass("cx");
  249. $("audio")[0].pause();
  250. });
  251. //获取查询信息
  252. function load() {
  253. //坐席
  254. var usercodeID = "";
  255. var usercode_ = $("#ZX").val(); //坐席
  256. if (usercode_ != null) {
  257. $(usercode_).each(function (i, n) {
  258. var obj1 = "";
  259. obj1 = n + ",";
  260. usercodeID += obj1;
  261. });
  262. } else {
  263. usercodeID = "";
  264. }
  265. // 调度员
  266. var ddusercodeID = "";
  267. var ddusercode_ = $("#yardman").val(); //坐席
  268. if (ddusercode_ != null) {
  269. $(ddusercode_).each(function (i, n) {
  270. var obj2 = "";
  271. obj2 = n + ",";
  272. ddusercodeID += obj2;
  273. });
  274. } else {
  275. ddusercodeID = "";
  276. }
  277. //先销毁表格
  278. $("#orderlist").bootstrapTable("destroy");
  279. //初始化表格,动态从服务器加载数据
  280. $("#orderlist").bootstrapTable({
  281. method: "get", //使用get请求到服务器获取数据
  282. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  283. contentType: "application/x-www-form-urlencoded",
  284. striped: true, //表格显示条纹
  285. pagination: true, //启动分页
  286. pageSize: 10, //每页显示的记录数
  287. pageNumber: 1, //当前第几页
  288. pageList: [10, 20, 50, 100], //记录数可选列表
  289. search: false, //是否启用查询
  290. showColumns: false, //显示下拉框勾选要显示的列
  291. showRefresh: false, //显示刷新按钮
  292. sidePagination: "server", //表示服务端请求
  293. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  294. //设置为limit可以获取limit, offset, search, sort, order
  295. queryParamsType: "undefined",
  296. queryParams: function queryParams(params) {
  297. //设置查询参数
  298. //alert(params.pageNumber)
  299. var param = {
  300. page: params.pageNumber,
  301. pagesize: params.pageSize,
  302. workid: $("#wids").val(),
  303. state: 6, //=工单状态
  304. type: $("#type").val(), //=工单类型
  305. //bigtype: $("#bigtype").val(), //=大类别
  306. //smalltype: $("#smalltype").val(), //=小类别
  307. key: $("#key").val(), //=关键字
  308. tel: $("#tel").val(), //=客户电话
  309. name: $("#name").val(), //=客户名称
  310. usercode: usercodeID, //=坐席工号
  311. ddusercode: ddusercodeID,
  312. keyid: $("#keyid").val(), //=关键词id
  313. source: $("#source").val(), //=来源&
  314. starttime: $("#starttime").val(), //=开始时间
  315. endtime: $("#endtime").val(), //=结束时间
  316. deptid: $("#PID").val(),
  317. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  318. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  319. tobereply: 1,
  320. tab: 0,
  321. type: $("#type").val(),
  322. dealtype: $("#dealtype").val(),
  323. sourcearea: $("#sourceAreas").val(), //区域
  324. issms: $("#issms").val(), //发送短信
  325. jianhang: jianhang?jianhang:0,
  326. phoneType: 2, // 12345来电
  327. db: db, // 热线件(db=0),督办件(db=1)
  328. token: $.cookie("token"),
  329. };
  330. // 导出参数
  331. exportParams = param;
  332. return param;
  333. },
  334. onLoadSuccess: function (data) {
  335. //加载成功时执行
  336. // layer.msg("加载成功");
  337. //console.log(data);
  338. },
  339. onLoadError: function () {
  340. //加载失败时执行
  341. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  342. },
  343. });
  344. }
  345. //状态
  346. function States(val, row) {
  347. var html = "";
  348. switch (val + "") {
  349. case "0":
  350. html = "新工单";
  351. if (row.F_IsReturn == 1) {
  352. html = "新工单(回退)";
  353. }
  354. break;
  355. case "1":
  356. html = "待交办";
  357. break;
  358. case "2":
  359. html = '<span style="color:#FF0000;">待查收</span>';
  360. break;
  361. case "3":
  362. html = "退回审核中";
  363. break;
  364. case "4":
  365. html = "办理中";
  366. break;
  367. case "5":
  368. html = "延时审核";
  369. break;
  370. case "6":
  371. html = "已办理";
  372. break;
  373. case "7":
  374. html = "已回访";
  375. break;
  376. case "8":
  377. html = "重办中";
  378. break;
  379. case "9":
  380. html = "已结案";
  381. break;
  382. case "10":
  383. html = "待审核";
  384. break;
  385. case "11":
  386. html = "重办待交办";
  387. break;
  388. // case '12':
  389. // html = '待审核';
  390. // break;
  391. case "13":
  392. html = "重办驳回";
  393. break;
  394. }
  395. return html;
  396. }
  397. // 已办未果
  398. function unsuccessful(str) {
  399. layer.confirm('确认已办未果吗?', {
  400. btn: ['是', '否'] //按钮
  401. }, function () {
  402. $.post(huayi.config.callcenter_url + 'WorkOrder/Transfer', {
  403. workorderid: str,
  404. "token": $.cookie("token")
  405. }, function (result) {
  406. result = JSON.parse(result);
  407. if (result.state.toLowerCase() == "success") {
  408. layer.msg("操作成功");
  409. $("#orderlist").bootstrapTable('refresh');
  410. }
  411. })
  412. });
  413. }
  414. //音频
  415. function setCode(val) {
  416. if (val) {
  417. return (
  418. '<div class="imgs" style="cursor: pointer;">' +
  419. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  420. val +
  421. '" />' +
  422. "</div>"
  423. );
  424. } else {
  425. return "";
  426. }
  427. }
  428. //编号
  429. function serialNumber(val, row, index) {
  430. return index + 1;
  431. }
  432. function GetCont(val) {
  433. if (val) {
  434. var str = "<div ";
  435. if (val.length > 10) {
  436. str = str + ' title="' + val + '" ';
  437. val = val.substr(0, 10) + "...";
  438. }
  439. return str + ">" + val + "</div>";
  440. } else {
  441. return "";
  442. }
  443. }
  444. //操作
  445. function Dispose(val, row) {
  446. var Rows = row.Buttons;
  447. var html = "";
  448. for (var i = 0; i < Rows.length; i++) {
  449. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  450. if (html1) {
  451. html1 = html1.replace("data", val);
  452. html1 = html1.replace("isProtect", row.F_IsProtect);
  453. html1 = html1.replace("row", row.F_MainDeptId);
  454. html1 = html1.replace("zhcxtit", row.F_ComTitle);
  455. html1 = html1.replace("zhcxcon", row.F_Result);
  456. }
  457. bl
  458. html += html1;
  459. }
  460. return html;
  461. }
  462. //时限
  463. function OverTime(val, row) {
  464. if (val == 1) {
  465. return (
  466. '<div class="" style="cursor: pointer;">' +
  467. '<span class="Greens">' +
  468. row.GapTime +
  469. "</span>" +
  470. "</div>"
  471. );
  472. } else if (val == 2) {
  473. return (
  474. '<div class="" style="cursor: pointer;">' +
  475. '<span class="Yellows">' +
  476. row.GapTime +
  477. "</span>" +
  478. "</div>"
  479. );
  480. } else if (val == 3) {
  481. return (
  482. '<div class="" style="cursor: pointer;">' +
  483. '<span class="Reds">' +
  484. row.GapTime +
  485. "</span>" +
  486. "</div>"
  487. );
  488. }
  489. }
  490. //办理时限
  491. function BanTime(val) {
  492. if (val) {
  493. var time = val.substring(0, val.indexOf(" "));
  494. return (
  495. '<div class="" style="cursor: pointer;">' +
  496. "<span>" +
  497. time +
  498. "</span>" +
  499. "</div>"
  500. );
  501. }
  502. }
  503. //来源
  504. function LY(obj) {
  505. obj.empty();
  506. obj.append(
  507. '<option selected="selected" value="">请选择</option>'
  508. );
  509. $.getJSON(
  510. huayi.config.callcenter_url +
  511. "Dictionary/GetDicValueListById", {
  512. token: $.cookie("token"),
  513. id: 1,
  514. },
  515. function (data) {
  516. if (data.state.toLowerCase() == "success") {
  517. var content = data.data;
  518. $(content).each(function (i, n) {
  519. $(
  520. "<option value='" +
  521. n.F_ValueId +
  522. "'>" +
  523. n.F_Value +
  524. "</option>"
  525. ).appendTo(obj);
  526. });
  527. }
  528. }
  529. );
  530. }
  531. //类别
  532. function LB(obj) {
  533. obj.empty();
  534. obj.append(
  535. '<option selected="selected" value="">请选择</option>'
  536. );
  537. $.getJSON(
  538. huayi.config.callcenter_url +
  539. "Dictionary/GetDicValueListById", {
  540. token: $.cookie("token"),
  541. id: 2,
  542. },
  543. function (data) {
  544. if (data.state.toLowerCase() == "success") {
  545. var content = data.data;
  546. $(content).each(function (i, n) {
  547. $(
  548. "<option value='" +
  549. n.F_ValueId +
  550. "'>" +
  551. n.F_Value +
  552. "</option>"
  553. ).appendTo(obj);
  554. });
  555. }
  556. }
  557. );
  558. }
  559. // 主题
  560. function ZT(obj) {
  561. obj.empty();
  562. obj.append(
  563. '<option selected="selected" value="">请选择</option>'
  564. );
  565. $.getJSON(
  566. huayi.config.callcenter_url +
  567. "Dictionary/GetDicValueListById", {
  568. token: $.cookie("token"),
  569. id: 3,
  570. },
  571. function (data) {
  572. if (data.state.toLowerCase() == "success") {
  573. var content = data.data;
  574. $(content).each(function (i, n) {
  575. $(
  576. "<option value='" +
  577. n.F_ValueId +
  578. "'>" +
  579. n.F_Value +
  580. "</option>"
  581. ).appendTo(obj);
  582. });
  583. }
  584. }
  585. );
  586. }
  587. function tree() {
  588. $.get(
  589. huayi.config.callcenter_url + "Department/GetDeptList", {
  590. token: $.cookie("token"),
  591. // "pid": pid
  592. },
  593. function (result) {
  594. result = $.parseJSON(result);
  595. $.fn.zTree.init(
  596. $("#addTreeDemo"),
  597. setting1,
  598. result.data
  599. ); //实例化树形图
  600. }
  601. );
  602. }
  603. var setting1 = {
  604. data: {
  605. key: {
  606. name: "F_DeptName",
  607. },
  608. simpleData: {
  609. enable: true,
  610. idKey: "F_DeptId",
  611. pIdKey: "F_PartentId",
  612. rootPId: 0,
  613. },
  614. },
  615. callback: {
  616. onClick: zTreeOnClick,
  617. },
  618. };
  619. function zTreeOnClick(event, treeId, treeNode) {
  620. // if (treeNode.level >= 1) {
  621. $(".inps").val(treeNode.F_DeptName);
  622. $("#PID").val(treeNode.F_DeptId);
  623. $("#Dpment").val(treeNode.F_DeptId);
  624. $(".Cleans").show();
  625. // }
  626. }
  627. function Close() {
  628. $(".lyxz").removeClass("cx");
  629. if ($("audio").length > 0) {
  630. $("audio")[0].pause();
  631. }
  632. }
  633. // 导出文件
  634. $(".exportFile").click(function() {
  635. exportParams.isdc = 1;
  636. exportFileFun("WorkOrder/GetZXDealList", exportParams)
  637. })
  638. </script>
  639. </body>
  640. </html>