Aucune description

messagesDefaultHighPraiseMarketing.html 40KB

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