Нет описания

WorkDCCO.html 37KB

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