Aucune description

LSBH.html 32KB

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