ZZDianXin_UI - 郑州电信 演示

WorkOrderSearch.html 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  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. </style>
  156. </head>
  157. <body class="gray-bg">
  158. <div class="daoHang clearfix">
  159. <div class="dhLeft">
  160. <sapn><i class="syIcon"></i>位置:
  161. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  162. <a href="javaScript:;">工单管理</a>&gt;
  163. <a href="" class="nowPosition">综合查询</a>
  164. </sapn>
  165. </div>
  166. <div class="dhRight">
  167. <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
  168. </div>
  169. </div>
  170. <div class="wrapper wrapper-content animated fadeInRight">
  171. <div class="toolBox">
  172. <div class="th-bar clearfix">
  173. <div class="pull-left">
  174. <div class="form-inline">
  175. <!--<div class="form-group">
  176. <select class="form-control selectpicker" id="orderSource" data-live-search="true">
  177. <option value="">请选择工单来源</option>
  178. </select>
  179. </div>-->
  180. <div class="form-group">
  181. <select class="form-control selectpicker" id="orderType" data-live-search="true">
  182. <option value="">请选择工单类型</option>
  183. </select>
  184. </div>
  185. <!--<div class="form-group">
  186. <select class="form-control selectpicker" id="productTypeFilt" data-live-search="true">
  187. <option value="">请选择产品类别</option>
  188. </select>
  189. </div>-->
  190. <!--<div class="time-box form-group">
  191. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  192. <input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
  193. <input type="text" class="inps2">
  194. <input type="text" class="inps3">
  195. <input type="hidden" id="typeclassId" />
  196. <div class="addTree treeList">
  197. <p class="plasechoce">请选择</p>
  198. <ul id="TreeDemo" class="ztree">
  199. </ul>
  200. </div>
  201. </div>-->
  202. <div class="time-box form-group">
  203. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  204. <input class="form-control" type="text" id="typeclass" placeholder="请选择创建人" readonly="readonly">
  205. <input type="text" class="inps2">
  206. <input type="text" class="inps3">
  207. <input type="hidden" id="typeclassId" />
  208. <div class="addTree treeList">
  209. <p class="plasechoce">请选择</p>
  210. <ul id="TreeDemo" class="ztree">
  211. </ul>
  212. </div>
  213. </div>
  214. <div class="time-box form-group">
  215. <i class="tub fa fa-calendar"></i>
  216. <input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
  217. </div>
  218. <div class="time-box form-group">
  219. <input class="form-control" type="text" id="cityName" placeholder="请输入营业厅名称">
  220. </div>
  221. <div class="time-box form-group">
  222. <input class="form-control" type="text" id="keyWord" placeholder="请输入关键字">
  223. </div>
  224. <div class="time-box form-group">
  225. <input class="form-control" type="text" id="orderNum" placeholder="请输入工单号">
  226. </div>
  227. </div>
  228. </div>
  229. <div class="pull-right">
  230. <button class="btns ss">搜索</button>
  231. <!--<button class="btns gjss">高级搜索</button>-->
  232. <a class="btns" onclick="dcexcel(this)">导出</a>
  233. </div>
  234. </div>
  235. </div>
  236. <div style="width: 100%;padding: 10px;" id='ce'>
  237. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  238. <thead>
  239. <tr>
  240. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
  241. <th data-field="F_CreateTime" data-align="center">创建时间</th>
  242. <th data-field="F_CreateUser" data-align="center">创建人</th>
  243. <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
  244. <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">描述内容</th>
  245. <th data-field="F_CusName" data-formatter="characterFive" data-align="center" data-class="E73">客户姓名</th>
  246. <th data-field="F_CusPhone" data-align="center">客户电话</th>
  247. <th data-field="F_Typeof" data-align="center">工单类型</th>
  248. <th data-field="F_Definition" data-align="center">营业厅名称</th>
  249. <th data-field="F_Dealing" data-align="center">处理人</th>
  250. <th data-field="" data-align="center">录音</th>
  251. <th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
  252. </tr>
  253. </thead>
  254. </table>
  255. </div>
  256. <div style="width: 100%;padding: 10px;" id="ces">
  257. <table id="workorderlist_" class="market" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  258. <thead>
  259. <tr>
  260. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
  261. <th data-field="F_CreateTime" data-align="center">创建时间</th>
  262. <th data-field="F_CreateUser" data-align="center">创建人</th>
  263. <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
  264. <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">描述内容</th>
  265. <th data-field="F_CusName" data-formatter="characterFive" data-align="center" data-class="E73">客户姓名</th>
  266. <th data-field="F_CusPhone" data-align="center">客户电话</th>
  267. <th data-field="F_Typeof" data-align="center">工单类型</th>
  268. <!--<th data-field="F_Definition" data-align="center">营业厅名称</th>-->
  269. <!--<th data-field="F_Dealing" data-align="center">处理人</th>-->
  270. <th data-field="" data-align="center">录音</th>
  271. <th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
  272. </tr>
  273. </thead>
  274. </table>
  275. </div>
  276. <!--查看详情-->
  277. <div class="ckxq Hidens">
  278. <ul class="clearfix ckxq_ul">
  279. <li class="Active">工单详情</li>
  280. <li>跟进记录</li>
  281. <!--<li>催办记录</li>
  282. <li>评论记录</li>-->
  283. <span class="Closed">×</span>
  284. </ul>
  285. <div class="gdxq">
  286. <table id="gdxq_table" border="0" class="table table-bordered table-hover " style="width: 100%;">
  287. <tbody class="tbodys">
  288. <tr>
  289. <th>工单编号:</th>
  290. <td>
  291. <span id="xq_gdbh"></span>
  292. </td>
  293. <th>工单类型:</th>
  294. <td>
  295. <span id="xq_gdlx"></span>
  296. </td>
  297. <th>定责:</th>
  298. <td>
  299. <span id="complaintType1"></span>
  300. </td>
  301. </tr>
  302. <tr>
  303. <th>创建时间:</th>
  304. <td>
  305. <span id="xq_cjsj"></span>
  306. </td>
  307. <th>工单状态:</th>
  308. <td>
  309. <span id="xq_gdzt"></span>
  310. </td>
  311. <th>客户姓名:</th>
  312. <td>
  313. <span id="xq_khxm"></span>
  314. </td>
  315. </tr>
  316. <tr class="up_floor">
  317. <th>派单类型:</th>
  318. <td>
  319. <span id="complaintType2"></span>
  320. </td>
  321. <th>处理人姓名:</th>
  322. <td>
  323. <span id="dealing"></span>
  324. </td>
  325. <th>处理人电话:</th>
  326. <td>
  327. <span id="dealingtel"></span>
  328. </td>
  329. </tr>
  330. <tr>
  331. <th>客户电话:</th>
  332. <td>
  333. <span id="xq_khdh"></span>
  334. </td>
  335. <th class="up_floor">营业厅名称:</th>
  336. <td class="up_floor">
  337. <span id="definition"></span>
  338. </td>
  339. <!--<th>购买日期:</th>
  340. <td>
  341. <span id="buyDate"></span>
  342. </td>
  343. <th>购买地址:</th>
  344. <td>
  345. <span id="buyAddress"></span>
  346. </td>-->
  347. </tr>
  348. <tr>
  349. <th>描述内容:</th>
  350. <td colspan="5" id="conTent">
  351. </td>
  352. </tr>
  353. <tr>
  354. <th>回复内容:</th>
  355. <td colspan="5" id="replycontent">
  356. </td>
  357. </tr>
  358. <tr>
  359. <th>备注:</th>
  360. <td colspan="5" id="remark">
  361. </td>
  362. </tr>
  363. </tbody>
  364. </table>
  365. <!--<div class="">
  366. <table id="gdxq_table" border="0" class="table table-bordered table-hover " style="width: 100%;">
  367. <tbody class="tbodys">
  368. <tr>
  369. <th>处理费用:</th>
  370. <td>
  371. <span id="F_DealCost"></span>
  372. </td>
  373. <th>处理状态:</th>
  374. <td>
  375. <span id="DealStateName"></span>
  376. </td>
  377. <th>响应状态:</th>
  378. <td>
  379. <span id="F_DealTimely"></span>
  380. </td>
  381. </tr>
  382. <tr>
  383. <th>处理结果:</th>
  384. <td colspan="5" id="F_DealResult">
  385. </td>
  386. </tr>
  387. <tr>
  388. <th>客诉进展详述:</th>
  389. <td colspan="5" id="F_DealDes">
  390. </td>
  391. </tr>
  392. </tbody>
  393. </table>
  394. </div> -->
  395. </div>
  396. <div class="gdxq" style="display:none;">
  397. </div>
  398. </div>
  399. </div>
  400. <!--处理-->
  401. <div class="t-shade">
  402. <!--处理工单-->
  403. <div class="shade_k clgd ">
  404. <div class="shade_title">
  405. <span>处理工单<srong class="cknum"></srong></span>
  406. <span class="setwin"><a>x</a></span>
  407. </div>
  408. <div class="shade_content">
  409. <div class="dgxx_table size-13">
  410. <table class="_table1 table table-bordered" border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
  411. <thead>
  412. <tr>
  413. <th style="text-align: right;">工单编号:</th>
  414. <td>
  415. <span id="cl_gdbh"></span>
  416. </td>
  417. <th>工单类型:</th>
  418. <td>
  419. <span id="cl_gdlx"></span>
  420. </td>
  421. </tr>
  422. <tr>
  423. <th style="text-align: right;">客户姓名:</th>
  424. <td>
  425. <span id="cl_khxm"></span>
  426. </td>
  427. <th>客户电话:</th>
  428. <td>
  429. <span id="cl_khdh"></span>
  430. </td>
  431. </tr>
  432. </thead>
  433. <tr class="ns-2">
  434. <th>处理费用:</th>
  435. <td colspan="3">
  436. <div>&nbsp;
  437. <label style="font-weight: normal;">
  438. <input type="number" style="width: 60px; padding-left: 5px;" id="dealCost" />
  439. &nbsp;&nbsp;元
  440. </label>
  441. </div>
  442. </td>
  443. </tr>
  444. <tr>
  445. <th>处理状态:</th>
  446. <td colspan="3">
  447. <div class="disposeST">
  448. </div>
  449. </td>
  450. </tr>
  451. <tr class="ns-2">
  452. <th>响应状态:</th>
  453. <td colspan="3">
  454. <div class="responseST">
  455. </div>
  456. </td>
  457. </tr>
  458. <tr>
  459. <th>处理结果:</th>
  460. <td colspan="5">
  461. <div>
  462. <textarea id="dealCont" name="" rows="3" style="width:100%;"></textarea>
  463. </div>
  464. </td>
  465. </tr>
  466. <tr>
  467. <th>处理进展详述:</th>
  468. <td colspan="5">
  469. <div>
  470. <textarea id="cont" name="" rows="3" style="width:100%;"></textarea>
  471. </div>
  472. </td>
  473. </tr>
  474. </table>
  475. </div>
  476. <div class="clearfix wh_btn">
  477. <input type="button" value="确定" class="btn-info" id="clgd" />
  478. </div>
  479. </div>
  480. </div>
  481. </div>
  482. <script src="../js/zTree/jquery.ztree.core.js"></script>
  483. <script src="../js/kindeditor/kindeditor.js"></script>
  484. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  485. <script src="../js/laydate/laydate.js"></script>
  486. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  487. <script src="../js/comboSelect/jquery.combo.select.js"></script>
  488. <script src="../js/WorkOrder/WorkOrder.js"></script>
  489. <script>
  490. var selid;
  491. var stype = 1;
  492. $(document).ready(function() {
  493. laydate.render({
  494. elem: '#greetingTimes',
  495. range: '~',
  496. theme: '#00a1cb',
  497. });
  498. $.ajax({
  499. type: "get",
  500. url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
  501. dataType: 'json',
  502. async: false,
  503. data: {
  504. token: $.cookie("token")
  505. },
  506. success: function(data) {
  507. if(data.state.toLowerCase() == 'success') {
  508. if(data.data.groname == '思念组') {
  509. $(".snRmove").remove();
  510. $(".dkRmove").show();
  511. } else {
  512. $(".snRmove").show();
  513. $(".dkRmove").remove();
  514. }
  515. }
  516. }
  517. });
  518. })
  519. function initTable() {
  520. //先销毁表格
  521. $('#workorderlist').bootstrapTable('destroy');
  522. //初始化表格,动态从服务器加载数据
  523. $("#workorderlist").bootstrapTable({
  524. method: "get", //使用get请求到服务器获取数据
  525. url: huayi.config.callcenter_url + "WorkOrder/getlist", //获取数据的Servlet地址
  526. contentType: 'application/x-www-form-urlencoded',
  527. striped: true, //表格显示条纹
  528. pagination: true, //启动分页
  529. pageSize: 10, //每页显示的记录数
  530. pageNumber: 1, //当前第几页
  531. pageList: [5,10, 20, 50, 100], //记录数可选列表
  532. search: false, //是否启用查询
  533. showColumns: false, //显示下拉框勾选要显示的列
  534. showRefresh: false, //显示刷新按钮
  535. sidePagination: "server", //表示服务端请求
  536. fixedColumns: true,
  537. fixedNumber: 14,
  538. columns:[{class:'ordernumber'},{class:'create_time'},{class:'W120'}
  539. ,{class:'W100'},{class:'W100'}
  540. ,{class:'W170'},{class:'W100'},{class:'W120'}
  541. ,{class:'W100'},{class:'W120'}
  542. ,{class:'W60margin'},{class:'W220'}],
  543. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  544. //设置为limit可以获取limit, offset, search, sort, order
  545. queryParamsType: "undefined",
  546. queryParams: function queryParams(params) { //设置查询参数
  547. var param = {
  548. page: params.pageNumber,
  549. pagesize: params.pageSize,
  550. token: $.cookie("token"),
  551. definition:$("#cityName").val(),//营业厅名称
  552. strusercode:$('#typeclassId').val(),//创建人
  553. Typeof:$("#orderType").val(), //工单类型
  554. key:$('#keyWord').val(), //内容关键字
  555. workid:$('#orderNum').val(), //工单号
  556. starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
  557. endtime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[1], //结束时间
  558. };
  559. return param;
  560. },
  561. onLoadSuccess: function() { //加载成功时执行
  562. //layer.msg("加载成功");
  563. },
  564. onLoadError: function() { //加载失败时执行
  565. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  566. }
  567. });
  568. }
  569. function initTables() {
  570. //先销毁表格
  571. $('#workorderlist_').bootstrapTable('destroy');
  572. //初始化表格,动态从服务器加载数据
  573. $("#workorderlist_").bootstrapTable({
  574. method: "get", //使用get请求到服务器获取数据
  575. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  576. contentType: 'application/x-www-form-urlencoded',
  577. striped: true, //表格显示条纹
  578. pagination: true, //启动分页
  579. pageSize: 10, //每页显示的记录数
  580. pageNumber: 1, //当前第几页
  581. pageList: [5,10, 20, 50, 100], //记录数可选列表
  582. search: false, //是否启用查询
  583. showColumns: false, //显示下拉框勾选要显示的列
  584. showRefresh: false, //显示刷新按钮
  585. sidePagination: "server", //表示服务端请求
  586. fixedColumns: true,
  587. smartDisplay:false,
  588. fixedNumber: 14,
  589. columns:[{class:'ordernumber'},{class:'create_time'},{class:'W120'}
  590. ,{class:'W150'},{class:'W150'}
  591. ,{class:'W170'},{class:'W150'},{class:'W120'}
  592. // ,{class:'W100'},{class:'W120'}
  593. ,{class:'W60margin'},{class:'W220'}],
  594. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  595. //设置为limit可以获取limit, offset, search, sort, order
  596. queryParamsType: "undefined",
  597. queryParams: function queryParams(params) { //设置查询参数
  598. var param = {
  599. page: params.pageNumber,
  600. pagesize: params.pageSize,
  601. token: $.cookie("token"),
  602. definition:$("#cityName").val(),//营业厅名称
  603. strusercode:$('#typeclassId').val(),//创建人
  604. Typeof:$("#orderType").val(), //工单类型
  605. key:$('#keyWord').val(), //内容关键字
  606. workid:$('#orderNum').val(), //工单号
  607. starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
  608. endtime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[1], //结束时间
  609. };
  610. return param;
  611. },
  612. onLoadSuccess: function() { //加载成功时执行
  613. //layer.msg("加载成功");
  614. },
  615. onLoadError: function() { //加载失败时执行
  616. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  617. }
  618. });
  619. }
  620. //处理状态
  621. dealState();
  622. function dealState() {
  623. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
  624. "token": $.cookie("token"),
  625. flag: "CLZT"
  626. }, function(result) {
  627. result = $.parseJSON(result);
  628. var Count = result.data;
  629. $(Count).each(function(i, n) {
  630. $('<label style="font-weight: normal; margin-right: 15px;">'+
  631. '<input type="radio" value="' + n.F_DictionaryValueId
  632. + '" name="ltype"/>' + n.F_Name
  633. + '</label>').appendTo($(".disposeST"));
  634. })
  635. $('.disposeST input:radio:first').attr('checked', 'checked');
  636. });
  637. }
  638. //响应状态
  639. responseState();
  640. function responseState() {
  641. $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
  642. "token": $.cookie("token"),
  643. flag: "XYZT"
  644. }, function(result) {
  645. result = $.parseJSON(result);
  646. var Count = result.data;
  647. $(Count).each(function(i, n) {
  648. $('<label style="font-weight: normal; margin-right: 15px;">'+
  649. '<input type="radio" value="' + n.F_DictionaryValueId
  650. + '" name="response"/>' + n.F_Name
  651. + '</label>').appendTo($(".responseST"));
  652. })
  653. $('.responseST input:radio:first').attr('checked', 'checked');
  654. });
  655. }
  656. $("#clgd").click(function() {
  657. var val = $("input[name='ltype']:checked").val();
  658. var valRes = $("input[name='response']:checked").val();
  659. var dealCost;
  660. if (isNaN($("#dealCost").val())) {
  661. dealCost="";
  662. }else{
  663. dealCost=$("#dealCost").val();
  664. }
  665. if(!val) {
  666. layer.confirm('请选择处理方式!', {
  667. btn: ['确定']
  668. });
  669. return;
  670. }
  671. if(val == '0') {
  672. if(!$("#clbm").val()) {
  673. layer.confirm('请选择接收部门!', {
  674. btn: ['确定']
  675. });
  676. return;
  677. }
  678. }
  679. $.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
  680. workid: zpid,
  681. dealcost: dealCost*1, //处理费用
  682. dealresult:$("#dealCont").val(),//处理结果
  683. dealdes: $("#cont").val(), //客诉进展详述
  684. dealstate:val, //处理状态
  685. dealtimely:valRes, //及时响应
  686. "token": $.cookie("token")
  687. }, function(result) {
  688. result = $.parseJSON(result);
  689. if(result.state.toLowerCase() == "success") {
  690. layer.msg("处理工单成功");
  691. $(".t-shade").removeClass("cx");
  692. $(".clgd").removeClass("cx");
  693. if(ns == 1) {
  694. $('#workorderlist').bootstrapTable('refresh');
  695. } else {
  696. $('#workorderlist_').bootstrapTable('refresh');
  697. }
  698. }
  699. })
  700. })
  701. function dcexcel(obj) {
  702. var url = huayi.config.callcenter_url + "WorkOrder/GetList?isdc=1&token=" + $.cookie("token");
  703. // if(stype == '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>