12345市长热线标准版-前端

notifiedList.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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: #00a1cb;
  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. #sqzx .Seach{
  132. margin-left: 0;
  133. width: 60px;
  134. font-size: 13px;
  135. display: inline-block;
  136. text-align: center;
  137. }
  138. </style>
  139. </head>
  140. <body class="gray-bg">
  141. <div class="wrapper wrapper-content animated fadeInRight">
  142. <div class="daoHang clearfix">
  143. <div class="dhLeft">
  144. <sapn>
  145. <i class="syIcon"></i>位置:
  146. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  147. <a href="javaScript:;">业务监督</a>&gt;
  148. <a href="" class="nowPosition">已通报列表</a>
  149. </sapn>
  150. </div>
  151. <div class="dhRight">
  152. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  153. </div>
  154. </div>
  155. <div style="padding: 10px;" class="tj_content clearFix">
  156. <div style="padding: 10px;" class="tj_content clearFix">
  157. <div>
  158. <span>【搜索信息】</span>
  159. <div class="box_content">
  160. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  161. <tr>
  162. <th>关键字:</th>
  163. <td>
  164. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  165. </td>
  166. <th>工单号:</th>
  167. <td>
  168. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  169. </td>
  170. <th>时间:</th>
  171. <td colspan="3">
  172. <input type="text" id="startTime" class="laydate-icon Min-width" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endTime" class="laydate-icon Min-width" style="height: 32px;" />
  173. </td>
  174. </tr>
  175. <tr>
  176. <th>工单类型:</th>
  177. <td>
  178. <select class="select_" id="type">
  179. </select>
  180. </td>
  181. <th>工单来源:</th>
  182. <td>
  183. <select class="select_" id="source">
  184. </select>
  185. </td>
  186. <th>主题词:</th>
  187. <td>
  188. <select id="keyid" name="" class="select"></select>
  189. </td>
  190. <th>坐席:</th>
  191. <td>
  192. <select id="ZX" name="" class="select"></select>
  193. </td>
  194. </tr>
  195. <tr>
  196. <th>投诉电话:</th>
  197. <td>
  198. <input type="text" id="tel" class="Min-width" />
  199. </td>
  200. <th>投诉人:</th>
  201. <td>
  202. <input type="text" id="name" class="Min-width"/>
  203. </td>
  204. <th>
  205. </th>
  206. <td>
  207. <botton class="btns Seach">搜索</botton>
  208. </td>
  209. </tr>
  210. </table>
  211. </div>
  212. </div>
  213. <div>
  214. <div style="width: 100%;padding: 10px;">
  215. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  216. <thead>
  217. <tr>
  218. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  219. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  220. <th data-field="DeptName" data-align="center">主办单位</th>
  221. <th data-field="OtherDeptName" data-align="center">协办单位</th>
  222. <th data-field="NoticeDeptName" data-align="center">通报单位</th>
  223. <th data-field="NoticeReson" data-formatter="GetCont" data-align="center">通报原因</th>
  224. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  225. <th data-formatter="Dispose" data-align="center" data-width="10%">操作</th>
  226. </tr>
  227. </thead>
  228. <tbody class="list"></tbody>
  229. </table>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. <!--下载框-->
  235. <div class="t-shade lyxz">
  236. <div class="shade_k">
  237. <div class="shade_title">
  238. <span>录音播放与下载<srong class="cknum"></srong></span>
  239. <span class="setwin gbly"><a>x</a></span>
  240. </div>
  241. <div class="shade_content">
  242. <div class="Ly_box audiojs">
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. <script src="../css/laydate/laydate.js"></script>
  249. <script>
  250. $(document).ready(function() {
  251. //返回首页
  252. $('#ReIndex').click(function(){
  253. top.home_index();
  254. })
  255. load();
  256. LY($("#source"));//工单来源
  257. LB($("#type"));//工单类别
  258. ZT($("#keyid"));//主题
  259. ZX($("#ZX"));//坐席
  260. laydate.skin('blue');
  261. laydate({
  262. elem: '#startTime',
  263. event: 'focus'
  264. });
  265. laydate({
  266. elem: '#endTime',
  267. event: 'focus'
  268. });
  269. $(".Seach").click(function() {
  270. load();
  271. });
  272. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  273. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  274. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  275. });
  276. $("#sqzx").bind("keydown", function(event) {
  277. var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
  278. if(keyCode == 13) {
  279. load();
  280. }
  281. })
  282. });
  283. //获取查询信息
  284. function load() {
  285. //先销毁表格
  286. $('#orderlist').bootstrapTable('destroy');
  287. //初始化表格,动态从服务器加载数据
  288. $("#orderlist").bootstrapTable({
  289. method: "get", //使用get请求到服务器获取数据
  290. url: huayi.config.callcenter_url + "WorkOrder/GetNoticeList",
  291. contentType: "application/x-www-form-urlencoded",
  292. striped: true, //表格显示条纹
  293. pagination: true, //启动分页
  294. pageSize: 10, //每页显示的记录数
  295. pageNumber: 1, //当前第几页
  296. pageList: [10, 20, 50, 100], //记录数可选列表
  297. search: false, //是否启用查询
  298. showColumns: false, //显示下拉框勾选要显示的列
  299. showRefresh: false, //显示刷新按钮
  300. sidePagination: "server", //表示服务端请求
  301. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  302. //设置为limit可以获取limit, offset, search, sort, order
  303. queryParamsType: "undefined",
  304. queryParams: function queryParams(params) { //设置查询参数
  305. var param = {
  306. page: params.pageNumber,
  307. pagesize: params.pageSize,
  308. key: $("#key").val(),//关键字
  309. starttime: $("#startTime").val(),//开始时间
  310. endtime: $("#endTime").val(),//结束时间
  311. workid: $('#wids').val(),//工单编号
  312. type: $('#type').val(),//工单类型
  313. tel: $('#tel').val(),//客户电话
  314. name: $('#name').val(),//客户名称
  315. keyid: $('#keyid').val(),//关键词id
  316. source: $("#source").val(),//来源
  317. usercode: $('#ZX').val(),//坐席工号
  318. token: $.cookie("token"),
  319. };
  320. return param;
  321. },
  322. onLoadSuccess: function(data) { //加载成功时执行
  323. //layer.msg("加载成功");
  324. },
  325. onLoadError: function() { //加载失败时执行
  326. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  327. }
  328. });
  329. }
  330. //来源
  331. function LY(obj) {
  332. obj.empty();
  333. obj.append('<option selected="selected" value="">请选择</option>');
  334. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
  335. "token": $.cookie("token"),
  336. id: 1
  337. }, function(data) {
  338. if(data.state.toLowerCase() == "success") {
  339. var content = data.data;
  340. $(content).each(function(i, n) {
  341. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  342. })
  343. }
  344. })
  345. }
  346. //类别
  347. function LB(obj) {
  348. obj.empty();
  349. obj.append('<option selected="selected" value="">请选择</option>');
  350. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
  351. "token": $.cookie("token"),
  352. id: 2
  353. }, function(data) {
  354. if(data.state.toLowerCase() == "success") {
  355. var content = data.data;
  356. $(content).each(function(i, n) {
  357. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  358. })
  359. }
  360. })
  361. }
  362. //主题
  363. function ZT(obj) {
  364. obj.empty();
  365. obj.append('<option selected="selected" value="">请选择</option>');
  366. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
  367. "token": $.cookie("token"),
  368. id: 3
  369. }, function(data) {
  370. if(data.state.toLowerCase() == "success") {
  371. var content = data.data;
  372. $(content).each(function(i, n) {
  373. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  374. })
  375. }
  376. })
  377. }
  378. //述求标题
  379. function GetCont(val) {
  380. if(val) {
  381. var str = '<div '
  382. if(val.length > 10) {
  383. str = str + ' title="' + val + '" ';
  384. val = val.substr(0, 10) + "...";
  385. }
  386. return str + '>' + val + '</div>';
  387. } else {
  388. return '';
  389. }
  390. }
  391. //坐席
  392. function ZX(obj) {
  393. obj.empty();
  394. obj.append('<option selected="selected" value="">请选择</option>');
  395. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  396. "token": $.cookie("token"),
  397. }, function(data) {
  398. if(data.state.toLowerCase() == "success") {
  399. var content = data.data;
  400. $(content).each(function(i, n) {
  401. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
  402. })
  403. }
  404. })
  405. }
  406. //操作
  407. function Dispose(val,row) {
  408. //按钮
  409. var showOrnot = 'none';
  410. //撤回按钮显示或隐藏
  411. if(row.IsReturnNotice == 1 ) {
  412. showOrnot = 'inline-block';
  413. } else {
  414. showOrnot = 'none';
  415. }
  416. return '<div class="imgs" >' +
  417. '<a class="xg" title="查看" onclick="ckxq(' + row.F_WorkOrderId + ')">查看</a>' +
  418. '<a class="xg withDrawBtn" style="display: '+ showOrnot +'" title="撤回" onclick="withDraw(' + row.F_WorkOrderId + ')">撤回</a>' +
  419. '</div>';
  420. }
  421. //查看详情
  422. function ckxq(str) {
  423. layer.open({
  424. type: 2,
  425. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  426. title: '工单详情',
  427. area: ['85%', '80%'], //宽高
  428. });
  429. }
  430. //撤回
  431. function withDraw(str){
  432. layer.open({
  433. content: '是否要撤回?',
  434. btn: ['是', '否'],
  435. yes: function(index, layero){
  436. $.post(huayi.config.callcenter_url + "WorkOrder/NoticeWorkOrder", {
  437. workorderid: str,//工单编号
  438. isnotice: 0,//(0撤回,1通告)
  439. //deptids: '',
  440. token: $.cookie("token")
  441. }, function(result) {
  442. var data = JSON.parse(result);
  443. if(data.state == "success") {
  444. $(".withDrawBtn").hide();
  445. layer.close();
  446. load();
  447. layer.msg("撤回成功");
  448. }
  449. })
  450. }
  451. })
  452. }
  453. //音频
  454. function setCode(val) {
  455. if(val) {
  456. return '<div class="imgs" style="cursor: pointer;">' +
  457. '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  458. '</div>';
  459. } else {
  460. return '';
  461. }
  462. }
  463. //录音
  464. function ck(val) {
  465. var path = $(val).attr("item");
  466. $(".lyxz").addClass("cx");
  467. $(".Ly_box").empty();
  468. $(".down").attr("href", path);
  469. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  470. $('.shade_k').css({
  471. 'top' : $(document).scrollTop() + ($(window).height() - $('.shade_k').height() - 289)/2,
  472. 'left' : ($(window).width()-$('.shade_k').width())/2,
  473. 'position' : 'absolute'
  474. });
  475. }
  476. </script>
  477. </body>
  478. </html>