Sin descripción

superviseFinished.html 38KB

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