商丘12345 前端

WorkYSQYS.html 27KB

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