12345市长热线标准版-前端

LeaderDCL.html 18KB

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