暫無描述

associatWorkOrder.html 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  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. var phoneType;
  294. $(document).ready(function () {
  295. $(".master").click(function () {
  296. submit(0)
  297. })
  298. $(".child").click(function () {
  299. submit(1)
  300. })
  301. laydate.skin('blue');
  302. laydate({
  303. elem: '#starttime',
  304. event: 'focus',
  305. istime: true,
  306. format: 'YYYY-MM-DD hh:mm:ss'
  307. });
  308. laydate({
  309. elem: '#endtime',
  310. event: 'focus',
  311. istime: true,
  312. format: 'YYYY-MM-DD hh:mm:ss'
  313. });
  314. // laydate({
  315. // elem: '#dealstarttime',
  316. // event: 'focus',
  317. // istime: true,
  318. // format: 'YYYY-MM-DD hh:mm:ss'
  319. // });
  320. // laydate({
  321. // elem: '#dealstrendtime',
  322. // event: 'focus',
  323. // istime: true,
  324. // format: 'YYYY-MM-DD hh:mm:ss'
  325. // });
  326. if (roleCode === "MTDD") {
  327. comprehensive = ""
  328. jianhang = 1;
  329. phoneType = "";
  330. } else if (roleCode === "ZXLD") {
  331. comprehensive = ""
  332. jianhang = 0;
  333. phoneType = 2;
  334. } else {
  335. comprehensive = 1;
  336. jianhang = "";
  337. phoneType = "";
  338. }
  339. load()
  340. });
  341. // 提交
  342. function submit(state) {
  343. var ids = $.map($('#orderlist').bootstrapTable('getSelections'),
  344. function (row) {
  345. return row.F_WorkOrderId;
  346. });
  347. var workorderid;
  348. var subworkorderid;
  349. if (state === 0) {
  350. if (ids.length !== 1) {
  351. layer.confirm('请选择一条数据', {
  352. btn: ['确定'] //按钮
  353. });
  354. return;
  355. }
  356. workorderid = ids.join(",");
  357. subworkorderid = wid;
  358. } else if (state === 1) {
  359. workorderid = wid;
  360. subworkorderid = ids.join(",")
  361. }
  362. /*发送请求*/
  363. $.post(huayi.config.callcenter_url + "WorkOrder/RelationWorkOrder", {
  364. workorderid: workorderid,
  365. subworkorderid: subworkorderid,
  366. token: $.cookie("token")
  367. }, function (result) {
  368. result = JSON.parse(result);
  369. if (result.state.toLowerCase() == "success") {
  370. layer.msg("操作成功");
  371. load();
  372. }
  373. })
  374. }
  375. function load() {
  376. //坐席
  377. var usercodeID = "";
  378. var usercode_ = $("#ZX").val(); //坐席
  379. if (usercode_ != null) {
  380. $(usercode_).each(function (i, n) {
  381. var obj1 = "";
  382. obj1 = n + ",";
  383. usercodeID += obj1;
  384. });
  385. } else {
  386. usercodeID = "";
  387. }
  388. // 调度员
  389. var ddusercodeID = "";
  390. var ddusercode_ = $("#yardman").val(); //坐席
  391. if (ddusercode_ != null) {
  392. $(ddusercode_).each(function (i, n) {
  393. var obj2 = "";
  394. obj2 = n + ",";
  395. ddusercodeID += obj2;
  396. });
  397. } else {
  398. ddusercodeID = "";
  399. }
  400. //先销毁表格
  401. $("#orderlist").bootstrapTable("destroy");
  402. //初始化表格,动态从服务器加载数据
  403. $("#orderlist").bootstrapTable({
  404. method: "get", //使用get请求到服务器获取数据
  405. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  406. contentType: "application/x-www-form-urlencoded",
  407. striped: true, //表格显示条纹
  408. pagination: true, //启动分页
  409. pageSize: 10, //每页显示的记录数
  410. pageNumber: 1, //当前第几页
  411. pageList: [10, 20, 50, 100], //记录数可选列表
  412. search: false, //是否启用查询
  413. showColumns: false, //显示下拉框勾选要显示的列
  414. showRefresh: false, //显示刷新按钮
  415. sidePagination: "server", //表示服务端请求
  416. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  417. //设置为limit可以获取limit, offset, search, sort, order
  418. queryParamsType: "undefined",
  419. queryParams: function queryParams(params) {
  420. //设置查询参数
  421. //alert(params.pageNumber)
  422. var param = {
  423. page: params.pageNumber,
  424. pagesize: params.pageSize,
  425. workid: $("#wids").val().replace(/\s+/g, ""),
  426. state: $("#state").val(), //=工单状态
  427. type: $("#type").val(), //=工单类型
  428. //bigtype: $("#bigtype").val(), //=大类别
  429. //smalltype: $("#smalltype").val(), //=小类别
  430. key: $("#key").val(), //=关键字
  431. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  432. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  433. usercode: usercodeID, //=坐席工号
  434. ddusercode: ddusercodeID,
  435. keyid: $("#keyid").val(), //=关键词id
  436. source: $("#source").val(), //=来源&
  437. starttime: $("#starttime").val(), //=开始时间
  438. endtime: $("#endtime").val(), //=结束时间
  439. deptid: $("#PID").val(),
  440. type: $("#type").val(),
  441. dealtype: $("#dealtype").val(),
  442. sourcearea: $("#sourceAreas").val(), // 区域
  443. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  444. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  445. // Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  446. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  447. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  448. isopen: $("#isopen").val(),
  449. comprehensive: comprehensive, // 综合查询
  450. jianhang: jianhang,
  451. phoneType: 2, // 12345来电
  452. token: $.cookie("token"),
  453. };
  454. return param;
  455. },
  456. onLoadSuccess: function (data) {
  457. //加载成功时执行
  458. // layer.msg("加载成功");
  459. //console.log(data);
  460. },
  461. onLoadError: function () {
  462. //加载失败时执行
  463. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  464. },
  465. });
  466. }
  467. //状态
  468. function States(val, row) {
  469. var html = "";
  470. switch (val + "") {
  471. case "0":
  472. html = "新工单";
  473. if (row.F_IsReturn == 1) {
  474. html = "新工单(回退)";
  475. }
  476. break;
  477. case "1":
  478. html = "待交办";
  479. break;
  480. case "2":
  481. html = '<span style="color:#FF0000;">待查收</span>';
  482. break;
  483. case "3":
  484. html = "退回审核中";
  485. break;
  486. case "4":
  487. html = "办理中";
  488. break;
  489. case "5":
  490. html = "延时审核";
  491. break;
  492. case "6":
  493. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  494. html = "已办未果"
  495. } else {
  496. html = "已办理";
  497. }
  498. break;
  499. case "7":
  500. html = "已回访";
  501. break;
  502. case "8":
  503. html = "重办中";
  504. break;
  505. case "9":
  506. html = "已结案";
  507. break;
  508. case "10":
  509. html = "待审核";
  510. break;
  511. case "11":
  512. html = "重办待交办";
  513. break;
  514. // case '12':
  515. // html = '待审核';
  516. // break;
  517. case "13":
  518. html = "重办驳回";
  519. break;
  520. }
  521. return html;
  522. }
  523. //音频
  524. function setCode(val) {
  525. if (val) {
  526. return (
  527. '<div class="imgs" style="cursor: pointer;">' +
  528. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  529. val +
  530. '" />' +
  531. "</div>"
  532. );
  533. } else {
  534. return "";
  535. }
  536. }
  537. //编号
  538. function serialNumber(val, row, index) {
  539. return index + 1;
  540. }
  541. function GetCont(val) {
  542. if (val) {
  543. var str = "<div ";
  544. if (val.length > 10) {
  545. str = str + ' title="' + val + '" ';
  546. val = val.substr(0, 10) + "...";
  547. }
  548. return str + ">" + val + "</div>";
  549. } else {
  550. return "";
  551. }
  552. }
  553. //操作
  554. function Dispose(val, row) {
  555. var Rows = row.Buttons;
  556. var html = "";
  557. for (var i = 0; i < Rows.length; i++) {
  558. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  559. if (html1) {
  560. html1 = html1.replace("data", val);
  561. html1 = html1.replace("isProtect", row.F_IsProtect);
  562. html1 = html1.replace("row", row.F_MainDeptId);
  563. }
  564. html += html1;
  565. }
  566. return html;
  567. }
  568. //查看详情
  569. function ckxq(str) {
  570. layer.open({
  571. type: 2,
  572. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  573. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  574. title: "工单详情",
  575. area: ["100%", "100%"], //宽高
  576. });
  577. }
  578. //时限
  579. function OverTime(val, row) {
  580. if (val == 1) {
  581. return (
  582. '<div class="" style="cursor: pointer;">' +
  583. '<span class="Greens">' +
  584. row.GapTime +
  585. "</span>" +
  586. "</div>"
  587. );
  588. } else if (val == 2) {
  589. return (
  590. '<div class="" style="cursor: pointer;">' +
  591. '<span class="Yellows">' +
  592. row.GapTime +
  593. "</span>" +
  594. "</div>"
  595. );
  596. } else if (val == 3) {
  597. return (
  598. '<div class="" style="cursor: pointer;">' +
  599. '<span class="Reds">' +
  600. row.GapTime +
  601. "</span>" +
  602. "</div>"
  603. );
  604. }
  605. }
  606. //办理时限
  607. function BanTime(val) {
  608. if (val) {
  609. var time = val.substring(0, val.indexOf(" "));
  610. return (
  611. '<div class="" style="cursor: pointer;">' +
  612. "<span>" +
  613. time +
  614. "</span>" +
  615. "</div>"
  616. );
  617. }
  618. }
  619. //来源
  620. function LY(obj) {
  621. obj.empty();
  622. obj.append(
  623. '<option selected="selected" value="">请选择</option>'
  624. );
  625. $.getJSON(
  626. huayi.config.callcenter_url +
  627. "Dictionary/GetDicValueListById", {
  628. token: $.cookie("token"),
  629. id: 1,
  630. },
  631. function (data) {
  632. if (data.state.toLowerCase() == "success") {
  633. var content = data.data;
  634. $(content).each(function (i, n) {
  635. $(
  636. "<option value='" +
  637. n.F_ValueId +
  638. "'>" +
  639. n.F_Value +
  640. "</option>"
  641. ).appendTo(obj);
  642. });
  643. }
  644. }
  645. );
  646. }
  647. //类别
  648. function LB(obj) {
  649. obj.empty();
  650. obj.append(
  651. '<option selected="selected" value="">请选择</option>'
  652. );
  653. $.getJSON(
  654. huayi.config.callcenter_url +
  655. "Dictionary/GetDicValueListById", {
  656. token: $.cookie("token"),
  657. id: 2,
  658. },
  659. function (data) {
  660. if (data.state.toLowerCase() == "success") {
  661. var content = data.data;
  662. $(content).each(function (i, n) {
  663. $(
  664. "<option value='" +
  665. n.F_ValueId +
  666. "'>" +
  667. n.F_Value +
  668. "</option>"
  669. ).appendTo(obj);
  670. });
  671. }
  672. }
  673. );
  674. }
  675. // 主题
  676. function ZT(obj) {
  677. obj.empty();
  678. obj.append(
  679. '<option selected="selected" value="">请选择</option>'
  680. );
  681. $.getJSON(
  682. huayi.config.callcenter_url +
  683. "Dictionary/GetDicValueListById", {
  684. token: $.cookie("token"),
  685. id: 3,
  686. },
  687. function (data) {
  688. if (data.state.toLowerCase() == "success") {
  689. var content = data.data;
  690. $(content).each(function (i, n) {
  691. $(
  692. "<option value='" +
  693. n.F_ValueId +
  694. "'>" +
  695. n.F_Value +
  696. "</option>"
  697. ).appendTo(obj);
  698. });
  699. }
  700. }
  701. );
  702. }
  703. function tree() {
  704. $.get(
  705. huayi.config.callcenter_url + "Department/GetDeptList", {
  706. token: $.cookie("token"),
  707. // "pid": pid
  708. },
  709. function (result) {
  710. result = $.parseJSON(result);
  711. $.fn.zTree.init(
  712. $("#addTreeDemo"),
  713. setting1,
  714. result.data
  715. ); //实例化树形图
  716. }
  717. );
  718. }
  719. var setting1 = {
  720. data: {
  721. key: {
  722. name: "F_DeptName",
  723. },
  724. simpleData: {
  725. enable: true,
  726. idKey: "F_DeptId",
  727. pIdKey: "F_PartentId",
  728. rootPId: 0,
  729. },
  730. },
  731. callback: {
  732. onClick: zTreeOnClick,
  733. },
  734. };
  735. function zTreeOnClick(event, treeId, treeNode) {
  736. if (treeNode.level >= 1) {
  737. $(".inps").val(treeNode.F_DeptName);
  738. $("#PID").val(treeNode.F_DeptId);
  739. $("#Dpment").val(treeNode.F_DeptId);
  740. $(".Cleans").show();
  741. }
  742. }
  743. function Close() {
  744. $(".lyxz").removeClass("cx");
  745. if ($("audio").length > 0) {
  746. $("audio")[0].pause();
  747. }
  748. }
  749. </script>
  750. </body>
  751. </html>