Няма описание

messagesArtificialBadReview.html 38KB

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