Нет описания

UnsuccessfulLevel2.html 38KB

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