Nenhuma Descrição

superviseProcessing.html 35KB

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