No Description

superviseCommission.html 35KB

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