Нет описания

messagesReviewedMarketing.html 40KB

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