Нет описания

workDelayedAudit.html 25KB

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