Keine Beschreibung

notifiedList.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  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"
  175. style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endTime"
  176. class="laydate-icon Min-width" style="height: 32px;" />
  177. </td>
  178. <th>区域:</th>
  179. <td>
  180. <select name="" id="sourceAreas" class="select">
  181. </select>
  182. </td>
  183. </tr>
  184. <tr>
  185. <th>类型:</th>
  186. <td>
  187. <select class="select_" id="type">
  188. </select>
  189. </td>
  190. <th>工单来源:</th>
  191. <td>
  192. <select class="select_" id="source">
  193. </select>
  194. </td>
  195. <!-- <th>主题词:</th>
  196. <td>
  197. <select id="keyid" name="" class="select"></select>
  198. </td> -->
  199. <th>来电号码:</th>
  200. <td>
  201. <input type="text" id="tel" class="Min-width" />
  202. </td>
  203. </tr>
  204. <tr>
  205. <th>坐席:</th>
  206. <td>
  207. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  208. data-live-search="true">
  209. <option value="">请选择坐席</option>
  210. </select>
  211. </td>
  212. <th>审核员:</th>
  213. <td>
  214. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  215. multiple data-live-search="true">
  216. <option value="">请选择调度员</option>
  217. </select>
  218. </td>
  219. <th>来电人:</th>
  220. <td colspan="3">
  221. <input type="text" id="name" class="Min-width" />
  222. </td>
  223. <td>
  224. <botton class="btns Seach">搜索</botton>
  225. </td>
  226. </tr>
  227. </table>
  228. </div>
  229. </div>
  230. <div>
  231. <div style="width: 100%;padding: 10px;">
  232. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  233. data-pagination="true">
  234. <thead>
  235. <tr>
  236. <th data-formatter="serialNumber" data-align="center">
  237. 序号
  238. </th>
  239. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  240. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  241. <th data-field="DeptName" data-align="center">承办单位</th>
  242. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  243. <th data-field="NoticeDeptName" data-align="center">通报单位</th>
  244. <th data-field="NoticeReson" data-formatter="GetCont" data-align="center">通报原因</th>
  245. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  246. <th data-formatter="Dispose" data-align="center" data-width="10%">操作</th>
  247. </tr>
  248. </thead>
  249. <tbody class="list"></tbody>
  250. </table>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. <!--下载框-->
  256. <div class="t-shade lyxz">
  257. <div class="shade_k">
  258. <div class="shade_title">
  259. <span>录音播放与下载<srong class="cknum"></srong></span>
  260. <span class="setwin gbly"><a>x</a></span>
  261. </div>
  262. <div class="shade_content">
  263. <div class="Ly_box audiojs">
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. <script src="../js/bootstrap-select.js"></script>
  270. <script src="../css/laydate/laydate.js"></script>
  271. <script src="../My97DatePicker/WdatePicker.js"></script>
  272. <script src="../js/zTree/jquery.ztree.core.js"></script>
  273. <!--<script src="../js/search/screen.js"></script>-->
  274. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  275. <script>
  276. $(document).ready(function () {
  277. load();
  278. LY($("#source")); //工单来源
  279. LB($("#type")); //工单类别
  280. ZT($("#keyid")); //主题
  281. ZX($("#ZX"));
  282. yardman($("#yardman"));
  283. helper.getDropList.getOrderAreas($('#sourceAreas'));
  284. laydate.skin('blue');
  285. laydate({
  286. elem: '#startTime',
  287. event: 'focus'
  288. });
  289. laydate({
  290. elem: '#endTime',
  291. event: 'focus'
  292. });
  293. $(".Seach").click(function () {
  294. load();
  295. });
  296. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  297. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  298. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  299. });
  300. $("#sqzx").bind("keydown", function (event) {
  301. var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event
  302. .charCode;
  303. if (keyCode == 13) {
  304. load();
  305. }
  306. })
  307. });
  308. //获取查询信息
  309. function load() {
  310. //坐席
  311. var usercodeID = "";
  312. var usercode_ = $("#ZX").val(); //坐席
  313. if (usercode_ != null) {
  314. $(usercode_).each(function (i, n) {
  315. var obj1 = '';
  316. obj1 = n + ",";
  317. usercodeID += obj1;
  318. })
  319. } else {
  320. usercodeID = ""
  321. }
  322. // 调度员
  323. var ddusercodeID = "";
  324. var ddusercode_ = $("#yardman").val(); //坐席
  325. if (ddusercode_ != null) {
  326. $(ddusercode_).each(function (i, n) {
  327. var obj2 = '';
  328. obj2 = n + ",";
  329. ddusercodeID += obj2;
  330. })
  331. } else {
  332. ddusercodeID = ""
  333. }
  334. //先销毁表格
  335. $('#orderlist').bootstrapTable('destroy');
  336. //初始化表格,动态从服务器加载数据
  337. $("#orderlist").bootstrapTable({
  338. method: "get", //使用get请求到服务器获取数据
  339. url: huayi.config.callcenter_url + "WorkOrder/GetNoticeList",
  340. contentType: "application/x-www-form-urlencoded",
  341. striped: true, //表格显示条纹
  342. pagination: true, //启动分页
  343. pageSize: 10, //每页显示的记录数
  344. pageNumber: 1, //当前第几页
  345. pageList: [10, 20, 50, 100], //记录数可选列表
  346. search: false, //是否启用查询
  347. showColumns: false, //显示下拉框勾选要显示的列
  348. showRefresh: false, //显示刷新按钮
  349. sidePagination: "server", //表示服务端请求
  350. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  351. //设置为limit可以获取limit, offset, search, sort, order
  352. queryParamsType: "undefined",
  353. queryParams: function queryParams(params) { //设置查询参数
  354. var param = {
  355. page: params.pageNumber,
  356. pagesize: params.pageSize,
  357. key: $("#key").val(), //关键字
  358. starttime: $("#startTime").val(), //开始时间
  359. endtime: $("#endTime").val(), //结束时间
  360. workid: $('#wids').val(), //工单编号
  361. type: $('#type').val(), //工单类型
  362. tel: $('#tel').val(), //客户电话
  363. name: $('#name').val(), //客户名称
  364. usercode: usercodeID, //=坐席工号
  365. ddusercode: ddusercodeID,
  366. keyid: $('#keyid').val(), //关键词id
  367. source: $("#source").val(), //来源
  368. // usercode: $("#ZX").val(), //=坐席工号
  369. // ddusercode: $("#yardman").val(),
  370. sourcearea: $('#sourceAreas').val(), //区域
  371. token: $.cookie("token")
  372. };
  373. return param;
  374. },
  375. onLoadSuccess: function (data) { //加载成功时执行
  376. //layer.msg("加载成功");
  377. },
  378. onLoadError: function () { //加载失败时执行
  379. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  380. }
  381. });
  382. }
  383. //来源
  384. function LY(obj) {
  385. obj.empty();
  386. obj.append('<option selected="selected" value="">请选择</option>');
  387. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  388. "token": $.cookie("token"),
  389. id: 1
  390. }, function (data) {
  391. if (data.state.toLowerCase() == "success") {
  392. var content = data.data;
  393. $(content).each(function (i, n) {
  394. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  395. obj);
  396. })
  397. }
  398. })
  399. }
  400. //类别
  401. function LB(obj) {
  402. obj.empty();
  403. obj.append('<option selected="selected" value="">请选择</option>');
  404. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  405. "token": $.cookie("token"),
  406. id: 2
  407. }, function (data) {
  408. if (data.state.toLowerCase() == "success") {
  409. var content = data.data;
  410. $(content).each(function (i, n) {
  411. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  412. obj);
  413. })
  414. }
  415. })
  416. }
  417. //主题
  418. function ZT(obj) {
  419. obj.empty();
  420. obj.append('<option selected="selected" value="">请选择</option>');
  421. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  422. "token": $.cookie("token"),
  423. id: 3
  424. }, function (data) {
  425. if (data.state.toLowerCase() == "success") {
  426. var content = data.data;
  427. $(content).each(function (i, n) {
  428. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  429. obj);
  430. })
  431. }
  432. })
  433. }
  434. ///坐席
  435. function ZX(obj) {
  436. obj.empty();
  437. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  438. "token": $.cookie("token"),
  439. }, function (data) {
  440. if (data.state.toLowerCase() == "success") {
  441. var content = data.data;
  442. $(content).each(function (i, n) {
  443. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>")
  444. .appendTo(obj);
  445. })
  446. obj.selectpicker({
  447. noneSelectedText: '请选择' //默认显示内容
  448. });
  449. obj.selectpicker('refresh');
  450. }
  451. })
  452. }
  453. //调度员
  454. function yardman(obj) {
  455. obj.empty();
  456. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetUsersList", {
  457. rolecode: "ZXLD",
  458. "token": $.cookie("token"),
  459. }, function (data) {
  460. if (data.state.toLowerCase() == "success") {
  461. var content = data.data;
  462. $(content).each(function (i, n) {
  463. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>")
  464. .appendTo(obj);
  465. })
  466. obj.selectpicker({
  467. noneSelectedText: '请选择' //默认显示内容
  468. });
  469. obj.selectpicker('refresh');
  470. }
  471. })
  472. }
  473. //编号
  474. function serialNumber(val, row, index) {
  475. return index + 1;
  476. }
  477. //述求标题
  478. function GetCont(val) {
  479. if (val) {
  480. var str = '<div '
  481. if (val.length > 10) {
  482. str = str + ' title="' + val + '" ';
  483. val = val.substr(0, 10) + "...";
  484. }
  485. return str + '>' + val + '</div>';
  486. } else {
  487. return '';
  488. }
  489. }
  490. //操作
  491. function Dispose(val, row) {
  492. //按钮
  493. var showOrnot = 'none';
  494. //撤回按钮显示或隐藏
  495. if (row.IsReturnNotice == 1) {
  496. showOrnot = 'inline-block';
  497. } else {
  498. showOrnot = 'none';
  499. }
  500. return '<div class="imgs" >' +
  501. '<a class="xg" title="查看" onclick="ckxq(' + row.F_WorkOrderId + ')">查看</a>' +
  502. '<a class="xg withDrawBtn" style="display: ' + showOrnot + '" title="撤回" onclick="withDraw(' + row
  503. .F_WorkOrderId + ')">撤回</a>' +
  504. '</div>';
  505. }
  506. //查看详情
  507. function ckxq(str) {
  508. layer.open({
  509. type: 2,
  510. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  511. title: '工单详情',
  512. area: ['100%', '100%'], //宽高
  513. });
  514. }
  515. //撤回
  516. function withDraw(str) {
  517. layer.open({
  518. content: '是否要撤回?',
  519. btn: ['是', '否'],
  520. yes: function (index, layero) {
  521. $.post(huayi.config.callcenter_url + "WorkOrder/NoticeWorkOrder", {
  522. workorderid: str, //工单编号
  523. isnotice: 0, //(0撤回,1通告)
  524. //deptids: '',
  525. token: $.cookie("token")
  526. }, function (result) {
  527. var data = JSON.parse(result);
  528. if (data.state == "success") {
  529. $(".withDrawBtn").hide();
  530. layer.close();
  531. load();
  532. layer.msg("撤回成功");
  533. }
  534. })
  535. }
  536. })
  537. }
  538. //音频
  539. function setCode(val) {
  540. if (val) {
  541. return '<div class="imgs" style="cursor: pointer;">' +
  542. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  543. '</div>';
  544. } else {
  545. return '';
  546. }
  547. }
  548. </script>
  549. </body>
  550. </html>