商丘12345 前端

Lawsuit.html 41KB

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