Sin descripción

ThreeWorkDCCO.html 39KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  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. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  391. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  392. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  393. });
  394. //获取查询信息
  395. function load() {
  396. //坐席
  397. var usercodeID = "";
  398. var usercode_ = $("#ZX").val(); //坐席
  399. if (usercode_ != null) {
  400. $(usercode_).each(function (i, n) {
  401. var obj1 = "";
  402. obj1 = n + ",";
  403. usercodeID += obj1;
  404. });
  405. } else {
  406. usercodeID = "";
  407. }
  408. // 调度员
  409. var ddusercodeID = "";
  410. var ddusercode_ = $("#yardman").val(); //坐席
  411. if (ddusercode_ != null) {
  412. $(ddusercode_).each(function (i, n) {
  413. var obj2 = "";
  414. obj2 = n + ",";
  415. ddusercodeID += obj2;
  416. });
  417. } else {
  418. ddusercodeID = "";
  419. }
  420. //先销毁表格
  421. $("#orderlist").bootstrapTable("destroy");
  422. //初始化表格,动态从服务器加载数据
  423. $("#orderlist").bootstrapTable({
  424. method: "get", //使用get请求到服务器获取数据
  425. url: huayi.config.callcenter_url +
  426. "WorkOrder/GetXBDWDealList", //获取数据的Servlet地址
  427. contentType: "application/x-www-form-urlencoded",
  428. striped: true, //表格显示条纹
  429. pagination: true, //启动分页
  430. pageSize: 10, //每页显示的记录数
  431. pageNumber: 1, //当前第几页
  432. pageList: [10, 20, 50, 100], //记录数可选列表
  433. search: false, //是否启用查询
  434. showColumns: false, //显示下拉框勾选要显示的列
  435. showRefresh: false, //显示刷新按钮
  436. sidePagination: "server", //表示服务端请求
  437. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  438. //设置为limit可以获取limit, offset, search, sort, order
  439. queryParamsType: "undefined",
  440. queryParams: function queryParams(params) {
  441. //设置查询参数
  442. var param = {
  443. page: params.pageNumber,
  444. pagesize: params.pageSize,
  445. workid: $("#wids").val(),
  446. state: $("#state").val(), //=工单状态
  447. type: $("#type").val(), //=工单类型
  448. bigtype: $("#bigtype").val(), //=大类别
  449. smalltype: $("#smalltype").val(), //=小类别
  450. key: $("#key").val(), //=关键字
  451. tel: $("#tel").val(), //=客户电话
  452. name: $("#name").val(), //=客户名称
  453. usercode: usercodeID, //=坐席工号
  454. ddusercode: ddusercodeID,
  455. keyid: $("#keyid").val(), //=关键词id
  456. source: $("#source").val(), //=来源&
  457. starttime: $("#starttime").val(), //=开始时间
  458. endtime: $("#endtime").val(), //=结束时间
  459. deptid: $("#Dpment").val(),
  460. type: $("#type").val(),
  461. tab: 0, //待处理
  462. sourcearea: $("#sourceAreas").val(), //区域
  463. token: $.cookie("token"),
  464. };
  465. return param;
  466. },
  467. onLoadSuccess: function (data) {
  468. //加载成功时执行
  469. // layer.msg("加载成功");
  470. //console.log(data);
  471. },
  472. onLoadError: function () {
  473. //加载失败时执行
  474. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  475. },
  476. });
  477. }
  478. //状态
  479. function States(val, row) {
  480. var html = "";
  481. switch (val + "") {
  482. case "0":
  483. html = "新工单";
  484. if (row.F_IsReturn == 1) {
  485. html = "新工单(回退)";
  486. }
  487. break;
  488. case "1":
  489. html = "待交办";
  490. break;
  491. case "2":
  492. html = '<span style="color:#FF0000;">待查收</span>';
  493. break;
  494. case "3":
  495. html = "退回审核中";
  496. break;
  497. case "4":
  498. html = "办理中";
  499. break;
  500. case "5":
  501. html = "延时审核";
  502. break;
  503. case "6":
  504. html = "待审核";
  505. break;
  506. case "7":
  507. html = "已回访";
  508. break;
  509. case "8":
  510. html = "重办中";
  511. break;
  512. case "9":
  513. html = "已结案";
  514. break;
  515. case "10":
  516. html = "待审核";
  517. break;
  518. case "11":
  519. html = "重办待交办";
  520. break;
  521. case "12":
  522. html = "待审核";
  523. break;
  524. case "13":
  525. html = "待督办";
  526. break;
  527. }
  528. return html;
  529. }
  530. //时限
  531. function OverTime(val, row) {
  532. if (val == 1) {
  533. return (
  534. '<div class="" style="cursor: pointer;">' +
  535. '<span class="Greens">' +
  536. row.GapTime +
  537. "</span>" +
  538. "</div>"
  539. );
  540. } else if (val == 2) {
  541. return (
  542. '<div class="" style="cursor: pointer;">' +
  543. '<span class="Yellows">' +
  544. row.GapTime +
  545. "</span>" +
  546. "</div>"
  547. );
  548. } else if (val == 3) {
  549. return (
  550. '<div class="" style="cursor: pointer;">' +
  551. '<span class="Reds">' +
  552. row.GapTime +
  553. "</span>" +
  554. "</div>"
  555. );
  556. }
  557. }
  558. //办理时限
  559. function BanTime(val) {
  560. if (val) {
  561. var time = val.substring(0, val.indexOf(" "));
  562. return (
  563. '<div class="" style="cursor: pointer;">' +
  564. "<span>" +
  565. time +
  566. "</span>" +
  567. "</div>"
  568. );
  569. }
  570. }
  571. //音频
  572. function setCode(val) {
  573. if (val) {
  574. return (
  575. '<div class="imgs" style="cursor: pointer;">' +
  576. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  577. val +
  578. '" />' +
  579. "</div>"
  580. );
  581. } else {
  582. return "";
  583. }
  584. }
  585. function GetCont(val) {
  586. if (val) {
  587. var str = "<div ";
  588. if (val.length > 10) {
  589. str = str + ' title="' + val + '" ';
  590. val = val.substr(0, 10) + "...";
  591. }
  592. return str + ">" + val + "</div>";
  593. } else {
  594. return "";
  595. }
  596. }
  597. //操作
  598. function Dispose(val, row) {
  599. var Rows = row.Buttons;
  600. var html = "";
  601. for (var i = 0; i < Rows.length; i++) {
  602. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  603. if (html1) {
  604. html1 = html1.replace("data", val);
  605. html1 = html1.replace("isProtect", row.F_IsProtect);
  606. html1 = html1.replace("row", row.F_MainDeptId);
  607. }
  608. html += html1;
  609. }
  610. return html;
  611. }
  612. //查看详情
  613. function ckxq(str) {
  614. layer.open({
  615. type: 2,
  616. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  617. title: "工单详情",
  618. area: ["100%", "100%"], //宽高
  619. });
  620. }
  621. //编辑
  622. function bj(str) {
  623. layer.open({
  624. type: 2,
  625. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  626. title: "编辑工单",
  627. area: ["96%", "80%"], //宽高
  628. });
  629. }
  630. //删除
  631. function move(str) {
  632. layer.confirm(
  633. "确定删除工单?", {
  634. btn: ["是", "否"], //按钮
  635. },
  636. function () {
  637. $.post(
  638. huayi.config.callcenter_url +
  639. "WorkOrder/DelWorkOrder", {
  640. ids: str,
  641. token: $.cookie("token"),
  642. },
  643. function (result) {
  644. result = JSON.parse(result);
  645. if (result.state.toLowerCase() == "success") {
  646. layer.msg("删除成功");
  647. load();
  648. }
  649. }
  650. );
  651. }
  652. );
  653. }
  654. //提交
  655. function tj(str) {
  656. layer.confirm(
  657. "确定要提交工单么?", {
  658. btn: ["确定", "取消"], //按钮
  659. },
  660. function () {
  661. //请求后台数据
  662. /*发送请求*/
  663. $.post(
  664. huayi.config.callcenter_url +
  665. "WorkOrder/SubmitWorkOrder", {
  666. ids: str,
  667. token: $.cookie("token"),
  668. },
  669. function (result) {
  670. result = JSON.parse(result);
  671. if (result.state.toLowerCase() == "success") {
  672. layer.msg("提交成功");
  673. load();
  674. }
  675. }
  676. );
  677. }
  678. );
  679. }
  680. //交办
  681. function jb(str) {
  682. layer.open({
  683. type: 2,
  684. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  685. title: "工单交办",
  686. area: ["87%", "80%"], //宽高
  687. });
  688. }
  689. //领导批示
  690. function lader(str) {
  691. layer.open({
  692. type: 2,
  693. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  694. title: "领导批示",
  695. area: ["60%", "80%"], //宽高
  696. });
  697. }
  698. //市长批示
  699. function city(str) {
  700. layer.open({
  701. type: 2,
  702. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  703. title: "领导批示",
  704. area: ["60%", "80%"], //宽高
  705. });
  706. }
  707. //办理
  708. function bl(str, isProtect) {
  709. layer.open({
  710. type: 2,
  711. content: "../CommonHtml/ThreeXBBL.html?wid=" +
  712. str +
  713. "&isProtect=" +
  714. isProtect, //iframe的url,no代表不显示滚动条
  715. title: "办理工单",
  716. area: ["60%", "80%"], //宽高
  717. });
  718. }
  719. //督办
  720. function Supervision(str) {
  721. layer.open({
  722. type: 2,
  723. content: "../CommonHtml/Supervision_.html?wid=" +
  724. str +
  725. "&type=1", //iframe的url,no代表不显示滚动条
  726. title: "督办",
  727. area: ["60%", "80%"], //宽高
  728. });
  729. }
  730. //督查
  731. function Supervision_(str) {
  732. layer.open({
  733. type: 2,
  734. content: "../CommonHtml/Supervision_.html?wid=" +
  735. str +
  736. "&type=2", //iframe的url,no代表不显示滚动条
  737. title: "监察",
  738. area: ["60%", "80%"], //宽高
  739. });
  740. }
  741. //强制结案
  742. function StrongLawsuit(str) {
  743. layer.open({
  744. type: 2,
  745. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  746. title: "强制结案",
  747. area: ["60%", "80%"], //宽高
  748. });
  749. }
  750. //回退BackDtail
  751. function BackDtail(str) {
  752. layer.open({
  753. type: 2,
  754. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  755. title: "工单回退",
  756. area: ["60%", "80%"], //宽高
  757. });
  758. }
  759. //查收
  760. function cs(str) {
  761. layer.confirm(
  762. "确定要查收?", {
  763. btn: ["是", "否"], //按钮
  764. },
  765. function () {
  766. $.post(
  767. huayi.config.callcenter_url +
  768. "WorkOrder/ReceiveWorkOrder", {
  769. workorderid: str,
  770. token: $.cookie("token"),
  771. },
  772. function (result) {
  773. result = JSON.parse(result);
  774. if (result.state.toLowerCase() == "success") {
  775. layer.msg("查收成功");
  776. load();
  777. }
  778. }
  779. );
  780. }
  781. );
  782. }
  783. //收回
  784. function sh(str) {
  785. layer.confirm(
  786. "确定要回收?", {
  787. btn: ["是", "否"], //按钮
  788. },
  789. function () {
  790. $.post(
  791. huayi.config.callcenter_url +
  792. "WorkOrder/TakeBackWorkOrder", {
  793. workorderid: str,
  794. token: $.cookie("token"),
  795. },
  796. function (result) {
  797. result = JSON.parse(result);
  798. if (result.state.toLowerCase() == "success") {
  799. layer.msg("回收");
  800. load();
  801. }
  802. }
  803. );
  804. }
  805. );
  806. }
  807. //强制回收
  808. function recycles() {
  809. layer.confirm("确定要强制退回吗?", {
  810. btn: ["是", "否"], //按钮
  811. });
  812. }
  813. //退回申请
  814. function th(str) {
  815. layer.open({
  816. type: 2,
  817. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  818. title: "申请退回工单",
  819. area: ["60%", "80%"], //宽高
  820. });
  821. }
  822. //审核退回申请
  823. function shth(str) {
  824. layer.open({
  825. type: 2,
  826. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  827. title: "审核退回申请",
  828. area: ["60%", "80%"], //宽高
  829. });
  830. }
  831. //办理
  832. // function th(str) {
  833. // layer.open({
  834. // type: 2,
  835. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  836. // title: '办理工单',
  837. // area: ['35%', '30%'], //宽高
  838. // });
  839. // }
  840. //申请延时
  841. function ys(str) {
  842. layer.open({
  843. type: 2,
  844. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  845. title: "申请延时",
  846. area: ["60%", "80%"], //宽高
  847. });
  848. }
  849. //审核申请延时
  850. function shys(str) {
  851. layer.open({
  852. type: 2,
  853. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  854. title: "审核延时申请",
  855. area: ["60%", "80%"], //宽高
  856. });
  857. }
  858. //诉求回访
  859. function hf(str) {
  860. layer.open({
  861. type: 2,
  862. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  863. title: "工单回访",
  864. area: ["60%", "80%"], //宽高
  865. });
  866. }
  867. //重办工单
  868. function cb(str) {
  869. layer.open({
  870. type: 2,
  871. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  872. title: "重办工单",
  873. area: ["60%", "80%"], //宽高
  874. });
  875. }
  876. //结案
  877. function Lawsuit(str) {
  878. layer.open({
  879. type: 2,
  880. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  881. title: "诉求单结案",
  882. area: ["60%", "80%"], //宽高
  883. });
  884. }
  885. $(".Appeal").click(function () {
  886. layer.open({
  887. type: 2,
  888. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  889. title: "新增诉求",
  890. area: ["85%", "80%"], //宽高
  891. });
  892. });
  893. //上传文件
  894. function upload() {
  895. if (document.getElementById("upFile").files.length > 0) {
  896. var formData = new FormData();
  897. formData.append(
  898. "upFile",
  899. document.getElementById("upFile").files[0]
  900. );
  901. formData.append("token", $.cookie("token"));
  902. $.ajax({
  903. url: huayi.config.callcenter_url +
  904. "/WorkOrder/UploadFile",
  905. type: "POST",
  906. data: formData,
  907. /**
  908. *必须false才会自动加上正确的Content-Type
  909. */
  910. contentType: false,
  911. /**
  912. * 必须false才会避开jQuery对 formdata 的默认处理
  913. * XMLHttpRequest会对 formdata 进行正确的处理
  914. */
  915. processData: false,
  916. success: function (result) {
  917. document.getElementById(
  918. "upFile"
  919. ).outerHTML = document.getElementById(
  920. "upFile"
  921. ).outerHTML;
  922. $("#upFile").change(function () {
  923. upload();
  924. });
  925. var r = $.parseJSON(result);
  926. if (r.state.toLowerCase() == "success") {
  927. $(".fjnr").text(r.data);
  928. $("#scfj").show();
  929. }
  930. },
  931. });
  932. } else {
  933. layer.confirm("请上传文件!", {
  934. btn: ["确定"],
  935. });
  936. }
  937. }
  938. //来源
  939. function LY(obj) {
  940. obj.empty();
  941. obj.append(
  942. '<option selected="selected" value="">请选择</option>'
  943. );
  944. $.getJSON(
  945. huayi.config.callcenter_url +
  946. "Dictionary/GetDicValueListById", {
  947. token: $.cookie("token"),
  948. id: 1,
  949. },
  950. function (data) {
  951. if (data.state.toLowerCase() == "success") {
  952. var content = data.data;
  953. $(content).each(function (i, n) {
  954. $(
  955. "<option value='" +
  956. n.F_ValueId +
  957. "'>" +
  958. n.F_Value +
  959. "</option>"
  960. ).appendTo(obj);
  961. });
  962. }
  963. }
  964. );
  965. }
  966. //类别
  967. function LB(obj) {
  968. obj.empty();
  969. obj.append(
  970. '<option selected="selected" value="">请选择</option>'
  971. );
  972. $.getJSON(
  973. huayi.config.callcenter_url +
  974. "Dictionary/GetDicValueListById", {
  975. token: $.cookie("token"),
  976. id: 2,
  977. },
  978. function (data) {
  979. if (data.state.toLowerCase() == "success") {
  980. var content = data.data;
  981. $(content).each(function (i, n) {
  982. $(
  983. "<option value='" +
  984. n.F_ValueId +
  985. "'>" +
  986. n.F_Value +
  987. "</option>"
  988. ).appendTo(obj);
  989. });
  990. }
  991. }
  992. );
  993. }
  994. // 主题
  995. function ZT(obj) {
  996. obj.empty();
  997. obj.append(
  998. '<option selected="selected" value="">请选择</option>'
  999. );
  1000. $.getJSON(
  1001. huayi.config.callcenter_url +
  1002. "Dictionary/GetDicValueListById", {
  1003. token: $.cookie("token"),
  1004. id: 3,
  1005. },
  1006. function (data) {
  1007. if (data.state.toLowerCase() == "success") {
  1008. var content = data.data;
  1009. $(content).each(function (i, n) {
  1010. $(
  1011. "<option value='" +
  1012. n.F_ValueId +
  1013. "'>" +
  1014. n.F_Value +
  1015. "</option>"
  1016. ).appendTo(obj);
  1017. });
  1018. }
  1019. }
  1020. );
  1021. }
  1022. ///坐席
  1023. function ZX(obj) {
  1024. obj.empty();
  1025. $.getJSON(
  1026. huayi.config.callcenter_url + "UserAccount/GetSeatList", {
  1027. token: $.cookie("token"),
  1028. },
  1029. function (data) {
  1030. if (data.state.toLowerCase() == "success") {
  1031. var content = data.data;
  1032. $(content).each(function (i, n) {
  1033. $(
  1034. "<option value='" +
  1035. n.F_UserCode +
  1036. "'>" +
  1037. n.F_UserName +
  1038. "</option>"
  1039. ).appendTo(obj);
  1040. });
  1041. obj.selectpicker({
  1042. noneSelectedText: "请选择", //默认显示内容
  1043. });
  1044. obj.selectpicker("refresh");
  1045. }
  1046. }
  1047. );
  1048. }
  1049. //调度员
  1050. function yardman(obj) {
  1051. obj.empty();
  1052. $.getJSON(
  1053. huayi.config.callcenter_url + "UserAccount/GetUsersList", {
  1054. rolecode: "ZXLD",
  1055. token: $.cookie("token"),
  1056. },
  1057. function (data) {
  1058. if (data.state.toLowerCase() == "success") {
  1059. var content = data.data;
  1060. $(content).each(function (i, n) {
  1061. $(
  1062. "<option value='" +
  1063. n.F_UserCode +
  1064. "'>" +
  1065. n.F_UserName +
  1066. "</option>"
  1067. ).appendTo(obj);
  1068. });
  1069. obj.selectpicker({
  1070. noneSelectedText: "请选择", //默认显示内容
  1071. });
  1072. obj.selectpicker("refresh");
  1073. }
  1074. }
  1075. );
  1076. }
  1077. </script>
  1078. </body>
  1079. </html>