説明なし

superviseFinished.html 38KB

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