Bez popisu

WorkTHBJJ.html 37KB

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