Нет описания

workOverdue.html 31KB

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