Aucune description

deleteRecycle.html 48KB

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