12345市长热线标准版-前端

WorkDC.html 18KB

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