Nenhuma Descrição

expiredWorkOrders.html 24KB

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