Brak opisu

WorkDCCO.html 47KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210
  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 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
  232. id="sqzx"
  233. style="width: 100%"
  234. border="0"
  235. cellspacing="0"
  236. cellpadding="0"
  237. >
  238. <tr>
  239. <th>事项编号:</th>
  240. <td>
  241. <input
  242. type="text"
  243. placeholder="输入工单号"
  244. id="wids"
  245. class="Min-width"
  246. />
  247. </td>
  248. <th>来电号码:</th>
  249. <td>
  250. <input
  251. type="text"
  252. id="tel"
  253. class="Min-width"
  254. />
  255. </td>
  256. <th>时间:</th>
  257. <td>
  258. <input
  259. type="text"
  260. id="starttime"
  261. class="laydate-icon Min-width"
  262. style="height: 32px"
  263. />&nbsp;——&nbsp;<input
  264. type="text"
  265. id="endtime"
  266. class="laydate-icon Min-width"
  267. style="height: 32px"
  268. />
  269. </td>
  270. </tr>
  271. <tr>
  272. <th>关键字:</th>
  273. <td>
  274. <input
  275. type="text"
  276. placeholder="输入关键字"
  277. id="key"
  278. class="Min-width"
  279. />
  280. </td>
  281. <th>区域:</th>
  282. <td>
  283. <select
  284. name=""
  285. id="sourceAreas"
  286. class="select"
  287. ></select>
  288. </td>
  289. <th>工单来源:</th>
  290. <td>
  291. <select
  292. class="select_"
  293. id="source"
  294. ></select>
  295. </td>
  296. <th>主题词:</th>
  297. <td>
  298. <select
  299. id="keyid"
  300. name=""
  301. class="select"
  302. ></select>
  303. </td>
  304. </tr>
  305. <tr>
  306. <!-- <th>反映类别:</th>
  307. <td colspan="3">
  308. <select class="select_" id="type">
  309. </select>
  310. </td> -->
  311. <!-- <th>坐席:</th>
  312. <td>
  313. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  314. <option value="">请选择坐席</option>
  315. </select>
  316. </td> -->
  317. <th>审核员:</th>
  318. <td>
  319. <select
  320. id="yardman"
  321. name="select"
  322. class="selectpicker show-tick form-control"
  323. multiple
  324. data-live-search="true"
  325. >
  326. <option value="">
  327. 请选择调度员
  328. </option>
  329. </select>
  330. </td>
  331. <!-- <th>来电人:</th>
  332. <td>
  333. <input type="text" id="name" class="Min-width"/>
  334. </td>
  335. <th></th> -->
  336. <td style="text-align: center">
  337. <botton class="btns Seach">搜索</botton>
  338. <!--<botton class="btns ">导出</botton>-->
  339. </td>
  340. </tr>
  341. </table>
  342. </div>
  343. </div>
  344. <div>
  345. <div style="width: 100%; padding: 10px">
  346. <table
  347. id="orderlist"
  348. data-row-style="rowStyle"
  349. data-query-params="queryParams"
  350. data-pagination="true"
  351. >
  352. <thead>
  353. <tr>
  354. <th
  355. data-field="F_WorkOrderId"
  356. data-align="center"
  357. >
  358. 工单单号
  359. </th>
  360. <th
  361. data-field="F_ComTitle"
  362. data-formatter="GetCont"
  363. data-align="center"
  364. >
  365. 诉求标题
  366. </th>
  367. <th
  368. data-field="DeptName"
  369. data-align="center"
  370. >
  371. 承办单位
  372. </th>
  373. <th
  374. data-field="OtherDeptName"
  375. data-align="center"
  376. >
  377. 协办单位
  378. </th>
  379. <th
  380. data-field="UserName"
  381. data-align="center"
  382. >
  383. 受理人
  384. </th>
  385. <th
  386. data-field="F_WorkState"
  387. data-align="center"
  388. data-formatter="States"
  389. >
  390. 办理状态
  391. </th>
  392. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  393. <th
  394. data-field="OverState"
  395. data-formatter="OverTime"
  396. data-align="center"
  397. >
  398. 时限
  399. </th>
  400. <th
  401. data-field="LimitTime"
  402. data-formatter="BanTime"
  403. data-align="center"
  404. >
  405. 办理时限
  406. </th>
  407. <th
  408. data-field="F_WorkOrderId"
  409. data-formatter="Dispose"
  410. data-align="center"
  411. >
  412. 操作
  413. </th>
  414. </tr>
  415. </thead>
  416. <tbody class="list"></tbody>
  417. </table>
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <!--下载框-->
  423. <div class="t-shade lyxz">
  424. <div class="shade_k">
  425. <div class="shade_title">
  426. <span>录音播放与下载<srong class="cknum"></srong></span>
  427. <span class="setwin gbly"><a>x</a></span>
  428. </div>
  429. <div class="shade_content">
  430. <div class="Ly_box audiojs"></div>
  431. </div>
  432. </div>
  433. </div>
  434. <input type="hidden" id="PID" />
  435. <input type="hidden" id="Dpment" />
  436. </div>
  437. <script src="../js/bootstrap-select.js"></script>
  438. <script src="../css/laydate/laydate.js"></script>
  439. <script src="../My97DatePicker/WdatePicker.js"></script>
  440. <script src="../js/zTree/jquery.ztree.core.js"></script>
  441. <!--<script src="../js/search/screen.js"></script>-->
  442. <script>
  443. $(document).ready(function () {
  444. load();
  445. ZX($("#ZX"));
  446. LY($("#source"));
  447. LB($("#type"));
  448. ZT($("#keyid"));
  449. yardman($("#yardman"));
  450. laydate.skin("blue");
  451. helper.getDropList.getOrderAreas($("#sourceAreas"));
  452. laydate({
  453. elem: "#starttime",
  454. event: "focus",
  455. });
  456. laydate({
  457. elem: "#endtime",
  458. event: "focus",
  459. });
  460. ///搜素
  461. $(".Seach").click(function () {
  462. load();
  463. });
  464. });
  465. //关闭录音弹出
  466. $(".gbly").click(function () {
  467. $(".lyxz").removeClass("cx");
  468. $("audio")[0].pause();
  469. });
  470. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  471. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  472. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  473. });
  474. //获取查询信息
  475. function load() {
  476. //坐席
  477. var usercodeID = "";
  478. var usercode_ = $("#ZX").val(); //坐席
  479. if (usercode_ != null) {
  480. $(usercode_).each(function (i, n) {
  481. var obj1 = "";
  482. obj1 = n + ",";
  483. usercodeID += obj1;
  484. });
  485. } else {
  486. usercodeID = "";
  487. }
  488. // 调度员
  489. var ddusercodeID = "";
  490. var ddusercode_ = $("#yardman").val(); //坐席
  491. if (ddusercode_ != null) {
  492. $(ddusercode_).each(function (i, n) {
  493. var obj2 = "";
  494. obj2 = n + ",";
  495. ddusercodeID += obj2;
  496. });
  497. } else {
  498. ddusercodeID = "";
  499. }
  500. //先销毁表格
  501. $("#orderlist").bootstrapTable("destroy");
  502. //初始化表格,动态从服务器加载数据
  503. $("#orderlist").bootstrapTable({
  504. method: "get", //使用get请求到服务器获取数据
  505. url:
  506. huayi.config.callcenter_url +
  507. "WorkOrder/GetXBDWDealList", //获取数据的Servlet地址
  508. contentType: "application/x-www-form-urlencoded",
  509. striped: true, //表格显示条纹
  510. pagination: true, //启动分页
  511. pageSize: 10, //每页显示的记录数
  512. pageNumber: 1, //当前第几页
  513. pageList: [10, 20, 50, 100], //记录数可选列表
  514. search: false, //是否启用查询
  515. showColumns: false, //显示下拉框勾选要显示的列
  516. showRefresh: false, //显示刷新按钮
  517. sidePagination: "server", //表示服务端请求
  518. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  519. //设置为limit可以获取limit, offset, search, sort, order
  520. queryParamsType: "undefined",
  521. queryParams: function queryParams(params) {
  522. //设置查询参数
  523. var param = {
  524. page: params.pageNumber,
  525. pagesize: params.pageSize,
  526. workid: $("#wids").val(),
  527. state: $("#state").val(), //=工单状态
  528. type: $("#type").val(), //=工单类型
  529. bigtype: $("#bigtype").val(), //=大类别
  530. smalltype: $("#smalltype").val(), //=小类别
  531. key: $("#key").val(), //=关键字
  532. tel: $("#tel").val(), //=客户电话
  533. name: $("#name").val(), //=客户名称
  534. usercode: usercodeID, //=坐席工号
  535. ddusercode: ddusercodeID,
  536. keyid: $("#keyid").val(), //=关键词id
  537. source: $("#source").val(), //=来源&
  538. starttime: $("#starttime").val(), //=开始时间
  539. endtime: $("#endtime").val(), //=结束时间
  540. deptid: $("#Dpment").val(),
  541. type: $("#type").val(),
  542. tab: 0, //待处理
  543. sourcearea: $("#sourceAreas").val(), //区域
  544. token: $.cookie("token"),
  545. };
  546. return param;
  547. },
  548. onLoadSuccess: function (data) {
  549. //加载成功时执行
  550. // layer.msg("加载成功");
  551. //console.log(data);
  552. },
  553. onLoadError: function () {
  554. //加载失败时执行
  555. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  556. },
  557. });
  558. }
  559. //状态
  560. function States(val, row) {
  561. var html = "";
  562. switch (val + "") {
  563. case "0":
  564. html = "新工单";
  565. if (row.F_IsReturn == 1) {
  566. html = "新工单(回退)";
  567. }
  568. break;
  569. case "1":
  570. html = "待交办";
  571. break;
  572. case "2":
  573. html = "待查收";
  574. break;
  575. case "3":
  576. html = "退回审核中";
  577. break;
  578. case "4":
  579. html = "办理中";
  580. break;
  581. case "5":
  582. html = "延时审核";
  583. break;
  584. case "6":
  585. html = "待审核";
  586. break;
  587. case "7":
  588. html = "已回访";
  589. break;
  590. case "8":
  591. html = "重办中";
  592. break;
  593. case "9":
  594. html = "已结案";
  595. break;
  596. case "10":
  597. html = "待审核";
  598. break;
  599. case "11":
  600. html = "重办待交办";
  601. break;
  602. case "12":
  603. html = "待审核";
  604. break;
  605. case "13":
  606. html = "待督办";
  607. break;
  608. }
  609. return html;
  610. }
  611. //时限
  612. function OverTime(val, row) {
  613. if (val == 1) {
  614. return (
  615. '<div class="" style="cursor: pointer;">' +
  616. '<span class="Greens">' +
  617. row.GapTime +
  618. "</span>" +
  619. "</div>"
  620. );
  621. } else if (val == 2) {
  622. return (
  623. '<div class="" style="cursor: pointer;">' +
  624. '<span class="Yellows">' +
  625. row.GapTime +
  626. "</span>" +
  627. "</div>"
  628. );
  629. } else if (val == 3) {
  630. return (
  631. '<div class="" style="cursor: pointer;">' +
  632. '<span class="Reds">' +
  633. row.GapTime +
  634. "</span>" +
  635. "</div>"
  636. );
  637. }
  638. }
  639. //办理时限
  640. function BanTime(val) {
  641. if (val) {
  642. var time = val.substring(0, val.indexOf(" "));
  643. return (
  644. '<div class="" style="cursor: pointer;">' +
  645. "<span>" +
  646. time +
  647. "</span>" +
  648. "</div>"
  649. );
  650. }
  651. }
  652. //音频
  653. function setCode(val) {
  654. if (val) {
  655. return (
  656. '<div class="imgs" style="cursor: pointer;">' +
  657. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  658. val +
  659. '" />' +
  660. "</div>"
  661. );
  662. } else {
  663. return "";
  664. }
  665. }
  666. function GetCont(val) {
  667. if (val) {
  668. var str = "<div ";
  669. if (val.length > 10) {
  670. str = str + ' title="' + val + '" ';
  671. val = val.substr(0, 10) + "...";
  672. }
  673. return str + ">" + val + "</div>";
  674. } else {
  675. return "";
  676. }
  677. }
  678. //操作
  679. function Dispose(val, row) {
  680. var Rows = row.Buttons;
  681. var html = "";
  682. for (var i = 0; i < Rows.length; i++) {
  683. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  684. if (html1) {
  685. html1 = html1.replace("data", val);
  686. html1 = html1.replace("isProtect", row.F_IsProtect);
  687. html1 = html1.replace("row", row.F_MainDeptId);
  688. }
  689. html += html1;
  690. }
  691. return html;
  692. }
  693. //查看详情
  694. function ckxq(str) {
  695. layer.open({
  696. type: 2,
  697. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  698. title: "工单详情",
  699. area: ["100%", "100%"], //宽高
  700. });
  701. }
  702. //编辑
  703. function bj(str) {
  704. layer.open({
  705. type: 2,
  706. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  707. title: "编辑工单",
  708. area: ["96%", "80%"], //宽高
  709. });
  710. }
  711. //删除
  712. function move(str) {
  713. layer.confirm(
  714. "确定删除工单?",
  715. {
  716. btn: ["是", "否"], //按钮
  717. },
  718. function () {
  719. $.post(
  720. huayi.config.callcenter_url +
  721. "WorkOrder/DelWorkOrder",
  722. {
  723. ids: str,
  724. token: $.cookie("token"),
  725. },
  726. function (result) {
  727. result = JSON.parse(result);
  728. if (result.state.toLowerCase() == "success") {
  729. layer.msg("删除成功");
  730. load();
  731. }
  732. }
  733. );
  734. }
  735. );
  736. }
  737. //提交
  738. function tj(str) {
  739. layer.confirm(
  740. "确定要提交工单么?",
  741. {
  742. btn: ["确定", "取消"], //按钮
  743. },
  744. function () {
  745. //请求后台数据
  746. /*发送请求*/
  747. $.post(
  748. huayi.config.callcenter_url +
  749. "WorkOrder/SubmitWorkOrder",
  750. {
  751. ids: str,
  752. token: $.cookie("token"),
  753. },
  754. function (result) {
  755. result = JSON.parse(result);
  756. if (result.state.toLowerCase() == "success") {
  757. layer.msg("提交成功");
  758. load();
  759. }
  760. }
  761. );
  762. }
  763. );
  764. }
  765. //交办
  766. function jb(str) {
  767. layer.open({
  768. type: 2,
  769. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  770. title: "工单交办",
  771. area: ["87%", "80%"], //宽高
  772. });
  773. }
  774. //领导批示
  775. function lader(str) {
  776. layer.open({
  777. type: 2,
  778. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  779. title: "领导批示",
  780. area: ["60%", "80%"], //宽高
  781. });
  782. }
  783. //市长批示
  784. function city(str) {
  785. layer.open({
  786. type: 2,
  787. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  788. title: "领导批示",
  789. area: ["60%", "80%"], //宽高
  790. });
  791. }
  792. //办理
  793. function bl(str, isProtect) {
  794. layer.open({
  795. type: 2,
  796. content:
  797. "../CommonHtml/banli.html?wid=" +
  798. str +
  799. "&isProtect=" +
  800. isProtect, //iframe的url,no代表不显示滚动条
  801. title: "办理工单",
  802. area: ["60%", "80%"], //宽高
  803. });
  804. }
  805. //督办
  806. function Supervision(str) {
  807. layer.open({
  808. type: 2,
  809. content:
  810. "../CommonHtml/Supervision_.html?wid=" +
  811. str +
  812. "&type=1", //iframe的url,no代表不显示滚动条
  813. title: "督办",
  814. area: ["60%", "80%"], //宽高
  815. });
  816. }
  817. //督查
  818. function Supervision_(str) {
  819. layer.open({
  820. type: 2,
  821. content:
  822. "../CommonHtml/Supervision_.html?wid=" +
  823. str +
  824. "&type=2", //iframe的url,no代表不显示滚动条
  825. title: "监察",
  826. area: ["60%", "80%"], //宽高
  827. });
  828. }
  829. //强制结案
  830. function StrongLawsuit(str) {
  831. layer.open({
  832. type: 2,
  833. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  834. title: "强制结案",
  835. area: ["60%", "80%"], //宽高
  836. });
  837. }
  838. //回退BackDtail
  839. function BackDtail(str) {
  840. layer.open({
  841. type: 2,
  842. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  843. title: "工单回退",
  844. area: ["60%", "80%"], //宽高
  845. });
  846. }
  847. //查收
  848. function cs(str) {
  849. layer.confirm(
  850. "确定要查收?",
  851. {
  852. btn: ["是", "否"], //按钮
  853. },
  854. function () {
  855. $.post(
  856. huayi.config.callcenter_url +
  857. "WorkOrder/ReceiveWorkOrder",
  858. {
  859. workorderid: str,
  860. token: $.cookie("token"),
  861. },
  862. function (result) {
  863. result = JSON.parse(result);
  864. if (result.state.toLowerCase() == "success") {
  865. layer.msg("查收成功");
  866. load();
  867. }
  868. }
  869. );
  870. }
  871. );
  872. }
  873. //收回
  874. function sh(str) {
  875. layer.confirm(
  876. "确定要回收?",
  877. {
  878. btn: ["是", "否"], //按钮
  879. },
  880. function () {
  881. $.post(
  882. huayi.config.callcenter_url +
  883. "WorkOrder/TakeBackWorkOrder",
  884. {
  885. workorderid: str,
  886. token: $.cookie("token"),
  887. },
  888. function (result) {
  889. result = JSON.parse(result);
  890. if (result.state.toLowerCase() == "success") {
  891. layer.msg("回收");
  892. load();
  893. }
  894. }
  895. );
  896. }
  897. );
  898. }
  899. //强制回收
  900. function recycles() {
  901. layer.confirm("确定要强制退回吗?", {
  902. btn: ["是", "否"], //按钮
  903. });
  904. }
  905. //退回申请
  906. function th(str) {
  907. layer.open({
  908. type: 2,
  909. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  910. title: "申请退回工单",
  911. area: ["60%", "80%"], //宽高
  912. });
  913. }
  914. //审核退回申请
  915. function shth(str) {
  916. layer.open({
  917. type: 2,
  918. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  919. title: "审核退回申请",
  920. area: ["60%", "80%"], //宽高
  921. });
  922. }
  923. //办理
  924. // function th(str) {
  925. // layer.open({
  926. // type: 2,
  927. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  928. // title: '办理工单',
  929. // area: ['35%', '30%'], //宽高
  930. // });
  931. // }
  932. //申请延时
  933. function ys(str) {
  934. layer.open({
  935. type: 2,
  936. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  937. title: "申请延时",
  938. area: ["60%", "80%"], //宽高
  939. });
  940. }
  941. //审核申请延时
  942. function shys(str) {
  943. layer.open({
  944. type: 2,
  945. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  946. title: "审核延时申请",
  947. area: ["60%", "80%"], //宽高
  948. });
  949. }
  950. //诉求回访
  951. function hf(str) {
  952. layer.open({
  953. type: 2,
  954. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  955. title: "工单回访",
  956. area: ["60%", "80%"], //宽高
  957. });
  958. }
  959. //重办工单
  960. function cb(str) {
  961. layer.open({
  962. type: 2,
  963. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  964. title: "重办工单",
  965. area: ["60%", "80%"], //宽高
  966. });
  967. }
  968. //结案
  969. function Lawsuit(str) {
  970. layer.open({
  971. type: 2,
  972. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  973. title: "诉求单结案",
  974. area: ["60%", "80%"], //宽高
  975. });
  976. }
  977. $(".Appeal").click(function () {
  978. layer.open({
  979. type: 2,
  980. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  981. title: "新增诉求",
  982. area: ["85%", "80%"], //宽高
  983. });
  984. });
  985. //上传文件
  986. function upload() {
  987. if (document.getElementById("upFile").files.length > 0) {
  988. var formData = new FormData();
  989. formData.append(
  990. "upFile",
  991. document.getElementById("upFile").files[0]
  992. );
  993. formData.append("token", $.cookie("token"));
  994. $.ajax({
  995. url:
  996. huayi.config.callcenter_url +
  997. "/WorkOrder/UploadFile",
  998. type: "POST",
  999. data: formData,
  1000. /**
  1001. *必须false才会自动加上正确的Content-Type
  1002. */
  1003. contentType: false,
  1004. /**
  1005. * 必须false才会避开jQuery对 formdata 的默认处理
  1006. * XMLHttpRequest会对 formdata 进行正确的处理
  1007. */
  1008. processData: false,
  1009. success: function (result) {
  1010. document.getElementById(
  1011. "upFile"
  1012. ).outerHTML = document.getElementById(
  1013. "upFile"
  1014. ).outerHTML;
  1015. $("#upFile").change(function () {
  1016. upload();
  1017. });
  1018. var r = $.parseJSON(result);
  1019. if (r.state.toLowerCase() == "success") {
  1020. $(".fjnr").text(r.data);
  1021. $("#scfj").show();
  1022. }
  1023. },
  1024. });
  1025. } else {
  1026. layer.confirm("请上传文件!", {
  1027. btn: ["确定"],
  1028. });
  1029. }
  1030. }
  1031. //来源
  1032. function LY(obj) {
  1033. obj.empty();
  1034. obj.append(
  1035. '<option selected="selected" value="">请选择</option>'
  1036. );
  1037. $.getJSON(
  1038. huayi.config.callcenter_url +
  1039. "Dictionary/GetDicValueListById",
  1040. {
  1041. token: $.cookie("token"),
  1042. id: 1,
  1043. },
  1044. function (data) {
  1045. if (data.state.toLowerCase() == "success") {
  1046. var content = data.data;
  1047. $(content).each(function (i, n) {
  1048. $(
  1049. "<option value='" +
  1050. n.F_ValueId +
  1051. "'>" +
  1052. n.F_Value +
  1053. "</option>"
  1054. ).appendTo(obj);
  1055. });
  1056. }
  1057. }
  1058. );
  1059. }
  1060. //类别
  1061. function LB(obj) {
  1062. obj.empty();
  1063. obj.append(
  1064. '<option selected="selected" value="">请选择</option>'
  1065. );
  1066. $.getJSON(
  1067. huayi.config.callcenter_url +
  1068. "Dictionary/GetDicValueListById",
  1069. {
  1070. token: $.cookie("token"),
  1071. id: 2,
  1072. },
  1073. function (data) {
  1074. if (data.state.toLowerCase() == "success") {
  1075. var content = data.data;
  1076. $(content).each(function (i, n) {
  1077. $(
  1078. "<option value='" +
  1079. n.F_ValueId +
  1080. "'>" +
  1081. n.F_Value +
  1082. "</option>"
  1083. ).appendTo(obj);
  1084. });
  1085. }
  1086. }
  1087. );
  1088. }
  1089. // 主题
  1090. function ZT(obj) {
  1091. obj.empty();
  1092. obj.append(
  1093. '<option selected="selected" value="">请选择</option>'
  1094. );
  1095. $.getJSON(
  1096. huayi.config.callcenter_url +
  1097. "Dictionary/GetDicValueListById",
  1098. {
  1099. token: $.cookie("token"),
  1100. id: 3,
  1101. },
  1102. function (data) {
  1103. if (data.state.toLowerCase() == "success") {
  1104. var content = data.data;
  1105. $(content).each(function (i, n) {
  1106. $(
  1107. "<option value='" +
  1108. n.F_ValueId +
  1109. "'>" +
  1110. n.F_Value +
  1111. "</option>"
  1112. ).appendTo(obj);
  1113. });
  1114. }
  1115. }
  1116. );
  1117. }
  1118. ///坐席
  1119. function ZX(obj) {
  1120. obj.empty();
  1121. $.getJSON(
  1122. huayi.config.callcenter_url + "UserAccount/GetSeatList",
  1123. {
  1124. token: $.cookie("token"),
  1125. },
  1126. function (data) {
  1127. if (data.state.toLowerCase() == "success") {
  1128. var content = data.data;
  1129. $(content).each(function (i, n) {
  1130. $(
  1131. "<option value='" +
  1132. n.F_UserCode +
  1133. "'>" +
  1134. n.F_UserName +
  1135. "</option>"
  1136. ).appendTo(obj);
  1137. });
  1138. obj.selectpicker({
  1139. noneSelectedText: "请选择", //默认显示内容
  1140. });
  1141. obj.selectpicker("refresh");
  1142. }
  1143. }
  1144. );
  1145. }
  1146. //调度员
  1147. function yardman(obj) {
  1148. obj.empty();
  1149. $.getJSON(
  1150. huayi.config.callcenter_url + "UserAccount/GetUsersList",
  1151. {
  1152. rolecode: "ZXLD",
  1153. token: $.cookie("token"),
  1154. },
  1155. function (data) {
  1156. if (data.state.toLowerCase() == "success") {
  1157. var content = data.data;
  1158. $(content).each(function (i, n) {
  1159. $(
  1160. "<option value='" +
  1161. n.F_UserCode +
  1162. "'>" +
  1163. n.F_UserName +
  1164. "</option>"
  1165. ).appendTo(obj);
  1166. });
  1167. obj.selectpicker({
  1168. noneSelectedText: "请选择", //默认显示内容
  1169. });
  1170. obj.selectpicker("refresh");
  1171. }
  1172. }
  1173. );
  1174. }
  1175. </script>
  1176. </body>
  1177. </html>