永城市12345 (县级市)- 来源于虞城县12345 - 所有县级统一API

Lawsuit.html 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>工单查询</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <style>
  11. #sqzx th {
  12. padding: 5px 8px 5px 0;
  13. text-align: right;
  14. }
  15. .select {
  16. width: 150px;
  17. background-color: #FFF;
  18. background-image: none;
  19. border: 1px solid #ccc;
  20. border-radius: 1px;
  21. color: inherit;
  22. padding: 6px 12px;
  23. }
  24. #sex {
  25. background-color: #FFF;
  26. background-image: none;
  27. border: 1px solid #ccc;
  28. border-radius: 1px;
  29. color: inherit;
  30. padding: 6px 12px;
  31. }
  32. input {
  33. background-color: #FFF;
  34. background-image: none;
  35. border: 1px solid #ccc;
  36. border-radius: 1px;
  37. color: inherit;
  38. padding: 6px 12px;
  39. }
  40. #sqzx td {
  41. padding: 6px 0 5px 10px;
  42. }
  43. .lxr ul li {
  44. float: left;
  45. list-style: none;
  46. width: 30%;
  47. margin-bottom: 5px;
  48. padding-top: 10px;
  49. }
  50. .clearFix:after {
  51. content: "";
  52. display: block;
  53. clear: both;
  54. }
  55. .form-group {
  56. padding-left: 40px;
  57. margin-bottom: 0;
  58. }
  59. textarea {
  60. height: 70px;
  61. border: 1px solid #ccc;
  62. border-radius: 1px;
  63. width: 50%;
  64. resize: none;
  65. }
  66. .textarea_box {
  67. margin-top: 10px;
  68. }
  69. .box_content {
  70. border-bottom: 1px solid #ccc;
  71. }
  72. .tj_content {
  73. border: 1px solid #e6e6e6;
  74. border-radius: 5px;
  75. }
  76. .t-shade {
  77. position: fixed;
  78. top: 0;
  79. left: 0;
  80. width: 100%;
  81. height: 100%;
  82. background: rgba(0, 0, 0, 0.48);
  83. z-index: 10004;
  84. display: none;
  85. }
  86. .lyxz .shade_k {
  87. height: 100px;
  88. z-index: 10005;
  89. width: 60%;
  90. background-color: #fff;
  91. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  92. border-radius: 5px;
  93. }
  94. .shade_title {
  95. padding: 0 80px 0 20px;
  96. height: 42px;
  97. line-height: 42px;
  98. border-bottom: 1px solid #eee;
  99. font-size: 16px;
  100. color: #FFFFFF;
  101. overflow: hidden;
  102. background-color: #00a1cb;
  103. border-radius: 2px 2px 0 0;
  104. position: relative;
  105. border-top-left-radius: 5px;
  106. border-top-right-radius: 5px;
  107. }
  108. .cx {
  109. display: block;
  110. }
  111. .setwin {
  112. position: absolute;
  113. right: 15px;
  114. top: 5px;
  115. font-size: 0;
  116. line-height: initial;
  117. }
  118. .setwin a {
  119. position: relative;
  120. width: 16px;
  121. height: 16px;
  122. font-size: 20px;
  123. color: #fff;
  124. }
  125. .xg i {
  126. font-size: 16px;
  127. }
  128. .hidens {
  129. display: none;
  130. }
  131. .inpBox {
  132. border: 1px solid #e5e6e7;
  133. height: 34px;
  134. width: 220px;
  135. display: inline-block;
  136. position: relative;
  137. vertical-align: middle;
  138. }
  139. .selDpart1{
  140. position: absolute;
  141. z-index: 11111;
  142. width: 220px;
  143. line-height: 30px;
  144. background: #FFFFFF;
  145. display: none;
  146. }
  147. #sponsor{
  148. width: 218px;
  149. border: 1px solid #00a1cb;
  150. margin: 0;
  151. padding: 0;
  152. list-style: none;
  153. max-height: 212px;
  154. overflow-x: hidden;
  155. overflow-y: scroll;
  156. }
  157. #sponsor li{
  158. margin: 0;
  159. padding-left: 10px;
  160. width: 220px;
  161. height: 30px;
  162. line-height: 30px;
  163. list-style: none;
  164. }
  165. #sponsor li:hover{
  166. background: #00a1cb;
  167. }
  168. .addTree {
  169. background: #fff;
  170. position: absolute;
  171. width: 100%;
  172. border: 1px solid #e5e6e7;
  173. right: 0;
  174. top: 33px;
  175. display: none;
  176. z-index: 222;
  177. }
  178. .xl {
  179. display: inline-block;
  180. background: url(../../img/dropDown.png) no-repeat;
  181. height: 100%;
  182. background-position: center center;
  183. width: 20px;
  184. position: absolute;
  185. right: 0;
  186. top: 0px;
  187. /* background-color: #f7bc8b; */
  188. cursor: pointer;
  189. }
  190. .ztree li span {
  191. border: none;
  192. padding: 0;
  193. }
  194. .inps {
  195. width: 217px;
  196. height: 32px;
  197. outline: none;
  198. border: 0;
  199. border-image-width: 0;
  200. padding: 0;
  201. padding-left: 3px;
  202. }
  203. .xl {
  204. display: inline-block;
  205. background: url(../img/dropDown.png) no-repeat;
  206. height: 100%;
  207. background-position: center center;
  208. width: 20px;
  209. position: absolute;
  210. right: 0;
  211. top: 0px;
  212. /* background-color: #f7bc8b; */
  213. cursor: pointer;
  214. }
  215. .Cleans{
  216. display: inline-block;
  217. width: 20px;
  218. position: absolute;
  219. right: 21px;
  220. top: 9px;
  221. display: none;
  222. }
  223. .Min-width{
  224. width: 150px;
  225. }
  226. </style>
  227. </head>
  228. <body class="gray-bg">
  229. <div class="daoHang clearfix">
  230. <div class="dhLeft">
  231. <sapn>
  232. <i class="syIcon"></i>位置:
  233. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  234. <a href="javaScript:;">工单处理</a>&gt;
  235. <a class="nowPosition">查询工单</a>
  236. </sapn>
  237. </div>
  238. <div class="dhRight">
  239. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  240. </div>
  241. </div>
  242. <div class="wrapper wrapper-content">
  243. <div class="th-top clearfix">
  244. <div class="form-inline th-bar clearfix">
  245. <div class="time-box form-group" >
  246. <i class="tub fa fa-search"></i>
  247. <input class="form-control" type="text" id="key" placeholder="请输入标题关键字"/>
  248. </div>
  249. <div class="time-box form-group" >
  250. <i class="tub fa fa-search"></i>
  251. <input class="form-control" type="text" id="wids" placeholder="请输入工单号"/>
  252. </div>
  253. <div class="time-box form-group" >
  254. <i class="tub fa fa-calendar"></i>
  255. <input class="form-control" type="text" id="startTime" placeholder="起始时间">
  256. </div>
  257. <div class="time-box form-group" >
  258. <select class="dataType form-control" id="state">
  259. <option value="">请选择工单状态</option>
  260. <option value="0">新工单</option>
  261. <option value="1">待交办</option>
  262. <option value="2">待查收</option>
  263. <option value="3">退回审核中</option>
  264. <option value="4">办理中</option>
  265. <option value="5">延时审核中</option>
  266. <option value="6">已办理</option>
  267. <option value="7">已回访</option>
  268. <option value="8">重办中</option>
  269. <option value="9">已结案</option>
  270. </select>
  271. </div>
  272. <div class="time-box form-group" >
  273. <select class=" dataType form-control" id="source">
  274. </select>
  275. </div>
  276. <div class="time-box form-group" >
  277. <select class="dataType form-control" id="keyid">
  278. </select>
  279. </div>
  280. <div class="time-box form-group" >
  281. <i class="tub fa fa-search"></i>
  282. <input class="form-control" type="text" id="tel" placeholder="请输入投诉电话"/>
  283. </div>
  284. <div class="time-box form-group" >
  285. <i class="tub fa fa-search"></i>
  286. <input class="form-control" type="text" id="name" placeholder="请输入投诉人"/>
  287. </div>
  288. <div class="time-box form-group" >
  289. <div class="inpBox">
  290. <input type="text" class="inps" placeholder="请选择主办单位" onkeyup="darptSearch()" />
  291. <i class="Cleans fa fa-close"></i>
  292. <i class="xl xl_one"></i>
  293. <div class="addTree xlAdd">
  294. <ul id="addTreeDemo" class="ztree">
  295. </ul>
  296. </div>
  297. </div>
  298. <div class="selDpart1">
  299. <ul id="sponsor">
  300. </ul>
  301. </div>
  302. </div>
  303. <div class="time-box form-group" >
  304. <select class="form-control" id="dealtype">
  305. <option value="">请选择处理类型</option>
  306. <option value="0">网络转派</option>
  307. <option value="1">当即办理</option>
  308. </select>
  309. </div>
  310. <div class="time-box form-group" >
  311. <select class="form-control" id="ZX">
  312. </select>
  313. </div>
  314. <div class="time-box form-group" >
  315. <select class="form-control" id="type">
  316. </select>
  317. </div>
  318. <div class="form-group tool_bars pull-right">
  319. <botton class="btns Seach">搜索</botton>
  320. </div>
  321. </div>
  322. </div>
  323. <div style="padding: 10px;" class="tj_content clearFix">
  324. <div>
  325. <div style="width: 100%;padding: 10px;">
  326. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  327. <thead>
  328. <tr>
  329. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  330. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  331. <th data-field="DeptName" data-align="center">主办单位</th>
  332. <th data-field="OtherDeptName" data-align="center">协办单位</th>
  333. <th data-field="UserName" data-align="center">受理人</th>
  334. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  335. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  336. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  337. </tr>
  338. </thead>
  339. <tbody class="list"></tbody>
  340. </table>
  341. </div>
  342. </div>
  343. </div>
  344. <!--下载框-->
  345. <div class="t-shade lyxz">
  346. <div class="shade_k">
  347. <div class="shade_title">
  348. <span>录音播放与下载<srong class="cknum"></srong></span>
  349. <span class="setwin gbly"><a>x</a></span>
  350. </div>
  351. <div class="shade_content">
  352. <div class="Ly_box audiojs">
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. <input type="hidden" id="PID" />
  358. <input type="hidden" id="Dpment" />
  359. </div>
  360. <script src="../js/laydate/laydate.js"></script>
  361. <script src="../My97DatePicker/WdatePicker.js"></script>
  362. <script src="../js/zTree/jquery.ztree.core.js"></script>
  363. <script src="../js/search/screen.js"></script>
  364. <script>
  365. $(document).ready(function() {
  366. var wid = helper.request.queryString("wid");
  367. if(wid){
  368. $('#tel').val(wid);
  369. load();
  370. }
  371. load();
  372. LY($("#source"));
  373. LB($("#type"));
  374. ZT($("#keyid"));
  375. ZX($("#ZX"));
  376. tree();
  377. laydate.render({
  378. elem: '#startTime',
  379. range: '~',
  380. theme: '#00a1cb',
  381. });
  382. ///搜素
  383. $(".Seach").click(function() {
  384. load();
  385. })
  386. //所属分类下拉
  387. $('.inps').click(function() {
  388. $('.xlAdd').css('display', 'block')
  389. })
  390. $('.xl').click(function() {
  391. if($('.xlAdd').css('display') == 'block') {
  392. $('.xlAdd').css('display', 'none')
  393. } else {
  394. $('.xlAdd').css('display', 'block')
  395. }
  396. })
  397. $('.addTree').mouseleave(function() {
  398. $(this).css('display', 'none')
  399. })
  400. //清除
  401. $(".Cleans ").click(function(){
  402. $('.inps').val("");
  403. $("#PID").val("");
  404. $("#Dpment").val("");
  405. })
  406. });
  407. //关闭录音弹出
  408. $(".gbly").click(function() {
  409. $(".lyxz").removeClass("cx");
  410. $('audio')[0].pause();
  411. });
  412. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  413. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  414. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  415. });
  416. //获取查询信息
  417. function load() {
  418. //先销毁表格
  419. $('#orderlist').bootstrapTable('destroy');
  420. //初始化表格,动态从服务器加载数据
  421. $("#orderlist").bootstrapTable({
  422. method: "get", //使用get请求到服务器获取数据
  423. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  424. contentType: "application/x-www-form-urlencoded",
  425. striped: true, //表格显示条纹
  426. pagination: true, //启动分页
  427. pageSize: 10, //每页显示的记录数
  428. pageNumber: 1, //当前第几页
  429. pageList: [10, 20, 50, 100], //记录数可选列表
  430. search: false, //是否启用查询
  431. showColumns: false, //显示下拉框勾选要显示的列
  432. showRefresh: false, //显示刷新按钮
  433. sidePagination: "server", //表示服务端请求
  434. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  435. //设置为limit可以获取limit, offset, search, sort, order
  436. queryParamsType: "undefined",
  437. queryParams: function queryParams(params) { //设置查询参数
  438. var param = {
  439. page: params.pageNumber,
  440. pagesize: params.pageSize,
  441. workid: $("#wids").val(),
  442. state: $("#state").val(), //=工单状态
  443. type: $("#type").val(), //=工单类型
  444. bigtype: $("#bigtype").val(), //=大类别
  445. smalltype: $("#smalltype").val(), //=小类别
  446. key: $("#key").val(), //=关键字
  447. tel: $("#tel").val(), //=客户电话
  448. name: $("#name").val(), //=客户名称
  449. usercode: $("#ZX").val(), //=坐席工号
  450. keyid: $("#keyid").val(), //=关键词id
  451. source: $("#source").val(), //=来源&
  452. starttime: $('#startTime').val() && $('#startTime').val().split('~')[0], //=开始时间
  453. endtime: $('#startTime').val() && $('#startTime').val().split('~')[1], //=结束时间
  454. deptid:$("#PID").val(),
  455. type:$("#type").val(),
  456. dealtype:$("#dealtype").val(),
  457. token: $.cookie("token")
  458. };
  459. return param;
  460. },
  461. onLoadSuccess: function(data) { //加载成功时执行
  462. // layer.msg("加载成功");
  463. //console.log(data);
  464. },
  465. onLoadError: function() { //加载失败时执行
  466. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  467. }
  468. });
  469. }
  470. //状态
  471. function States(val, row) {
  472. var html = '';
  473. switch(val + '') {
  474. case '0':
  475. html = '新工单';
  476. if(row.F_IsReturn == 1) {
  477. html = '新工单(回退)';
  478. }
  479. break;
  480. case '1':
  481. html = '待交办';
  482. break;
  483. case '2':
  484. html = '待查收';
  485. break;
  486. case '3':
  487. html = '退回审核中';
  488. break;
  489. case '4':
  490. html = '办理中';
  491. break;
  492. case '5':
  493. html = '延时审核';
  494. break;
  495. case '6':
  496. html = '已办理';
  497. break;
  498. case '7':
  499. html = '已回访';
  500. break;
  501. case '8':
  502. html = '重办中';
  503. break;
  504. case '9':
  505. html = '已结案';
  506. break;
  507. }
  508. return html;
  509. }
  510. //音频
  511. function setCode(val) {
  512. if(val) {
  513. return '<div class="imgs" style="cursor: pointer;">' +
  514. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  515. '</div>';
  516. } else {
  517. return '';
  518. }
  519. }
  520. function GetCont(val) {
  521. if(val) {
  522. var str = '<div '
  523. if(val.length > 10) {
  524. str = str + ' title="' + val + '" ';
  525. val = val.substr(0, 10) + "...";
  526. }
  527. return str + '>' + val + '</div>';
  528. } else {
  529. return '';
  530. }
  531. }
  532. //操作
  533. function Dispose(val, row) {
  534. var Rows = row.Buttons;
  535. var html = '';
  536. for(var i = 0; i < Rows.length; i++) {
  537. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  538. if(html1) {
  539. html1 = html1.replace("data", val);
  540. }
  541. html += html1;
  542. }
  543. return html;
  544. }
  545. //查看详情
  546. function ckxq(str) {
  547. layer.open({
  548. type: 2,
  549. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  550. title: '工单详情',
  551. area: ['87%', '80%'], //宽高
  552. });
  553. }
  554. //编辑
  555. function bj(str) {
  556. layer.open({
  557. type: 2,
  558. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  559. title: '编辑工单',
  560. area: ['96%', '80%'], //宽高
  561. });
  562. }
  563. //删除
  564. function move(str) {
  565. layer.confirm('确定删除工单?', {
  566. btn: ['是', '否'] //按钮
  567. }, function() {
  568. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  569. ids: str,
  570. token: $.cookie("token")
  571. }, function(result) {
  572. result = JSON.parse(result);
  573. if(result.state.toLowerCase() == "success") {
  574. layer.msg("删除成功");
  575. load();
  576. }
  577. })
  578. });
  579. }
  580. //提交
  581. function tj(str) {
  582. layer.confirm('确定要提交工单么?', {
  583. btn: ['确定', '取消'] //按钮
  584. }, function() {
  585. //请求后台数据
  586. /*发送请求*/
  587. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  588. ids: str,
  589. token: $.cookie("token")
  590. }, function(result) {
  591. result = JSON.parse(result);
  592. if(result.state.toLowerCase() == "success") {
  593. layer.msg("提交成功");
  594. load();
  595. }
  596. })
  597. });
  598. }
  599. //交办
  600. function jb(str) {
  601. layer.open({
  602. type: 2,
  603. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  604. title: '工单交办',
  605. area: ['87%', '80%'], //宽高
  606. });
  607. }
  608. //领导批示
  609. function lader(str) {
  610. layer.open({
  611. type: 2,
  612. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  613. title: '领导批示',
  614. area: ['60%', '80%'], //宽高
  615. });
  616. }
  617. //市长批示
  618. function city(str) {
  619. layer.open({
  620. type: 2,
  621. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  622. title: '市长批示',
  623. area: ['60%', '80%'], //宽高
  624. });
  625. }
  626. //办理
  627. function bl(str) {
  628. layer.open({
  629. type: 2,
  630. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  631. title: '办理工单',
  632. area: ['60%', '80%'], //宽高
  633. });
  634. }
  635. //督办
  636. function Supervision(str) {
  637. layer.open({
  638. type: 2,
  639. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  640. title: '督办',
  641. area: ['60%', '80%'], //宽高
  642. });
  643. }
  644. //督查
  645. function Supervision_(str) {
  646. layer.open({
  647. type: 2,
  648. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  649. title: '监察',
  650. area: ['60%', '80%'], //宽高
  651. });
  652. }
  653. //强制结案
  654. function StrongLawsuit(str) {
  655. layer.open({
  656. type: 2,
  657. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  658. title: '强制结案',
  659. area: ['60%', '80%'], //宽高
  660. });
  661. }
  662. //回退BackDtail
  663. function BackDtail(str) {
  664. layer.open({
  665. type: 2,
  666. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  667. title: '工单回退',
  668. area: ['60%', '80%'], //宽高
  669. });
  670. }
  671. //查收
  672. function cs(str) {
  673. layer.confirm('确定要查收?', {
  674. btn: ['是', '否'] //按钮
  675. }, function() {
  676. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  677. workorderid: str,
  678. token: $.cookie("token")
  679. }, function(result) {
  680. result = JSON.parse(result);
  681. if(result.state.toLowerCase() == "success") {
  682. layer.msg("查收成功");
  683. load();
  684. }
  685. })
  686. });
  687. }
  688. //收回
  689. function sh(str) {
  690. layer.confirm('确定要回收?', {
  691. btn: ['是', '否'] //按钮
  692. }, function() {
  693. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  694. workorderid: str,
  695. token: $.cookie("token")
  696. }, function(result) {
  697. result = JSON.parse(result);
  698. if(result.state.toLowerCase() == "success") {
  699. layer.msg("回收");
  700. load();
  701. }
  702. })
  703. });
  704. }
  705. //强制回收
  706. function recycles() {
  707. layer.confirm('确定要强制退回吗?', {
  708. btn: ['是', '否'] //按钮
  709. });
  710. }
  711. //退回申请
  712. function th(str) {
  713. layer.open({
  714. type: 2,
  715. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  716. title: '申请退回工单',
  717. area: ['60%', '80%'], //宽高
  718. });
  719. }
  720. //审核退回申请
  721. function shth(str) {
  722. layer.open({
  723. type: 2,
  724. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  725. title: '审核退回申请',
  726. area: ['60%', '80%'], //宽高
  727. });
  728. }
  729. //办理
  730. // function th(str) {
  731. // layer.open({
  732. // type: 2,
  733. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  734. // title: '办理工单',
  735. // area: ['35%', '30%'], //宽高
  736. // });
  737. // }
  738. //申请延时
  739. function ys(str) {
  740. layer.open({
  741. type: 2,
  742. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  743. title: '申请延时',
  744. area: ['60%', '80%'], //宽高
  745. });
  746. }
  747. //审核申请延时
  748. function shys(str) {
  749. layer.open({
  750. type: 2,
  751. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  752. title: '审核延时申请',
  753. area: ['60%', '80%'], //宽高
  754. });
  755. }
  756. //诉求回访
  757. function hf(str) {
  758. layer.open({
  759. type: 2,
  760. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  761. title: '工单回访',
  762. area: ['60%', '80%'], //宽高
  763. });
  764. }
  765. //重办工单
  766. function cb(str) {
  767. layer.open({
  768. type: 2,
  769. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  770. title: '重办工单',
  771. area: ['60%', '80%'], //宽高
  772. });
  773. }
  774. //结案
  775. function Lawsuit(str) {
  776. layer.open({
  777. type: 2,
  778. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  779. title: '诉求单结案',
  780. area: ['60%', '80%'], //宽高
  781. });
  782. }
  783. //上传文件
  784. function upload() {
  785. if(document.getElementById("upFile").files.length > 0) {
  786. var formData = new FormData();
  787. formData.append("upFile", document.getElementById("upFile").files[0]);
  788. formData.append("token", $.cookie("token"));
  789. $.ajax({
  790. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  791. type: "POST",
  792. data: formData,
  793. /**
  794. *必须false才会自动加上正确的Content-Type
  795. */
  796. contentType: false,
  797. /**
  798. * 必须false才会避开jQuery对 formdata 的默认处理
  799. * XMLHttpRequest会对 formdata 进行正确的处理
  800. */
  801. processData: false,
  802. success: function(result) {
  803. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  804. $("#upFile").change(function() {
  805. upload();
  806. });
  807. var r = $.parseJSON(result);
  808. if(r.state.toLowerCase() == "success") {
  809. $(".fjnr").text(r.data);
  810. $("#scfj").show();
  811. }
  812. }
  813. });
  814. } else {
  815. layer.confirm('请上传文件!', {
  816. btn: ['确定']
  817. });
  818. }
  819. }
  820. //来源
  821. function LY(obj) {
  822. obj.empty();
  823. obj.append('<option selected="selected" value="">请选择工单来源</option>');
  824. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  825. "token": $.cookie("token"),
  826. id: 1
  827. }, function(data) {
  828. if(data.state.toLowerCase() == "success") {
  829. var content = data.data;
  830. $(content).each(function(i, n) {
  831. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  832. })
  833. }
  834. })
  835. }
  836. //类别
  837. function LB(obj) {
  838. obj.empty();
  839. obj.append('<option selected="selected" value="">请选择类型</option>');
  840. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  841. "token": $.cookie("token"),
  842. id: 2
  843. }, function(data) {
  844. if(data.state.toLowerCase() == "success") {
  845. var content = data.data;
  846. $(content).each(function(i, n) {
  847. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  848. })
  849. }
  850. })
  851. }
  852. // 主题
  853. function ZT(obj) {
  854. obj.empty();
  855. obj.append('<option selected="selected" value="">请选择主题词</option>');
  856. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  857. "token": $.cookie("token"),
  858. id: 3
  859. }, function(data) {
  860. if(data.state.toLowerCase() == "success") {
  861. var content = data.data;
  862. $(content).each(function(i, n) {
  863. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  864. })
  865. }
  866. })
  867. }
  868. ///坐席
  869. function ZX(obj) {
  870. obj.empty();
  871. obj.append('<option selected="selected" value="">请选择坐席</option>');
  872. $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  873. "token": $.cookie("token"),
  874. }, function(data) {
  875. if(data.state.toLowerCase() == "success") {
  876. var content = data.data;
  877. $(content).each(function(i, n) {
  878. $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
  879. })
  880. }
  881. })
  882. }
  883. function tree() {
  884. $.get(huayi.config.callcenter_url + 'Department/GetSecondDeptList', {
  885. "token": $.cookie("token"),
  886. "iscbdw": 1
  887. }, function(result) {
  888. result = $.parseJSON(result);
  889. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  890. });
  891. }
  892. var setting1 = {
  893. data: {
  894. key: {
  895. name: "F_DeptName"
  896. },
  897. simpleData: {
  898. enable: true,
  899. idKey: "F_DeptId",
  900. pIdKey: "F_PartentId",
  901. rootPId: 0
  902. }
  903. },
  904. callback: {
  905. onClick: zTreeOnClick
  906. }
  907. };
  908. function zTreeOnClick(event, treeId, treeNode) {
  909. if(treeNode.level == 2) {
  910. $('.inps').val(treeNode.F_DeptName);
  911. $("#PID").val(treeNode.F_DeptId);
  912. $("#Dpment").val(treeNode.F_DeptName);
  913. $(".Cleans").show();
  914. }
  915. };
  916. </script>
  917. </body>
  918. </html>