Geen omschrijving

inquireNews.html 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751
  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="../css/bootstrap-select.css">
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <link rel="stylesheet" href="../js/layui/css/layui.css">
  12. <style>
  13. #sqzx th {
  14. padding: 5px 8px 5px 0;
  15. text-align: right;
  16. }
  17. .select {
  18. width: 150px;
  19. background-color: #FFF;
  20. background-image: none;
  21. border: 1px solid #ccc;
  22. border-radius: 1px;
  23. color: inherit;
  24. padding: 6px 12px;
  25. }
  26. #sex {
  27. background-color: #FFF;
  28. background-image: none;
  29. border: 1px solid #ccc;
  30. border-radius: 1px;
  31. color: inherit;
  32. padding: 6px 12px;
  33. }
  34. input {
  35. background-color: #FFF;
  36. background-image: none;
  37. border: 1px solid #ccc;
  38. border-radius: 1px;
  39. color: inherit;
  40. padding: 6px 12px;
  41. }
  42. #sqzx td {
  43. padding: 6px 0 5px 10px;
  44. }
  45. .lxr ul li {
  46. float: left;
  47. list-style: none;
  48. width: 30%;
  49. margin-bottom: 5px;
  50. padding-top: 10px;
  51. }
  52. .clearFix:after {
  53. content: "";
  54. display: block;
  55. clear: both;
  56. }
  57. .form-group {
  58. padding-left: 40px;
  59. margin-bottom: 0;
  60. }
  61. textarea {
  62. height: 70px;
  63. border: 1px solid #ccc;
  64. border-radius: 1px;
  65. width: 50%;
  66. resize: none;
  67. }
  68. .textarea_box {
  69. margin-top: 10px;
  70. }
  71. .box_content {
  72. border-bottom: 1px solid #ccc;
  73. }
  74. .tj_content {
  75. border: 1px solid #e6e6e6;
  76. border-radius: 5px;
  77. }
  78. .t-shade {
  79. position: fixed;
  80. top: 0;
  81. left: 0;
  82. width: 100%;
  83. background: rgba(0, 0, 0, 0.48);
  84. z-index: 10004;
  85. display: none;
  86. }
  87. .lyxz .shade_k {
  88. z-index: 10005;
  89. width: 40%;
  90. left: 30%;
  91. position: absolute;
  92. background-color: rgb(255, 255, 255);
  93. box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
  94. margin: 20% auto;
  95. border-radius: 5px;
  96. }
  97. .shade_title {
  98. padding: 0 80px 0 20px;
  99. height: 42px;
  100. line-height: 42px;
  101. border-bottom: 1px solid #eee;
  102. font-size: 16px;
  103. color: #FFFFFF;
  104. overflow: hidden;
  105. background-color: #00a1cb;
  106. border-radius: 2px 2px 0 0;
  107. position: relative;
  108. border-top-left-radius: 5px;
  109. border-top-right-radius: 5px;
  110. }
  111. .cx {
  112. display: block;
  113. }
  114. .setwin {
  115. position: absolute;
  116. right: 15px;
  117. top: 5px;
  118. font-size: 0;
  119. line-height: initial;
  120. }
  121. .setwin a {
  122. position: relative;
  123. width: 16px;
  124. height: 16px;
  125. font-size: 20px;
  126. color: #fff;
  127. }
  128. .xg i {
  129. font-size: 16px;
  130. }
  131. .hidens {
  132. display: none;
  133. }
  134. .inpBox {
  135. border: 1px solid #cccccc;
  136. height: 31px;
  137. width: 220px;
  138. display: inline-block;
  139. position: relative;
  140. vertical-align: middle;
  141. position: absolute;
  142. left: 0px;
  143. top: 0px;
  144. z-index: 111;
  145. }
  146. .selDpart1 {
  147. position: absolute;
  148. left: 0px;
  149. top: 30px;
  150. z-index: 11111;
  151. width: 220px;
  152. line-height: 30px;
  153. background: #FFFFFF;
  154. display: none;
  155. }
  156. #sponsor {
  157. width: 218px;
  158. border: 1px solid #00a1cb;
  159. margin: 0;
  160. padding: 0;
  161. list-style: none;
  162. max-height: 212px;
  163. overflow-x: hidden;
  164. overflow-y: scroll;
  165. }
  166. #sponsor li {
  167. margin: 0;
  168. padding-left: 10px;
  169. width: 220px;
  170. height: 30px;
  171. line-height: 30px;
  172. list-style: none;
  173. }
  174. #sponsor li:hover {
  175. background: #00a1cb;
  176. }
  177. .addTree {
  178. background: #fff;
  179. position: absolute;
  180. width: 100%;
  181. border: 1px solid darkgrey;
  182. right: 0;
  183. top: 29px;
  184. display: none;
  185. z-index: 222;
  186. }
  187. .xl {
  188. display: inline-block;
  189. background: url(../../img/dropDown.png) no-repeat;
  190. height: 100%;
  191. background-position: center center;
  192. width: 20px;
  193. position: absolute;
  194. right: 0;
  195. top: 0px;
  196. /* background-color: #f7bc8b; */
  197. cursor: pointer;
  198. }
  199. .ztree li span {
  200. border: none;
  201. padding: 0;
  202. }
  203. .inps {
  204. width: 217px;
  205. height: 29px;
  206. outline: none;
  207. border: 0;
  208. border-image-width: 0;
  209. padding: 0;
  210. padding-left: 3px;
  211. }
  212. .xl {
  213. display: inline-block;
  214. background: url(../img/dropDown.png) no-repeat;
  215. height: 100%;
  216. background-position: center center;
  217. width: 20px;
  218. position: absolute;
  219. right: 0;
  220. top: 0px;
  221. /* background-color: #f7bc8b; */
  222. cursor: pointer;
  223. }
  224. .Cleans {
  225. display: inline-block;
  226. width: 20px;
  227. position: absolute;
  228. right: 21px;
  229. top: 8px;
  230. display: none;
  231. }
  232. .Min-width {
  233. width: 150px;
  234. }
  235. .btn-default {
  236. background: #FFFFFF;
  237. color: #000000;
  238. }
  239. </style>
  240. </head>
  241. <body class="gray-bg">
  242. <div class="wrapper wrapper-content animated fadeInRight">
  243. <div class="daoHang clearfix">
  244. <div class="dhLeft">
  245. <sapn>
  246. <i class="syIcon"></i>位置:
  247. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  248. <a href="" class="nowPosition">新闻媒体查询</a>
  249. </sapn>
  250. </div>
  251. <div class="dhRight">
  252. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  253. </div>
  254. </div>
  255. <div style="padding: 10px;" class="tj_content clearFix">
  256. <div style="padding: 10px;" class="tj_content clearFix">
  257. <div>
  258. <span>【搜索信息】</span>
  259. <div class="box_content">
  260. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  261. <tr>
  262. <th>关键字:</th>
  263. <td>
  264. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  265. </td>
  266. <th>事项编号:</th>
  267. <td>
  268. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  269. </td>
  270. <th>时间:</th>
  271. <td>
  272. <input type="text" id="starttime" class="" placeholder="请选择时间"
  273. style="height: 32px;" />
  274. </td>
  275. <!-- <th>工单状态:</th>
  276. <td>
  277. <select name="" id="state" class="select">
  278. <option selected="selected" value="">请选择</option>
  279. <option value="0">新工单</option>
  280. <option value="1">待交办</option>
  281. <option value="10">待审核</option>
  282. <option value="2">待查收</option>
  283. <option value="3">退回审核中</option>
  284. <option value="4">办理中</option>
  285. <option value="5">延时审核中</option>
  286. <option value="6">已办理</option>
  287. <option value="7">已回访</option>
  288. <option value="11">重办待交办</option>
  289. <option value="13">重办驳回 </option>
  290. <option value="8">重办中</option>
  291. <option value="9">已结案</option>
  292. </select>
  293. </td> -->
  294. </tr>
  295. <tr>
  296. <th>工单来源:</th>
  297. <td>
  298. <select class="select_" id="source"></select>
  299. </td>
  300. <!-- <th>主题词:</th>
  301. <td>
  302. <select id="keyid" name="" class="select"></select>
  303. </td> -->
  304. <th>来电号码:</th>
  305. <td>
  306. <input type="text" id="tel" placeholder="请输入来电号码" />
  307. </td>
  308. <th>来电人:</th>
  309. <td>
  310. <input type="text" id="name" class="Min-width" autocomplete="off" />
  311. </td>
  312. </tr>
  313. <tr>
  314. <th>处理类型:</th>
  315. <td>
  316. <select class="select_" id="dealtype">
  317. <option value="">请选择</option>
  318. <option value="0">网络转派</option>
  319. <option value="1">当即办理</option>
  320. </select>
  321. </td>
  322. <th>类型:</th>
  323. <td>
  324. <select class="select_" id="type"></select>
  325. </td>
  326. <th>区域:</th>
  327. <td>
  328. <select class="select_" id="sourceAreas"></select>
  329. </td>
  330. <th>承办单位:</th>
  331. <td style="position: relative;">
  332. <div class="inpBox">
  333. <input type="text" class="inps"/>
  334. <i class="Cleans fa fa-close"></i>
  335. <i class="xl xl_one"></i>
  336. <div class="addTree xlAdd">
  337. <ul id="addTreeDemo" class="ztree"></ul>
  338. </div>
  339. </div>
  340. <div class="selDpart1">
  341. <ul id="sponsor">
  342. </ul>
  343. </div>
  344. </td>
  345. </tr>
  346. <tr>
  347. <td colspan="7"></td>
  348. <td style="text-align: center;">
  349. <botton class="btns Seach">搜索</botton>
  350. <botton class="btns Export">导出</botton>
  351. </td>
  352. </tr>
  353. </table>
  354. </div>
  355. </div>
  356. <div>
  357. <div style="width: 100%;padding: 10px;">
  358. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  359. data-pagination="true">
  360. <thead>
  361. <tr>
  362. <th data-formatter="serialNumber" data-align="center">
  363. 序号
  364. </th>
  365. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  366. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  367. <th data-field="DeptName" data-align="center">承办单位</th>
  368. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  369. <th data-field="UserName" data-align="center">受理人</th>
  370. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  371. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  372. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  373. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  374. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  375. </tr>
  376. </thead>
  377. <tbody class="list"></tbody>
  378. </table>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. <!--下载框-->
  384. <div class="t-shade lyxz">
  385. <div class="shade_k">
  386. <div class="shade_title">
  387. <span>录音播放与下载<srong class="cknum"></srong></span>
  388. <span class="setwin gbly"><a>x</a></span>
  389. </div>
  390. <div class="shade_content">
  391. <div class="Ly_box audiojs">
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. <input type="hidden" id="PID" />
  397. <input type="hidden" id="Dpment" />
  398. </div>
  399. <script src="../js/bootstrap-select.js"></script>
  400. <script src="../js/laydate/laydate.js"></script>
  401. <script src="../My97DatePicker/WdatePicker.js"></script>
  402. <script src="../js/zTree/jquery.ztree.core.js"></script>
  403. <script src="../js/search/screen.js"></script>
  404. <script src="../js/layui/layui.js"></script>
  405. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  406. <script src="../Script/Common/huayi.common.js"></script>
  407. <script>
  408. $(document).ready(function () {
  409. var wid = helper.request.queryString("wid");
  410. if (wid) {
  411. $('#tel').val(wid);
  412. load();
  413. }
  414. laydate.render({
  415. elem: '#starttime' //指定元素
  416. ,
  417. range: '~'
  418. });
  419. load();
  420. });
  421. //关闭录音弹出
  422. $(".gbly").click(function () {
  423. $(".lyxz").removeClass("cx");
  424. $('audio')[0].pause();
  425. });
  426. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  427. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  428. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  429. });
  430. //获取查询信息
  431. function load() {
  432. //先销毁表格
  433. $('#orderlist').bootstrapTable('destroy');
  434. //初始化表格,动态从服务器加载数据
  435. $("#orderlist").bootstrapTable({
  436. method: "get", //使用get请求到服务器获取数据
  437. url: huayi.config.callcenter_url + "WorkOrder/GetSelfList", //获取数据的Servlet地址
  438. contentType: "application/x-www-form-urlencoded",
  439. striped: true, //表格显示条纹
  440. pagination: true, //启动分页
  441. pageSize: 10, //每页显示的记录数
  442. pageNumber: 1, //当前第几页
  443. pageList: [10, 20, 50, 100], //记录数可选列表
  444. search: false, //是否启用查询
  445. showColumns: false, //显示下拉框勾选要显示的列
  446. showRefresh: false, //显示刷新按钮
  447. sidePagination: "server", //表示服务端请求
  448. queryParamsType: "undefined",
  449. queryParams: function queryParams(params) { //设置查询参数
  450. //alert(params.pageNumber)
  451. var param = {
  452. page: params.pageNumber,
  453. pagesize: params.pageSize,
  454. workid: $("#wids").val(),
  455. state: $("#state").val(), //=工单状态
  456. type: $("#type").val(), //=工单类型
  457. key: $("#key").val(), //=关键字
  458. tel: $("#tel").val(), //=客户电话
  459. name: $("#name").val(), //=客户名称
  460. keyid: $("#keyid").val(), //=关键词id
  461. source: $("#source").val(), //=来源&
  462. starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[
  463. 0], //=开始时间
  464. endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
  465. deptid: $("#PID").val(),
  466. type: $("#type").val(),
  467. dealtype: $("#dealtype").val(),
  468. sourcearea: $('#sourceAreas').val(), //区域
  469. token: $.cookie("token")
  470. };
  471. return param;
  472. },
  473. onLoadSuccess: function (data) { //加载成功时执行
  474. //layer.msg("加载成功");
  475. //console.log(data);
  476. },
  477. onLoadError: function () { //加载失败时执行
  478. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  479. }
  480. });
  481. }
  482. //状态
  483. function States(val, row) {
  484. var html = '';
  485. switch (val + '') {
  486. case '0':
  487. html = '新工单';
  488. if (row.F_IsReturn == 1) {
  489. html = '新工单(回退)';
  490. }
  491. break;
  492. case '1':
  493. html = '待交办';
  494. break;
  495. case '2':
  496. html = '待查收';
  497. break;
  498. case '3':
  499. html = '退回审核中';
  500. break;
  501. case '4':
  502. html = '办理中';
  503. break;
  504. case '5':
  505. html = '延时审核';
  506. break;
  507. case '6':
  508. html = '已办理';
  509. break;
  510. case '7':
  511. html = '已回访';
  512. break;
  513. case '8':
  514. html = '重办中';
  515. break;
  516. case '9':
  517. html = '已结案';
  518. break;
  519. case '10':
  520. html = '待审核';
  521. break;
  522. case '11':
  523. html = '重办待交办';
  524. break;
  525. // case '12':
  526. // html = '待审核';
  527. // break;
  528. case '13':
  529. html = '重办驳回';
  530. break;
  531. }
  532. return html;
  533. }
  534. //音频
  535. function setCode(val) {
  536. if (val) {
  537. return '<div class="imgs" style="cursor: pointer;">' +
  538. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  539. '</div>';
  540. } else {
  541. return '';
  542. }
  543. }
  544. //编号
  545. function serialNumber(val, row, index) {
  546. return index + 1;
  547. }
  548. function GetCont(val) {
  549. if (val) {
  550. var str = '<div '
  551. if (val.length > 10) {
  552. str = str + ' title="' + val + '" ';
  553. val = val.substr(0, 10) + "...";
  554. }
  555. return str + '>' + val + '</div>';
  556. } else {
  557. return '';
  558. }
  559. }
  560. //操作
  561. function Dispose(val, row) {
  562. var Rows = row.Buttons;
  563. var html = '';
  564. for (var i = 0; i < Rows.length; i++) {
  565. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  566. if (html1) {
  567. html1 = html1.replace("data", val);
  568. html1 = html1.replace("isProtect", row.F_IsProtect);
  569. html1 = html1.replace("row", row.F_MainDeptId);
  570. }
  571. html += html1;
  572. }
  573. return html;
  574. }
  575. //查看详情
  576. function ckxq(str) {
  577. layer.open({
  578. type: 2,
  579. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  580. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  581. title: '工单详情',
  582. area: ['100%', '100%'], //宽高
  583. });
  584. }
  585. //时限
  586. function OverTime(val, row) {
  587. if (val == 1) {
  588. return '<div class="" style="cursor: pointer;">' +
  589. '<span class="Greens">' + row.GapTime + '</span>' +
  590. '</div>';
  591. } else if (val == 2) {
  592. return '<div class="" style="cursor: pointer;">' +
  593. '<span class="Yellows">' + row.GapTime + '</span>' +
  594. '</div>';
  595. } else if (val == 3) {
  596. return '<div class="" style="cursor: pointer;">' +
  597. '<span class="Reds">' + row.GapTime + '</span>' +
  598. '</div>';
  599. }
  600. }
  601. //办理时限
  602. function BanTime(val) {
  603. if (val) {
  604. var time = val.substring(0, val.indexOf(' '));
  605. return '<div class="" style="cursor: pointer;">' +
  606. '<span>' + time + '</span>' +
  607. '</div>';
  608. }
  609. }
  610. //来源
  611. function LY(obj) {
  612. obj.empty();
  613. obj.append('<option selected="selected" value="">请选择</option>');
  614. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  615. "token": $.cookie("token"),
  616. id: 1
  617. }, function (data) {
  618. if (data.state.toLowerCase() == "success") {
  619. var content = data.data;
  620. $(content).each(function (i, n) {
  621. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  622. obj);
  623. })
  624. }
  625. })
  626. }
  627. //类别
  628. function LB(obj) {
  629. obj.empty();
  630. obj.append('<option selected="selected" value="">请选择</option>');
  631. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  632. "token": $.cookie("token"),
  633. id: 2
  634. }, function (data) {
  635. if (data.state.toLowerCase() == "success") {
  636. var content = data.data;
  637. $(content).each(function (i, n) {
  638. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  639. obj);
  640. })
  641. }
  642. })
  643. }
  644. // 主题
  645. function ZT(obj) {
  646. obj.empty();
  647. obj.append('<option selected="selected" value="">请选择</option>');
  648. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  649. "token": $.cookie("token"),
  650. id: 3
  651. }, function (data) {
  652. if (data.state.toLowerCase() == "success") {
  653. var content = data.data;
  654. $(content).each(function (i, n) {
  655. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  656. obj);
  657. })
  658. }
  659. })
  660. }
  661. function tree() {
  662. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  663. "token": $.cookie("token"),
  664. // "pid": pid
  665. }, function (result) {
  666. result = $.parseJSON(result);
  667. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  668. });
  669. }
  670. var setting1 = {
  671. data: {
  672. key: {
  673. name: "F_DeptName"
  674. },
  675. simpleData: {
  676. enable: true,
  677. idKey: "F_DeptId",
  678. pIdKey: "F_PartentId",
  679. rootPId: 0
  680. }
  681. },
  682. callback: {
  683. onClick: zTreeOnClick
  684. }
  685. };
  686. function zTreeOnClick(event, treeId, treeNode) {
  687. if (treeNode.level >= 1) {
  688. $('.inps').val(treeNode.F_DeptName);
  689. $("#PID").val(treeNode.F_DeptId);
  690. $("#Dpment").val(treeNode.F_DeptId);
  691. $(".Cleans").show();
  692. }
  693. };
  694. function Close() {
  695. $(".lyxz").removeClass("cx");
  696. if ($('audio').length > 0) {
  697. $('audio')[0].pause();
  698. }
  699. }
  700. </script>
  701. </body>
  702. </html>