Bez popisu

superviseReturnReview.html 35KB

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