暂无描述

WorkYBLMarketing.html 35KB

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