Bez popisu

workDelayedAudit.html 25KB

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