商丘12345 前端

WorkYSQTH.html 27KB

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