Brak opisu

deleteRecycle.html 50KB

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