新野县12345_前端

notifiedList.html 17KB

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