No Description

superviseReturnReview.html 35KB

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