Sin descripción

superviseReturned.html 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>督办已退回</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../css/bootstrap-select.css">
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <link rel="stylesheet" href="../js/layui/css/layui.css">
  12. <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
  13. </head>
  14. <body class="gray-bg">
  15. <div class="wrapper wrapper-content animated fadeInRight">
  16. <div class="daoHang clearfix">
  17. <div class="dhLeft">
  18. <sapn>
  19. <i class="syIcon"></i>位置:
  20. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  21. <a href="javaScript:;">督办管理</a>&gt;
  22. <a href="" class="nowPosition">督办已退回</a>
  23. </sapn>
  24. </div>
  25. <div class="dhRight">
  26. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  27. </div>
  28. </div>
  29. <div style="padding: 10px;" class="tj_content clearFix">
  30. <div style="padding: 10px;" class="tj_content clearFix">
  31. <div>
  32. <span>【搜索信息】</span>
  33. <div class="box_content">
  34. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  35. <tr>
  36. <th>工单来源:</th>
  37. <td>
  38. <select class="form-control" id="source">
  39. </select>
  40. </td>
  41. <th>来电号码:</th>
  42. <td>
  43. <input type="text" id="tel" class="form-control" />
  44. </td>
  45. <th>转督办时间:</th>
  46. <td colspan="3">
  47. <input type="text" id="dbstarttime" class="photo x-color laydate-icon"
  48. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  49. id="dbstrendtime" class="photo x-color laydate-icon" autocomplete="off"
  50. style="height: 35px;" />
  51. </td>
  52. <!-- <th>录入时间:</th>
  53. <td colspan="3">
  54. <input type="text" id="starttime" class="photo x-color laydate-icon"
  55. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  56. id="endtime" class="photo x-color laydate-icon" autocomplete="off"
  57. style="height: 35px;" />
  58. </td> -->
  59. </tr>
  60. <tr>
  61. <th>事项编号:</th>
  62. <td>
  63. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  64. </td>
  65. <th><span class="nameJustified">来电人:</span></th>
  66. <td>
  67. <input type="text" id="name" class="form-control" />
  68. </td>
  69. <th>办理时间:</th>
  70. <td colspan="3">
  71. <input id="dealstarttime" class="photo x-color laydate-icon" type="text"
  72. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input
  73. id="dealstrendtime" class="photo x-color laydate-icon" type="text"
  74. autocomplete="off" style="height: 35px;" />
  75. </td>
  76. </tr>
  77. <tr>
  78. <th><span class="nameJustified">转督办:</span></th>
  79. <td>
  80. <select id="auditorMultimediaPersonnel" name="select"
  81. class="selectpicker show-tick form-control" data-live-search="true">
  82. <option value="">请选择</option>
  83. </select>
  84. </td>
  85. <th><span class="nameJustified">督办员:</span></th>
  86. <td>
  87. <select id="dbyardman" name="select" class="selectpicker show-tick form-control"
  88. multiple data-live-search="true">
  89. <option value="">请选择调度员</option>
  90. </select>
  91. </td>
  92. <th>反映区域:</th>
  93. <td>
  94. <select name="" id="sourceAreas" class="form-control Min-width">
  95. </select>
  96. <botton class="btns Seach">搜索</botton>
  97. </td>
  98. <!-- <th><span class="nameJustified">关键字:</span></th>
  99. <td>
  100. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  101. </td> -->
  102. </tr>
  103. <tr>
  104. <th>承办单位:</th>
  105. <td style="position: relative;">
  106. <div class="inpBox">
  107. <input type="text" class="inps" />
  108. <i class="Cleans fa fa-close"></i>
  109. <i class="xl xl_one"></i>
  110. <div class="addTree xlAdd">
  111. <ul id="addTreeDemo" class="ztree"></ul>
  112. </div>
  113. </div>
  114. <div class="selDpart1">
  115. <ul id="sponsor">
  116. </ul>
  117. </div>
  118. </td>
  119. <th>来电类型:</th>
  120. <td>
  121. <select class="form-control" id="type">
  122. </select>
  123. </td>
  124. <th>办理结果:</th>
  125. <td>
  126. <input type="text" placeholder="输入办理结果" id="result"
  127. class="form-control Min-width" />
  128. <botton class="btns exportFile">导出</botton>
  129. </td>
  130. </tr>
  131. <tr>
  132. <th>反映类别:</th>
  133. <td class="reflectCategory-wrapper">
  134. <input type="text" id="reflectCategory" class="form-control" autocomplete="off" />
  135. <i class="CleansReactionCategory fa fa-close"></i>
  136. <input type="hidden" id="keyid" />
  137. <div class="reflectCategoryList-wrapper">
  138. <ul id="reflectCategoryList">
  139. </ul>
  140. </div>
  141. </td>
  142. <th>工单标题:</th>
  143. <td>
  144. <input type="text" placeholder="输入工单标题" id="comtitle" class="form-control" />
  145. </td>
  146. <th>来电内容:</th>
  147. <td>
  148. <input type="text" placeholder="输入来电内容" id="comContent"
  149. class="form-control Min-width" />
  150. </td>
  151. </tr>
  152. </tr>
  153. </table>
  154. </div>
  155. </div>
  156. <div>
  157. <div style="width: 100%;padding: 10px;">
  158. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  159. data-pagination="true">
  160. <thead>
  161. <tr>
  162. <th data-formatter="serialNumber" data-align="center">
  163. 序号
  164. </th>
  165. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  166. <!-- <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th> -->
  167. <th data-field="F_ComContent" data-formatter="GetCont" data-align="center">工单内容</th>
  168. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  169. </tr>
  170. </thead>
  171. <tbody class="list"></tbody>
  172. </table>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <!--下载框-->
  178. <div class="t-shade lyxz">
  179. <div class="shade_k">
  180. <div class="shade_title">
  181. <span>录音播放与下载<srong class="cknum"></srong></span>
  182. <span class="setwin gbly"><a>x</a></span>
  183. </div>
  184. <div class="shade_content">
  185. <div class="Ly_box audiojs">
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <input type="hidden" id="PID" />
  191. <input type="hidden" id="Dpment" />
  192. </div>
  193. <script src="../js/layui/layui.js"></script>
  194. <script src="../js/bootstrap-select.js"></script>
  195. <script src="../css/laydate/laydate.js"></script>
  196. <script src="../My97DatePicker/WdatePicker.js"></script>
  197. <script src="../js/zTree/jquery.ztree.core.js"></script>
  198. <script src="../js/search/screen.js"></script>
  199. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  200. <script>
  201. var wid = helper.request.queryString("states");
  202. if (wid) {
  203. $("#state").val(wid);
  204. }
  205. $(document).ready(function () {
  206. load();
  207. laydate.skin('blue');
  208. laydate({
  209. elem: '#dbstarttime',
  210. event: 'focus',
  211. istime: true,
  212. format: 'YYYY-MM-DD hh:mm:ss'
  213. });
  214. laydate({
  215. elem: '#dbstrendtime',
  216. event: 'focus',
  217. istime: true,
  218. format: 'YYYY-MM-DD hh:mm:ss'
  219. });
  220. laydate({
  221. elem: '#dealstarttime',
  222. event: 'focus',
  223. istime: true,
  224. format: 'YYYY-MM-DD hh:mm:ss'
  225. });
  226. laydate({
  227. elem: '#dealstrendtime',
  228. event: 'focus',
  229. istime: true,
  230. format: 'YYYY-MM-DD hh:mm:ss'
  231. });
  232. });
  233. //关闭录音弹出
  234. $(".gbly").click(function () {
  235. $(".lyxz").removeClass("cx");
  236. $('audio')[0].pause();
  237. });
  238. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  239. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  240. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  241. });
  242. //获取查询信息
  243. function load() {
  244. //坐席
  245. var usercodeID = "";
  246. var usercode_ = $("#ZX").val(); //坐席
  247. if (usercode_ != null) {
  248. $(usercode_).each(function (i, n) {
  249. var obj1 = '';
  250. obj1 = n + ",";
  251. usercodeID += obj1;
  252. })
  253. } else {
  254. usercodeID = ""
  255. }
  256. // 调度员
  257. var ddusercodeID = "";
  258. var ddusercode_ = $("#dbyardman").val(); //坐席
  259. if (ddusercode_ != null) {
  260. $(ddusercode_).each(function (i, n) {
  261. var obj2 = '';
  262. obj2 = n + ",";
  263. ddusercodeID += obj2;
  264. })
  265. } else {
  266. ddusercodeID = ""
  267. }
  268. //先销毁表格
  269. $('#orderlist').bootstrapTable('destroy');
  270. //初始化表格,动态从服务器加载数据
  271. $("#orderlist").bootstrapTable({
  272. method: "get", //使用get请求到服务器获取数据
  273. url: huayi.config.callcenter_url + "workorder/GetSupervList", //获取数据的Servlet地址
  274. contentType: "application/x-www-form-urlencoded",
  275. striped: true, //表格显示条纹
  276. pagination: true, //启动分页
  277. pageSize: 10, //每页显示的记录数
  278. pageNumber: 1, //当前第几页
  279. pageList: [10, 20, 50, 100], //记录数可选列表
  280. search: false, //是否启用查询
  281. showColumns: false, //显示下拉框勾选要显示的列
  282. showRefresh: false, //显示刷新按钮
  283. sidePagination: "server", //表示服务端请求
  284. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  285. //设置为limit可以获取limit, offset, search, sort, order
  286. queryParamsType: "undefined",
  287. queryParams: function queryParams(params) { //设置查询参数
  288. var param = {
  289. page: params.pageNumber,
  290. pagesize: params.pageSize,
  291. workid: $("#wids").val(),
  292. state: $("#state").val(), //=工单状态
  293. type: $("#type").val(), //=工单类型
  294. bigtype: $("#bigtype").val(), //=大类别
  295. smalltype: $("#smalltype").val(), //=小类别
  296. key: $("#key").val(), //=关键字
  297. tel: $("#tel").val(), //=客户电话
  298. name: $("#name").val(), //=客户名称
  299. usercode: $("#auditorMultimediaPersonnel").val(), // 转督办
  300. ddusercode: ddusercodeID,
  301. keyid: $("#keyid").val(), //=关键词id
  302. source: $("#source").val(), //=来源&
  303. dealstarttime: $("#dealstarttime").val(), // 办理开始时间
  304. dealstrendtime: $("#dealstrendtime").val(), // 办理结束时间
  305. dbstarttime: $("#dbstarttime").val(), // 转督办开始时间
  306. dbstrendtime: $("#dbstrendtime").val(), // 转督办结束时间
  307. // deptid: $("#PID").val(),
  308. dbdeptid: $("#PID").val(), // 承办单位
  309. result: $("#result").val(), // 办理结果
  310. comtitle: $("#comtitle").val(), // 工单标题
  311. comContent: $("#comContent").val(), // 来电内容
  312. tab: 3, //已退回
  313. sourcearea: $('#sourceAreas').val(), //区域
  314. token: $.cookie("token")
  315. };
  316. return param;
  317. },
  318. onLoadSuccess: function (data) { //加载成功时执行
  319. // layer.msg("加载成功");
  320. //console.log(data);
  321. },
  322. onLoadError: function () { //加载失败时执行
  323. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  324. }
  325. });
  326. }
  327. //状态
  328. function States(val, row) {
  329. var html = '';
  330. switch (val + '') {
  331. case '0':
  332. html = '新工单';
  333. if (row.F_IsReturn == 1) {
  334. html = '新工单(回退)';
  335. }
  336. break;
  337. case '1':
  338. html = '待交办';
  339. break;
  340. case '2':
  341. html = '待查收';
  342. break;
  343. case '3':
  344. html = '退回审核中';
  345. break;
  346. case '4':
  347. html = '办理中';
  348. break;
  349. case '5':
  350. html = '延时审核';
  351. break;
  352. case '6':
  353. html = '已办理';
  354. break;
  355. case '7':
  356. html = '已回访';
  357. break;
  358. case '8':
  359. html = '重办中';
  360. break;
  361. case '9':
  362. html = '已结案';
  363. break;
  364. }
  365. return html;
  366. }
  367. //时限
  368. function OverTime(val, row) {
  369. if (val == 1) {
  370. return '<div class="" style="cursor: pointer;">' +
  371. '<span class="Greens">' + row.GapTime + '</span>' +
  372. '</div>';
  373. } else if (val == 2) {
  374. return '<div class="" style="cursor: pointer;">' +
  375. '<span class="Yellows">' + row.GapTime + '</span>' +
  376. '</div>';
  377. } else if (val == 3) {
  378. return '<div class="" style="cursor: pointer;">' +
  379. '<span class="Reds">' + row.GapTime + '</span>' +
  380. '</div>';
  381. }
  382. }
  383. //办理时限
  384. function BanTime(val) {
  385. if (val) {
  386. var time = val.substring(0, val.indexOf(' '));
  387. return '<div class="" style="cursor: pointer;">' +
  388. '<span>' + time + '</span>' +
  389. '</div>';
  390. }
  391. }
  392. //音频
  393. function setCode(val) {
  394. if (val) {
  395. return '<div class="imgs" style="cursor: pointer;">' +
  396. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  397. '</div>';
  398. } else {
  399. return '';
  400. }
  401. }
  402. //编号
  403. function serialNumber(val, row, index) {
  404. return index + 1;
  405. }
  406. function GetCont(val) {
  407. if (val) {
  408. var str = '<div '
  409. if (val.length > 20) {
  410. str = str + ' title="' + val + '" ';
  411. val = val.substr(0, 20) + "...";
  412. }
  413. return str + '>' + val + '</div>';
  414. } else {
  415. return '';
  416. }
  417. }
  418. //操作
  419. function Dispose(val, row) {
  420. var Rows = row.Buttons;
  421. // alert(row.F_WorkOrderId);
  422. var WorkOrderId = row.F_WorkOrderId;
  423. var html = '';
  424. // if (row.F_WorkState == '1') {
  425. // html += '<a class="xg" onclick="redeploy(' + WorkOrderId + ')">转派&nbsp</a>';
  426. // }
  427. for (var i = 0; i < Rows.length; i++) {
  428. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  429. if (html1) {
  430. html1 = html1.replace("data", val);
  431. html1 = html1.replace("row", row.F_MainDeptId);
  432. }
  433. html += html1;
  434. }
  435. return html;
  436. }
  437. //转派
  438. function redeploy(WorkOrderId) {
  439. layer.open({
  440. type: 2,
  441. content: "../CommonHtml/zhuanpai.html?wid=" + WorkOrderId, //iframe的url,no代表不显示滚动条
  442. title: '转派',
  443. area: ['85%', '80%'], //宽高
  444. });
  445. }
  446. //查看详情
  447. function ckxq(str) {
  448. layer.open({
  449. type: 2,
  450. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  451. title: '工单详情',
  452. area: ['100%', '100%'], //宽高
  453. });
  454. }
  455. //编辑
  456. function bj(str) {
  457. layer.open({
  458. type: 2,
  459. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  460. title: '编辑工单',
  461. area: ['96%', '85%'], //宽高
  462. });
  463. }
  464. //删除
  465. function move(str) {
  466. layer.confirm('确定删除工单?', {
  467. btn: ['是', '否'] //按钮
  468. }, function () {
  469. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  470. ids: str,
  471. token: $.cookie("token")
  472. }, function (result) {
  473. result = JSON.parse(result);
  474. if (result.state.toLowerCase() == "success") {
  475. layer.msg("删除成功");
  476. load();
  477. }
  478. })
  479. });
  480. }
  481. //提交
  482. function tj(str) {
  483. layer.confirm('确定要提交工单么?', {
  484. btn: ['确定', '取消'] //按钮
  485. }, function () {
  486. //请求后台数据
  487. /*发送请求*/
  488. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  489. ids: str,
  490. token: $.cookie("token")
  491. }, function (result) {
  492. result = JSON.parse(result);
  493. if (result.state.toLowerCase() == "success") {
  494. layer.msg("提交成功");
  495. load();
  496. }
  497. })
  498. });
  499. }
  500. //交办
  501. function jb(str) {
  502. layer.open({
  503. type: 2,
  504. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  505. title: '工单交办',
  506. area: ['87%', '80%'], //宽高
  507. });
  508. }
  509. //领导批示
  510. function lader(str) {
  511. layer.open({
  512. type: 2,
  513. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  514. title: '领导批示',
  515. area: ['60%', '80%'], //宽高
  516. });
  517. }
  518. //市长批示
  519. function city(str) {
  520. layer.open({
  521. type: 2,
  522. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  523. title: '领导批示',
  524. area: ['60%', '80%'], //宽高
  525. });
  526. }
  527. //办理
  528. function bl(str) {
  529. layer.open({
  530. type: 2,
  531. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  532. title: '办理工单',
  533. area: ['60%', '80%'], //宽高
  534. });
  535. }
  536. //督办
  537. function Supervision(str, supervision) {
  538. layer.open({
  539. type: 2,
  540. state: 1,
  541. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' + '&state=1' + '&depId=' +
  542. supervision, //iframe的url,no代表不显示滚动条
  543. title: '督办',
  544. area: ['90%', '90%'], //宽高
  545. });
  546. }
  547. //不督办
  548. function ndb(str) {
  549. layer.open({
  550. type: 2,
  551. state: 2,
  552. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  553. '&state=2', //iframe的url,no代表不显示滚动条
  554. title: '督办',
  555. area: ['60%', '80%'], //宽高
  556. });
  557. }
  558. //督查
  559. function Supervision_(str) {
  560. layer.open({
  561. type: 2,
  562. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  563. title: '监察',
  564. area: ['60%', '80%'], //宽高
  565. });
  566. }
  567. //强制结案
  568. function StrongLawsuit(str) {
  569. layer.open({
  570. type: 2,
  571. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  572. title: '强制结案',
  573. area: ['60%', '80%'], //宽高
  574. });
  575. }
  576. //回退BackDtail
  577. function BackDtail(str) {
  578. layer.open({
  579. type: 2,
  580. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  581. title: '工单回退',
  582. area: ['60%', '80%'], //宽高
  583. });
  584. }
  585. //查收
  586. function cs(str) {
  587. layer.confirm('确定要查收?', {
  588. btn: ['是', '否'] //按钮
  589. }, function () {
  590. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  591. workorderid: str,
  592. token: $.cookie("token")
  593. }, function (result) {
  594. result = JSON.parse(result);
  595. if (result.state.toLowerCase() == "success") {
  596. layer.msg("查收成功");
  597. load();
  598. }
  599. })
  600. });
  601. }
  602. //收回
  603. function sh(str) {
  604. layer.confirm('确定要回收?', {
  605. btn: ['是', '否'] //按钮
  606. }, function () {
  607. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  608. workorderid: str,
  609. token: $.cookie("token")
  610. }, function (result) {
  611. result = JSON.parse(result);
  612. if (result.state.toLowerCase() == "success") {
  613. layer.msg("回收");
  614. load();
  615. }
  616. })
  617. });
  618. }
  619. //强制回收
  620. function recycles() {
  621. layer.confirm('确定要强制退回吗?', {
  622. btn: ['是', '否'] //按钮
  623. });
  624. }
  625. //退回申请
  626. function th(str) {
  627. layer.open({
  628. type: 2,
  629. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  630. title: '申请退回工单',
  631. area: ['60%', '80%'], //宽高
  632. });
  633. }
  634. //审核退回申请
  635. function shth(str) {
  636. layer.open({
  637. type: 2,
  638. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  639. title: '审核退回申请',
  640. area: ['60%', '80%'], //宽高
  641. });
  642. }
  643. //办理
  644. // function th(str) {
  645. // layer.open({
  646. // type: 2,
  647. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  648. // title: '办理工单',
  649. // area: ['35%', '30%'], //宽高
  650. // });
  651. // }
  652. //申请延时
  653. function ys(str) {
  654. layer.open({
  655. type: 2,
  656. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  657. title: '申请延时',
  658. area: ['60%', '80%'], //宽高
  659. });
  660. }
  661. //审核申请延时
  662. function shys(str) {
  663. layer.open({
  664. type: 2,
  665. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  666. title: '审核延时申请',
  667. area: ['60%', '80%'], //宽高
  668. });
  669. }
  670. //诉求回访
  671. function hf(str) {
  672. layer.open({
  673. type: 2,
  674. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  675. title: '工单回访',
  676. area: ['60%', '80%'], //宽高
  677. });
  678. }
  679. //重办工单
  680. function cb(str) {
  681. layer.open({
  682. type: 2,
  683. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  684. title: '重办工单',
  685. area: ['60%', '80%'], //宽高
  686. });
  687. }
  688. //结案
  689. function Lawsuit(str) {
  690. layer.open({
  691. type: 2,
  692. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  693. title: '诉求单结案',
  694. area: ['60%', '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_ = $("#dbyardman").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 tab = 3;
  863. var keyid = $("#keyid").val() == undefined ? "" : $("#keyid").val(); //=关键词id
  864. var url = huayi.config.callcenter_url + "workorder/GetSupervList?token=" + $.cookie("token");
  865. 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 + "&isdc=1";
  866. window.location.href = url;
  867. })
  868. </script>
  869. </body>
  870. </html>