Nessuna descrizione

messagesDefaultHighPraise.html 39KB

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