Brak opisu

associatWorkOrder.html 28KB

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