暫無描述

haveAduitMarketing.html 46KB

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