商丘12345 前端

WorkYBL_zlei.html 36KB

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