Nav apraksta

notifiedList.html 16KB

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