No Description

messagesDefaultHighPraise.html 39KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  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. //获取查询信息
  244. function load() {
  245. //坐席
  246. var usercodeID = "";
  247. var usercode_ = $("#ZX").val(); //坐席
  248. if (usercode_ != null) {
  249. $(usercode_).each(function (i, n) {
  250. var obj1 = "";
  251. obj1 = n + ",";
  252. usercodeID += obj1;
  253. });
  254. } else {
  255. usercodeID = "";
  256. }
  257. // 调度员
  258. var ddusercodeID = "";
  259. var ddusercode_ = $("#yardman").val(); //坐席
  260. if (ddusercode_ != null) {
  261. $(ddusercode_).each(function (i, n) {
  262. var obj2 = "";
  263. obj2 = n + ",";
  264. ddusercodeID += obj2;
  265. });
  266. } else {
  267. ddusercodeID = "";
  268. }
  269. //先销毁表格
  270. $("#orderlist").bootstrapTable("destroy");
  271. //初始化表格,动态从服务器加载数据
  272. $("#orderlist").bootstrapTable({
  273. method: "get", //使用get请求到服务器获取数据
  274. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  275. contentType: "application/x-www-form-urlencoded",
  276. striped: true, //表格显示条纹
  277. pagination: true, //启动分页
  278. pageSize: 10, //每页显示的记录数
  279. pageNumber: 1, //当前第几页
  280. pageList: [10, 20, 50, 100], //记录数可选列表
  281. search: false, //是否启用查询
  282. showColumns: false, //显示下拉框勾选要显示的列
  283. showRefresh: false, //显示刷新按钮
  284. sidePagination: "server", //表示服务端请求
  285. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  286. //设置为limit可以获取limit, offset, search, sort, order
  287. queryParamsType: "undefined",
  288. queryParams: function queryParams(params) {
  289. //设置查询参数
  290. //alert(params.pageNumber)
  291. var param = {
  292. page: params.pageNumber,
  293. pagesize: params.pageSize,
  294. workid: $("#wids").val(),
  295. state: 9, //=工单状态
  296. type: $("#type").val(), //=工单类型
  297. //bigtype: $("#bigtype").val(), //=大类别
  298. //smalltype: $("#smalltype").val(), //=小类别
  299. key: $("#key").val(), //=关键字
  300. tel: $("#tel").val(), //=客户电话
  301. name: $("#name").val(), //=客户名称
  302. usercode: usercodeID, //=坐席工号
  303. ddusercode: ddusercodeID,
  304. keyid: $("#keyid").val(), //=关键词id
  305. source: $("#source").val(), //=来源&
  306. starttime: $("#starttime").val(), //=开始时间
  307. endtime: $("#endtime").val(), //=结束时间
  308. deptid: $("#PID").val(),
  309. tobereply: 1,
  310. tab: 0,
  311. type: $("#type").val(),
  312. dealtype: $("#dealtype").val(),
  313. sourcearea: $("#sourceAreas").val(), //区域
  314. issms: $("#issms").val(), //发送短信
  315. edituser: $("#edituser").val(), // 用户角色
  316. jianhang:jianhang?jianhang:0,
  317. phoneType: 2, // 12345来电
  318. db: db, // 热线件(db=0),督办件(db=1)
  319. smspy: 1, // 0短信待评议,1短信默认好评,2短信人工好评,3短信人工差评
  320. token: $.cookie("token"),
  321. };
  322. // 导出参数
  323. exportParams = param;
  324. return param;
  325. },
  326. onLoadSuccess: function (data) {
  327. //加载成功时执行
  328. // layer.msg("加载成功");
  329. //console.log(data);
  330. },
  331. onLoadError: function () {
  332. //加载失败时执行
  333. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  334. },
  335. });
  336. }
  337. //状态
  338. function States(val, row) {
  339. var html = "";
  340. switch (val + "") {
  341. case "0":
  342. html = "新工单";
  343. if (row.F_IsReturn == 1) {
  344. html = "新工单(回退)";
  345. }
  346. break;
  347. case "1":
  348. html = "待交办";
  349. break;
  350. case "2":
  351. html = '<span style="color:#FF0000;">待查收</span>';
  352. break;
  353. case "3":
  354. html = "退回审核中";
  355. break;
  356. case "4":
  357. html = "办理中";
  358. break;
  359. case "5":
  360. html = "延时审核";
  361. break;
  362. case "6":
  363. html = "已办理";
  364. break;
  365. case "7":
  366. html = "待回访";
  367. break;
  368. case "8":
  369. html = "重办中";
  370. break;
  371. case "9":
  372. html = "已结案";
  373. break;
  374. case "10":
  375. html = "待审核";
  376. break;
  377. case "11":
  378. html = "重办待交办";
  379. break;
  380. // case '12':
  381. // html = '待审核';
  382. // break;
  383. case "13":
  384. html = "重办驳回";
  385. break;
  386. }
  387. return html;
  388. }
  389. //音频
  390. function setCode(val) {
  391. if (val) {
  392. return (
  393. '<div class="imgs" style="cursor: pointer;">' +
  394. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  395. val +
  396. '" />' +
  397. "</div>"
  398. );
  399. } else {
  400. return "";
  401. }
  402. }
  403. //编号
  404. function serialNumber(val, row, index) {
  405. return index + 1;
  406. }
  407. function GetCont(val) {
  408. if (val) {
  409. var str = "<div ";
  410. if (val.length > 10) {
  411. str = str + ' title="' + val + '" ';
  412. val = val.substr(0, 10) + "...";
  413. }
  414. return str + ">" + val + "</div>";
  415. } else {
  416. return "";
  417. }
  418. }
  419. //操作
  420. function Dispose(val, row) {
  421. var Rows = row.Buttons;
  422. var html = "";
  423. for (var i = 0; i < Rows.length; i++) {
  424. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  425. if (html1) {
  426. html1 = html1.replace("data", val);
  427. html1 = html1.replace("isProtect", row.F_IsProtect);
  428. html1 = html1.replace("row", row.F_MainDeptId);
  429. }
  430. bl
  431. html += html1;
  432. }
  433. return html;
  434. }
  435. //查看详情
  436. function ckxq(str) {
  437. layer.open({
  438. type: 2,
  439. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  440. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  441. title: "工单详情",
  442. area: ["100%", "100%"], //宽高
  443. });
  444. }
  445. //时限
  446. function OverTime(val, row) {
  447. if (val == 1) {
  448. return (
  449. '<div class="" style="cursor: pointer;">' +
  450. '<span class="Greens">' +
  451. row.GapTime +
  452. "</span>" +
  453. "</div>"
  454. );
  455. } else if (val == 2) {
  456. return (
  457. '<div class="" style="cursor: pointer;">' +
  458. '<span class="Yellows">' +
  459. row.GapTime +
  460. "</span>" +
  461. "</div>"
  462. );
  463. } else if (val == 3) {
  464. return (
  465. '<div class="" style="cursor: pointer;">' +
  466. '<span class="Reds">' +
  467. row.GapTime +
  468. "</span>" +
  469. "</div>"
  470. );
  471. }
  472. }
  473. //办理时限
  474. function BanTime(val) {
  475. if (val) {
  476. var time = val.substring(0, val.indexOf(" "));
  477. return (
  478. '<div class="" style="cursor: pointer;">' +
  479. "<span>" +
  480. time +
  481. "</span>" +
  482. "</div>"
  483. );
  484. }
  485. }
  486. //派单
  487. function pd(str) {
  488. layer.open({
  489. type: 2,
  490. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  491. title: "办理工单",
  492. area: ["87%", "80%"], //宽高
  493. });
  494. }
  495. //处理审核
  496. function auditdeal(str) {
  497. layer.open({
  498. type: 2,
  499. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  500. title: "处理审核",
  501. area: ["80%", "80%"], //宽高
  502. });
  503. }
  504. //编辑
  505. function bj(str) {
  506. layer.open({
  507. type: 2,
  508. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  509. title: "编辑工单",
  510. area: ["96%", "80%"], //宽高
  511. });
  512. }
  513. //删除
  514. function move(str) {
  515. layer.confirm(
  516. "确定删除工单?", {
  517. btn: ["是", "否"], //按钮
  518. },
  519. function () {
  520. $.post(
  521. huayi.config.callcenter_url +
  522. "WorkOrder/DelWorkOrder", {
  523. ids: str,
  524. token: $.cookie("token"),
  525. },
  526. function (result) {
  527. result = JSON.parse(result);
  528. if (result.state.toLowerCase() == "success") {
  529. debugger;
  530. layer.msg("删除成功");
  531. $("#orderlist").bootstrapTable("refresh");
  532. }
  533. }
  534. );
  535. }
  536. );
  537. }
  538. //提交
  539. function tj(str) {
  540. layer.confirm(
  541. "确定要提交工单么?", {
  542. btn: ["确定", "取消"], //按钮
  543. },
  544. function () {
  545. //请求后台数据
  546. /*发送请求*/
  547. $.post(
  548. huayi.config.callcenter_url +
  549. "WorkOrder/SubmitWorkOrder", {
  550. ids: str,
  551. token: $.cookie("token"),
  552. },
  553. function (result) {
  554. result = JSON.parse(result);
  555. if (result.state.toLowerCase() == "success") {
  556. layer.msg("提交成功");
  557. $("#orderlist").bootstrapTable("refresh");
  558. //load();
  559. }
  560. }
  561. );
  562. }
  563. );
  564. }
  565. //交办
  566. function jb(str) {
  567. layer.open({
  568. type: 2,
  569. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  570. title: "工单交办",
  571. area: ["87%", "80%"], //宽高
  572. });
  573. }
  574. //领导批示
  575. function lader(str) {
  576. layer.open({
  577. type: 2,
  578. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  579. title: "领导批示",
  580. area: ["60%", "80%"], //宽高
  581. });
  582. }
  583. //市长批示
  584. function city(str) {
  585. layer.open({
  586. type: 2,
  587. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  588. title: "市长批示",
  589. area: ["60%", "80%"], //宽高
  590. });
  591. }
  592. //办理
  593. function bl(str, isProtect) {
  594. console.log("isProtect2222", isProtect);
  595. layer.open({
  596. type: 2,
  597. content: "../CommonHtml/banli.html?wid=" +
  598. str +
  599. "&isProtect=" +
  600. isProtect, //iframe的url,no代表不显示滚动条
  601. title: "办理工单",
  602. area: ["60%", "80%"], //宽高
  603. });
  604. }
  605. //督办
  606. function Supervision(str) {
  607. layer.open({
  608. type: 2,
  609. // content: "../CommonHtml/Supervision_.html?wid=" + str +"&type=1" + "&state=1" + "&pageName=haveAduit", //iframe的url,no代表不显示滚动条
  610. content: "../CommonHtml/Supervision_.html?wid=" + str + "&type=1" +
  611. "&state=1", //iframe的url,no代表不显示滚动条
  612. title: "督办",
  613. area: ["90%", "90%"], //宽高
  614. });
  615. }
  616. //督查
  617. function Supervision_(str) {
  618. layer.open({
  619. type: 2,
  620. content: "../CommonHtml/Supervision_.html?wid=" +
  621. str +
  622. "&type=2", //iframe的url,no代表不显示滚动条
  623. title: "监察",
  624. area: ["60%", "80%"], //宽高
  625. });
  626. }
  627. //审核
  628. function audit(str) {
  629. layer.open({
  630. type: 2,
  631. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  632. title: "审核",
  633. area: ["60%", "80%"], //宽高
  634. });
  635. }
  636. //转督办
  637. function zdb(str, row) {
  638. layer.open({
  639. type: 2,
  640. content: "../CommonHtml/superTrunl.html?wid=" +
  641. str +
  642. "&depId=" +
  643. row, //iframe的url,no代表不显示滚动条
  644. title: "督办工单",
  645. area: ["60%", "80%"], //宽高
  646. });
  647. }
  648. //不督办
  649. function ndb(str) {
  650. layer.open({
  651. type: 2,
  652. state: 2,
  653. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  654. '&state=2', //iframe的url,no代表不显示滚动条
  655. title: '督办',
  656. area: ['60%', '80%'], //宽高
  657. });
  658. }
  659. //强制结案
  660. function StrongLawsuit(str) {
  661. layer.open({
  662. type: 2,
  663. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  664. title: "强制结案",
  665. area: ["60%", "80%"], //宽高
  666. });
  667. }
  668. //回退BackDtail
  669. function BackDtail(str) {
  670. layer.open({
  671. type: 2,
  672. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  673. title: "工单督办",
  674. area: ["60%", "80%"], //宽高
  675. });
  676. }
  677. //查收
  678. function cs(str) {
  679. layer.confirm(
  680. "确定要查收?", {
  681. btn: ["是", "否"], //按钮
  682. },
  683. function () {
  684. $.post(
  685. huayi.config.callcenter_url +
  686. "WorkOrder/ReceiveWorkOrder", {
  687. workorderid: str,
  688. token: $.cookie("token"),
  689. },
  690. function (result) {
  691. result = JSON.parse(result);
  692. if (result.state.toLowerCase() == "success") {
  693. layer.msg("查收成功");
  694. //load();
  695. $("#orderlist").bootstrapTable("refresh");
  696. }
  697. }
  698. );
  699. }
  700. );
  701. }
  702. //收回
  703. function sh(str) {
  704. layer.confirm(
  705. "确定要回收?", {
  706. btn: ["是", "否"], //按钮
  707. },
  708. function () {
  709. $.post(
  710. huayi.config.callcenter_url +
  711. "WorkOrder/TakeBackWorkOrder", {
  712. workorderid: str,
  713. token: $.cookie("token"),
  714. },
  715. function (result) {
  716. result = JSON.parse(result);
  717. if (result.state.toLowerCase() == "success") {
  718. layer.msg("回收");
  719. //load();
  720. $("#orderlist").bootstrapTable("refresh");
  721. }
  722. }
  723. );
  724. }
  725. );
  726. }
  727. //强制回收
  728. function recycles() {
  729. layer.confirm("确定要强制退回吗?", {
  730. btn: ["是", "否"], //按钮
  731. });
  732. }
  733. //审核退回申请
  734. function shth(str) {
  735. layer.open({
  736. type: 2,
  737. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  738. title: "审核退回申请",
  739. area: ["60%", "80%"], //宽高
  740. });
  741. }
  742. //申请延时
  743. function ys(str) {
  744. layer.open({
  745. type: 2,
  746. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  747. title: "申请延时",
  748. area: ["60%", "80%"], //宽高
  749. });
  750. }
  751. //审核申请延时
  752. function shys(str) {
  753. layer.open({
  754. type: 2,
  755. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  756. title: "审核延时申请",
  757. area: ["60%", "80%"], //宽高
  758. });
  759. }
  760. //工单审核
  761. function hf(str) {
  762. layer.open({
  763. type: 2,
  764. //content: "../CommonHtml/Back.html?wid=" + str, //之前的审核
  765. content: "../CommonHtml/auditBack.html?wid=" + str, //
  766. title: "工单审核",
  767. area: ["60%", "80%"], //宽高
  768. });
  769. }
  770. //重办工单
  771. function cb(str) {
  772. layer.open({
  773. type: 2,
  774. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  775. title: "重办工单",
  776. area: ["60%", "80%"], //宽高
  777. });
  778. }
  779. //提交重办
  780. function bhcb(str) {
  781. //回退BackDtail
  782. layer.open({
  783. type: 2,
  784. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  785. title: "驳回重办",
  786. area: ["60%", "80%"], //宽高
  787. });
  788. }
  789. //提交重办
  790. function tjcb(str) {
  791. layer.open({
  792. type: 2,
  793. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  794. title: "提交重办",
  795. area: ["50%", "40%"], //宽高
  796. });
  797. // layer.confirm('确认提交重办吗?', {
  798. // btn: ['是', '否'] //按钮
  799. // }, function () {
  800. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  801. // ids: str,
  802. // "token": $.cookie("token")
  803. // }, function(result) {
  804. // result = JSON.parse(result);
  805. // if(result.state.toLowerCase() == "success") {
  806. // layer.msg("操作成功");
  807. // //load();
  808. // $("#orderlist").bootstrapTable('refresh');
  809. // }
  810. // })
  811. // });
  812. }
  813. //结案
  814. function Lawsuit(str) {
  815. layer.open({
  816. type: 2,
  817. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  818. title: "诉求单结案",
  819. area: ["60%", "80%"], //宽高
  820. });
  821. }
  822. //退回
  823. function returnRedo(str) {
  824. layer.open({
  825. type: 2,
  826. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  827. title: "退回",
  828. area: ["50%", "40%"], //宽高
  829. });
  830. }
  831. //退回
  832. function returnAuditor(str) {
  833. layer.open({
  834. type: 2,
  835. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  836. title: "退回",
  837. area: ["50%", "40%"], //宽高
  838. });
  839. }
  840. //修改
  841. function editProcessingResult(str) {
  842. layer.open({
  843. type: 2,
  844. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  845. title: "修改",
  846. area: ["50%", "70%"], //宽高
  847. });
  848. }
  849. //来源
  850. function LY(obj) {
  851. obj.empty();
  852. obj.append(
  853. '<option selected="selected" value="">请选择</option>'
  854. );
  855. $.getJSON(
  856. huayi.config.callcenter_url +
  857. "Dictionary/GetDicValueListById", {
  858. token: $.cookie("token"),
  859. id: 1,
  860. },
  861. function (data) {
  862. if (data.state.toLowerCase() == "success") {
  863. var content = data.data;
  864. $(content).each(function (i, n) {
  865. $(
  866. "<option value='" +
  867. n.F_ValueId +
  868. "'>" +
  869. n.F_Value +
  870. "</option>"
  871. ).appendTo(obj);
  872. });
  873. }
  874. }
  875. );
  876. }
  877. //类别
  878. function LB(obj) {
  879. obj.empty();
  880. obj.append(
  881. '<option selected="selected" value="">请选择</option>'
  882. );
  883. $.getJSON(
  884. huayi.config.callcenter_url +
  885. "Dictionary/GetDicValueListById", {
  886. token: $.cookie("token"),
  887. id: 2,
  888. },
  889. function (data) {
  890. if (data.state.toLowerCase() == "success") {
  891. var content = data.data;
  892. $(content).each(function (i, n) {
  893. $(
  894. "<option value='" +
  895. n.F_ValueId +
  896. "'>" +
  897. n.F_Value +
  898. "</option>"
  899. ).appendTo(obj);
  900. });
  901. }
  902. }
  903. );
  904. }
  905. // 主题
  906. function ZT(obj) {
  907. obj.empty();
  908. obj.append(
  909. '<option selected="selected" value="">请选择</option>'
  910. );
  911. $.getJSON(
  912. huayi.config.callcenter_url +
  913. "Dictionary/GetDicValueListById", {
  914. token: $.cookie("token"),
  915. id: 3,
  916. },
  917. function (data) {
  918. if (data.state.toLowerCase() == "success") {
  919. var content = data.data;
  920. $(content).each(function (i, n) {
  921. $(
  922. "<option value='" +
  923. n.F_ValueId +
  924. "'>" +
  925. n.F_Value +
  926. "</option>"
  927. ).appendTo(obj);
  928. });
  929. }
  930. }
  931. );
  932. }
  933. function tree() {
  934. $.get(
  935. huayi.config.callcenter_url + "Department/GetDeptList", {
  936. token: $.cookie("token"),
  937. // "pid": pid
  938. },
  939. function (result) {
  940. result = $.parseJSON(result);
  941. $.fn.zTree.init(
  942. $("#addTreeDemo"),
  943. setting1,
  944. result.data
  945. ); //实例化树形图
  946. }
  947. );
  948. }
  949. var setting1 = {
  950. data: {
  951. key: {
  952. name: "F_DeptName",
  953. },
  954. simpleData: {
  955. enable: true,
  956. idKey: "F_DeptId",
  957. pIdKey: "F_PartentId",
  958. rootPId: 0,
  959. },
  960. },
  961. callback: {
  962. onClick: zTreeOnClick,
  963. },
  964. };
  965. function zTreeOnClick(event, treeId, treeNode) {
  966. // if (treeNode.level >= 1) {
  967. $(".inps").val(treeNode.F_DeptName);
  968. $("#PID").val(treeNode.F_DeptId);
  969. $("#Dpment").val(treeNode.F_DeptId);
  970. $(".Cleans").show();
  971. // }
  972. }
  973. function Close() {
  974. $(".lyxz").removeClass("cx");
  975. if ($("audio").length > 0) {
  976. $("audio")[0].pause();
  977. }
  978. }
  979. // 导出文件
  980. $(".exportFile").click(function() {
  981. exportParams.isdc = 1;
  982. exportFileFun("WorkOrder/GetZXDealList", exportParams)
  983. })
  984. </script>
  985. </body>
  986. </html>