ZZDianXin_UI - 郑州电信 演示

WorkOrderParty.html 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>已处理工单</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
  12. <link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
  13. <link href="../css/init.css" rel="stylesheet" />
  14. <style>
  15. /*table td {
  16. word-break:break-all;
  17. word-wrap:break-word;
  18. }
  19. table th {
  20. min-width:100px;
  21. }*/
  22. .time-box {
  23. display: inline-block;
  24. position: relative;
  25. }
  26. i.tub {
  27. position: absolute;
  28. right: 8px;
  29. top: 8px;
  30. font-size: 18px;
  31. color: #1ab394;
  32. }
  33. .search_time {
  34. width: 228px!important;
  35. }
  36. .bootstrap-select>.dropdown-toggle.bs-placeholder {
  37. background-color: #ffffff!important;
  38. border-color: #e5e6e7!important;
  39. }
  40. .filter-option {
  41. color: #676b6d;
  42. }
  43. .bootstrap-select>.dropdown-toggle.btn-default {
  44. background-color: #ffffff!important;
  45. border-color: #e5e6e7!important;
  46. color: #555;
  47. }
  48. #typeclass {
  49. background: #fff;
  50. }
  51. .treeList {
  52. top: 34px!important;
  53. border: 1px solid #e5e6e7!important;
  54. border-top: 0;
  55. height: auto!important;
  56. }
  57. #TreeDemo li {
  58. float: initial;
  59. }
  60. #ce,
  61. #ces {
  62. display: none;
  63. }
  64. .E73 {
  65. background: #87eebf;
  66. color: #000;
  67. width: 100px;
  68. }
  69. .E72 {
  70. width: 100px;
  71. }
  72. .RemoveC a {
  73. display: inline-block;
  74. }
  75. .imgs a{
  76. padding-right: 5px;
  77. }
  78. .inps2,.inps3{
  79. display: none;
  80. }
  81. .W50 .th-inner {
  82. width:50px !important;
  83. }
  84. .W60 .th-inner {
  85. width:60px !important;
  86. }
  87. .W60margin .th-inner {
  88. width:60px !important;
  89. margin-right: 220px !important;
  90. }
  91. .W60margin{
  92. width:60px !important;
  93. text-align: left !important;
  94. }
  95. .W80 .th-inner {
  96. width:80px !important;
  97. }
  98. .W90 .th-inner {
  99. width:90px !important;
  100. }
  101. .W100 .th-inner {
  102. width:100px !important;
  103. }
  104. .W120 .th-inner {
  105. width:120px !important;
  106. }
  107. .W150 .th-inner {
  108. width:150px !important;
  109. }
  110. .W160 .th-inner {
  111. width:200px !important;
  112. padding-left: 150px;
  113. }
  114. .w160{
  115. width: 200px !important;
  116. padding-left: 150px;
  117. }
  118. .create_time .th-inner {
  119. width:200px !important;
  120. /*padding-left: 150px !important;*/
  121. }
  122. .create_time{
  123. width: 200px !important;
  124. padding-left: 149px !important;
  125. }
  126. .W170 .th-inner {
  127. width:170px !important;
  128. }
  129. .W220 .th-inner {
  130. width:220px !important;
  131. position: absolute;
  132. right: 0;
  133. top: 0;
  134. border-left: 1px solid #DDDDDD ;
  135. background: #F3F3F4;
  136. height: 40px;
  137. border-bottom: 1px solid #DDDDDD;
  138. }
  139. .W220{
  140. width:220px !important;
  141. position: absolute;
  142. right: 0;
  143. background: #F3F3F4;
  144. border-bottom: 1px solid #DDDDDD;
  145. }
  146. .ordernumber{
  147. width: 150px !important;
  148. position: absolute;
  149. left: 0;
  150. background: #F3F3F4;
  151. border-right: 1px solid #DDDDDD;
  152. }
  153. .ordernumber .th-inner{
  154. width: 150px !important;
  155. position: absolute;
  156. left: 0;
  157. top: 0;
  158. height: 40px;
  159. background: #F3F3F4;
  160. border-right: 1px solid #DDDDDD;
  161. border-bottom: 1px solid #DDDDDD;
  162. }
  163. .RemoveC a{
  164. margin-bottom: 0;
  165. }
  166. .t-shade-ly {
  167. position: fixed;
  168. top: 0;
  169. left: 0;
  170. width: 100%;
  171. height: 100%;
  172. background: rgba(0, 0, 0, 0.48);
  173. z-index: 10004;
  174. display: none;
  175. }
  176. .shade_k_ly {
  177. z-index: 10005;
  178. width: 40%;
  179. height: 130px;
  180. margin: 10% auto;
  181. background-color: #fff;
  182. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  183. border-radius: 5px;
  184. }
  185. .shade_title_ly {
  186. padding: 0 80px 0 20px;
  187. height: 42px;
  188. line-height: 42px;
  189. border-bottom: 1px solid #eee;
  190. font-size: 16px;
  191. color: #FFFFFF;
  192. overflow: hidden;
  193. background-color: rgb(26, 179, 148);
  194. border-radius: 2px 2px 0 0;
  195. position: relative;
  196. }
  197. .setwin {
  198. position: absolute;
  199. right: 15px;
  200. top: 5px;
  201. font-size: 20px;
  202. line-height: initial;
  203. }
  204. .setwin a {
  205. font-size: 20px;
  206. color: #fff;
  207. }
  208. .shade_content {
  209. overflow-y: auto;
  210. position: relative;
  211. padding-bottom: 50px;
  212. padding: 10px;
  213. }
  214. .cx {
  215. display: block;
  216. }
  217. </style>
  218. </head>
  219. <body class="gray-bg">
  220. <div class="daoHang clearfix">
  221. <div class="dhLeft">
  222. <sapn><i class="syIcon"></i>位置:
  223. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  224. <a href="javaScript:;">工单管理</a>&gt;
  225. <a href="" class="nowPosition">已处理工单</a>
  226. </sapn>
  227. </div>
  228. <div class="dhRight">
  229. <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
  230. </div>
  231. </div>
  232. <div class="wrapper wrapper-content animated fadeInRight">
  233. <div class="toolBox">
  234. <div class="th-bar clearfix">
  235. <div class="pull-left">
  236. <div class="form-inline">
  237. <!--<div class="form-group">
  238. <select class="form-control selectpicker" id="orderSource" data-live-search="true">
  239. <option value="">请选择工单来源</option>
  240. </select>
  241. </div>-->
  242. <div class="form-group">
  243. <select class="form-control selectpicker" id="orderType" data-live-search="true">
  244. <option value="">请选择工单类型</option>
  245. </select>
  246. </div>
  247. <!--<div class="form-group">
  248. <select class="form-control selectpicker" id="productTypeFilt" data-live-search="true">
  249. <option value="">请选择产品类别</option>
  250. </select>
  251. </div>-->
  252. <div class="time-box form-group">
  253. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  254. <input class="form-control" type="text" id="typeclass" placeholder="请选择创建人" readonly="readonly">
  255. <input type="text" class="inps2">
  256. <input type="text" class="inps3">
  257. <input type="hidden" id="typeclassId" />
  258. <div class="addTree treeList">
  259. <p class="plasechoce">请选择</p>
  260. <ul id="TreeDemo" class="ztree">
  261. </ul>
  262. </div>
  263. </div>
  264. <div class="time-box form-group">
  265. <i class="tub fa fa-calendar"></i>
  266. <input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
  267. </div>
  268. <div class="time-box form-group">
  269. <input class="form-control" type="text" id="cityName" placeholder="请输入营业厅名称">
  270. </div>
  271. <div class="time-box form-group">
  272. <input class="form-control" type="text" id="keyWord" placeholder="请输入关键字">
  273. </div>
  274. <div class="time-box form-group">
  275. <input class="form-control" type="text" id="orderNum" placeholder="请输入工单号">
  276. </div>
  277. </div>
  278. </div>
  279. <div class="pull-right">
  280. <button class="btns ss">搜索</button>
  281. <!--<button class="btns gjss">高级搜索</button>-->
  282. <a class="btns" onclick="dcexcel(this)">导出</a>
  283. </div>
  284. </div>
  285. </div>
  286. <div style="width: 100%;padding: 10px;" id="ce">
  287. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  288. <thead>
  289. <tr>
  290. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
  291. <th data-field="F_CreateTime" data-align="center">创建时间</th>
  292. <th data-field="F_CreateUser" data-align="center">创建人</th>
  293. <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
  294. <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">描述内容</th>
  295. <th data-field="F_CusName" data-formatter="characterFive" data-align="center" data-class="E73">客户姓名</th>
  296. <th data-field="F_CusPhone" data-align="center">客户电话</th>
  297. <th data-field="F_Typeof" data-align="center">工单类型</th>
  298. <th data-field="F_Definition" data-formatter="businessHall_name" data-align="center">营业厅名称</th>
  299. <th data-field="F_Dealing" data-align="center">处理人</th>
  300. <th data-field="FilePath" data-align="center" data-formatter="setCode">录音</th>
  301. <th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
  302. </tr>
  303. </thead>
  304. </table>
  305. </div>
  306. <div style="width: 100%;padding: 10px;" id="ces">
  307. <table id="workorderlist_" class="market" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  308. <thead>
  309. <tr>
  310. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
  311. <th data-field="F_CreateTime" data-align="center">创建时间</th>
  312. <th data-field="F_CreateUser" data-align="center">创建人</th>
  313. <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
  314. <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">描述内容</th>
  315. <th data-field="F_CusName" data-formatter="characterFive" data-align="center" data-class="E73">客户姓名</th>
  316. <th data-field="F_CusPhone" data-align="center">客户电话</th>
  317. <th data-field="F_Typeof" data-align="center">工单类型</th>
  318. <!--<th data-field="F_Definition" data-align="center">营业厅名称</th>-->
  319. <!--<th data-field="F_Dealing" data-align="center">处理人</th>-->
  320. <th data-field="FilePath" data-align="center" data-formatter="setCode">录音</th>
  321. <th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
  322. </tr>
  323. </thead>
  324. </table>
  325. </div>
  326. <!--录音-->
  327. <div class="t-shade-ly">
  328. <div class="shade_k_ly">
  329. <div class="shade_title_ly">
  330. <span>录音播放与下载<srong class="cknum"></srong></span>
  331. <span class="setwin"><a>x</a></span>
  332. </div>
  333. <div class="shade_content">
  334. <div class="Ly_box audiojs">
  335. </div>
  336. <div class="boxCon LY_box">
  337. </div>
  338. </div>
  339. </div>
  340. </div>
  341. <!--查看详情-->
  342. <div class="ckxq Hidens">
  343. <ul class="clearfix ckxq_ul">
  344. <li class="Active">工单详情</li>
  345. <li>跟进记录</li>
  346. <!--去掉-->
  347. <!--<li>催办记录</li>
  348. <li>评论记录</li>-->
  349. <span class="Closed">×</span>
  350. </ul>
  351. <div class="gdxq">
  352. <div class="">
  353. <table id="gdxq_table" border="0" class="table table-bordered table-hover " style="width: 100%;">
  354. <tbody class="tbodys">
  355. <tr>
  356. <th>工单编号:</th>
  357. <td>
  358. <span id="xq_gdbh"></span>
  359. </td>
  360. <th>工单类型:</th>
  361. <td>
  362. <span id="xq_gdlx"></span>
  363. </td>
  364. <th>定责:</th>
  365. <td>
  366. <span id="complaintType1"></span>
  367. </td>
  368. </tr>
  369. <tr>
  370. <th>创建时间:</th>
  371. <td>
  372. <span id="xq_cjsj"></span>
  373. </td>
  374. <th>工单状态:</th>
  375. <td>
  376. <span id="xq_gdzt"></span>
  377. </td>
  378. <th>客户姓名:</th>
  379. <td>
  380. <span id="xq_khxm"></span>
  381. </td>
  382. </tr>
  383. <tr class="up_floor">
  384. <th>派单类型:</th>
  385. <td>
  386. <span id="complaintType2"></span>
  387. </td>
  388. <th>处理人姓名:</th>
  389. <td>
  390. <span id="dealing"></span>
  391. </td>
  392. <th>处理人电话:</th>
  393. <td>
  394. <span id="dealingtel"></span>
  395. </td>
  396. </tr>
  397. <tr>
  398. <th>客户电话:</th>
  399. <td>
  400. <span id="xq_khdh"></span>
  401. </td>
  402. <th class="up_floor">营业厅名称:</th>
  403. <td class="up_floor">
  404. <span id="definition"></span>
  405. </td>
  406. <!--<th>购买日期:</th>
  407. <td>
  408. <span id="buyDate"></span>
  409. </td>
  410. <th>购买地址:</th>
  411. <td>
  412. <span id="buyAddress"></span>
  413. </td>-->
  414. </tr>
  415. <tr>
  416. <th>描述内容:</th>
  417. <td colspan="5" id="conTent">
  418. </td>
  419. </tr>
  420. <tr>
  421. <th>回复内容:</th>
  422. <td colspan="5" id="replycontent">
  423. </td>
  424. </tr>
  425. <tr>
  426. <th>备注:</th>
  427. <td colspan="5" id="remark">
  428. </td>
  429. </tr>
  430. </tbody>
  431. </table>
  432. </div>
  433. <!--<div class="">
  434. <table id="gdxq_table" border="0" class="table table-bordered table-hover " style="width: 100%;">
  435. <tbody class="tbodys">
  436. <tr>
  437. <th>处理费用:</th>
  438. <td>
  439. <span id="F_DealCost"></span>
  440. </td>
  441. <th>处理状态:</th>
  442. <td>
  443. <span id="DealStateName"></span>
  444. </td>
  445. <th>响应状态:</th>
  446. <td>
  447. <span id="F_DealTimely"></span>
  448. </td>
  449. </tr>
  450. <tr>
  451. <th>处理结果:</th>
  452. <td colspan="5" id="F_DealResult">
  453. </td>
  454. </tr>
  455. <tr>
  456. <th>客诉进展详述:</th>
  457. <td colspan="5" id="F_DealDes">
  458. </td>
  459. </tr>
  460. </tbody>
  461. </table>
  462. </div>-->
  463. </div>
  464. <div class="gdxq" style="display:none;">
  465. </div>
  466. </div>
  467. </div>
  468. <div class="t-shade">
  469. <!--处理工单-->
  470. <div class="shade_k clgd ">
  471. <div class="shade_title">
  472. <span>评论工单<srong class="cknum"></srong></span>
  473. <span class="setwin"><a>x</a></span>
  474. </div>
  475. <div class="shade_content">
  476. <div class="dgxx_table size-13">
  477. <table class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
  478. <tr>
  479. <th>工单编号:</th>
  480. <td>
  481. <span id="cl_gdbh"></span>
  482. </td>
  483. <th>工单类型:</th>
  484. <td>
  485. <span id="cl_gdlx"></span>
  486. </td>
  487. </tr>
  488. <tr>
  489. <th>客户姓名:</th>
  490. <td>
  491. <span id="cl_khxm"></span>
  492. </td>
  493. <th>客户电话:</th>
  494. <td>
  495. <span id="cl_khdh"></span>
  496. </td>
  497. </tr>
  498. <tr>
  499. <th>反馈内容及处理结果:</th>
  500. <td colspan="5 " id="cl_gdnr" style="width: 150%;">
  501. </td>
  502. </tr>
  503. <tr>
  504. <th>评论内容:</th>
  505. <td colspan="3">
  506. <div>
  507. <textarea id="cont" name="" rows="3" style="width:100%;"></textarea>
  508. </div>
  509. </td>
  510. </tr>
  511. </table>
  512. </div>
  513. <div class="clearfix wh_btn">
  514. <input type="button" value="确定" class="btn-info" id="plgd" />
  515. </div>
  516. </div>
  517. </div>
  518. </div>
  519. <script src="../js/zTree/jquery.ztree.core.js"></script>
  520. <script src="../js/kindeditor/kindeditor.js"></script>
  521. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  522. <script src="../js/WorkOrder/WorkOrder.js"></script>
  523. <script src="../js/laydate/laydate.js"></script>
  524. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  525. <script src="../js/comboSelect/jquery.combo.select.js"></script>
  526. <script>
  527. var selid;
  528. var zpid;
  529. var stype = 1;
  530. $(document).ready(function() {
  531. laydate.render({
  532. elem: '#greetingTimes',
  533. range: '~',
  534. // type: 'datetime',
  535. //max : 31,
  536. // min: 0,
  537. theme: '#1ab394',
  538. });
  539. $.ajax({
  540. type: "get",
  541. url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
  542. dataType: 'json',
  543. async: false,
  544. data: {
  545. token: $.cookie("token")
  546. },
  547. success: function(data) {
  548. if(data.state.toLowerCase() == 'success') {
  549. if(data.data.groname == '思念组') {
  550. $(".snRmove").remove();
  551. $(".dkRmove").show();
  552. } else {
  553. $(".snRmove").show();
  554. $(".dkRmove").remove();
  555. }
  556. }
  557. }
  558. });
  559. //处理工单
  560. $("#plgd").click(function() {
  561. if(!$("#cont").val()) {
  562. layer.confirm('请输入评论内容!', {
  563. btn: ['确定']
  564. });
  565. return;
  566. }
  567. $.post(huayi.config.callcenter_url + 'WorkOrder/AddWorkOrderComment', {
  568. orderid: zpid,
  569. cont: $("#cont").val(),
  570. "token": $.cookie("token")
  571. }, function(result) {
  572. result = $.parseJSON(result);
  573. if(result.state.toLowerCase() == "success") {
  574. layer.msg("评论工单成功");
  575. $(".t-shade").removeClass("cx");
  576. $(".clgd").removeClass("cx");
  577. if(ns == 1) {
  578. $('#workorderlist').bootstrapTable('refresh');
  579. } else {
  580. $('#workorderlist_').bootstrapTable('refresh');
  581. }
  582. }
  583. })
  584. })
  585. })
  586. function initTable() {
  587. //先销毁表格
  588. $('#workorderlist').bootstrapTable('destroy');
  589. //初始化表格,动态从服务器加载数据
  590. $("#workorderlist").bootstrapTable({
  591. method: "get", //使用get请求到服务器获取数据
  592. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  593. contentType: 'application/x-www-form-urlencoded',
  594. striped: true, //表格显示条纹
  595. pagination: true, //启动分页
  596. pageSize: 10, //每页显示的记录数
  597. pageNumber: 1, //当前第几页
  598. pageList: [5, 10,20, 50, 100], //记录数可选列表
  599. search: false, //是否启用查询
  600. showColumns: false, //显示下拉框勾选要显示的列
  601. showRefresh: false, //显示刷新按钮
  602. sidePagination: "server", //表示服务端请求
  603. smartDisplay:false,
  604. fixedColumns: true,
  605. fixedNumber: 14,
  606. columns:[{class:'ordernumber'},{class:'create_time'},{class:'W120'}
  607. ,{class:'W100'},{class:'W100'}
  608. ,{class:'W170'},{class:'W100'},{class:'W120'}
  609. ,{class:'W100'},{class:'W120'}
  610. ,{class:'W60margin'},{class:'W220'}],
  611. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  612. //设置为limit可以获取limit, offset, search, sort, order
  613. queryParamsType: "undefined",
  614. queryParams: function queryParams(params) { //设置查询参数
  615. var param = {
  616. page: params.pageNumber,
  617. pagesize: params.pageSize,
  618. token: $.cookie("token"),
  619. state: 1,
  620. definition:$("#cityName").val().trim(),
  621. strusercode:$('#typeclassId').val(),
  622. Typeof:$("#orderType").val(), //工单类型
  623. key:$('#keyWord').val().trim(), //内容关键字
  624. workid:$('#orderNum').val(), //工单号
  625. starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
  626. endtime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[1], //结束时间
  627. };
  628. return param;
  629. },
  630. onLoadSuccess: function() { //加载成功时执行
  631. //layer.msg("加载成功");
  632. },
  633. onLoadError: function() { //加载失败时执行
  634. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  635. }
  636. });
  637. }
  638. function initTables() {
  639. //先销毁表格
  640. $('#workorderlist_').bootstrapTable('destroy');
  641. //初始化表格,动态从服务器加载数据
  642. $("#workorderlist_").bootstrapTable({
  643. method: "get", //使用get请求到服务器获取数据
  644. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  645. contentType: 'application/x-www-form-urlencoded',
  646. striped: true, //表格显示条纹
  647. pagination: true, //启动分页
  648. pageSize: 10, //每页显示的记录数
  649. pageNumber: 1, //当前第几页
  650. pageList: [5,10,20, 50, 100], //记录数可选列表
  651. search: false, //是否启用查询
  652. showColumns: false, //显示下拉框勾选要显示的列
  653. showRefresh: false, //显示刷新按钮
  654. sidePagination: "server", //表示服务端请求
  655. fixedColumns: true,
  656. smartDisplay:false,
  657. fixedNumber: 14,
  658. columns:[{class:'ordernumber'},{class:'create_time'},{class:'W120'}
  659. ,{class:'W150'},{class:'W150'}
  660. ,{class:'W170'},{class:'W150'},{class:'W120'}
  661. // ,{class:'W100'},{class:'W120'}
  662. ,{class:'W60margin'},{class:'W220'}],
  663. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  664. //设置为limit可以获取limit, offset, search, sort, order
  665. queryParamsType: "undefined",
  666. queryParams: function queryParams(params) { //设置查询参数
  667. var param = {
  668. page: params.pageNumber,
  669. pagesize: params.pageSize,
  670. state: 1,
  671. token: $.cookie("token"),
  672. definition:$("#cityName").val().trim(),
  673. strusercode:$('#typeclassId').val(),
  674. Typeof:$("#orderType").val(), //工单类型
  675. key:$('#keyWord').val().trim(), //内容关键字
  676. workid:$('#orderNum').val(), //工单号
  677. starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
  678. endtime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[1], //结束时间
  679. };
  680. // if (stype == '1') {
  681. // param.name = $("#name").val();
  682. // param.tel = $("#tel").val();
  683. // } else if (stype == '2') {
  684. // param.name = $("#ss_khxm").val();
  685. // param.tel = $("#ss_khdh").val();
  686. // param.key = $("#ss_gdnr").val();
  687. // param.type = $("#ss_gdlx").val();
  688. // param.orderid = $("#ss_gdbh").val();
  689. // }
  690. return param;
  691. },
  692. onLoadSuccess: function() { //加载成功时执行
  693. //layer.msg("加载成功");
  694. },
  695. onLoadError: function() { //加载失败时执行
  696. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  697. }
  698. });
  699. }
  700. function dcexcel(obj) {
  701. var url = huayi.config.callcenter_url + "WorkOrder/GetList?isdc=1&state=1&token=" + $.cookie("token");
  702. // if(stype == '1') {
  703. // url += "&state =" + 1;//以处理
  704. url += "&definition=" + $("#cityName").val();//营业厅名称
  705. url += "&Typeof=" + $("#orderType").val();//工单类型
  706. url += "&strusercode=" + $('#typeclassId').val();//创建人
  707. url += "&key=" + $('#keyWord').val();//关键字
  708. url += "&workid=" + $('#orderNum').val();//工单编号
  709. url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间
  710. url += "&endtime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[1]);//结束时间
  711. // } else if(stype == '2') {
  712. // url += "&name=" + $("#ss_khxm").val() + "&tel=" + $("#ss_khdh").val() + "&key=" + $("#ss_gdnr").val() + "&state=" + $("#ss_gdzt").val();
  713. // url += "&type=" + $("#ss_gdlx").val() + "&orderid=" + $("#ss_gdbh").val() + "&code=" + $("#ss_zxgh").val();
  714. // }
  715. obj.href = url;
  716. }
  717. var ns;
  718. $.ajax({
  719. type: "get",
  720. url: huayi.config.callcenter_url + "UserAccount/GetNowUser",
  721. dataType: 'json',
  722. async: true,
  723. data: {
  724. token: $.cookie("token")
  725. },
  726. success: function(data) {
  727. if(data.state.toLowerCase() == 'success') {
  728. if(data.data.user.F_SeartGroup == '楼上组') {
  729. $('#ce').show();
  730. // ns = 1;
  731. // $('.BZ').removeClass("Hidens");
  732. } else {
  733. $('#ces').show();
  734. // ns = 2;
  735. initTables();
  736. // $('.BZ').addClass("Hidens");
  737. }
  738. }
  739. }
  740. });
  741. </script>
  742. </body>
  743. </html>