商丘12345 前端

notifiedList.html 13KB

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