Нет описания

deleteRecycle.html 48KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  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 src="../Script/Common/huayi.common.js"></script>
  313. <script>
  314. $(document).ready(function () {
  315. var wid = helper.request.queryString("wid");
  316. if (wid) {
  317. $("#tel").val(wid);
  318. load();
  319. }
  320. laydate.skin('blue');
  321. laydate({
  322. elem: '#starttime',
  323. event: 'focus',
  324. istime: true,
  325. format: 'YYYY-MM-DD hh:mm:ss'
  326. });
  327. laydate({
  328. elem: '#endtime',
  329. event: 'focus',
  330. istime: true,
  331. format: 'YYYY-MM-DD hh:mm:ss'
  332. });
  333. laydate({
  334. elem: '#dealstarttime',
  335. event: 'focus',
  336. istime: true,
  337. format: 'YYYY-MM-DD hh:mm:ss'
  338. });
  339. laydate({
  340. elem: '#dealstrendtime',
  341. event: 'focus',
  342. istime: true,
  343. format: 'YYYY-MM-DD hh:mm:ss'
  344. });
  345. load();
  346. });
  347. //关闭录音弹出
  348. $(".gbly").click(function () {
  349. $(".lyxz").removeClass("cx");
  350. $("audio")[0].pause();
  351. });
  352. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  353. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  354. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  355. });
  356. //获取查询信息
  357. function load() {
  358. //坐席
  359. var usercodeID = "";
  360. var usercode_ = $("#ZX").val(); //坐席
  361. if (usercode_ != null) {
  362. $(usercode_).each(function (i, n) {
  363. var obj1 = "";
  364. obj1 = n + ",";
  365. usercodeID += obj1;
  366. });
  367. } else {
  368. usercodeID = "";
  369. }
  370. // 调度员
  371. var ddusercodeID = "";
  372. var ddusercode_ = $("#yardman").val(); //坐席
  373. if (ddusercode_ != null) {
  374. $(ddusercode_).each(function (i, n) {
  375. var obj2 = "";
  376. obj2 = n + ",";
  377. ddusercodeID += obj2;
  378. });
  379. } else {
  380. ddusercodeID = "";
  381. }
  382. //三方通话
  383. var threeWayCall;
  384. if ($("#dealtype").val() === "2") {
  385. threeWayCall = 1
  386. } else {
  387. threeWayCall = 0
  388. }
  389. //先销毁表格
  390. $("#orderlist").bootstrapTable("destroy");
  391. //初始化表格,动态从服务器加载数据
  392. $("#orderlist").bootstrapTable({
  393. method: "get", //使用get请求到服务器获取数据
  394. url: huayi.config.callcenter_url + "WorkOrder/GetDeleteList", //获取数据的Servlet地址
  395. contentType: "application/x-www-form-urlencoded",
  396. striped: true, //表格显示条纹
  397. pagination: true, //启动分页
  398. pageSize: 10, //每页显示的记录数
  399. pageNumber: 1, //当前第几页
  400. pageList: [10, 20, 50, 100], //记录数可选列表
  401. search: false, //是否启用查询
  402. showColumns: false, //显示下拉框勾选要显示的列
  403. showRefresh: false, //显示刷新按钮
  404. sidePagination: "server", //表示服务端请求
  405. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  406. //设置为limit可以获取limit, offset, search, sort, order
  407. queryParamsType: "undefined",
  408. queryParams: function queryParams(params) {
  409. //设置查询参数
  410. //alert(params.pageNumber)
  411. var param = {
  412. page: params.pageNumber,
  413. pagesize: params.pageSize,
  414. workid: $("#wids").val().replace(/\s+/g, ""),
  415. state: $("#state").val(), //=工单状态
  416. type: $("#type").val(), //=工单类型
  417. //bigtype: $("#bigtype").val(), //=大类别
  418. //smalltype: $("#smalltype").val(), //=小类别
  419. key: $("#key").val(), //=关键字
  420. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  421. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  422. usercode: usercodeID, //=坐席工号
  423. ddusercode: ddusercodeID,
  424. keyid: $("#keyid").val(), //=关键词id
  425. source: $("#source").val(), //=来源&
  426. starttime: $("#starttime").val(), //=开始时间
  427. endtime: $("#endtime").val(), //=结束时间
  428. deptid: $("#PID").val(),
  429. type: $("#type").val(),
  430. dealtype: $("#dealtype").val(),
  431. business: threeWayCall,
  432. sourcearea: $("#sourceAreas").val(), // 区域
  433. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  434. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  435. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  436. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  437. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  438. isopen: $("#isopen").val(),
  439. business: $("#threeWayCall").val(), // 三方通话
  440. splituser: $("#leaderCharge").val(), // 分管领导
  441. islike: $("#islike").val(), // 查询类型
  442. comprehensive: 1,
  443. token: $.cookie("token"),
  444. };
  445. return param;
  446. },
  447. onLoadSuccess: function (data) {
  448. //加载成功时执行
  449. // layer.msg("加载成功");
  450. //console.log(data);
  451. },
  452. onLoadError: function () {
  453. //加载失败时执行
  454. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  455. },
  456. });
  457. }
  458. //状态
  459. function States(val, row) {
  460. var html = "";
  461. switch (val + "") {
  462. case "0":
  463. html = "新工单";
  464. if (row.F_IsReturn == 1) {
  465. html = "新工单(回退)";
  466. }
  467. break;
  468. case "1":
  469. html = "待交办";
  470. break;
  471. case "2":
  472. html = '<span style="color:#FF0000;">待查收</span>';
  473. break;
  474. case "3":
  475. html = "退回审核中";
  476. break;
  477. case "4":
  478. html = "办理中";
  479. break;
  480. case "5":
  481. html = "延时审核";
  482. break;
  483. case "6":
  484. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  485. html = "已办未果"
  486. } else {
  487. html = "已办理";
  488. }
  489. break;
  490. case "7":
  491. html = "已回访";
  492. break;
  493. case "8":
  494. html = "重办中";
  495. break;
  496. case "9":
  497. html = "已结案";
  498. break;
  499. case "10":
  500. html = "待审核";
  501. break;
  502. case "11":
  503. html = "重办待交办";
  504. break;
  505. // case '12':
  506. // html = '待审核';
  507. // break;
  508. case "13":
  509. html = "重办驳回";
  510. break;
  511. }
  512. return html;
  513. }
  514. //音频
  515. function setCode(val) {
  516. if (val) {
  517. return (
  518. '<div class="imgs" style="cursor: pointer;">' +
  519. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  520. val +
  521. '" />' +
  522. "</div>"
  523. );
  524. } else {
  525. return "";
  526. }
  527. }
  528. //编号
  529. function serialNumber(val, row, index) {
  530. return index + 1;
  531. }
  532. function GetCont(val) {
  533. if (val) {
  534. var str = "<div ";
  535. if (val.length > 10) {
  536. str = str + ' title="' + val + '" ';
  537. val = val.substr(0, 10) + "...";
  538. }
  539. return str + ">" + val + "</div>";
  540. } else {
  541. return "";
  542. }
  543. }
  544. //操作
  545. function Dispose(val, row) {
  546. // var Rows = row.Buttons;
  547. var html = "";
  548. // for (var i = 0; i < Rows.length; i++) {
  549. // var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  550. // if (html1) {
  551. // html1 = html1.replace("data", val);
  552. // html1 = html1.replace("isProtect", row.F_IsProtect);
  553. // html1 = html1.replace("row", row.F_MainDeptId);
  554. // }
  555. // html += html1;
  556. // }
  557. html += '<a class="xg" onclick="restore(\''+ val +'\')" title="恢复">恢复</a>'
  558. return html;
  559. }
  560. function restore(str) {
  561. layer.confirm(
  562. "确定恢复工单?", {
  563. btn: ["是", "否"], //按钮
  564. },
  565. function () {
  566. $.post(
  567. huayi.config.callcenter_url +
  568. "WorkOrder/Recovery", {
  569. ids: str,
  570. token: $.cookie("token"),
  571. },
  572. function (result) {
  573. result = JSON.parse(result);
  574. if (result.state.toLowerCase() == "success") {
  575. debugger;
  576. layer.msg("操作成功");
  577. $("#orderlist").bootstrapTable("refresh");
  578. }
  579. }
  580. );
  581. }
  582. );
  583. }
  584. //查看详情
  585. function ckxq(str) {
  586. layer.open({
  587. type: 2,
  588. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  589. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  590. title: "工单详情",
  591. area: ["100%", "100%"], //宽高
  592. });
  593. }
  594. //时限
  595. function OverTime(val, row) {
  596. if (val == 1) {
  597. return (
  598. '<div class="" style="cursor: pointer;">' +
  599. '<span class="Greens">' +
  600. row.GapTime +
  601. "</span>" +
  602. "</div>"
  603. );
  604. } else if (val == 2) {
  605. return (
  606. '<div class="" style="cursor: pointer;">' +
  607. '<span class="Yellows">' +
  608. row.GapTime +
  609. "</span>" +
  610. "</div>"
  611. );
  612. } else if (val == 3) {
  613. return (
  614. '<div class="" style="cursor: pointer;">' +
  615. '<span class="Reds">' +
  616. row.GapTime +
  617. "</span>" +
  618. "</div>"
  619. );
  620. }
  621. }
  622. //办理时限
  623. function BanTime(val) {
  624. if (val) {
  625. var time = val.substring(0, val.indexOf(" "));
  626. return (
  627. '<div class="" style="cursor: pointer;">' +
  628. "<span>" +
  629. time +
  630. "</span>" +
  631. "</div>"
  632. );
  633. }
  634. }
  635. //派单
  636. function pd(str) {
  637. layer.open({
  638. type: 2,
  639. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  640. title: "办理工单",
  641. area: ["87%", "80%"], //宽高
  642. });
  643. }
  644. //处理审核
  645. function auditdeal(str) {
  646. layer.open({
  647. type: 2,
  648. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  649. title: "处理审核",
  650. area: ["80%", "80%"], //宽高
  651. });
  652. }
  653. //编辑
  654. function bj(str) {
  655. layer.open({
  656. type: 2,
  657. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  658. title: "编辑工单",
  659. area: ["96%", "80%"], //宽高
  660. });
  661. }
  662. //删除
  663. function move(str) {
  664. layer.confirm(
  665. "确定删除工单?", {
  666. btn: ["是", "否"], //按钮
  667. },
  668. function () {
  669. $.post(
  670. huayi.config.callcenter_url +
  671. "WorkOrder/DelWorkOrder", {
  672. ids: str,
  673. token: $.cookie("token"),
  674. },
  675. function (result) {
  676. result = JSON.parse(result);
  677. if (result.state.toLowerCase() == "success") {
  678. debugger;
  679. layer.msg("删除成功");
  680. $("#orderlist").bootstrapTable("refresh");
  681. }
  682. }
  683. );
  684. }
  685. );
  686. }
  687. //提交
  688. function tj(str) {
  689. layer.confirm(
  690. "确定要提交工单么?", {
  691. btn: ["确定", "取消"], //按钮
  692. },
  693. function () {
  694. //请求后台数据
  695. /*发送请求*/
  696. $.post(
  697. huayi.config.callcenter_url +
  698. "WorkOrder/SubmitWorkOrder", {
  699. ids: str,
  700. token: $.cookie("token"),
  701. },
  702. function (result) {
  703. result = JSON.parse(result);
  704. if (result.state.toLowerCase() == "success") {
  705. layer.msg("提交成功");
  706. $("#orderlist").bootstrapTable("refresh");
  707. //load();
  708. }
  709. }
  710. );
  711. }
  712. );
  713. }
  714. //交办
  715. function jb(str) {
  716. layer.open({
  717. type: 2,
  718. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  719. title: "工单交办",
  720. area: ["87%", "80%"], //宽高
  721. });
  722. }
  723. //领导批示
  724. function lader(str) {
  725. layer.open({
  726. type: 2,
  727. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  728. title: "领导批示",
  729. area: ["60%", "80%"], //宽高
  730. });
  731. }
  732. //市长批示
  733. function city(str) {
  734. layer.open({
  735. type: 2,
  736. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  737. title: "市长批示",
  738. area: ["60%", "80%"], //宽高
  739. });
  740. }
  741. //办理
  742. function bl(str, isProtect) {
  743. layer.open({
  744. type: 2,
  745. content: "../CommonHtml/banli.html?wid=" +
  746. str +
  747. "&isProtect=" +
  748. isProtect, //iframe的url,no代表不显示滚动条
  749. title: "办理工单",
  750. area: ["60%", "80%"], //宽高
  751. });
  752. }
  753. //督办
  754. function Supervision(str) {
  755. layer.open({
  756. type: 2,
  757. content: "../CommonHtml/Supervision_.html?wid=" +
  758. str +
  759. "&type=1", //iframe的url,no代表不显示滚动条
  760. title: "督办",
  761. area: ["60%", "80%"], //宽高
  762. });
  763. }
  764. //督查
  765. function Supervision_(str) {
  766. layer.open({
  767. type: 2,
  768. content: "../CommonHtml/Supervision_.html?wid=" +
  769. str +
  770. "&type=2", //iframe的url,no代表不显示滚动条
  771. title: "监察",
  772. area: ["60%", "80%"], //宽高
  773. });
  774. }
  775. //审核
  776. function audit(str) {
  777. layer.open({
  778. type: 2,
  779. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  780. title: "审核",
  781. area: ["60%", "80%"], //宽高
  782. });
  783. }
  784. //转督办
  785. function zdb(str, row) {
  786. layer.open({
  787. type: 2,
  788. content: "../CommonHtml/superTrunl.html?wid=" +
  789. str +
  790. "&depId=" +
  791. row, //iframe的url,no代表不显示滚动条
  792. title: "督办工单",
  793. area: ["60%", "80%"], //宽高
  794. });
  795. }
  796. //不督办
  797. function ndb(str) {
  798. layer.confirm(
  799. "确定督办吗?", {
  800. btn: ["是", "否"], //按钮
  801. },
  802. function () {
  803. $.post(
  804. huayi.config.callcenter_url +
  805. "WorkOrder/RemindWorkOrder", {
  806. workorderid: str,
  807. type: 1,
  808. state: 2,
  809. token: $.cookie("token"),
  810. },
  811. function (result) {
  812. result = JSON.parse(result);
  813. if (result.state.toLowerCase() == "success") {
  814. layer.msg("操作成功");
  815. //load();
  816. $("#orderlist").bootstrapTable("refresh");
  817. }
  818. }
  819. );
  820. }
  821. );
  822. }
  823. //强制结案
  824. function StrongLawsuit(str) {
  825. layer.open({
  826. type: 2,
  827. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  828. title: "强制结案",
  829. area: ["60%", "80%"], //宽高
  830. });
  831. }
  832. //回退BackDtail
  833. function BackDtail(str) {
  834. layer.open({
  835. type: 2,
  836. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  837. title: "工单督办",
  838. area: ["60%", "80%"], //宽高
  839. });
  840. }
  841. //查收
  842. function cs(str) {
  843. layer.confirm(
  844. "确定要查收?", {
  845. btn: ["是", "否"], //按钮
  846. },
  847. function () {
  848. $.post(
  849. huayi.config.callcenter_url +
  850. "WorkOrder/ReceiveWorkOrder", {
  851. workorderid: str,
  852. token: $.cookie("token"),
  853. },
  854. function (result) {
  855. result = JSON.parse(result);
  856. if (result.state.toLowerCase() == "success") {
  857. layer.msg("查收成功");
  858. //load();
  859. $("#orderlist").bootstrapTable("refresh");
  860. }
  861. }
  862. );
  863. }
  864. );
  865. }
  866. //收回
  867. function sh(str) {
  868. layer.confirm(
  869. "确定要回收?", {
  870. btn: ["是", "否"], //按钮
  871. },
  872. function () {
  873. $.post(
  874. huayi.config.callcenter_url +
  875. "WorkOrder/TakeBackWorkOrder", {
  876. workorderid: str,
  877. token: $.cookie("token"),
  878. },
  879. function (result) {
  880. result = JSON.parse(result);
  881. if (result.state.toLowerCase() == "success") {
  882. layer.msg("回收");
  883. //load();
  884. $("#orderlist").bootstrapTable("refresh");
  885. }
  886. }
  887. );
  888. }
  889. );
  890. }
  891. //强制回收
  892. function recycles() {
  893. layer.confirm("确定要强制退回吗?", {
  894. btn: ["是", "否"], //按钮
  895. });
  896. }
  897. //审核退回申请
  898. function shth(str) {
  899. layer.open({
  900. type: 2,
  901. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  902. title: "审核退回申请",
  903. area: ["60%", "80%"], //宽高
  904. });
  905. }
  906. //申请延时
  907. function ys(str) {
  908. layer.open({
  909. type: 2,
  910. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  911. title: "申请延时",
  912. area: ["60%", "80%"], //宽高
  913. });
  914. }
  915. //审核申请延时
  916. function shys(str) {
  917. layer.open({
  918. type: 2,
  919. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  920. title: "审核延时申请",
  921. area: ["60%", "80%"], //宽高
  922. });
  923. }
  924. //审核
  925. function hf(str) {
  926. layer.open({
  927. type: 2,
  928. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  929. title: "工单审核",
  930. area: ["60%", "80%"], //宽高
  931. });
  932. }
  933. //重办工单
  934. function cb(str) {
  935. layer.open({
  936. type: 2,
  937. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  938. title: "重办工单",
  939. area: ["60%", "80%"], //宽高
  940. });
  941. }
  942. //提交重办
  943. function bhcb(str) {
  944. //回退BackDtail
  945. layer.open({
  946. type: 2,
  947. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  948. title: "驳回重办",
  949. area: ["60%", "80%"], //宽高
  950. });
  951. }
  952. //提交重办
  953. function tjcb(str) {
  954. layer.open({
  955. type: 2,
  956. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  957. title: "提交重办",
  958. area: ["50%", "40%"], //宽高
  959. });
  960. // layer.confirm('确认提交重办吗?', {
  961. // btn: ['是', '否'] //按钮
  962. // }, function () {
  963. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  964. // ids: str,
  965. // "token": $.cookie("token")
  966. // }, function(result) {
  967. // result = JSON.parse(result);
  968. // if(result.state.toLowerCase() == "success") {
  969. // layer.msg("操作成功");
  970. // //load();
  971. // $("#orderlist").bootstrapTable('refresh');
  972. // }
  973. // })
  974. // });
  975. }
  976. //结案
  977. function Lawsuit(str) {
  978. layer.open({
  979. type: 2,
  980. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  981. title: "诉求单结案",
  982. area: ["60%", "80%"], //宽高
  983. });
  984. }
  985. //退回
  986. function returnRedo(str) {
  987. layer.open({
  988. type: 2,
  989. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  990. title: "退回",
  991. area: ["50%", "40%"], //宽高
  992. });
  993. }
  994. //退回
  995. function returnAuditor(str) {
  996. layer.open({
  997. type: 2,
  998. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  999. title: "退回",
  1000. area: ["50%", "40%"], //宽高
  1001. });
  1002. }
  1003. //修改
  1004. function editProcessingResult(str) {
  1005. layer.open({
  1006. type: 2,
  1007. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1008. title: "修改",
  1009. area: ["50%", "70%"], //宽高
  1010. });
  1011. }
  1012. //来源
  1013. function LY(obj) {
  1014. obj.empty();
  1015. obj.append(
  1016. '<option selected="selected" value="">请选择</option>'
  1017. );
  1018. $.getJSON(
  1019. huayi.config.callcenter_url +
  1020. "Dictionary/GetDicValueListById", {
  1021. token: $.cookie("token"),
  1022. id: 1,
  1023. },
  1024. function (data) {
  1025. if (data.state.toLowerCase() == "success") {
  1026. var content = data.data;
  1027. $(content).each(function (i, n) {
  1028. $(
  1029. "<option value='" +
  1030. n.F_ValueId +
  1031. "'>" +
  1032. n.F_Value +
  1033. "</option>"
  1034. ).appendTo(obj);
  1035. });
  1036. }
  1037. }
  1038. );
  1039. }
  1040. //类别
  1041. function LB(obj) {
  1042. obj.empty();
  1043. obj.append(
  1044. '<option selected="selected" value="">请选择</option>'
  1045. );
  1046. $.getJSON(
  1047. huayi.config.callcenter_url +
  1048. "Dictionary/GetDicValueListById", {
  1049. token: $.cookie("token"),
  1050. id: 2,
  1051. },
  1052. function (data) {
  1053. if (data.state.toLowerCase() == "success") {
  1054. var content = data.data;
  1055. $(content).each(function (i, n) {
  1056. $(
  1057. "<option value='" +
  1058. n.F_ValueId +
  1059. "'>" +
  1060. n.F_Value +
  1061. "</option>"
  1062. ).appendTo(obj);
  1063. });
  1064. }
  1065. }
  1066. );
  1067. }
  1068. // 主题
  1069. function ZT(obj) {
  1070. obj.empty();
  1071. obj.append(
  1072. '<option selected="selected" value="">请选择</option>'
  1073. );
  1074. $.getJSON(
  1075. huayi.config.callcenter_url +
  1076. "Dictionary/GetDicValueListById", {
  1077. token: $.cookie("token"),
  1078. id: 3,
  1079. },
  1080. function (data) {
  1081. if (data.state.toLowerCase() == "success") {
  1082. var content = data.data;
  1083. $(content).each(function (i, n) {
  1084. $(
  1085. "<option value='" +
  1086. n.F_ValueId +
  1087. "'>" +
  1088. n.F_Value +
  1089. "</option>"
  1090. ).appendTo(obj);
  1091. });
  1092. }
  1093. }
  1094. );
  1095. }
  1096. function tree() {
  1097. $.get(
  1098. huayi.config.callcenter_url + "Department/GetDeptList", {
  1099. token: $.cookie("token"),
  1100. // "pid": pid
  1101. },
  1102. function (result) {
  1103. result = $.parseJSON(result);
  1104. $.fn.zTree.init(
  1105. $("#addTreeDemo"),
  1106. setting1,
  1107. result.data
  1108. ); //实例化树形图
  1109. }
  1110. );
  1111. }
  1112. var setting1 = {
  1113. data: {
  1114. key: {
  1115. name: "F_DeptName",
  1116. },
  1117. simpleData: {
  1118. enable: true,
  1119. idKey: "F_DeptId",
  1120. pIdKey: "F_PartentId",
  1121. rootPId: 0,
  1122. },
  1123. },
  1124. callback: {
  1125. onClick: zTreeOnClick,
  1126. },
  1127. };
  1128. function zTreeOnClick(event, treeId, treeNode) {
  1129. // if (treeNode.level >= 1) {
  1130. $(".inps").val(treeNode.F_DeptName);
  1131. $("#PID").val(treeNode.F_DeptId);
  1132. $("#Dpment").val(treeNode.F_DeptId);
  1133. $(".Cleans").show();
  1134. // }
  1135. }
  1136. function Close() {
  1137. $(".lyxz").removeClass("cx");
  1138. if ($("audio").length > 0) {
  1139. $("audio")[0].pause();
  1140. }
  1141. }
  1142. </script>
  1143. </body>
  1144. </html>