濮阳12345web

WorkDC.html 36KB

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