Bez popisu

haveDoneToAuditMarketing.html 44KB

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