12345市长热线标准版-前端

LeaderYJB.html 18KB

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