Ei kuvausta

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