商丘12345 前端

Lawsuit.html 40KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  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 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. <td colspan="7" style="text-align: center;" >
  359. <botton class="btns Seach">搜索</botton>
  360. <botton class="btns Export">导出</botton>
  361. </td>
  362. </tr>
  363. </table>
  364. </div>
  365. </div>
  366. <div>
  367. <div style="width: 100%;padding: 10px;">
  368. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  369. <thead>
  370. <tr>
  371. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  372. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  373. <th data-field="DeptName" data-align="center">主办单位</th>
  374. <th data-field="OtherDeptName" data-align="center">协办单位</th>
  375. <th data-field="UserName" data-align="center">受理人</th>
  376. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  377. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  378. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  379. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  380. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  381. </tr>
  382. </thead>
  383. <tbody class="list"></tbody>
  384. </table>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. <!--下载框-->
  390. <div class="t-shade lyxz">
  391. <div class="shade_k">
  392. <div class="shade_title">
  393. <span>录音播放与下载<srong class="cknum"></srong></span>
  394. <span class="setwin gbly"><a>x</a></span>
  395. </div>
  396. <div class="shade_content">
  397. <div class="Ly_box audiojs">
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. <input type="hidden" id="PID" />
  403. <input type="hidden" id="Dpment" />
  404. </div>
  405. <script src="../js/bootstrap-select.js"></script>
  406. <script src="../js/laydate/laydate.js"></script>
  407. <script src="../My97DatePicker/WdatePicker.js"></script>
  408. <script src="../js/zTree/jquery.ztree.core.js"></script>
  409. <script src="../js/search/screen.js"></script>
  410. <script>
  411. $(document).ready(function () {
  412. var wid = helper.request.queryString("wid");
  413. if (wid) {
  414. $('#tel').val(wid);
  415. load();
  416. }
  417. laydate.render({
  418. elem: '#starttime' //指定元素
  419. ,range:'~'
  420. });
  421. load();
  422. });
  423. //关闭录音弹出
  424. $(".gbly").click(function () {
  425. $(".lyxz").removeClass("cx");
  426. $('audio')[0].pause();
  427. });
  428. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  429. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  430. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  431. });
  432. //获取查询信息
  433. function load() {
  434. //坐席
  435. var usercodeID="";
  436. var usercode_=$("#ZX").val(); //坐席
  437. if (usercode_!=null) {
  438. $(usercode_).each(function (i, n) {
  439. var obj1='';
  440. obj1= n+",";
  441. usercodeID +=obj1;
  442. })
  443. }else{
  444. usercodeID=""
  445. }
  446. // 调度员
  447. var ddusercodeID="";
  448. var ddusercode_=$("#yardman").val(); //坐席
  449. if (ddusercode_!=null) {
  450. $(ddusercode_).each(function (i, n) {
  451. var obj2='';
  452. obj2= n+",";
  453. ddusercodeID +=obj2;
  454. })
  455. }else{
  456. ddusercodeID=""
  457. }
  458. //先销毁表格
  459. $('#orderlist').bootstrapTable('destroy');
  460. //初始化表格,动态从服务器加载数据
  461. $("#orderlist").bootstrapTable({
  462. method: "get", //使用get请求到服务器获取数据
  463. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  464. contentType: "application/x-www-form-urlencoded",
  465. striped: true, //表格显示条纹
  466. pagination: true, //启动分页
  467. pageSize: 10, //每页显示的记录数
  468. pageNumber: 1, //当前第几页
  469. pageList: [10, 20, 50, 100], //记录数可选列表
  470. search: false, //是否启用查询
  471. showColumns: false, //显示下拉框勾选要显示的列
  472. showRefresh: false, //显示刷新按钮
  473. sidePagination: "server", //表示服务端请求
  474. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  475. //设置为limit可以获取limit, offset, search, sort, order
  476. queryParamsType: "undefined",
  477. queryParams: function queryParams(params) { //设置查询参数
  478. //alert(params.pageNumber)
  479. var param = {
  480. page: params.pageNumber,
  481. pagesize: params.pageSize,
  482. workid: $("#wids").val(),
  483. state: $("#state").val(), //=工单状态
  484. type: $("#type").val(), //=工单类型
  485. //bigtype: $("#bigtype").val(), //=大类别
  486. //smalltype: $("#smalltype").val(), //=小类别
  487. key: $("#key").val(), //=关键字
  488. tel: $("#tel").val(), //=客户电话
  489. name: $("#name").val(), //=客户名称
  490. usercode: usercodeID, //=坐席工号
  491. ddusercode: ddusercodeID,
  492. keyid: $("#keyid").val(), //=关键词id
  493. source: $("#source").val(), //=来源&
  494. starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
  495. endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
  496. deptid: $("#Dpment").val(),
  497. type: $("#type").val(),
  498. dealtype: $("#dealtype").val(),
  499. sourcearea:$('#sourceAreas').val(),//区域
  500. token: $.cookie("token")
  501. };
  502. return param;
  503. },
  504. onLoadSuccess: function (data) { //加载成功时执行
  505. // layer.msg("加载成功");
  506. //console.log(data);
  507. },
  508. onLoadError: function () { //加载失败时执行
  509. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  510. }
  511. });
  512. }
  513. //状态
  514. function States(val, row) {
  515. var html = '';
  516. switch (val + '') {
  517. case '0':
  518. html = '新工单';
  519. if (row.F_IsReturn == 1) {
  520. html = '新工单(回退)';
  521. }
  522. break;
  523. case '1':
  524. html = '待交办';
  525. break;
  526. case '2':
  527. html = '待查收';
  528. break;
  529. case '3':
  530. html = '退回审核中';
  531. break;
  532. case '4':
  533. html = '办理中';
  534. break;
  535. case '5':
  536. html = '延时审核';
  537. break;
  538. case '6':
  539. html = '已办理';
  540. break;
  541. case '7':
  542. html = '已回访';
  543. break;
  544. case '8':
  545. html = '重办中';
  546. break;
  547. case '9':
  548. html = '已结案';
  549. break;
  550. case '10':
  551. html = '待审核';
  552. break;
  553. case '11':
  554. html = '重办待交办';
  555. break;
  556. case '12':
  557. html = '待审核';
  558. break;
  559. case '13':
  560. html = '待督办';
  561. break;
  562. }
  563. return html;
  564. }
  565. //音频
  566. function setCode(val) {
  567. if (val) {
  568. return '<div class="imgs" style="cursor: pointer;">' +
  569. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  570. '</div>';
  571. } else {
  572. return '';
  573. }
  574. }
  575. function GetCont(val) {
  576. if (val) {
  577. var str = '<div '
  578. if (val.length > 10) {
  579. str = str + ' title="' + val + '" ';
  580. val = val.substr(0, 10) + "...";
  581. }
  582. return str + '>' + val + '</div>';
  583. } else {
  584. return '';
  585. }
  586. }
  587. //操作
  588. function Dispose(val, row) {
  589. var Rows = row.Buttons;
  590. var html = '';
  591. for (var i = 0; i < Rows.length; i++) {
  592. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  593. if (html1) {
  594. html1 = html1.replace("data", val);
  595. }
  596. html += html1;
  597. }
  598. return html;
  599. }
  600. //查看详情
  601. function ckxq(str) {
  602. layer.open({
  603. type: 2,
  604. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  605. title: '工单详情',
  606. area: ['87%', '80%'], //宽高
  607. });
  608. }
  609. //时限
  610. function OverTime(val, row) {
  611. if (val == 1) {
  612. return '<div class="" style="cursor: pointer;">' +
  613. '<span class="Greens">' + row.GapTime + '</span>' +
  614. '</div>';
  615. } else if (val == 2) {
  616. return '<div class="" style="cursor: pointer;">' +
  617. '<span class="Yellows">' + row.GapTime + '</span>' +
  618. '</div>';
  619. } else if (val == 3) {
  620. return '<div class="" style="cursor: pointer;">' +
  621. '<span class="Reds">' + row.GapTime + '</span>' +
  622. '</div>';
  623. }
  624. }
  625. //办理时限
  626. function BanTime(val) {
  627. if (val) {
  628. var time = val.substring(0, val.indexOf(' '));
  629. return '<div class="" style="cursor: pointer;">' +
  630. '<span>' + time + '</span>' +
  631. '</div>';
  632. }
  633. }
  634. //派单
  635. function pd(str) {
  636. layer.open({
  637. type: 2,
  638. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  639. title: '办理工单',
  640. area: ['87%', '80%'], //宽高
  641. });
  642. }
  643. //处理审核
  644. function auditdeal(str) {
  645. layer.open({
  646. type: 2,
  647. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  648. title: '申请延时',
  649. area: ['60%', '80%'], //宽高
  650. });
  651. }
  652. //编辑
  653. function bj(str) {
  654. layer.open({
  655. type: 2,
  656. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  657. title: '编辑工单',
  658. area: ['96%', '80%'], //宽高
  659. });
  660. }
  661. //删除
  662. function move(str) {
  663. layer.confirm('确定删除工单?', {
  664. btn: ['是', '否'] //按钮
  665. }, function () {
  666. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  667. ids: str,
  668. token: $.cookie("token")
  669. }, function (result) {
  670. result = JSON.parse(result);
  671. if (result.state.toLowerCase() == "success") {
  672. alert(str)
  673. debugger
  674. layer.msg("删除成功");
  675. $("#orderlist").bootstrapTable('refresh');
  676. }
  677. })
  678. });
  679. }
  680. //提交
  681. function tj(str) {
  682. layer.confirm('确定要提交工单么?', {
  683. btn: ['确定', '取消'] //按钮
  684. }, function () {
  685. //请求后台数据
  686. /*发送请求*/
  687. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  688. ids: str,
  689. token: $.cookie("token")
  690. }, function (result) {
  691. result = JSON.parse(result);
  692. if (result.state.toLowerCase() == "success") {
  693. layer.msg("提交成功");
  694. $("#orderlist").bootstrapTable('refresh');
  695. //load();
  696. }
  697. })
  698. });
  699. }
  700. //交办
  701. function jb(str) {
  702. layer.open({
  703. type: 2,
  704. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  705. title: '工单交办',
  706. area: ['87%', '80%'], //宽高
  707. });
  708. }
  709. //领导批示
  710. function lader(str) {
  711. layer.open({
  712. type: 2,
  713. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  714. title: '领导批示',
  715. area: ['60%', '80%'], //宽高
  716. });
  717. }
  718. //市长批示
  719. function city(str) {
  720. layer.open({
  721. type: 2,
  722. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  723. title: '市长批示',
  724. area: ['60%', '80%'], //宽高
  725. });
  726. }
  727. //办理
  728. function bl(str) {
  729. layer.open({
  730. type: 2,
  731. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  732. title: '办理工单',
  733. area: ['60%', '80%'], //宽高
  734. });
  735. }
  736. //督办
  737. function Supervision(str) {
  738. layer.open({
  739. type: 2,
  740. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  741. title: '督办',
  742. area: ['60%', '80%'], //宽高
  743. });
  744. }
  745. //督查
  746. function Supervision_(str) {
  747. layer.open({
  748. type: 2,
  749. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  750. title: '监察',
  751. area: ['60%', '80%'], //宽高
  752. });
  753. }
  754. //审核
  755. function audit(str) {
  756. layer.open({
  757. type: 2,
  758. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  759. title: '审核',
  760. area: ['60%', '80%'], //宽高
  761. });
  762. }
  763. //转督办
  764. function zdb(str) {
  765. layer.confirm('确定督办吗?', {
  766. btn: ['是', '否'] //按钮
  767. }, function () {
  768. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  769. workorderid: str,
  770. type: 1,
  771. state:0,
  772. "token": $.cookie("token")
  773. }, function(result) {
  774. result = JSON.parse(result);
  775. if(result.state.toLowerCase() == "success") {
  776. layer.msg("操作成功");
  777. //load();
  778. $("#orderlist").bootstrapTable('refresh');
  779. }
  780. })
  781. });
  782. }
  783. //不督办
  784. function ndb(str) {
  785. layer.confirm('确定督办吗?', {
  786. btn: ['是', '否'] //按钮
  787. }, function () {
  788. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  789. workorderid: str,
  790. type: 1,
  791. state:2,
  792. "token": $.cookie("token")
  793. }, function(result) {
  794. result = JSON.parse(result);
  795. if(result.state.toLowerCase() == "success") {
  796. layer.msg("操作成功");
  797. //load();
  798. $("#orderlist").bootstrapTable('refresh');
  799. }
  800. })
  801. });
  802. }
  803. //强制结案
  804. function StrongLawsuit(str) {
  805. layer.open({
  806. type: 2,
  807. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  808. title: '强制结案',
  809. area: ['60%', '80%'], //宽高
  810. });
  811. }
  812. //回退BackDtail
  813. function BackDtail(str) {
  814. layer.open({
  815. type: 2,
  816. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  817. title: '工单回退',
  818. area: ['60%', '80%'], //宽高
  819. });
  820. }
  821. //查收
  822. function cs(str) {
  823. layer.confirm('确定要查收?', {
  824. btn: ['是', '否'] //按钮
  825. }, function () {
  826. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  827. workorderid: str,
  828. token: $.cookie("token")
  829. }, function (result) {
  830. result = JSON.parse(result);
  831. if (result.state.toLowerCase() == "success") {
  832. layer.msg("查收成功");
  833. //load();
  834. $("#orderlist").bootstrapTable('refresh');
  835. }
  836. })
  837. });
  838. }
  839. //收回
  840. function sh(str) {
  841. layer.confirm('确定要回收?', {
  842. btn: ['是', '否'] //按钮
  843. }, function () {
  844. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  845. workorderid: str,
  846. token: $.cookie("token")
  847. }, function (result) {
  848. result = JSON.parse(result);
  849. if (result.state.toLowerCase() == "success") {
  850. layer.msg("回收");
  851. //load();
  852. $("#orderlist").bootstrapTable('refresh');
  853. }
  854. })
  855. });
  856. }
  857. //强制回收
  858. function recycles() {
  859. layer.confirm('确定要强制退回吗?', {
  860. btn: ['是', '否'] //按钮
  861. });
  862. }
  863. //退回申请
  864. function th(str) {
  865. layer.open({
  866. type: 2,
  867. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  868. title: '申请退回工单',
  869. area: ['60%', '80%'], //宽高
  870. });
  871. }
  872. //审核退回申请
  873. function shth(str) {
  874. layer.open({
  875. type: 2,
  876. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  877. title: '审核退回申请',
  878. area: ['60%', '80%'], //宽高
  879. });
  880. }
  881. //申请延时
  882. function ys(str) {
  883. layer.open({
  884. type: 2,
  885. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  886. title: '申请延时',
  887. area: ['60%', '80%'], //宽高
  888. });
  889. }
  890. //审核申请延时
  891. function shys(str) {
  892. layer.open({
  893. type: 2,
  894. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  895. title: '审核延时申请',
  896. area: ['60%', '80%'], //宽高
  897. });
  898. }
  899. //诉求回访
  900. function hf(str) {
  901. layer.open({
  902. type: 2,
  903. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  904. title: '工单回访',
  905. area: ['60%', '80%'], //宽高
  906. });
  907. }
  908. //重办工单
  909. function cb(str) {
  910. layer.open({
  911. type: 2,
  912. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  913. title: '重办工单',
  914. area: ['60%', '80%'], //宽高
  915. });
  916. }
  917. //提交重办
  918. function bhcb(str) {
  919. //回退BackDtail
  920. layer.open({
  921. type: 2,
  922. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  923. title: '驳回重办',
  924. area: ['60%', '80%'], //宽高
  925. });
  926. }
  927. //提交重办
  928. function tjcb(str) {
  929. layer.confirm('确认提交重办吗?', {
  930. btn: ['是', '否'] //按钮
  931. }, function () {
  932. $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  933. ids: str,
  934. "token": $.cookie("token")
  935. }, function(result) {
  936. result = JSON.parse(result);
  937. if(result.state.toLowerCase() == "success") {
  938. layer.msg("操作成功");
  939. //load();
  940. $("#orderlist").bootstrapTable('refresh');
  941. }
  942. })
  943. });
  944. }
  945. //结案
  946. function Lawsuit(str) {
  947. layer.open({
  948. type: 2,
  949. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  950. title: '诉求单结案',
  951. area: ['60%', '80%'], //宽高
  952. });
  953. }
  954. //上传文件
  955. function upload() {
  956. if (document.getElementById("upFile").files.length > 0) {
  957. var formData = new FormData();
  958. formData.append("upFile", document.getElementById("upFile").files[0]);
  959. formData.append("token", $.cookie("token"));
  960. $.ajax({
  961. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  962. type: "POST",
  963. data: formData,
  964. /**
  965. *必须false才会自动加上正确的Content-Type
  966. */
  967. contentType: false,
  968. /**
  969. * 必须false才会避开jQuery对 formdata 的默认处理
  970. * XMLHttpRequest会对 formdata 进行正确的处理
  971. */
  972. processData: false,
  973. success: function (result) {
  974. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  975. $("#upFile").change(function () {
  976. upload();
  977. });
  978. var r = $.parseJSON(result);
  979. if (r.state.toLowerCase() == "success") {
  980. $(".fjnr").text(r.data);
  981. $("#scfj").show();
  982. }
  983. }
  984. });
  985. } else {
  986. layer.confirm('请上传文件!', {
  987. btn: ['确定']
  988. });
  989. }
  990. }
  991. //来源
  992. function LY(obj) {
  993. obj.empty();
  994. obj.append('<option selected="selected" value="">请选择</option>');
  995. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  996. "token": $.cookie("token"),
  997. id: 1
  998. }, function (data) {
  999. if (data.state.toLowerCase() == "success") {
  1000. var content = data.data;
  1001. $(content).each(function (i, n) {
  1002. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  1003. })
  1004. }
  1005. })
  1006. }
  1007. //类别
  1008. function LB(obj) {
  1009. obj.empty();
  1010. obj.append('<option selected="selected" value="">请选择</option>');
  1011. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1012. "token": $.cookie("token"),
  1013. id: 2
  1014. }, function (data) {
  1015. if (data.state.toLowerCase() == "success") {
  1016. var content = data.data;
  1017. $(content).each(function (i, n) {
  1018. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  1019. })
  1020. }
  1021. })
  1022. }
  1023. // 主题
  1024. function ZT(obj) {
  1025. obj.empty();
  1026. obj.append('<option selected="selected" value="">请选择</option>');
  1027. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1028. "token": $.cookie("token"),
  1029. id: 3
  1030. }, function (data) {
  1031. if (data.state.toLowerCase() == "success") {
  1032. var content = data.data;
  1033. $(content).each(function (i, n) {
  1034. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  1035. })
  1036. }
  1037. })
  1038. }
  1039. function tree() {
  1040. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  1041. "token": $.cookie("token"),
  1042. // "pid": pid
  1043. }, function (result) {
  1044. result = $.parseJSON(result);
  1045. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  1046. });
  1047. }
  1048. var setting1 = {
  1049. data: {
  1050. key: {
  1051. name: "F_DeptName"
  1052. },
  1053. simpleData: {
  1054. enable: true,
  1055. idKey: "F_DeptId",
  1056. pIdKey: "F_PartentId",
  1057. rootPId: 0
  1058. }
  1059. },
  1060. callback: {
  1061. onClick: zTreeOnClick
  1062. }
  1063. };
  1064. function zTreeOnClick(event, treeId, treeNode) {
  1065. if (treeNode.level >= 2) {
  1066. $('.inps').val(treeNode.F_DeptName);
  1067. $("#PID").val(treeNode.F_DeptId);
  1068. $("#Dpment").val(treeNode.F_DeptId);
  1069. $(".Cleans").show();
  1070. }
  1071. };
  1072. function Close() {
  1073. $(".lyxz").removeClass("cx");
  1074. if ($('audio').length > 0) {
  1075. $('audio')[0].pause();
  1076. }
  1077. }
  1078. </script>
  1079. </body>
  1080. </html>