説明なし

haveDoneToAudit.html 43KB

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