Bez popisu

expiredWorkOrders.html 24KB

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