Nessuna descrizione

haveDoneToAuditMedia.html 42KB

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