Geen omschrijving

haveAduitMarketing.html 45KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078
  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" onkeyup="darptSearch()" />
  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. $(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. return param;
  351. },
  352. onLoadSuccess: function (data) {
  353. //加载成功时执行
  354. // layer.msg("加载成功");
  355. //console.log(data);
  356. },
  357. onLoadError: function () {
  358. //加载失败时执行
  359. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  360. },
  361. });
  362. }
  363. //状态
  364. function States(val, row) {
  365. var html = "";
  366. switch (val + "") {
  367. case "0":
  368. html = "新工单";
  369. if (row.F_IsReturn == 1) {
  370. html = "新工单(回退)";
  371. }
  372. break;
  373. case "1":
  374. html = "待交办";
  375. break;
  376. case "2":
  377. html = '<span style="color:#FF0000;">待查收</span>';
  378. break;
  379. case "3":
  380. html = "退回审核中";
  381. break;
  382. case "4":
  383. html = "办理中";
  384. break;
  385. case "5":
  386. html = "延时审核";
  387. break;
  388. case "6":
  389. html = "已办理";
  390. break;
  391. case "7":
  392. html = "已回访";
  393. break;
  394. case "8":
  395. html = "重办中";
  396. break;
  397. case "9":
  398. html = "已结案";
  399. break;
  400. case "10":
  401. html = "待审核";
  402. break;
  403. case "11":
  404. html = "重办待交办";
  405. break;
  406. // case '12':
  407. // html = '待审核';
  408. // break;
  409. case "13":
  410. html = "重办驳回";
  411. break;
  412. }
  413. return html;
  414. }
  415. //音频
  416. function setCode(val) {
  417. if (val) {
  418. return (
  419. '<div class="imgs" style="cursor: pointer;">' +
  420. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  421. val +
  422. '" />' +
  423. "</div>"
  424. );
  425. } else {
  426. return "";
  427. }
  428. }
  429. //编号
  430. function serialNumber(val, row, index) {
  431. return index + 1;
  432. }
  433. function GetCont(val) {
  434. if (val) {
  435. var str = "<div ";
  436. if (val.length > 10) {
  437. str = str + ' title="' + val + '" ';
  438. val = val.substr(0, 10) + "...";
  439. }
  440. return str + ">" + val + "</div>";
  441. } else {
  442. return "";
  443. }
  444. }
  445. //操作
  446. function Dispose(val, row) {
  447. var Rows = row.Buttons;
  448. var html = "";
  449. for (var i = 0; i < Rows.length; i++) {
  450. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  451. if (html1) {
  452. html1 = html1.replace("data", val);
  453. html1 = html1.replace("isProtect", row.F_IsProtect);
  454. html1 = html1.replace("row", row.F_MainDeptId);
  455. }
  456. bl
  457. html += html1;
  458. }
  459. return html;
  460. }
  461. //查看详情
  462. function ckxq(str) {
  463. layer.open({
  464. type: 2,
  465. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  466. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  467. title: "工单详情",
  468. area: ["100%", "100%"], //宽高
  469. });
  470. }
  471. //时限
  472. function OverTime(val, row) {
  473. if (val == 1) {
  474. return (
  475. '<div class="" style="cursor: pointer;">' +
  476. '<span class="Greens">' +
  477. row.GapTime +
  478. "</span>" +
  479. "</div>"
  480. );
  481. } else if (val == 2) {
  482. return (
  483. '<div class="" style="cursor: pointer;">' +
  484. '<span class="Yellows">' +
  485. row.GapTime +
  486. "</span>" +
  487. "</div>"
  488. );
  489. } else if (val == 3) {
  490. return (
  491. '<div class="" style="cursor: pointer;">' +
  492. '<span class="Reds">' +
  493. row.GapTime +
  494. "</span>" +
  495. "</div>"
  496. );
  497. }
  498. }
  499. //办理时限
  500. function BanTime(val) {
  501. if (val) {
  502. var time = val.substring(0, val.indexOf(" "));
  503. return (
  504. '<div class="" style="cursor: pointer;">' +
  505. "<span>" +
  506. time +
  507. "</span>" +
  508. "</div>"
  509. );
  510. }
  511. }
  512. //派单
  513. function pd(str) {
  514. layer.open({
  515. type: 2,
  516. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  517. title: "办理工单",
  518. area: ["87%", "80%"], //宽高
  519. });
  520. }
  521. //处理审核
  522. function auditdeal(str) {
  523. layer.open({
  524. type: 2,
  525. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  526. title: "处理审核",
  527. area: ["80%", "80%"], //宽高
  528. });
  529. }
  530. //编辑
  531. function bj(str) {
  532. layer.open({
  533. type: 2,
  534. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  535. title: "编辑工单",
  536. area: ["96%", "80%"], //宽高
  537. });
  538. }
  539. //删除
  540. function move(str) {
  541. layer.confirm(
  542. "确定删除工单?", {
  543. btn: ["是", "否"], //按钮
  544. },
  545. function () {
  546. $.post(
  547. huayi.config.callcenter_url +
  548. "WorkOrder/DelWorkOrder", {
  549. ids: str,
  550. token: $.cookie("token"),
  551. },
  552. function (result) {
  553. result = JSON.parse(result);
  554. if (result.state.toLowerCase() == "success") {
  555. debugger;
  556. layer.msg("删除成功");
  557. $("#orderlist").bootstrapTable("refresh");
  558. }
  559. }
  560. );
  561. }
  562. );
  563. }
  564. //提交
  565. function tj(str) {
  566. layer.confirm(
  567. "确定要提交工单么?", {
  568. btn: ["确定", "取消"], //按钮
  569. },
  570. function () {
  571. //请求后台数据
  572. /*发送请求*/
  573. $.post(
  574. huayi.config.callcenter_url +
  575. "WorkOrder/SubmitWorkOrder", {
  576. ids: str,
  577. token: $.cookie("token"),
  578. },
  579. function (result) {
  580. result = JSON.parse(result);
  581. if (result.state.toLowerCase() == "success") {
  582. layer.msg("提交成功");
  583. $("#orderlist").bootstrapTable("refresh");
  584. //load();
  585. }
  586. }
  587. );
  588. }
  589. );
  590. }
  591. //交办
  592. function jb(str) {
  593. layer.open({
  594. type: 2,
  595. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  596. title: "工单交办",
  597. area: ["87%", "80%"], //宽高
  598. });
  599. }
  600. //领导批示
  601. function lader(str) {
  602. layer.open({
  603. type: 2,
  604. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  605. title: "领导批示",
  606. area: ["60%", "80%"], //宽高
  607. });
  608. }
  609. //市长批示
  610. function city(str) {
  611. layer.open({
  612. type: 2,
  613. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  614. title: "市长批示",
  615. area: ["60%", "80%"], //宽高
  616. });
  617. }
  618. //办理
  619. function bl(str, isProtect) {
  620. console.log("isProtect2222", isProtect);
  621. layer.open({
  622. type: 2,
  623. content: "../CommonHtml/banli.html?wid=" +
  624. str +
  625. "&isProtect=" +
  626. isProtect, //iframe的url,no代表不显示滚动条
  627. title: "办理工单",
  628. area: ["60%", "80%"], //宽高
  629. });
  630. }
  631. //督办
  632. function Supervision(str) {
  633. layer.open({
  634. type: 2,
  635. // content: "../CommonHtml/Supervision_.html?wid=" + str +"&type=1" + "&state=1" + "&pageName=haveAduit", //iframe的url,no代表不显示滚动条
  636. content: "../CommonHtml/Supervision_.html?wid=" + str + "&type=1" +
  637. "&state=1", //iframe的url,no代表不显示滚动条
  638. title: "督办",
  639. area: ["90%", "90%"], //宽高
  640. });
  641. }
  642. //督查
  643. function Supervision_(str) {
  644. layer.open({
  645. type: 2,
  646. content: "../CommonHtml/Supervision_.html?wid=" +
  647. str +
  648. "&type=2", //iframe的url,no代表不显示滚动条
  649. title: "监察",
  650. area: ["60%", "80%"], //宽高
  651. });
  652. }
  653. //审核
  654. function audit(str) {
  655. layer.open({
  656. type: 2,
  657. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  658. title: "审核",
  659. area: ["60%", "80%"], //宽高
  660. });
  661. }
  662. //转督办
  663. function zdb(str, row) {
  664. layer.open({
  665. type: 2,
  666. content: "../CommonHtml/superTrunl.html?wid=" +
  667. str +
  668. "&depId=" +
  669. row, //iframe的url,no代表不显示滚动条
  670. title: "督办工单",
  671. area: ["60%", "80%"], //宽高
  672. });
  673. }
  674. //不督办
  675. function ndb(str) {
  676. layer.open({
  677. type: 2,
  678. state: 2,
  679. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  680. '&state=2', //iframe的url,no代表不显示滚动条
  681. title: '督办',
  682. area: ['60%', '80%'], //宽高
  683. });
  684. }
  685. //强制结案
  686. function StrongLawsuit(str) {
  687. layer.open({
  688. type: 2,
  689. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  690. title: "强制结案",
  691. area: ["60%", "80%"], //宽高
  692. });
  693. }
  694. //回退BackDtail
  695. function BackDtail(str) {
  696. layer.open({
  697. type: 2,
  698. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  699. title: "工单督办",
  700. area: ["60%", "80%"], //宽高
  701. });
  702. }
  703. //查收
  704. function cs(str) {
  705. layer.confirm(
  706. "确定要查收?", {
  707. btn: ["是", "否"], //按钮
  708. },
  709. function () {
  710. $.post(
  711. huayi.config.callcenter_url +
  712. "WorkOrder/ReceiveWorkOrder", {
  713. workorderid: str,
  714. token: $.cookie("token"),
  715. },
  716. function (result) {
  717. result = JSON.parse(result);
  718. if (result.state.toLowerCase() == "success") {
  719. layer.msg("查收成功");
  720. //load();
  721. $("#orderlist").bootstrapTable("refresh");
  722. }
  723. }
  724. );
  725. }
  726. );
  727. }
  728. //收回
  729. function sh(str) {
  730. layer.confirm(
  731. "确定要回收?", {
  732. btn: ["是", "否"], //按钮
  733. },
  734. function () {
  735. $.post(
  736. huayi.config.callcenter_url +
  737. "WorkOrder/TakeBackWorkOrder", {
  738. workorderid: str,
  739. token: $.cookie("token"),
  740. },
  741. function (result) {
  742. result = JSON.parse(result);
  743. if (result.state.toLowerCase() == "success") {
  744. layer.msg("回收");
  745. //load();
  746. $("#orderlist").bootstrapTable("refresh");
  747. }
  748. }
  749. );
  750. }
  751. );
  752. }
  753. //强制回收
  754. function recycles() {
  755. layer.confirm("确定要强制退回吗?", {
  756. btn: ["是", "否"], //按钮
  757. });
  758. }
  759. //审核退回申请
  760. function shth(str) {
  761. layer.open({
  762. type: 2,
  763. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  764. title: "审核退回申请",
  765. area: ["60%", "80%"], //宽高
  766. });
  767. }
  768. //申请延时
  769. function ys(str) {
  770. layer.open({
  771. type: 2,
  772. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  773. title: "申请延时",
  774. area: ["60%", "80%"], //宽高
  775. });
  776. }
  777. //审核申请延时
  778. function shys(str) {
  779. layer.open({
  780. type: 2,
  781. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  782. title: "审核延时申请",
  783. area: ["60%", "80%"], //宽高
  784. });
  785. }
  786. // 工单审核
  787. function hf(str) {
  788. layer.open({
  789. type: 2,
  790. //content: "../CommonHtml/Back.html?wid=" + str, //之前的审核
  791. content: "../CommonHtml/auditBack.html?wid=" + str + "&IsExamine=" + IsExamine, //
  792. title: "工单审核",
  793. area: ["60%", "80%"], //宽高
  794. });
  795. }
  796. //重办工单
  797. function cb(str) {
  798. layer.open({
  799. type: 2,
  800. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  801. title: "重办工单",
  802. area: ["60%", "80%"], //宽高
  803. });
  804. }
  805. //提交重办
  806. function bhcb(str) {
  807. //回退BackDtail
  808. layer.open({
  809. type: 2,
  810. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  811. title: "驳回重办",
  812. area: ["60%", "80%"], //宽高
  813. });
  814. }
  815. //提交重办
  816. function tjcb(str) {
  817. layer.open({
  818. type: 2,
  819. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  820. title: "提交重办",
  821. area: ["50%", "40%"], //宽高
  822. });
  823. // layer.confirm('确认提交重办吗?', {
  824. // btn: ['是', '否'] //按钮
  825. // }, function () {
  826. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  827. // ids: str,
  828. // "token": $.cookie("token")
  829. // }, function(result) {
  830. // result = JSON.parse(result);
  831. // if(result.state.toLowerCase() == "success") {
  832. // layer.msg("操作成功");
  833. // //load();
  834. // $("#orderlist").bootstrapTable('refresh');
  835. // }
  836. // })
  837. // });
  838. }
  839. //结案
  840. function Lawsuit(str) {
  841. layer.open({
  842. type: 2,
  843. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  844. title: "诉求单结案",
  845. area: ["60%", "80%"], //宽高
  846. });
  847. }
  848. //退回
  849. function returnRedo(str) {
  850. layer.open({
  851. type: 2,
  852. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  853. title: "退回",
  854. area: ["50%", "40%"], //宽高
  855. });
  856. }
  857. //退回
  858. function returnAuditor(str) {
  859. layer.open({
  860. type: 2,
  861. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  862. title: "退回",
  863. area: ["50%", "40%"], //宽高
  864. });
  865. }
  866. //修改
  867. function editProcessingResult(str) {
  868. layer.open({
  869. type: 2,
  870. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  871. title: "修改",
  872. area: ["50%", "50%"], //宽高
  873. });
  874. }
  875. //上传文件
  876. function upload() {
  877. if (document.getElementById("upFile").files.length > 0) {
  878. var formData = new FormData();
  879. formData.append(
  880. "upFile",
  881. document.getElementById("upFile").files[0]
  882. );
  883. formData.append("token", $.cookie("token"));
  884. $.ajax({
  885. url: huayi.config.callcenter_url +
  886. "/WorkOrder/UploadFile",
  887. type: "POST",
  888. data: formData,
  889. /**
  890. *必须false才会自动加上正确的Content-Type
  891. */
  892. contentType: false,
  893. /**
  894. * 必须false才会避开jQuery对 formdata 的默认处理
  895. * XMLHttpRequest会对 formdata 进行正确的处理
  896. */
  897. processData: false,
  898. success: function (result) {
  899. document.getElementById(
  900. "upFile"
  901. ).outerHTML = document.getElementById(
  902. "upFile"
  903. ).outerHTML;
  904. $("#upFile").change(function () {
  905. upload();
  906. });
  907. var r = $.parseJSON(result);
  908. if (r.state.toLowerCase() == "success") {
  909. $(".fjnr").text(r.data);
  910. $("#scfj").show();
  911. }
  912. },
  913. });
  914. } else {
  915. layer.confirm("请上传文件!", {
  916. btn: ["确定"],
  917. });
  918. }
  919. }
  920. //来源
  921. function LY(obj) {
  922. obj.empty();
  923. obj.append(
  924. '<option selected="selected" value="">请选择</option>'
  925. );
  926. $.getJSON(
  927. huayi.config.callcenter_url +
  928. "Dictionary/GetDicValueListById", {
  929. token: $.cookie("token"),
  930. id: 1,
  931. },
  932. function (data) {
  933. if (data.state.toLowerCase() == "success") {
  934. var content = data.data;
  935. $(content).each(function (i, n) {
  936. $(
  937. "<option value='" +
  938. n.F_ValueId +
  939. "'>" +
  940. n.F_Value +
  941. "</option>"
  942. ).appendTo(obj);
  943. });
  944. }
  945. }
  946. );
  947. }
  948. //类别
  949. function LB(obj) {
  950. obj.empty();
  951. obj.append(
  952. '<option selected="selected" value="">请选择</option>'
  953. );
  954. $.getJSON(
  955. huayi.config.callcenter_url +
  956. "Dictionary/GetDicValueListById", {
  957. token: $.cookie("token"),
  958. id: 2,
  959. },
  960. function (data) {
  961. if (data.state.toLowerCase() == "success") {
  962. var content = data.data;
  963. $(content).each(function (i, n) {
  964. $(
  965. "<option value='" +
  966. n.F_ValueId +
  967. "'>" +
  968. n.F_Value +
  969. "</option>"
  970. ).appendTo(obj);
  971. });
  972. }
  973. }
  974. );
  975. }
  976. // 主题
  977. function ZT(obj) {
  978. obj.empty();
  979. obj.append(
  980. '<option selected="selected" value="">请选择</option>'
  981. );
  982. $.getJSON(
  983. huayi.config.callcenter_url +
  984. "Dictionary/GetDicValueListById", {
  985. token: $.cookie("token"),
  986. id: 3,
  987. },
  988. function (data) {
  989. if (data.state.toLowerCase() == "success") {
  990. var content = data.data;
  991. $(content).each(function (i, n) {
  992. $(
  993. "<option value='" +
  994. n.F_ValueId +
  995. "'>" +
  996. n.F_Value +
  997. "</option>"
  998. ).appendTo(obj);
  999. });
  1000. }
  1001. }
  1002. );
  1003. }
  1004. function tree() {
  1005. $.get(
  1006. huayi.config.callcenter_url + "Department/GetDeptList", {
  1007. token: $.cookie("token"),
  1008. // "pid": pid
  1009. },
  1010. function (result) {
  1011. result = $.parseJSON(result);
  1012. $.fn.zTree.init(
  1013. $("#addTreeDemo"),
  1014. setting1,
  1015. result.data
  1016. ); //实例化树形图
  1017. }
  1018. );
  1019. }
  1020. var setting1 = {
  1021. data: {
  1022. key: {
  1023. name: "F_DeptName",
  1024. },
  1025. simpleData: {
  1026. enable: true,
  1027. idKey: "F_DeptId",
  1028. pIdKey: "F_PartentId",
  1029. rootPId: 0,
  1030. },
  1031. },
  1032. callback: {
  1033. onClick: zTreeOnClick,
  1034. },
  1035. };
  1036. function zTreeOnClick(event, treeId, treeNode) {
  1037. if (treeNode.level >= 1) {
  1038. $(".inps").val(treeNode.F_DeptName);
  1039. $("#PID").val(treeNode.F_DeptId);
  1040. $("#Dpment").val(treeNode.F_DeptId);
  1041. $(".Cleans").show();
  1042. }
  1043. }
  1044. function Close() {
  1045. $(".lyxz").removeClass("cx");
  1046. if ($("audio").length > 0) {
  1047. $("audio")[0].pause();
  1048. }
  1049. }
  1050. </script>
  1051. </body>
  1052. </html>