12345市长热线标准版-前端

ZXYHF.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  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="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <style>
  11. #sqzx th {
  12. padding: 5px 8px 5px 0;
  13. text-align: right;
  14. }
  15. .select {
  16. width: 150px;
  17. background-color: #FFF;
  18. background-image: none;
  19. border: 1px solid #ccc;
  20. border-radius: 1px;
  21. color: inherit;
  22. padding: 6px 12px;
  23. }
  24. #sex {
  25. background-color: #FFF;
  26. background-image: none;
  27. border: 1px solid #ccc;
  28. border-radius: 1px;
  29. color: inherit;
  30. padding: 6px 12px;
  31. }
  32. input {
  33. background-color: #FFF;
  34. background-image: none;
  35. border: 1px solid #ccc;
  36. border-radius: 1px;
  37. color: inherit;
  38. padding: 6px 12px;
  39. }
  40. #sqzx td {
  41. padding: 6px 0 5px 10px;
  42. }
  43. .lxr ul li {
  44. float: left;
  45. list-style: none;
  46. width: 30%;
  47. margin-bottom: 5px;
  48. padding-top: 10px;
  49. }
  50. .clearFix:after {
  51. content: "";
  52. display: block;
  53. clear: both;
  54. }
  55. .form-group {
  56. padding-left: 40px;
  57. margin-bottom: 0;
  58. }
  59. textarea {
  60. height: 70px;
  61. border: 1px solid #ccc;
  62. border-radius: 1px;
  63. width: 50%;
  64. resize: none;
  65. }
  66. .textarea_box {
  67. margin-top: 10px;
  68. }
  69. .box_content {
  70. border-bottom: 1px solid #ccc;
  71. }
  72. .tj_content {
  73. border: 1px solid #e6e6e6;
  74. border-radius: 5px;
  75. }
  76. .t-shade {
  77. position: fixed;
  78. top: 0;
  79. left: 0;
  80. width: 100%;
  81. height: 100%;
  82. background: rgba(0, 0, 0, 0.48);
  83. z-index: 10004;
  84. display: none;
  85. }
  86. .lyxz .shade_k {
  87. z-index: 10005;
  88. width: 60%;
  89. margin: 10% auto;
  90. background-color: #fff;
  91. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  92. border-radius: 5px;
  93. }
  94. .shade_title {
  95. padding: 0 80px 0 20px;
  96. height: 42px;
  97. line-height: 42px;
  98. border-bottom: 1px solid #eee;
  99. font-size: 16px;
  100. color: #FFFFFF;
  101. overflow: hidden;
  102. background-color: #1ab394;
  103. border-radius: 2px 2px 0 0;
  104. position: relative;
  105. border-top-left-radius: 5px;
  106. border-top-right-radius: 5px;
  107. }
  108. .cx {
  109. display: block;
  110. }
  111. .setwin {
  112. position: absolute;
  113. right: 15px;
  114. top: 5px;
  115. font-size: 0;
  116. line-height: initial;
  117. }
  118. .setwin a {
  119. position: relative;
  120. width: 16px;
  121. height: 16px;
  122. font-size: 20px;
  123. color: #fff;
  124. }
  125. .xg i {
  126. font-size: 16px;
  127. }
  128. .hidens {
  129. display: none;
  130. }
  131. </style>
  132. </head>
  133. <body class="gray-bg">
  134. <div class="wrapper wrapper-content animated fadeInRight">
  135. <div class="daoHang clearfix">
  136. <div class="dhLeft">
  137. <sapn>
  138. <i class="syIcon"></i>位置:
  139. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  140. <a href="javaScript:;">业务监督</a>&gt;
  141. <a class="nowPosition">坐席已回访</a>
  142. </sapn>
  143. </div>
  144. <div class="dhRight">
  145. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  146. </div>
  147. </div>
  148. <div style="padding: 10px;" class="tj_content clearFix">
  149. <div style="padding: 10px;" class="tj_content clearFix">
  150. <div>
  151. <span>【搜索信息】</span>
  152. <div class="box_content">
  153. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  154. <tr>
  155. <th>关键字:</th>
  156. <td>
  157. <input type="text" placeholder="输入关键字" id="key" />
  158. </td>
  159. <th>时间:</th>
  160. <td colspan="3">
  161. <input type="text" id="starttime" class="laydate-icon" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon" style="height: 32px;" />
  162. </td>
  163. <th></th>
  164. <td><botton class="btns Seach">搜索</botton>
  165. </tr>
  166. </table>
  167. </div>
  168. </div>
  169. <div>
  170. <div style="width: 100%;padding: 10px;">
  171. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  172. <thead>
  173. <tr>
  174. <th data-checkbox="true"></th>
  175. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  176. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  177. <th data-field="DeptName" data-align="center">交办单位</th>
  178. <th data-field="UserName" data-align="center">受理人</th>
  179. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  180. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  181. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  182. </tr>
  183. </thead>
  184. <tbody class="list"></tbody>
  185. </table>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <!--下载框-->
  191. <div class="t-shade lyxz">
  192. <div class="shade_k">
  193. <div class="shade_title">
  194. <span>录音播放与下载<srong class="cknum"></srong></span>
  195. <span class="setwin gbly"><a>x</a></span>
  196. </div>
  197. <div class="shade_content">
  198. <div class="Ly_box audiojs">
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <script src="../css/laydate/laydate.js"></script>
  205. <script src="../My97DatePicker/WdatePicker.js"></script>
  206. <script>
  207. $(document).ready(function() {
  208. //返回首页
  209. $('#ReIndex').click(function() {
  210. top.home_index();
  211. })
  212. load();
  213. laydate.skin('blue');
  214. laydate({
  215. elem: '#starttime',
  216. event: 'focus'
  217. });
  218. laydate({
  219. elem: '#endtime',
  220. event: 'focus'
  221. });
  222. ///搜素
  223. $(".Seach").click(function() {
  224. load();
  225. })
  226. });
  227. //关闭录音弹出
  228. $(".gbly").click(function() {
  229. $(".lyxz").removeClass("cx");
  230. $('audio')[0].pause();
  231. });
  232. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  233. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  234. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  235. });
  236. //获取查询信息
  237. function load() {
  238. //先销毁表格
  239. $('#orderlist').bootstrapTable('destroy');
  240. //初始化表格,动态从服务器加载数据
  241. $("#orderlist").bootstrapTable({
  242. method: "get", //使用get请求到服务器获取数据
  243. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  244. contentType: "application/x-www-form-urlencoded",
  245. striped: true, //表格显示条纹
  246. pagination: true, //启动分页
  247. pageSize: 10, //每页显示的记录数
  248. pageNumber: 1, //当前第几页
  249. pageList: [10, 20, 50, 100], //记录数可选列表
  250. search: false, //是否启用查询
  251. showColumns: false, //显示下拉框勾选要显示的列
  252. showRefresh: false, //显示刷新按钮
  253. sidePagination: "server", //表示服务端请求
  254. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  255. //设置为limit可以获取limit, offset, search, sort, order
  256. queryParamsType: "undefined",
  257. queryParams: function queryParams(params) { //设置查询参数
  258. var param = {
  259. page: params.pageNumber,
  260. pagesize: params.pageSize,
  261. state: $("#state").val(), //=工单状态
  262. type: $("#type").val(), //=工单类型
  263. bigtype: $("#bigtype").val(), //=大类别
  264. smalltype: $("#smalltype").val(), //=小类别
  265. key: $("#key").val(), //=关键字
  266. tel: $("#tel").val(), //=客户电话
  267. name: $("#name").val(), //=客户名称
  268. code: $("#code").val(), //=坐席工号
  269. // keyid:2,//=关键词id
  270. tab: 2,//待处理
  271. source: $("#source").val(), //=来源&
  272. starttime: $("#starttime").val(), //=开始时间
  273. endtime: $("#endtime").val(), //=结束时间
  274. token: $.cookie("token")
  275. };
  276. return param;
  277. },
  278. onLoadSuccess: function(data) { //加载成功时执行
  279. // layer.msg("加载成功");
  280. //console.log(data);
  281. },
  282. onLoadError: function() { //加载失败时执行
  283. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  284. }
  285. });
  286. }
  287. //状态
  288. function States(val) {
  289. var html = '';
  290. switch(val + '') {
  291. case '0':
  292. html = '新工单';
  293. break;
  294. case '1':
  295. html = '待交办';
  296. break;
  297. case '2':
  298. html = '待查收';
  299. break;
  300. case '3':
  301. html = '退回审核中';
  302. break;
  303. case '4':
  304. html = '办理中';
  305. break;
  306. case '5':
  307. html = '延时审核';
  308. break;
  309. case '6':
  310. html = '已办理';
  311. break;
  312. case '7':
  313. html = '已回访';
  314. break;
  315. case '8':
  316. html = '重办中';
  317. break;
  318. case '9':
  319. html = '已结案';
  320. break;
  321. }
  322. return html;
  323. }
  324. //音频
  325. function setCode(val) {
  326. if(val) {
  327. return '<div class="imgs" style="cursor: pointer;">' +
  328. '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  329. '</div>';
  330. } else {
  331. return '';
  332. }
  333. }
  334. //录音
  335. function ck(val) {
  336. var path = $(val).attr("item");
  337. $(".lyxz").addClass("cx");
  338. $(".Ly_box").empty();
  339. $(".down").attr("href", path);
  340. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  341. }
  342. function GetCont(val) {
  343. if(val) {
  344. var str = '<div '
  345. if(val.length > 10) {
  346. str = str + ' title="' + val + '" ';
  347. val = val.substr(0, 10) + "...";
  348. }
  349. return str + '>' + val + '</div>';
  350. } else {
  351. return '';
  352. }
  353. }
  354. //操作
  355. function Dispose(val, row) {
  356. var Rows = row.Buttons;
  357. var html = '';
  358. for(var i = 0; i < Rows.length; i++) {
  359. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  360. if(html1) {
  361. html1 = html1.replace("data", val);
  362. }
  363. html += html1;
  364. }
  365. return html;
  366. }
  367. //查看详情
  368. function ckxq(str) {
  369. layer.open({
  370. type: 2,
  371. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  372. title: '工单详情',
  373. area: ['85%', '80%'], //宽高
  374. });
  375. }
  376. //编辑
  377. function bj(str) {
  378. layer.open({
  379. type: 2,
  380. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  381. title: '编辑工单',
  382. area: ['85%', '80%'], //宽高
  383. });
  384. }
  385. //删除
  386. function move(str) {
  387. layer.confirm('确定删除工单?', {
  388. btn: ['是', '否'] //按钮
  389. }, function() {
  390. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  391. ids: str,
  392. token: $.cookie("token")
  393. }, function(result) {
  394. result = JSON.parse(result);
  395. if(result.state.toLowerCase() == "success") {
  396. layer.msg("删除成功");
  397. load();
  398. }
  399. })
  400. });
  401. }
  402. //提交
  403. function tj(str) {
  404. layer.confirm('确定要提交工单么?', {
  405. btn: ['确定', '取消'] //按钮
  406. }, function() {
  407. //请求后台数据
  408. /*发送请求*/
  409. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  410. ids: str,
  411. token: $.cookie("token")
  412. }, function(result) {
  413. result = JSON.parse(result);
  414. if(result.state.toLowerCase() == "success") {
  415. layer.msg("提交成功");
  416. load();
  417. }
  418. })
  419. });
  420. }
  421. //交办
  422. function jb(str) {
  423. layer.open({
  424. type: 2,
  425. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  426. title: '工单交办',
  427. area: ['45%', '40%'], //宽高
  428. });
  429. }
  430. //领导批示
  431. function lader(str) {
  432. layer.open({
  433. type: 2,
  434. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  435. title: '领导批示',
  436. area: ['45%', '40%'], //宽高
  437. });
  438. }
  439. //市长批示
  440. function city(str) {
  441. layer.open({
  442. type: 2,
  443. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  444. title: '领导批示',
  445. area: ['45%', '40%'], //宽高
  446. });
  447. }
  448. //办理
  449. function bl(str) {
  450. layer.open({
  451. type: 2,
  452. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  453. title: '办理工单',
  454. area: ['45%', '40%'], //宽高
  455. });
  456. }
  457. //督办
  458. function Supervision(str) {
  459. layer.open({
  460. type: 2,
  461. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  462. title: '督办',
  463. area: ['35%', '30%'], //宽高
  464. });
  465. }
  466. //督查
  467. function Supervision_(str) {
  468. layer.open({
  469. type: 2,
  470. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  471. title: '监察',
  472. area: ['35%', '30%'], //宽高
  473. });
  474. }
  475. //强制结案
  476. function StrongLawsuit(str) {
  477. layer.open({
  478. type: 2,
  479. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  480. title: '强制结案',
  481. area: ['45%', '52%'], //宽高
  482. });
  483. }
  484. //回退BackDtail
  485. function BackDtail(str) {
  486. layer.open({
  487. type: 2,
  488. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  489. title: '工单回退',
  490. area: ['45%', '40%'], //宽高
  491. });
  492. }
  493. //查收
  494. function cs(str) {
  495. layer.confirm('确定要查收?', {
  496. btn: ['是', '否'] //按钮
  497. }, function() {
  498. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  499. workorderid: str,
  500. token: $.cookie("token")
  501. }, function(result) {
  502. result = JSON.parse(result);
  503. if(result.state.toLowerCase() == "success") {
  504. layer.msg("查收成功");
  505. load();
  506. }
  507. })
  508. });
  509. }
  510. //收回
  511. function sh(str) {
  512. layer.confirm('确定要回收?', {
  513. btn: ['是', '否'] //按钮
  514. }, function() {
  515. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  516. workorderid: str,
  517. token: $.cookie("token")
  518. }, function(result) {
  519. result = JSON.parse(result);
  520. if(result.state.toLowerCase() == "success") {
  521. layer.msg("回收");
  522. load();
  523. }
  524. })
  525. });
  526. }
  527. //强制回收
  528. function recycles() {
  529. layer.confirm('确定要强制退回吗?', {
  530. btn: ['是', '否'] //按钮
  531. });
  532. }
  533. //退回申请
  534. function th(str) {
  535. layer.open({
  536. type: 2,
  537. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  538. title: '申请退回工单',
  539. area: ['35%', '30%'], //宽高
  540. });
  541. }
  542. //审核退回申请
  543. function shth(str) {
  544. layer.open({
  545. type: 2,
  546. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  547. title: '审核退回申请',
  548. area: ['35%', '30%'], //宽高
  549. });
  550. }
  551. //办理
  552. // function th(str) {
  553. // layer.open({
  554. // type: 2,
  555. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  556. // title: '办理工单',
  557. // area: ['35%', '30%'], //宽高
  558. // });
  559. // }
  560. //申请延时
  561. function ys(str) {
  562. layer.open({
  563. type: 2,
  564. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  565. title: '申请延时',
  566. area: ['45%', '40%'], //宽高
  567. });
  568. }
  569. //审核申请延时
  570. function shys(str) {
  571. layer.open({
  572. type: 2,
  573. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  574. title: '审核延时申请',
  575. area: ['45%', '40%'], //宽高
  576. });
  577. }
  578. //诉求回访
  579. function hf(str) {
  580. layer.open({
  581. type: 2,
  582. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  583. title: '工单回访',
  584. area: ['45%', '40%'], //宽高
  585. });
  586. }
  587. //重办工单
  588. function cb(str) {
  589. layer.open({
  590. type: 2,
  591. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  592. title: '重办工单',
  593. area: ['45%', '40%'], //宽高
  594. });
  595. }
  596. //结案
  597. function Lawsuit(str) {
  598. layer.open({
  599. type: 2,
  600. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  601. title: '诉求单结案',
  602. area: ['45%', '40%'], //宽高
  603. });
  604. }
  605. $('.Appeal').click(function() {
  606. layer.open({
  607. type: 2,
  608. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  609. title: '新增诉求',
  610. area: ['85%', '80%'], //宽高
  611. });
  612. })
  613. //上传文件
  614. function upload() {
  615. if(document.getElementById("upFile").files.length > 0) {
  616. var formData = new FormData();
  617. formData.append("upFile", document.getElementById("upFile").files[0]);
  618. formData.append("token", $.cookie("token"));
  619. $.ajax({
  620. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  621. type: "POST",
  622. data: formData,
  623. /**
  624. *必须false才会自动加上正确的Content-Type
  625. */
  626. contentType: false,
  627. /**
  628. * 必须false才会避开jQuery对 formdata 的默认处理
  629. * XMLHttpRequest会对 formdata 进行正确的处理
  630. */
  631. processData: false,
  632. success: function(result) {
  633. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  634. $("#upFile").change(function() {
  635. upload();
  636. });
  637. var r = $.parseJSON(result);
  638. if(r.state.toLowerCase() == "success") {
  639. $(".fjnr").text(r.data);
  640. $("#scfj").show();
  641. }
  642. }
  643. });
  644. } else {
  645. layer.confirm('请上传文件!', {
  646. btn: ['确定']
  647. });
  648. }
  649. }
  650. </script>
  651. </body>
  652. </html>