ZZDianXin_UI - 郑州电信 演示

WorkOrderSearch.html 26KB

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