ZZDianXin_UI - 郑州电信 演示

WorkOrderDispose.html 26KB

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