Sin descripción

workDelayedAudit.html 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  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. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  244. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  245. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  246. });
  247. //获取查询信息
  248. function load() {
  249. //坐席
  250. var usercodeID = "";
  251. var usercode_ = $("#ZX").val(); //坐席
  252. if (usercode_ != null) {
  253. $(usercode_).each(function (i, n) {
  254. var obj1 = "";
  255. obj1 = n + ",";
  256. usercodeID += obj1;
  257. });
  258. } else {
  259. usercodeID = "";
  260. }
  261. // 调度员
  262. var ddusercodeID = "";
  263. var ddusercode_ = $("#yardman").val(); //坐席
  264. if (ddusercode_ != null) {
  265. $(ddusercode_).each(function (i, n) {
  266. var obj2 = "";
  267. obj2 = n + ",";
  268. ddusercodeID += obj2;
  269. });
  270. } else {
  271. ddusercodeID = "";
  272. }
  273. //先销毁表格
  274. $("#orderlist").bootstrapTable("destroy");
  275. //初始化表格,动态从服务器加载数据
  276. $("#orderlist").bootstrapTable({
  277. method: "get", //使用get请求到服务器获取数据
  278. url: huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList", //获取数据的Servlet地址
  279. contentType: "application/x-www-form-urlencoded",
  280. striped: true, //表格显示条纹
  281. pagination: true, //启动分页
  282. pageSize: 10, //每页显示的记录数
  283. pageNumber: 1, //当前第几页
  284. pageList: [10, 20, 50, 100], //记录数可选列表
  285. search: false, //是否启用查询
  286. showColumns: false, //显示下拉框勾选要显示的列
  287. showRefresh: false, //显示刷新按钮
  288. sidePagination: "server", //表示服务端请求
  289. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  290. //设置为limit可以获取limit, offset, search, sort, order
  291. queryParamsType: "undefined",
  292. queryParams: function queryParams(params) {
  293. //设置查询参数
  294. var param = {
  295. page: params.pageNumber,
  296. pagesize: params.pageSize,
  297. workid: $("#wids").val(),
  298. state: $("#state").val(), //=工单状态
  299. type: $("#type").val(), //=工单类型
  300. bigtype: $("#bigtype").val(), //=大类别
  301. smalltype: $("#smalltype").val(), //=小类别
  302. key: $("#key").val(), //=关键字
  303. tel: $("#tel").val(), //=客户电话
  304. conphone:$("#conphone").val(),
  305. name: $("#name").val(), //=客户名称
  306. usercode: usercodeID, //=坐席工号
  307. ddusercode: ddusercodeID,
  308. keyid: $("#keyid").val(), //=关键词i d
  309. source: $("#source").val(), //=来源&
  310. starttime: $("#starttime").val(), //=开始时间
  311. endtime: $("#endtime").val(), //=结束时间
  312. deptid: $("#PID").val(),
  313. type: $("#type").val(),
  314. tab: tab, //待处理
  315. distribute: 0,
  316. jianhang: jianhang,
  317. sourcearea: $("#sourceAreas").val(), //区域
  318. strworkorderid:$("#strworkorderid").val().replace(/\s+/g, ""),
  319. jianhang: jianhang,
  320. // isys: 0, // 未延时待办理
  321. token: $.cookie("token"),
  322. };
  323. // 导出参数
  324. exportParams = param;
  325. return param;
  326. },
  327. onLoadSuccess: function (data) {
  328. //加载成功时执行
  329. // layer.msg("加载成功");
  330. //console.log(data);
  331. },
  332. onLoadError: function () {
  333. //加载失败时执行
  334. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  335. },
  336. });
  337. }
  338. //状态
  339. function States(val, row) {
  340. var html = "";
  341. switch (val + "") {
  342. case "0":
  343. html = "新工单";
  344. if (row.F_IsReturn == 1) {
  345. html = "新工单(回退)";
  346. }
  347. break;
  348. case "1":
  349. html = "待审核";
  350. break;
  351. case "2":
  352. html = '<span style="color:#FF0000;">待查收</span>';
  353. break;
  354. case "3":
  355. html = "退回审核中";
  356. break;
  357. case "4":
  358. html = "办理中";
  359. break;
  360. case "5":
  361. html = "延时审核";
  362. break;
  363. case "6":
  364. html = "待审核";
  365. break;
  366. case "7":
  367. html = "已回访";
  368. break;
  369. case "8":
  370. if (String(row.F_Identification) === "0") {
  371. html = "重置转发";
  372. } else if (String(row.F_Identification) === "1") {
  373. html = "退回重办";
  374. } else {
  375. html = "重办中";
  376. }
  377. break;
  378. case "9":
  379. html = "已结案";
  380. break;
  381. case "10":
  382. html = "待审核";
  383. break;
  384. case "11":
  385. html = "重办待交办";
  386. break;
  387. case "12":
  388. html = "待审核";
  389. break;
  390. case "13":
  391. html = "待督办";
  392. break;
  393. }
  394. return html;
  395. }
  396. //时限
  397. function OverTime(val, row) {
  398. if (val == 1) {
  399. return (
  400. '<div class="" style="cursor: pointer;">' +
  401. '<span class="Greens">' +
  402. row.GapTime +
  403. "</span>" +
  404. "</div>"
  405. );
  406. } else if (val == 2) {
  407. return (
  408. '<div class="" style="cursor: pointer;">' +
  409. '<span class="Yellows">' +
  410. row.GapTime +
  411. "</span>" +
  412. "</div>"
  413. );
  414. } else if (val == 3) {
  415. return (
  416. '<div class="" style="cursor: pointer;">' +
  417. '<span class="Reds">' +
  418. row.GapTime +
  419. "</span>" +
  420. "</div>"
  421. );
  422. }
  423. }
  424. //办理时限
  425. function BanTime(val) {
  426. if (val) {
  427. var time = val.substring(0, val.indexOf(" "));
  428. return (
  429. '<div class="" style="cursor: pointer;">' +
  430. "<span>" +
  431. time +
  432. "</span>" +
  433. "</div>"
  434. );
  435. }
  436. }
  437. //音频
  438. function setCode(val) {
  439. if (val) {
  440. return (
  441. '<div class="imgs" style="cursor: pointer;">' +
  442. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  443. val +
  444. '" />' +
  445. "</div>"
  446. );
  447. } else {
  448. return "";
  449. }
  450. }
  451. //编号
  452. function serialNumber(val, row, index) {
  453. return index + 1;
  454. }
  455. function GetCont(val) {
  456. if (val) {
  457. var str = "<div ";
  458. if (val.length > 10) {
  459. str = str + ' title="' + val + '" ';
  460. val = val.substr(0, 10) + "...";
  461. }
  462. return str + ">" + val + "</div>";
  463. } else {
  464. return "";
  465. }
  466. }
  467. //操作
  468. function Dispose(val, row) {
  469. var Rows = row.Buttons;
  470. var html = "";
  471. for (var i = 0; i < Rows.length; i++) {
  472. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  473. if (html1) {
  474. html1 = html1.replace("data", val);
  475. html1 = html1.replace("isProtect", row.F_IsProtect);
  476. html1 = html1.replace("row", row.F_MainDeptId);
  477. html1 = html1.replace("isSPT", row.SourceName);
  478. }
  479. html += html1;
  480. }
  481. return html;
  482. }
  483. //来源
  484. function LY(obj) {
  485. obj.empty();
  486. obj.append(
  487. '<option selected="selected" value="">请选择</option>'
  488. );
  489. $.getJSON(
  490. huayi.config.callcenter_url +
  491. "Dictionary/GetDicValueListById", {
  492. token: $.cookie("token"),
  493. id: 1,
  494. },
  495. function (data) {
  496. if (data.state.toLowerCase() == "success") {
  497. var content = data.data;
  498. $(content).each(function (i, n) {
  499. $(
  500. "<option value='" +
  501. n.F_ValueId +
  502. "'>" +
  503. n.F_Value +
  504. "</option>"
  505. ).appendTo(obj);
  506. });
  507. }
  508. }
  509. );
  510. }
  511. //类别
  512. function LB(obj) {
  513. obj.empty();
  514. obj.append(
  515. '<option selected="selected" value="">请选择</option>'
  516. );
  517. $.getJSON(
  518. huayi.config.callcenter_url +
  519. "Dictionary/GetDicValueListById", {
  520. token: $.cookie("token"),
  521. id: 2,
  522. },
  523. function (data) {
  524. if (data.state.toLowerCase() == "success") {
  525. var content = data.data;
  526. $(content).each(function (i, n) {
  527. $(
  528. "<option value='" +
  529. n.F_ValueId +
  530. "'>" +
  531. n.F_Value +
  532. "</option>"
  533. ).appendTo(obj);
  534. });
  535. }
  536. }
  537. );
  538. }
  539. // 主题
  540. function ZT(obj) {
  541. obj.empty();
  542. obj.append(
  543. '<option selected="selected" value="">请选择</option>'
  544. );
  545. $.getJSON(
  546. huayi.config.callcenter_url +
  547. "Dictionary/GetDicValueListById", {
  548. token: $.cookie("token"),
  549. id: 3,
  550. },
  551. function (data) {
  552. if (data.state.toLowerCase() == "success") {
  553. var content = data.data;
  554. $(content).each(function (i, n) {
  555. $(
  556. "<option value='" +
  557. n.F_ValueId +
  558. "'>" +
  559. n.F_Value +
  560. "</option>"
  561. ).appendTo(obj);
  562. });
  563. }
  564. }
  565. );
  566. }
  567. function tree() {
  568. $.get(
  569. huayi.config.callcenter_url + "Department/GetDeptList", {
  570. token: $.cookie("token"),
  571. // "pid": pid
  572. },
  573. function (result) {
  574. result = $.parseJSON(result);
  575. $.fn.zTree.init(
  576. $("#addTreeDemo"),
  577. setting1,
  578. result.data
  579. ); //实例化树形图
  580. }
  581. );
  582. }
  583. var setting1 = {
  584. data: {
  585. key: {
  586. name: "F_DeptName",
  587. },
  588. simpleData: {
  589. enable: true,
  590. idKey: "F_DeptId",
  591. pIdKey: "F_PartentId",
  592. rootPId: 0,
  593. },
  594. },
  595. callback: {
  596. onClick: zTreeOnClick,
  597. },
  598. };
  599. function zTreeOnClick(event, treeId, treeNode) {
  600. $(".inps").val(treeNode.F_DeptName);
  601. $("#PID").val(treeNode.F_DeptId);
  602. $("#Dpment").val(treeNode.F_DeptName);
  603. $(".Cleans").show();
  604. }
  605. // 导出文件
  606. $(".exportFile").click(function() {
  607. exportParams.isdc = 1;
  608. console.log(exportParams)
  609. exportFileFun("WorkOrder/GetDWDealList", exportParams)
  610. })
  611. </script>
  612. </body>
  613. </html>