Geen omschrijving

CitizenAppeal.html 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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: 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: #1ab394;
  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 colspan="3">
  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. </tr>
  179. <tr>
  180. <th>工单类型:</th>
  181. <td>
  182. <select class="select_" id="type">
  183. </select>
  184. </td>
  185. <th>工单来源:</th>
  186. <td>
  187. <select class="select_" id="source">
  188. </select>
  189. </td>
  190. <!-- <th>主题词:</th>
  191. <td>
  192. <select id="keyid" name="" class="select"></select>
  193. </td> -->
  194. <!--<th>坐席:</th>
  195. <td>
  196. <select id="ZX" name="" class="select"></select>
  197. </td>-->
  198. </tr>
  199. <tr>
  200. <th>来电号码:</th>
  201. <td>
  202. <input type="text" id="tel" class="Min-width" />
  203. </td>
  204. <th>来电人:</th>
  205. <td>
  206. <input type="text" id="name" class="Min-width" />
  207. </td>
  208. <th>
  209. </th>
  210. <td>
  211. <botton class="btns Seach">搜索</botton>
  212. </td>
  213. </tr>
  214. </table>
  215. </div>
  216. </div>
  217. <div>
  218. <div style="width: 100%;padding: 10px;">
  219. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  220. data-pagination="true">
  221. <thead>
  222. <tr>
  223. <th data-formatter="serialNumber" data-align="center">
  224. 序号
  225. </th>
  226. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  227. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  228. <th data-field="UserName" data-align="center">受理人</th>
  229. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  230. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  231. </tr>
  232. </thead>
  233. <tbody class="list"></tbody>
  234. </table>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <script src="../css/laydate/laydate.js"></script>
  241. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  242. <script>
  243. $(document).ready(function () {
  244. load();
  245. LY($("#source"));
  246. LB($("#type"));
  247. ZT($("#keyid"));
  248. //ZX($("#ZX"));
  249. laydate.skin('blue');
  250. laydate({
  251. elem: '#startTime',
  252. event: 'focus'
  253. });
  254. laydate({
  255. elem: '#endTime',
  256. event: 'focus'
  257. });
  258. $(".Seach").click(function () {
  259. load();
  260. });
  261. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  262. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  263. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  264. });
  265. $("#sqzx").bind("keydown", function (event) {
  266. var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event
  267. .charCode;
  268. if (keyCode == 13) {
  269. load();
  270. }
  271. })
  272. });
  273. //获取查询信息
  274. function load() {
  275. //先销毁表格
  276. $('#orderlist').bootstrapTable('destroy');
  277. //初始化表格,动态从服务器加载数据
  278. $("#orderlist").bootstrapTable({
  279. method: "get", //使用get请求到服务器获取数据
  280. //url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  281. url: huayi.config.callcenter_url + "WorkOrder/GetMediaList",
  282. contentType: "application/x-www-form-urlencoded",
  283. striped: true, //表格显示条纹
  284. pagination: true, //启动分页
  285. pageSize: 10, //每页显示的记录数
  286. pageNumber: 1, //当前第几页
  287. pageList: [10, 20, 50, 100], //记录数可选列表
  288. search: false, //是否启用查询
  289. showColumns: false, //显示下拉框勾选要显示的列
  290. showRefresh: false, //显示刷新按钮
  291. sidePagination: "server", //表示服务端请求
  292. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  293. //设置为limit可以获取limit, offset, search, sort, order
  294. queryParamsType: "undefined",
  295. queryParams: function queryParams(params) { //设置查询参数
  296. var param = {
  297. page: params.pageNumber,
  298. pagesize: params.pageSize,
  299. key: $("#key").val(), //关键字
  300. starttime: $("#startTime").val(), //开始时间
  301. endtime: $("#endTime").val(), //结束时间
  302. workid: $('#wids').val(), //工单编号
  303. type: $('#type').val(), //工单类型
  304. tel: $('#tel').val(), //客户电话
  305. name: $('#name').val(), //客户名称
  306. //usercode: $("#ZX").val(),//坐席工号
  307. keyid: $('#keyid').val(), //关键词id
  308. source: $("#source").val(), //来源
  309. token: $.cookie("token"),
  310. };
  311. return param;
  312. },
  313. onLoadSuccess: function (data) { //加载成功时执行
  314. //layer.msg("加载成功");
  315. },
  316. onLoadError: function () { //加载失败时执行
  317. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  318. }
  319. });
  320. }
  321. //来源
  322. function LY(obj) {
  323. obj.empty();
  324. obj.append('<option selected="selected" value="">请选择</option>');
  325. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  326. "token": $.cookie("token"),
  327. id: 1
  328. }, function (data) {
  329. if (data.state.toLowerCase() == "success") {
  330. var content = data.data;
  331. $(content).each(function (i, n) {
  332. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  333. obj);
  334. })
  335. }
  336. })
  337. }
  338. //类别
  339. function LB(obj) {
  340. obj.empty();
  341. obj.append('<option selected="selected" value="">请选择</option>');
  342. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  343. "token": $.cookie("token"),
  344. id: 2
  345. }, function (data) {
  346. if (data.state.toLowerCase() == "success") {
  347. var content = data.data;
  348. $(content).each(function (i, n) {
  349. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  350. obj);
  351. })
  352. }
  353. })
  354. }
  355. //主题
  356. function ZT(obj) {
  357. obj.empty();
  358. obj.append('<option selected="selected" value="">请选择</option>');
  359. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  360. "token": $.cookie("token"),
  361. id: 3
  362. }, function (data) {
  363. if (data.state.toLowerCase() == "success") {
  364. var content = data.data;
  365. $(content).each(function (i, n) {
  366. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  367. obj);
  368. })
  369. }
  370. })
  371. }
  372. ///坐席
  373. /* function ZX(obj) {
  374. obj.empty();
  375. obj.append('<option selected="selected" value="">请选择</option>');
  376. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  377. "token": $.cookie("token"),
  378. }, function(data) {
  379. if(data.state.toLowerCase() == "success") {
  380. var content = data.data;
  381. $(content).each(function(i, n) {
  382. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
  383. })
  384. }
  385. })
  386. }*/
  387. //编号
  388. function serialNumber(val, row, index) {
  389. return index + 1;
  390. }
  391. //述求标题
  392. function GetCont(val) {
  393. if (val) {
  394. var str = '<div '
  395. if (val.length > 10) {
  396. str = str + ' title="' + val + '" ';
  397. val = val.substr(0, 10) + "...";
  398. }
  399. return str + '>' + val + '</div>';
  400. } else {
  401. return '';
  402. }
  403. }
  404. //办理状态
  405. function States(val, row) {
  406. var html = '';
  407. switch (val + '') {
  408. case '0':
  409. html = '新工单';
  410. if (row.F_IsReturn == 1) {
  411. html = '新工单(回退)';
  412. }
  413. break;
  414. case '1':
  415. html = '待交办';
  416. break;
  417. case '2':
  418. html = '待查收';
  419. break;
  420. case '3':
  421. html = '退回审核中';
  422. break;
  423. case '4':
  424. html = '办理中';
  425. break;
  426. case '5':
  427. html = '延时审核';
  428. break;
  429. case '6':
  430. html = '已办理';
  431. break;
  432. case '7':
  433. html = '已回访';
  434. break;
  435. case '8':
  436. html = '重办中';
  437. break;
  438. case '9':
  439. html = '已结案';
  440. break;
  441. }
  442. return html;
  443. }
  444. //操作
  445. function Dispose(val, row) {
  446. //按钮
  447. var showOrnot = 'none';
  448. //转媒体撤回按钮显示或隐藏
  449. if (row.IsReturnMedia == 1) {
  450. showOrnot = 'inline-block';
  451. } else {
  452. showOrnot = 'none';
  453. }
  454. return '<div class="imgs" >' +
  455. '<a class="xg" title="查看" onclick="ckxq(\'' + val + '\')">查看</a>' +
  456. '<a class="xg withDrawBtn" style="display: ' + showOrnot + '" title="撤回" onclick="withDraw(\'' + val +
  457. '\')">撤回</a>' +
  458. '</div>';
  459. }
  460. //查看详情
  461. function ckxq(str) {
  462. layer.open({
  463. type: 2,
  464. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  465. title: '工单详情',
  466. area: ['100%', '100%'], //宽高
  467. });
  468. }
  469. //撤回
  470. function withDraw(str) {
  471. layer.open({
  472. content: '是否要撤回?',
  473. btn: ['是', '否'],
  474. yes: function (index, layero) {
  475. $.post(huayi.config.callcenter_url + "WorkOrder/ReleaseWorkOrder", {
  476. workorderid: str, //工单编号
  477. isrelease: 0, //(0撤回,1转媒体)
  478. token: $.cookie("token")
  479. }, function (result) {
  480. var data = JSON.parse(result);
  481. if (data.state == "success") {
  482. //debugger;
  483. $(".withDrawBtn").hide();
  484. layer.close();
  485. load();
  486. layer.msg("撤回成功");
  487. }
  488. })
  489. }
  490. })
  491. }
  492. </script>
  493. </body>
  494. </html>