12345市长热线标准版-前端

LeaderDCL.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  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 >
  165. <select name="" class="select" id="Select">
  166. <option value="1" selected="selected">待交办</option>
  167. <option value="2">待收回</option>
  168. <option value="3">待审核退回</option>
  169. <option value="5">待审核延时</option>
  170. <option value="7">已回访</option>
  171. </select>
  172. </td>
  173. <th></th>
  174. <td>
  175. <botton class="btns Seach">搜索</botton>
  176. <botton class="btns ">导出</botton>
  177. </td>
  178. </tr>
  179. </table>
  180. </div>
  181. </div>
  182. <div>
  183. <div style="width: 100%;padding: 10px;">
  184. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  185. <thead>
  186. <tr>
  187. <th data-checkbox="true"></th>
  188. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  189. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  190. <th data-field="UserName" data-align="center">受理人</th>
  191. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  192. <th data-field="e" data-formatter="setCode" data-align="center">录音</th>
  193. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  194. </tr>
  195. </thead>
  196. <tbody class="list"></tbody>
  197. </table>
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. <!--下载框-->
  203. <div class="t-shade lyxz">
  204. <div class="shade_k">
  205. <div class="shade_title">
  206. <span>录音播放与下载<srong class="cknum"></srong></span>
  207. <span class="setwin gbly"><a>x</a></span>
  208. </div>
  209. <div class="shade_content">
  210. <div class="Ly_box audiojs">
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. <script src="../css/laydate/laydate.js"></script>
  217. <script src="../My97DatePicker/WdatePicker.js"></script>
  218. <script>
  219. $(document).ready(function() {
  220. //返回首页
  221. $('#ReIndex').click(function() {
  222. top.home_index();
  223. })
  224. load();
  225. laydate.skin('blue');
  226. laydate({
  227. elem: '#starttime',
  228. event: 'focus'
  229. });
  230. laydate({
  231. elem: '#endtime',
  232. event: 'focus'
  233. });
  234. ///搜素
  235. $(".Seach").click(function() {
  236. load();
  237. })
  238. });
  239. //关闭录音弹出
  240. $(".gbly").click(function() {
  241. $(".lyxz").removeClass("cx");
  242. $('audio')[0].pause();
  243. });
  244. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  245. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  246. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  247. });
  248. //获取查询信息
  249. function load() {
  250. //先销毁表格
  251. $('#orderlist').bootstrapTable('destroy');
  252. //初始化表格,动态从服务器加载数据
  253. $("#orderlist").bootstrapTable({
  254. method: "get", //使用get请求到服务器获取数据
  255. url: huayi.config.callcenter_url + "WorkOrder/GetLDDealList", //获取数据的Servlet地址
  256. contentType: "application/x-www-form-urlencoded",
  257. striped: true, //表格显示条纹
  258. pagination: true, //启动分页
  259. pageSize: 10, //每页显示的记录数
  260. pageNumber: 1, //当前第几页
  261. pageList: [10, 20, 50, 100], //记录数可选列表
  262. search: false, //是否启用查询
  263. showColumns: false, //显示下拉框勾选要显示的列
  264. showRefresh: false, //显示刷新按钮
  265. sidePagination: "server", //表示服务端请求
  266. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  267. //设置为limit可以获取limit, offset, search, sort, order
  268. queryParamsType: "undefined",
  269. queryParams: function queryParams(params) { //设置查询参数
  270. var param = {
  271. page: params.pageNumber,
  272. pagesize: params.pageSize,
  273. state: $("#Select").val(), //=工单状态
  274. type: $("#type").val(), //=工单类型
  275. bigtype: $("#bigtype").val(), //=大类别
  276. smalltype: $("#smalltype").val(), //=小类别
  277. key: $("#key").val(), //=关键字
  278. tel: $("#tel").val(), //=客户电话
  279. name: $("#name").val(), //=客户名称
  280. code: $("#code").val(), //=坐席工号
  281. // keyid:2,//=关键词id
  282. tab: 0, //待处理
  283. source: $("#source").val(), //=来源&
  284. starttime: $("#starttime").val(), //=开始时间
  285. endtime: $("#endtime").val(), //=结束时间
  286. token: $.cookie("token")
  287. };
  288. return param;
  289. },
  290. onLoadSuccess: function(data) { //加载成功时执行
  291. // layer.msg("加载成功");
  292. //console.log(data);
  293. },
  294. onLoadError: function() { //加载失败时执行
  295. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  296. }
  297. });
  298. }
  299. //状态
  300. function States(val,row) {
  301. var html = '';
  302. switch(val + '') {
  303. case '0':
  304. html = '新工单';
  305. if(row.F_IsReturn==1){
  306. html = '新工单(回退)';
  307. }
  308. break;
  309. case '1':
  310. html = '待交办';
  311. break;
  312. case '2':
  313. html = '待查收';
  314. break;
  315. case '3':
  316. html = '退回审核中';
  317. break;
  318. case '4':
  319. html = '办理中';
  320. break;
  321. case '5':
  322. html = '延时审核';
  323. break;
  324. case '6':
  325. html = '已办理';
  326. break;
  327. case '7':
  328. html = '已回访';
  329. break;
  330. case '8':
  331. html = '重办中';
  332. break;
  333. case '9':
  334. html = '已结案';
  335. break;
  336. }
  337. return html;
  338. }
  339. //音频
  340. function setCode(val) {
  341. if(val) {
  342. return '<div class="imgs" style="cursor: pointer;">' +
  343. '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  344. '</div>';
  345. } else {
  346. return '';
  347. }
  348. }
  349. //录音
  350. function ck(val) {
  351. var path = $(val).attr("item");
  352. $(".lyxz").addClass("cx");
  353. $(".Ly_box").empty();
  354. $(".down").attr("href", path);
  355. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  356. }
  357. function GetCont(val) {
  358. if(val) {
  359. var str = '<div '
  360. if(val.length > 10) {
  361. str = str + ' title="' + val + '" ';
  362. val = val.substr(0, 10) + "...";
  363. }
  364. return str + '>' + val + '</div>';
  365. } else {
  366. return '';
  367. }
  368. }
  369. //操作
  370. function Dispose(val, row) {
  371. var Rows = row.Buttons;
  372. var html = '';
  373. for(var i = 0; i < Rows.length; i++) {
  374. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  375. if(html1) {
  376. html1 = html1.replace("data", val);
  377. }
  378. html += html1;
  379. }
  380. return html;
  381. }
  382. //查看详情
  383. function ckxq(str) {
  384. layer.open({
  385. type: 2,
  386. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  387. title: '工单详情',
  388. area: ['85%', '80%'], //宽高
  389. });
  390. }
  391. //编辑
  392. function bj(str) {
  393. layer.open({
  394. type: 2,
  395. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  396. title: '编辑工单',
  397. area: ['90%', '85%'], //宽高
  398. });
  399. }
  400. //删除
  401. function move(str) {
  402. layer.confirm('确定删除工单?', {
  403. btn: ['是', '否'] //按钮
  404. }, function() {
  405. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  406. ids: str,
  407. token: $.cookie("token")
  408. }, function(result) {
  409. result = JSON.parse(result);
  410. if(result.state.toLowerCase() == "success") {
  411. layer.msg("删除成功");
  412. load();
  413. }
  414. })
  415. });
  416. }
  417. //提交
  418. function tj(str) {
  419. layer.confirm('确定要提交工单么?', {
  420. btn: ['确定', '取消'] //按钮
  421. }, function() {
  422. //请求后台数据
  423. /*发送请求*/
  424. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  425. ids: str,
  426. token: $.cookie("token")
  427. }, function(result) {
  428. result = JSON.parse(result);
  429. if(result.state.toLowerCase() == "success") {
  430. layer.msg("提交成功");
  431. load();
  432. }
  433. })
  434. });
  435. }
  436. //交办
  437. function jb(str) {
  438. layer.open({
  439. type: 2,
  440. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  441. title: '工单交办',
  442. area: ['48%', '45%'], //宽高
  443. });
  444. }
  445. //领导批示
  446. function lader(str) {
  447. layer.open({
  448. type: 2,
  449. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  450. title: '领导批示',
  451. area: ['48%', '45%'], //宽高
  452. });
  453. }
  454. //市长批示
  455. function city(str) {
  456. layer.open({
  457. type: 2,
  458. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  459. title: '领导批示',
  460. area: ['48%', '45%'], //宽高
  461. });
  462. }
  463. //办理
  464. function bl(str) {
  465. layer.open({
  466. type: 2,
  467. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  468. title: '办理工单',
  469. area: ['48%', '45%'], //宽高
  470. });
  471. }
  472. //督办
  473. function Supervision(str) {
  474. layer.open({
  475. type: 2,
  476. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  477. title: '督办',
  478. area: ['35%', '30%'], //宽高
  479. });
  480. }
  481. //督查
  482. function Supervision_(str) {
  483. layer.open({
  484. type: 2,
  485. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  486. title: '监察',
  487. area: ['35%', '30%'], //宽高
  488. });
  489. }
  490. //强制结案
  491. function StrongLawsuit(str) {
  492. layer.open({
  493. type: 2,
  494. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  495. title: '强制结案',
  496. area: ['45%', '52%'], //宽高
  497. });
  498. }
  499. //回退BackDtail
  500. function BackDtail(str) {
  501. layer.open({
  502. type: 2,
  503. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  504. title: '工单回退',
  505. area: ['45%', '40%'], //宽高
  506. });
  507. }
  508. //查收
  509. function cs(str) {
  510. layer.confirm('确定要查收?', {
  511. btn: ['是', '否'] //按钮
  512. }, function() {
  513. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  514. workorderid: str,
  515. token: $.cookie("token")
  516. }, function(result) {
  517. result = JSON.parse(result);
  518. if(result.state.toLowerCase() == "success") {
  519. layer.msg("查收成功");
  520. load();
  521. }
  522. })
  523. });
  524. }
  525. //收回
  526. function sh(str) {
  527. layer.confirm('确定要回收?', {
  528. btn: ['是', '否'] //按钮
  529. }, function() {
  530. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  531. workorderid: str,
  532. token: $.cookie("token")
  533. }, function(result) {
  534. result = JSON.parse(result);
  535. if(result.state.toLowerCase() == "success") {
  536. layer.msg("回收");
  537. load();
  538. }
  539. })
  540. });
  541. }
  542. //强制回收
  543. function recycles() {
  544. layer.confirm('确定要强制退回吗?', {
  545. btn: ['是', '否'] //按钮
  546. });
  547. }
  548. //退回申请
  549. function th(str) {
  550. layer.open({
  551. type: 2,
  552. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  553. title: '申请退回工单',
  554. area: ['35%', '30%'], //宽高
  555. });
  556. }
  557. //审核退回申请
  558. function shth(str) {
  559. layer.open({
  560. type: 2,
  561. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  562. title: '审核退回申请',
  563. area: ['35%', '30%'], //宽高
  564. });
  565. }
  566. //办理
  567. // function th(str) {
  568. // layer.open({
  569. // type: 2,
  570. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  571. // title: '办理工单',
  572. // area: ['35%', '30%'], //宽高
  573. // });
  574. // }
  575. //申请延时
  576. function ys(str) {
  577. layer.open({
  578. type: 2,
  579. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  580. title: '申请延时',
  581. area: ['45%', '40%'], //宽高
  582. });
  583. }
  584. //审核申请延时
  585. function shys(str) {
  586. layer.open({
  587. type: 2,
  588. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  589. title: '审核延时申请',
  590. area: ['45%', '40%'], //宽高
  591. });
  592. }
  593. //诉求回访
  594. function hf(str) {
  595. layer.open({
  596. type: 2,
  597. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  598. title: '工单回访',
  599. area: ['45%', '40%'], //宽高
  600. });
  601. }
  602. //重办工单
  603. function cb(str) {
  604. layer.open({
  605. type: 2,
  606. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  607. title: '重办工单',
  608. area: ['45%', '40%'], //宽高
  609. });
  610. }
  611. //结案
  612. function Lawsuit(str) {
  613. layer.open({
  614. type: 2,
  615. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  616. title: '诉求单结案',
  617. area: ['45%', '40%'], //宽高
  618. });
  619. }
  620. $('.Appeal').click(function() {
  621. layer.open({
  622. type: 2,
  623. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  624. title: '新增诉求',
  625. area: ['85%', '80%'], //宽高
  626. });
  627. })
  628. //上传文件
  629. function upload() {
  630. if(document.getElementById("upFile").files.length > 0) {
  631. var formData = new FormData();
  632. formData.append("upFile", document.getElementById("upFile").files[0]);
  633. formData.append("token", $.cookie("token"));
  634. $.ajax({
  635. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  636. type: "POST",
  637. data: formData,
  638. /**
  639. *必须false才会自动加上正确的Content-Type
  640. */
  641. contentType: false,
  642. /**
  643. * 必须false才会避开jQuery对 formdata 的默认处理
  644. * XMLHttpRequest会对 formdata 进行正确的处理
  645. */
  646. processData: false,
  647. success: function(result) {
  648. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  649. $("#upFile").change(function() {
  650. upload();
  651. });
  652. var r = $.parseJSON(result);
  653. if(r.state.toLowerCase() == "success") {
  654. $(".fjnr").text(r.data);
  655. $("#scfj").show();
  656. }
  657. }
  658. });
  659. } else {
  660. layer.confirm('请上传文件!', {
  661. btn: ['确定']
  662. });
  663. }
  664. }
  665. </script>
  666. </body>
  667. </html>