Brak opisu

integratedQuery.html 34KB

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