Ei kuvausta

superviseFinished.html 35KB

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