From e8f80e85d9a7ff4a89474dacaf9043813b943619 Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期三, 02 六月 2021 08:33:36 +0800
Subject: [PATCH] 增加 维修验收项目(新增,修改,删除)及列表,优化树型

---
 WebTM/views/基础资料/辅助基础资料/Gy_MaintenanceMode.html           |  232 +++++++++++++++++++++-------
 WebTM/views/基础资料/设备基础资料/Gy_MaintenanceAcceptItem.html     |  204 ++++++++++++++++---------
 WebTM/Properties/PublishProfiles/LAYUI.pubxml.user        |   18 +-
 WebTM/views/基础资料/辅助基础资料/Sb_Add_MaintenanceMode.html       |    9 +
 WebTM/views/基础资料/设备基础资料/Sb_Add_MaintenanceAcceptItem.html |   15 +
 5 files changed, 337 insertions(+), 141 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index e5e7771..eeb6ec0 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -5,7 +5,7 @@
 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
     <_PublishTargetUrl>D:\缃戠珯鍙戝竷\鏅轰簯MESWMS\LAYUI</_PublishTargetUrl>
-    <History>True|2021-06-01T10:20:43.2169444Z;True|2021-06-01T17:43:22.5732122+08:00;True|2021-06-01T17:42:17.2436639+08:00;True|2021-06-01T17:38:17.4943310+08:00;True|2021-06-01T17:36:57.0238586+08:00;True|2021-06-01T17:30:37.3487475+08:00;True|2021-06-01T17:27:02.9990906+08:00;True|2021-06-01T17:12:53.0479797+08:00;True|2021-06-01T17:12:09.3355906+08:00;True|2021-06-01T17:00:12.7270464+08:00;True|2021-06-01T16:59:01.8148500+08:00;True|2021-06-01T16:58:24.2363761+08:00;True|2021-06-01T16:55:09.7112426+08:00;True|2021-06-01T16:49:52.5036858+08:00;True|2021-06-01T16:46:54.0104279+08:00;True|2021-06-01T16:45:15.4974503+08:00;True|2021-06-01T16:43:27.9970309+08:00;True|2021-06-01T16:41:38.1709833+08:00;True|2021-06-01T16:35:26.5280595+08:00;True|2021-06-01T16:33:57.1397727+08:00;True|2021-06-01T16:32:06.3944162+08:00;True|2021-06-01T16:25:01.1116292+08:00;True|2021-06-01T16:18:36.2515412+08:00;True|2021-06-01T16:13:19.6237694+08:00;True|2021-06-01T16:10:58.1070245+08:00;True|2021-06-01T16:09:36.9385489+08:00;True|2021-06-01T16:08:12.6387651+08:00;True|2021-06-01T15:56:56.8265580+08:00;True|2021-06-01T15:55:24.4764864+08:00;True|2021-06-01T15:52:55.2991115+08:00;True|2021-06-01T15:42:11.4675544+08:00;True|2021-06-01T15:37:23.2605867+08:00;True|2021-06-01T15:36:07.1708859+08:00;True|2021-06-01T15:27:13.7607576+08:00;True|2021-06-01T15:26:02.1216167+08:00;True|2021-06-01T15:20:17.9785316+08:00;True|2021-06-01T15:17:31.7994535+08:00;True|2021-06-01T15:15:33.5870547+08:00;True|2021-06-01T14:48:48.5199499+08:00;True|2021-06-01T14:47:20.2642947+08:00;True|2021-06-01T14:35:18.9806312+08:00;True|2021-06-01T14:33:16.4926476+08:00;True|2021-06-01T14:09:52.1874112+08:00;True|2021-06-01T14:05:13.8582579+08:00;True|2021-06-01T14:00:48.2904877+08:00;True|2021-06-01T13:59:23.3066213+08:00;True|2021-06-01T13:56:48.0600266+08:00;True|2021-06-01T13:34:54.6842175+08:00;True|2021-06-01T13:25:18.0545294+08:00;True|2021-06-01T13:21:54.5203762+08:00;True|2021-06-01T13:16:21.1912230+08:00;True|2021-06-01T13:15:48.6019094+08:00;True|2021-06-01T13:15:01.6891992+08:00;True|2021-06-01T13:05:12.8050109+08:00;True|2021-06-01T12:56:50.4159001+08:00;True|2021-06-01T12:55:03.9062599+08:00;True|2021-06-01T12:50:27.5401681+08:00;True|2021-06-01T12:49:25.1885018+08:00;True|2021-06-01T12:47:37.2860892+08:00;True|2021-06-01T12:44:42.0069652+08:00;True|2021-06-01T12:41:06.6339839+08:00;True|2021-06-01T12:20:08.2825333+08:00;True|2021-06-01T12:17:54.3212651+08:00;True|2021-06-01T12:14:59.7872609+08:00;True|2021-06-01T12:13:59.8766709+08:00;True|2021-06-01T11:22:13.6818824+08:00;True|2021-06-01T11:11:11.8712602+08:00;True|2021-06-01T11:10:20.1735009+08:00;True|2021-06-01T11:08:17.1112299+08:00;True|2021-06-01T11:05:17.8698240+08:00;True|2021-06-01T10:44:43.4614150+08:00;True|2021-05-31T19:20:49.8593267+08:00;True|2021-05-31T19:19:26.2940461+08:00;True|2021-05-31T19:17:45.6039999+08:00;True|2021-05-31T19:08:59.0966761+08:00;True|2021-05-31T19:08:10.5596672+08:00;True|2021-05-31T19:06:39.0670555+08:00;True|2021-05-31T19:05:17.3676884+08:00;True|2021-05-31T19:02:32.1409470+08:00;True|2021-05-31T18:56:41.4179639+08:00;True|2021-05-31T18:42:20.2441083+08:00;True|2021-05-31T18:37:26.4114464+08:00;True|2021-05-31T18:23:19.4103344+08:00;True|2021-05-31T18:12:52.1436524+08:00;True|2021-05-31T18:09:51.8002595+08:00;True|2021-05-31T18:05:27.5639577+08:00;True|2021-05-31T18:03:35.9346540+08:00;True|2021-05-31T17:58:54.0393109+08:00;True|2021-05-31T17:55:12.5626152+08:00;True|2021-05-31T17:51:03.1966945+08:00;True|2021-05-31T17:49:19.8399729+08:00;True|2021-05-31T17:48:09.7657525+08:00;True|2021-05-31T17:46:21.2958557+08:00;True|2021-05-31T17:29:36.1284253+08:00;True|2021-05-31T17:25:21.8909234+08:00;True|2021-05-31T16:51:39.2706342+08:00;True|2021-05-31T16:49:33.0180809+08:00;True|2021-05-31T16:47:28.9366837+08:00;True|2021-05-31T16:45:54.1110876+08:00;True|2021-05-31T16:06:11.0032865+08:00;True|2021-05-31T16:03:11.8484779+08:00;True|2021-05-31T15:58:52.4728351+08:00;True|2021-05-31T15:52:41.3707489+08:00;True|2021-05-31T15:50:22.0767930+08:00;True|2021-05-31T14:55:08.8676668+08:00;True|2021-05-31T14:52:44.0538893+08:00;True|2021-05-31T13:58:49.2018041+08:00;True|2021-05-31T13:54:55.2565438+08:00;True|2021-05-31T13:51:07.8012368+08:00;True|2021-05-31T13:42:17.1041462+08:00;True|2021-05-31T13:41:18.8074005+08:00;True|2021-05-31T13:40:07.2910452+08:00;True|2021-05-31T13:33:41.8814879+08:00;True|2021-05-31T13:23:36.5532446+08:00;True|2021-05-31T13:21:56.2476049+08:00;True|2021-05-31T13:17:18.5030541+08:00;True|2021-05-31T13:15:40.9653645+08:00;True|2021-05-31T13:05:02.0114383+08:00;True|2021-05-31T13:03:31.1860836+08:00;True|2021-05-31T12:50:06.1218714+08:00;True|2021-05-31T10:37:20.3332108+08:00;True|2021-05-28T15:09:56.1970299+08:00;True|2021-05-28T14:25:51.6645627+08:00;True|2021-05-28T13:57:27.0842735+08:00;True|2021-05-28T09:43:20.1440634+08:00;True|2021-05-28T09:18:20.6994283+08:00;True|2021-05-27T17:48:05.1485157+08:00;True|2021-05-27T14:12:24.8809260+08:00;True|2021-05-27T13:55:41.4584398+08:00;True|2021-05-27T13:38:04.4939557+08:00;True|2021-05-25T17:58:59.4925936+08:00;True|2021-05-25T17:34:39.0766301+08:00;True|2021-05-25T16:52:27.5836825+08:00;True|2021-05-25T16:17:11.2915197+08:00;True|2021-05-25T15:56:40.9073807+08:00;True|2021-05-25T15:55:13.6625654+08:00;True|2021-05-25T14:19:47.6594488+08:00;True|2021-05-25T13:29:54.4902763+08:00;True|2021-05-25T10:07:46.4913499+08:00;True|2021-05-25T10:07:00.5180012+08:00;True|2021-05-25T10:03:19.5172048+08:00;True|2021-05-25T10:03:14.0017887+08:00;True|2021-05-25T09:56:45.2214181+08:00;True|2021-05-25T09:40:44.7928610+08:00;True|2021-05-25T09:39:54.9824104+08:00;True|2021-05-21T15:22:12.2171707+08:00;True|2021-05-21T15:19:42.7333615+08:00;True|2021-05-21T11:29:58.3974818+08:00;True|2021-05-21T11:28:09.4616811+08:00;True|2021-05-21T10:47:41.8471117+08:00;True|2021-05-21T10:22:07.2445648+08:00;True|2021-05-21T10:17:03.7723841+08:00;True|2021-05-20T19:16:06.9191828+08:00;True|2021-05-20T15:55:05.5871601+08:00;True|2021-05-20T14:29:30.2254277+08:00;True|2021-05-20T14:25:34.5236240+08:00;True|2021-05-20T14:20:39.0358706+08:00;True|2021-05-20T13:48:02.9388392+08:00;True|2021-05-20T13:39:47.1587014+08:00;True|2021-05-20T13:31:23.4635763+08:00;True|2021-05-20T10:45:56.3395800+08:00;True|2021-05-20T10:40:02.3046411+08:00;True|2021-05-20T08:58:30.2138098+08:00;True|2021-05-19T17:30:07.9866409+08:00;True|2021-05-19T16:35:53.3131106+08:00;True|2021-05-19T15:31:29.5405517+08:00;True|2021-05-19T10:47:11.4381053+08:00;True|2021-05-18T15:34:44.5123556+08:00;True|2021-05-18T15:33:45.3281373+08:00;True|2021-05-18T13:36:24.3027108+08:00;True|2021-05-18T10:30:46.9715813+08:00;True|2021-05-17T16:30:52.0536279+08:00;True|2021-05-17T16:25:48.5246048+08:00;True|2021-05-17T16:23:09.2504235+08:00;True|2021-05-17T16:20:08.1040765+08:00;True|2021-05-17T16:18:13.0021838+08:00;True|2021-05-17T15:49:53.5154178+08:00;True|2021-05-17T15:20:53.2553451+08:00;True|2021-05-17T13:22:30.1785650+08:00;True|2021-05-12T09:19:40.6104101+08:00;True|2021-05-12T08:51:31.1903832+08:00;True|2021-05-11T17:54:23.2917461+08:00;True|2021-05-11T17:41:51.8743268+08:00;True|2021-05-11T15:35:42.7284799+08:00;True|2021-05-11T15:21:56.5628091+08:00;True|2021-05-10T16:46:03.1180467+08:00;True|2021-05-10T16:15:39.9956955+08:00;True|2021-05-08T19:06:57.2743132+08:00;True|2021-05-08T19:05:29.1103688+08:00;True|2021-05-08T19:04:19.9539329+08:00;True|2021-05-08T18:01:38.7928100+08:00;True|2021-05-08T17:52:29.7429021+08:00;True|2021-05-08T17:48:25.9203761+08:00;True|2021-05-08T17:47:15.0602917+08:00;True|2021-05-08T17:43:27.4889222+08:00;True|2021-05-08T17:39:59.4612336+08:00;True|2021-05-08T17:39:33.4978946+08:00;True|2021-05-08T17:39:29.0267002+08:00;True|2021-05-08T17:37:47.5853967+08:00;True|2021-05-08T15:29:49.3055657+08:00;True|2021-05-08T15:27:07.7824934+08:00;True|2021-05-08T14:52:00.4322071+08:00;True|2021-05-08T14:30:25.4769844+08:00;True|2021-05-08T14:20:25.2085810+08:00;True|2021-05-08T13:22:50.6523779+08:00;True|2021-05-08T13:22:45.2166230+08:00;True|2021-05-08T10:18:30.8161572+08:00;True|2021-05-07T20:22:41.7365405+08:00;True|2021-05-07T20:20:31.3610753+08:00;True|2021-05-07T20:20:19.7448959+08:00;True|2021-05-07T20:03:14.9285946+08:00;True|2021-05-07T09:04:49.9965754+08:00;True|2021-05-06T18:08:51.9761525+08:00;True|2021-05-06T17:25:04.5129323+08:00;True|2021-05-06T17:18:48.0130806+08:00;True|2021-05-06T16:27:20.4296013+08:00;True|2021-05-06T16:21:58.2678114+08:00;True|2021-05-06T16:19:59.7383975+08:00;True|2021-05-06T16:17:38.0581420+08:00;True|2021-05-06T16:13:32.0399307+08:00;True|2021-05-06T16:12:43.4430581+08:00;True|2021-05-06T15:03:01.2067903+08:00;True|2021-05-06T15:00:38.4937170+08:00;True|2021-05-06T15:00:20.9792819+08:00;True|2021-05-06T14:47:13.8375625+08:00;True|2021-05-06T14:47:08.2656998+08:00;True|2021-05-06T14:31:31.6193969+08:00;True|2021-05-06T14:30:30.7221216+08:00;True|2021-05-06T14:29:07.9915201+08:00;True|2021-05-06T10:03:10.3335348+08:00;True|2021-04-28T10:26:58.1316805+08:00;True|2021-04-27T16:36:16.4269210+08:00;True|2021-04-27T16:24:41.5059209+08:00;True|2021-04-27T15:53:32.5901894+08:00;True|2021-04-27T15:22:47.3758568+08:00;True|2021-04-27T15:20:08.3268603+08:00;True|2021-04-27T15:07:44.8758565+08:00;True|2021-04-27T14:55:25.1708246+08:00;True|2021-04-27T11:29:16.9305170+08:00;True|2021-04-27T11:22:59.6375169+08:00;True|2021-04-27T11:18:40.6175151+08:00;True|2021-04-27T11:11:03.1485102+08:00;True|2021-04-27T10:59:43.1454752+08:00;True|2021-04-27T10:52:14.9373756+08:00;True|2021-04-26T16:06:17.8889031+08:00;True|2021-04-26T16:01:07.5729037+08:00;True|2021-04-26T15:43:13.1943879+08:00;True|2021-04-26T15:40:31.4783881+08:00;True|2021-04-26T13:48:32.1338637+08:00;True|2021-04-26T13:41:20.7638645+08:00;True|2021-04-26T13:36:41.2688664+08:00;True|2021-04-16T08:22:27.9458518+08:00;True|2021-04-15T16:59:13.8465752+08:00;True|2021-04-15T15:35:34.3385670+08:00;True|2021-04-15T14:45:34.4613245+08:00;True|2021-04-15T14:41:37.0870016+08:00;True|2021-04-15T14:37:07.0200028+08:00;True|2021-04-13T16:40:55.8205619+08:00;True|2021-04-13T16:17:05.5478494+08:00;</History>
+    <History>True|2021-06-01T17:13:35.0933908Z;True|2021-06-02T00:41:42.6942384+08:00;True|2021-06-02T00:34:16.2857357+08:00;True|2021-06-02T00:30:24.3715291+08:00;True|2021-06-02T00:28:05.7622093+08:00;True|2021-06-01T23:47:07.9812981+08:00;True|2021-06-01T23:43:54.6399997+08:00;True|2021-06-01T23:26:11.7387178+08:00;True|2021-06-01T23:24:01.7848138+08:00;True|2021-06-01T23:17:44.1499458+08:00;True|2021-06-01T22:53:53.2119388+08:00;True|2021-06-01T21:41:10.2077522+08:00;True|2021-06-01T18:20:43.2169444+08:00;True|2021-06-01T17:43:22.5732122+08:00;True|2021-06-01T17:42:17.2436639+08:00;True|2021-06-01T17:38:17.4943310+08:00;True|2021-06-01T17:36:57.0238586+08:00;True|2021-06-01T17:30:37.3487475+08:00;True|2021-06-01T17:27:02.9990906+08:00;True|2021-06-01T17:12:53.0479797+08:00;True|2021-06-01T17:12:09.3355906+08:00;True|2021-06-01T17:00:12.7270464+08:00;True|2021-06-01T16:59:01.8148500+08:00;True|2021-06-01T16:58:24.2363761+08:00;True|2021-06-01T16:55:09.7112426+08:00;True|2021-06-01T16:49:52.5036858+08:00;True|2021-06-01T16:46:54.0104279+08:00;True|2021-06-01T16:45:15.4974503+08:00;True|2021-06-01T16:43:27.9970309+08:00;True|2021-06-01T16:41:38.1709833+08:00;True|2021-06-01T16:35:26.5280595+08:00;True|2021-06-01T16:33:57.1397727+08:00;True|2021-06-01T16:32:06.3944162+08:00;True|2021-06-01T16:25:01.1116292+08:00;True|2021-06-01T16:18:36.2515412+08:00;True|2021-06-01T16:13:19.6237694+08:00;True|2021-06-01T16:10:58.1070245+08:00;True|2021-06-01T16:09:36.9385489+08:00;True|2021-06-01T16:08:12.6387651+08:00;True|2021-06-01T15:56:56.8265580+08:00;True|2021-06-01T15:55:24.4764864+08:00;True|2021-06-01T15:52:55.2991115+08:00;True|2021-06-01T15:42:11.4675544+08:00;True|2021-06-01T15:37:23.2605867+08:00;True|2021-06-01T15:36:07.1708859+08:00;True|2021-06-01T15:27:13.7607576+08:00;True|2021-06-01T15:26:02.1216167+08:00;True|2021-06-01T15:20:17.9785316+08:00;True|2021-06-01T15:17:31.7994535+08:00;True|2021-06-01T15:15:33.5870547+08:00;True|2021-06-01T14:48:48.5199499+08:00;True|2021-06-01T14:47:20.2642947+08:00;True|2021-06-01T14:35:18.9806312+08:00;True|2021-06-01T14:33:16.4926476+08:00;True|2021-06-01T14:09:52.1874112+08:00;True|2021-06-01T14:05:13.8582579+08:00;True|2021-06-01T14:00:48.2904877+08:00;True|2021-06-01T13:59:23.3066213+08:00;True|2021-06-01T13:56:48.0600266+08:00;True|2021-06-01T13:34:54.6842175+08:00;True|2021-06-01T13:25:18.0545294+08:00;True|2021-06-01T13:21:54.5203762+08:00;True|2021-06-01T13:16:21.1912230+08:00;True|2021-06-01T13:15:48.6019094+08:00;True|2021-06-01T13:15:01.6891992+08:00;True|2021-06-01T13:05:12.8050109+08:00;True|2021-06-01T12:56:50.4159001+08:00;True|2021-06-01T12:55:03.9062599+08:00;True|2021-06-01T12:50:27.5401681+08:00;True|2021-06-01T12:49:25.1885018+08:00;True|2021-06-01T12:47:37.2860892+08:00;True|2021-06-01T12:44:42.0069652+08:00;True|2021-06-01T12:41:06.6339839+08:00;True|2021-06-01T12:20:08.2825333+08:00;True|2021-06-01T12:17:54.3212651+08:00;True|2021-06-01T12:14:59.7872609+08:00;True|2021-06-01T12:13:59.8766709+08:00;True|2021-06-01T11:22:13.6818824+08:00;True|2021-06-01T11:11:11.8712602+08:00;True|2021-06-01T11:10:20.1735009+08:00;True|2021-06-01T11:08:17.1112299+08:00;True|2021-06-01T11:05:17.8698240+08:00;True|2021-06-01T10:44:43.4614150+08:00;True|2021-05-31T19:20:49.8593267+08:00;True|2021-05-31T19:19:26.2940461+08:00;True|2021-05-31T19:17:45.6039999+08:00;True|2021-05-31T19:08:59.0966761+08:00;True|2021-05-31T19:08:10.5596672+08:00;True|2021-05-31T19:06:39.0670555+08:00;True|2021-05-31T19:05:17.3676884+08:00;True|2021-05-31T19:02:32.1409470+08:00;True|2021-05-31T18:56:41.4179639+08:00;True|2021-05-31T18:42:20.2441083+08:00;True|2021-05-31T18:37:26.4114464+08:00;True|2021-05-31T18:23:19.4103344+08:00;True|2021-05-31T18:12:52.1436524+08:00;True|2021-05-31T18:09:51.8002595+08:00;True|2021-05-31T18:05:27.5639577+08:00;True|2021-05-31T18:03:35.9346540+08:00;True|2021-05-31T17:58:54.0393109+08:00;True|2021-05-31T17:55:12.5626152+08:00;True|2021-05-31T17:51:03.1966945+08:00;True|2021-05-31T17:49:19.8399729+08:00;True|2021-05-31T17:48:09.7657525+08:00;True|2021-05-31T17:46:21.2958557+08:00;True|2021-05-31T17:29:36.1284253+08:00;True|2021-05-31T17:25:21.8909234+08:00;True|2021-05-31T16:51:39.2706342+08:00;True|2021-05-31T16:49:33.0180809+08:00;True|2021-05-31T16:47:28.9366837+08:00;True|2021-05-31T16:45:54.1110876+08:00;True|2021-05-31T16:06:11.0032865+08:00;True|2021-05-31T16:03:11.8484779+08:00;True|2021-05-31T15:58:52.4728351+08:00;True|2021-05-31T15:52:41.3707489+08:00;True|2021-05-31T15:50:22.0767930+08:00;True|2021-05-31T14:55:08.8676668+08:00;True|2021-05-31T14:52:44.0538893+08:00;True|2021-05-31T13:58:49.2018041+08:00;True|2021-05-31T13:54:55.2565438+08:00;True|2021-05-31T13:51:07.8012368+08:00;True|2021-05-31T13:42:17.1041462+08:00;True|2021-05-31T13:41:18.8074005+08:00;True|2021-05-31T13:40:07.2910452+08:00;True|2021-05-31T13:33:41.8814879+08:00;True|2021-05-31T13:23:36.5532446+08:00;True|2021-05-31T13:21:56.2476049+08:00;True|2021-05-31T13:17:18.5030541+08:00;True|2021-05-31T13:15:40.9653645+08:00;True|2021-05-31T13:05:02.0114383+08:00;True|2021-05-31T13:03:31.1860836+08:00;True|2021-05-31T12:50:06.1218714+08:00;True|2021-05-31T10:37:20.3332108+08:00;True|2021-05-28T15:09:56.1970299+08:00;True|2021-05-28T14:25:51.6645627+08:00;True|2021-05-28T13:57:27.0842735+08:00;True|2021-05-28T09:43:20.1440634+08:00;True|2021-05-28T09:18:20.6994283+08:00;True|2021-05-27T17:48:05.1485157+08:00;True|2021-05-27T14:12:24.8809260+08:00;True|2021-05-27T13:55:41.4584398+08:00;True|2021-05-27T13:38:04.4939557+08:00;True|2021-05-25T17:58:59.4925936+08:00;True|2021-05-25T17:34:39.0766301+08:00;True|2021-05-25T16:52:27.5836825+08:00;True|2021-05-25T16:17:11.2915197+08:00;True|2021-05-25T15:56:40.9073807+08:00;True|2021-05-25T15:55:13.6625654+08:00;True|2021-05-25T14:19:47.6594488+08:00;True|2021-05-25T13:29:54.4902763+08:00;True|2021-05-25T10:07:46.4913499+08:00;True|2021-05-25T10:07:00.5180012+08:00;True|2021-05-25T10:03:19.5172048+08:00;True|2021-05-25T10:03:14.0017887+08:00;True|2021-05-25T09:56:45.2214181+08:00;True|2021-05-25T09:40:44.7928610+08:00;True|2021-05-25T09:39:54.9824104+08:00;True|2021-05-21T15:22:12.2171707+08:00;True|2021-05-21T15:19:42.7333615+08:00;True|2021-05-21T11:29:58.3974818+08:00;True|2021-05-21T11:28:09.4616811+08:00;True|2021-05-21T10:47:41.8471117+08:00;True|2021-05-21T10:22:07.2445648+08:00;True|2021-05-21T10:17:03.7723841+08:00;True|2021-05-20T19:16:06.9191828+08:00;True|2021-05-20T15:55:05.5871601+08:00;True|2021-05-20T14:29:30.2254277+08:00;True|2021-05-20T14:25:34.5236240+08:00;True|2021-05-20T14:20:39.0358706+08:00;True|2021-05-20T13:48:02.9388392+08:00;True|2021-05-20T13:39:47.1587014+08:00;True|2021-05-20T13:31:23.4635763+08:00;True|2021-05-20T10:45:56.3395800+08:00;True|2021-05-20T10:40:02.3046411+08:00;True|2021-05-20T08:58:30.2138098+08:00;True|2021-05-19T17:30:07.9866409+08:00;True|2021-05-19T16:35:53.3131106+08:00;True|2021-05-19T15:31:29.5405517+08:00;True|2021-05-19T10:47:11.4381053+08:00;True|2021-05-18T15:34:44.5123556+08:00;True|2021-05-18T15:33:45.3281373+08:00;True|2021-05-18T13:36:24.3027108+08:00;True|2021-05-18T10:30:46.9715813+08:00;True|2021-05-17T16:30:52.0536279+08:00;True|2021-05-17T16:25:48.5246048+08:00;True|2021-05-17T16:23:09.2504235+08:00;True|2021-05-17T16:20:08.1040765+08:00;True|2021-05-17T16:18:13.0021838+08:00;True|2021-05-17T15:49:53.5154178+08:00;True|2021-05-17T15:20:53.2553451+08:00;True|2021-05-17T13:22:30.1785650+08:00;True|2021-05-12T09:19:40.6104101+08:00;True|2021-05-12T08:51:31.1903832+08:00;True|2021-05-11T17:54:23.2917461+08:00;True|2021-05-11T17:41:51.8743268+08:00;True|2021-05-11T15:35:42.7284799+08:00;True|2021-05-11T15:21:56.5628091+08:00;True|2021-05-10T16:46:03.1180467+08:00;True|2021-05-10T16:15:39.9956955+08:00;True|2021-05-08T19:06:57.2743132+08:00;True|2021-05-08T19:05:29.1103688+08:00;True|2021-05-08T19:04:19.9539329+08:00;True|2021-05-08T18:01:38.7928100+08:00;True|2021-05-08T17:52:29.7429021+08:00;True|2021-05-08T17:48:25.9203761+08:00;True|2021-05-08T17:47:15.0602917+08:00;True|2021-05-08T17:43:27.4889222+08:00;True|2021-05-08T17:39:59.4612336+08:00;True|2021-05-08T17:39:33.4978946+08:00;True|2021-05-08T17:39:29.0267002+08:00;True|2021-05-08T17:37:47.5853967+08:00;True|2021-05-08T15:29:49.3055657+08:00;True|2021-05-08T15:27:07.7824934+08:00;True|2021-05-08T14:52:00.4322071+08:00;True|2021-05-08T14:30:25.4769844+08:00;True|2021-05-08T14:20:25.2085810+08:00;True|2021-05-08T13:22:50.6523779+08:00;True|2021-05-08T13:22:45.2166230+08:00;True|2021-05-08T10:18:30.8161572+08:00;True|2021-05-07T20:22:41.7365405+08:00;True|2021-05-07T20:20:31.3610753+08:00;True|2021-05-07T20:20:19.7448959+08:00;True|2021-05-07T20:03:14.9285946+08:00;True|2021-05-07T09:04:49.9965754+08:00;True|2021-05-06T18:08:51.9761525+08:00;True|2021-05-06T17:25:04.5129323+08:00;True|2021-05-06T17:18:48.0130806+08:00;True|2021-05-06T16:27:20.4296013+08:00;True|2021-05-06T16:21:58.2678114+08:00;True|2021-05-06T16:19:59.7383975+08:00;True|2021-05-06T16:17:38.0581420+08:00;True|2021-05-06T16:13:32.0399307+08:00;True|2021-05-06T16:12:43.4430581+08:00;True|2021-05-06T15:03:01.2067903+08:00;True|2021-05-06T15:00:38.4937170+08:00;True|2021-05-06T15:00:20.9792819+08:00;True|2021-05-06T14:47:13.8375625+08:00;True|2021-05-06T14:47:08.2656998+08:00;True|2021-05-06T14:31:31.6193969+08:00;True|2021-05-06T14:30:30.7221216+08:00;True|2021-05-06T14:29:07.9915201+08:00;True|2021-05-06T10:03:10.3335348+08:00;True|2021-04-28T10:26:58.1316805+08:00;True|2021-04-27T16:36:16.4269210+08:00;True|2021-04-27T16:24:41.5059209+08:00;True|2021-04-27T15:53:32.5901894+08:00;True|2021-04-27T15:22:47.3758568+08:00;True|2021-04-27T15:20:08.3268603+08:00;True|2021-04-27T15:07:44.8758565+08:00;True|2021-04-27T14:55:25.1708246+08:00;True|2021-04-27T11:29:16.9305170+08:00;True|2021-04-27T11:22:59.6375169+08:00;True|2021-04-27T11:18:40.6175151+08:00;True|2021-04-27T11:11:03.1485102+08:00;True|2021-04-27T10:59:43.1454752+08:00;True|2021-04-27T10:52:14.9373756+08:00;True|2021-04-26T16:06:17.8889031+08:00;True|2021-04-26T16:01:07.5729037+08:00;True|2021-04-26T15:43:13.1943879+08:00;True|2021-04-26T15:40:31.4783881+08:00;True|2021-04-26T13:48:32.1338637+08:00;True|2021-04-26T13:41:20.7638645+08:00;True|2021-04-26T13:36:41.2688664+08:00;True|2021-04-16T08:22:27.9458518+08:00;True|2021-04-15T16:59:13.8465752+08:00;True|2021-04-15T15:35:34.3385670+08:00;True|2021-04-15T14:45:34.4613245+08:00;True|2021-04-15T14:41:37.0870016+08:00;True|2021-04-15T14:37:07.0200028+08:00;True|2021-04-13T16:40:55.8205619+08:00;True|2021-04-13T16:17:05.5478494+08:00;</History>
   </PropertyGroup>
   <ItemGroup>
     <File Include="bin/layuiadmin/layui/layui.js">
@@ -23,11 +23,11 @@
     </File>
     <File Include="bin/WebTM.dll">
       <publishTime>04/27/2021 20:31:08</publishTime>
-      <publishTime>06/01/2021 18:20:36</publishTime>
+      <publishTime>06/02/2021 01:13:27</publishTime>
     </File>
     <File Include="bin/WebTM.pdb">
       <publishTime>04/27/2021 20:31:08</publishTime>
-      <publishTime>06/01/2021 18:20:36</publishTime>
+      <publishTime>06/02/2021 01:13:27</publishTime>
     </File>
     <File Include="layuiadmin/config.js">
       <publishTime>04/12/2021 11:31:26</publishTime>
@@ -1137,7 +1137,7 @@
     <File Include="layuiadmin/zgqCustom/zgqCustom.js">
       <publishTime>04/12/2021 11:31:26</publishTime>
       <publishTime>04/12/2021 11:31:26</publishTime>
-      <publishTime>05/25/2021 21:09:20</publishTime>
+      <publishTime>06/01/2021 18:56:04</publishTime>
     </File>
     <File Include="views/app/content/comment.html">
       <publishTime>04/12/2021 11:31:26</publishTime>
@@ -2104,16 +2104,16 @@
       <publishTime>05/25/2021 21:09:20</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/璁惧鍩虹璧勬枡/Gy_MaintenanceAcceptItem.html">
-      <publishTime>06/01/2021 18:20:31</publishTime>
+      <publishTime>06/02/2021 00:45:43</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/璁惧鍩虹璧勬枡/Sb_Add_MaintenanceAcceptItem.html">
-      <publishTime>06/01/2021 10:44:23</publishTime>
+      <publishTime>06/02/2021 00:30:07</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/杈呭姪鍩虹璧勬枡/Gy_MaintenanceMode.html">
-      <publishTime>05/31/2021 19:20:38</publishTime>
+      <publishTime>06/02/2021 01:13:19</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/杈呭姪鍩虹璧勬枡/Sb_Add_MaintenanceMode.html">
-      <publishTime>05/31/2021 18:12:26</publishTime>
+      <publishTime>06/02/2021 01:05:55</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html">
       <publishTime>04/12/2021 11:31:26</publishTime>
@@ -2853,7 +2853,7 @@
     </File>
     <File Include="Web.config">
       <publishTime>04/27/2021 20:31:08</publishTime>
-      <publishTime>06/01/2021 18:20:41</publishTime>
+      <publishTime>06/02/2021 01:13:33</publishTime>
     </File>
   </ItemGroup>
 </Project>
\ No newline at end of file
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceAcceptItem.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceAcceptItem.html"
index b77f67b..2ffbe26 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceAcceptItem.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceAcceptItem.html"
@@ -8,7 +8,11 @@
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
-
+    <style media="screen">
+        .custom-tree-item-clicked {
+            color: #FC9003
+        }
+    </style>
 
 </head>
 <body>
@@ -112,6 +116,9 @@
     <script src="../../../layuiadmin/layui/zgqlayui.js"></script>
     <!--<script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>-->
     <script>
+        var treeCkData = { id: 0 };
+        var TagId = "";
+        var TagParentId = "";
         layui.config({
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
@@ -129,67 +136,64 @@
                 , tree = layui.tree
                 , util = layui.util
 
-                //妯℃嫙鏁版嵁
-                , data = [
-                    {
-                        "id": 5,
-                        "HNumber": "MJ001",
-                        "title": "妯″叿楠屾敹椤圭洰1",
-                        "ParentID": 0,
-                        "HLevel": 1,
-                        "children": [
-                            {
-                                "id": 6,
-                                "HNumber": "MJ002",
-                                "title": "妯″叿002",
-                                "ParentID": 5,
-                                "HLevel": 2
-                            }
-                        ]
-                    }
-                ]
+              
             var sWhere = "";
             tree.render({
                 elem: '#treeDepartment',
                 data: getData(sWhere),
-                showCheckbox: true,     //鏄惁鏄剧ず澶嶉�夋
+                showCheckbox: false,     //鏄惁鏄剧ず澶嶉�夋
                 id: 'demoId',
                 isJump: false, //鏄惁鍏佽鐐瑰嚮鑺傜偣鏃跺脊鍑烘柊绐楀彛璺宠浆
                 showLine: true,//鏄惁寮�鍚繛鎺ョ嚎
+                onlyIconControl: true,   //鐐瑰嚮鍚庝笉鏀剁缉
                 click: function (obj) {
-                    //鑾峰彇鎵�鏈夐�変腑鑺傜偣id鏁扮粍
-                    var oCks = tree.getChecked('demoId'); //鑾峰彇閫変腑鑺傜偣鐨勬暟鎹�
-               
-                    for (var i = 0; i < oCks.length; i++) {
-                        //console.log(oCks[0].id, obj.data.id);
-                        if (oCks[i].id != obj.data.id) {
-                            console.log(oCks[i]);
-                            //鎵ц鑺傜偣鍕鹃��
-                           
-                            $(oCks[i]).prop("checked", false);
-                            $(this).prop("checked", false);
-                        }
+                    //鐐瑰嚮楂樺厜
+                    if (obj.data.id !== treeCkData.id) {
+                        $('div[data-id="' + obj.data.id + '"] span').eq(1).last().addClass("custom-tree-item-clicked");
+                        $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+                        treeCkData = obj.data;
+                        TagId = obj.data.id;
+                        TagParentId = obj.data.ParentID;
                     }
-                    form.render('checkbox');
-                    //console.log(oCks);
-                    //$.ajax({
-                    //    url: GetWEBURL() + '/Gy_MaintenanceAcceptItem/cx',
-                    //    type: "GET",
-                    //    data: { "HInterID": obj.data.ID },
-                    //    success: function (data1) {
-                    //        if (data1.count == 1) {
-                    //            option.data = data1.data;
-                    //            table.render(option);
-                    //            layer.close(index);
-                    //        } else {
-                    //            layer.close(index);
-                    //            layer.alert(data1.code + data1.Message, { icon: 5 });
-                    //        }
-                    //    }, error: function () {
-                    //        layer.close(index);
-                    //        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    else {
+                        $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+                        treeCkData = { id: 0 };
+                        TagId = "";
+                        TagParentId = "";
+                    }
+                    //鑾峰彇鎵�鏈夐�変腑鑺傜偣id鏁扮粍
+                    //var oCks = tree.getChecked('demoId'); //鑾峰彇閫変腑鑺傜偣鐨勬暟鎹�
+                    //for (var i = 0; i < oCks.length; i++) {
+                    //    //console.log(oCks[0].id, obj.data.id);
+                    //    if (oCks[i].id != obj.data.id) {
+                    //        console.log(oCks[i]);
+                    //        //鎵ц鑺傜偣鍕鹃��
+                           
+                    //        $(oCks[i]).prop("checked", false);
+                    //        $(this).prop("checked", false);
                     //    }
-                    //});
+                    //}
+                    //form.render('checkbox');
+
+
+                    $.ajax({
+                        url: GetWEBURL() + '/Gy_MaintenanceAcceptItem/cx',
+                        type: "GET",
+                        data: { "HInterID": obj.data.id },
+                        success: function (data1) {
+                            if (data1.count == 1) {
+                                option.data = data1.data;
+                                table.render(option);
+                                layer.close(index);
+                            } else {
+                                layer.close(index);
+                                layer.alert(data1.code + data1.Message, { icon: 5 });
+                            }
+                        }, error: function () {
+                            layer.close(index);
+                            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        }
+                    });
                 }
             });
 
@@ -236,6 +240,7 @@
                 , cols: [[
                     { type: 'radio', fixed: 'left' }
                     , { field: 'HItemID', title: 'HItemID', sort: true, hide: true }
+                    , { field: 'ParentID', title: 'ParentID', sort: true, hide: true }
                     , { field: '缁翠慨楠屾敹椤圭洰浠g爜', title: '缁翠慨楠屾敹椤圭洰浠g爜' }
                     , { field: '缁翠慨楠屾敹椤圭洰', title: '缁翠慨楠屾敹椤圭洰' }
                     , { field: '鍔╄鐮�', title: '鍔╄鐮�' }
@@ -281,7 +286,7 @@
                     shift: 2,
                     area: ['50%', '50%'],
                     maxmin: true,
-                    content: '../璁惧鍩虹璧勬枡/Sb_Add_MaintenanceAcceptItem.html',
+                    content: ['../璁惧鍩虹璧勬枡/Sb_Add_MaintenanceAcceptItem.html?hID=' + TagId + ''],
                     end: function () {
                         //鍒锋柊椤甸潰,
                         location.reload();
@@ -295,15 +300,8 @@
 
             //鍒犻櫎
             form.on('submit(btndelete)', function (obj) {
-
                 var ModRightNameDelete = 'Gy_RepairCheck_Delete'
-
-                //var data = obj.data //鑾峰緱褰撳墠琛屾暟鎹�
-                //    , layEvent = obj.event; //鑾峰緱 lay-event 瀵瑰簲鐨勫��
-                var checkStatus = table.checkStatus('mainTable')
-                    , data = checkStatus.data;
-                var layEvent = checkStatus.event;
-                if (checkStatus.data.length === 1) {
+                if (TagId != "") {
                     layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
                         btn: ['纭畾', '鍙栨秷'] //鎸夐挳
                         , yes: function (index, layero) {
@@ -312,7 +310,7 @@
                                 url: GetWEBURL() + '/Gy_MaintenanceAcceptItem/Delete_Json',
                                 type: "GET",
                                 //async: true,
-                                data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"], "ModRightNameDelete": ModRightNameDelete },
+                                data: { "HItemID": TagId, "User": sessionStorage["HUserName"], "ModRightNameDelete": ModRightNameDelete },
                                 success: function (result) {
                                     if (result.count == 1) {
                                         layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -335,8 +333,46 @@
                     });
                 }
                 else {
-                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
-                }
+                    //var data = obj.data //鑾峰緱褰撳墠琛屾暟鎹�
+                    //    , layEvent = obj.event; //鑾峰緱 lay-event 瀵瑰簲鐨勫��
+                    var checkStatus = table.checkStatus('mainTable')
+                        , data = checkStatus.data;
+                    var layEvent = checkStatus.event;
+                    if (checkStatus.data.length === 1) {
+                        layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
+                            btn: ['纭畾', '鍙栨秷'] //鎸夐挳
+                            , yes: function (index, layero) {
+
+                                $.ajax({
+                                    url: GetWEBURL() + '/Gy_MaintenanceAcceptItem/Delete_Json',
+                                    type: "GET",
+                                    //async: true,
+                                    data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"], "ModRightNameDelete": ModRightNameDelete },
+                                    success: function (result) {
+                                        if (result.count == 1) {
+                                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                                // 寰楀埌frame绱㈠紩
+                                                var index = layer.getFrameIndex(window.name);
+                                                //鍏抽棴褰撳墠frame
+                                                layer.close(index);
+                                                //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                                window.location.reload();
+                                                //閲嶈浇tree
+                                                tree.reload('treeDepartment', {});
+                                            });
+
+                                        } else {
+                                            layer.alert(result.code + result.Message, { icon: 5 });
+                                        }
+                                    }
+                                })
+                            }
+                        });
+                    }
+                    else {
+                        layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    }
+                }            
             });
 
 
@@ -375,11 +411,7 @@
 
             //淇敼鎸夐挳
             form.on('submit(btnModify)', function (data) {
-                var checkStatus = table.checkStatus('mainTable')
-                    , data = checkStatus.data;
-                if (checkStatus.data.length === 1) {
-                    var hID = data[0].HItemID.toString();
-                    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                if (TagId != "") {
                     layer.open({
                         type: 2
                         , area: ['50%', '50%']
@@ -388,7 +420,7 @@
                         , shade: 0.6 //閬僵閫忔槑搴�
                         , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                         , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: ['../璁惧鍩虹璧勬枡/Sb_Add_MaintenanceAcceptItem.html??hID=' + hID + '&HType=Modify', 'yes']
+                        , content: ['../璁惧鍩虹璧勬枡/Sb_Add_MaintenanceAcceptItem.html?hID=' + TagId + '&HType=Modify&TagParentId=' + TagParentId +'', 'yes']
                         , resize: false,
                         end: function () {
                             //鍒锋柊椤甸潰,
@@ -398,9 +430,36 @@
                             //$(".layui-btn").removeClass("layui-btn-disabled");
                         }
                     })
+                }
+                else {
+                    var checkStatus = table.checkStatus('mainTable')
+                        , data = checkStatus.data;
+                    if (checkStatus.data.length === 1) {
+                        var hID = data[0].HItemID.toString();
+                        TagParentId = data[0].ParentID.toString();
+                        //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                        layer.open({
+                            type: 2
+                            , area: ['50%', '50%']
+                            , title: '缂栬緫缁翠慨楠屾敹椤圭洰'
+                            , closeBtn: 1
+                            , shade: 0.6 //閬僵閫忔槑搴�
+                            , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                            , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                            , content: ['../璁惧鍩虹璧勬枡/Sb_Add_MaintenanceAcceptItem.html?hID=' + hID + '&HType=Modify&TagParentId=' + TagParentId +'', 'yes']
+                            , resize: false,
+                            end: function () {
+                                //鍒锋柊椤甸潰,
+                                location.reload();
+                            }
+                            , cancel: function () {
+                                //$(".layui-btn").removeClass("layui-btn-disabled");
+                            }
+                        })
 
-                } else {
-                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    } else {
+                        layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    }
                 }
             });
 
@@ -415,6 +474,7 @@
 
             //浠ヤ笂鏄痩ayui妯″潡
         });
+     
 
         //鏌ヨ鏍戠姸鏁版嵁
         function getData(sWhere) {
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceAcceptItem.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceAcceptItem.html"
index 330bacf..ca9b8f2 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceAcceptItem.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\256\276\345\244\207\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceAcceptItem.html"
@@ -40,6 +40,8 @@
                                                 <label class="layui-form-label">浠g爜</label>
                                                 <div class="layui-input-inline">
                                                     <input class="layui-input" name="HNumber" lay-verify="HNumber" id="HNumber">
+                                                    <input id="HItemID" name="HItemID" type="hidden" />
+                                                    <input id="HParentID" name="HParentID" type="hidden" />
                                                 </div>
                                             </div>
                                             <div class="layui-inline">
@@ -99,7 +101,8 @@
         var params = getUrlVars();
         var hID = params[params[0]];//缂栬緫鏌ョ湅
         var HType = params[params[1]];    //鍗曟嵁鐘舵��
-
+        var TagParentId = params[params[2]];  //鐖剁骇ID
+ 
 
         layui.config({
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -140,8 +143,16 @@
                 var arr = new Array();
                 var isEndCheck = document.getElementById("HStopflag").checked;
                 data.field.HStopflag = isEndCheck;//灏嗘暟缁勫悎骞舵垚瀛楃涓�
-                var oMain = JSON.stringify(data.field)
+               
+                data.field.HItemID = hID == "" ? 0 : hID;
+
+                data.field.HParentID = TagParentId == "" ? 0 : TagParentId;
+                var oMain = JSON.stringify(data.field);
+                
+    
                 var sMainSub = oMain + ';' + hID + ';' + user + ';' + ModRightNameAdd;
+                //console.info(oMain);
+          
                 if (HType == "Modify") {
 
                     $.ajax(
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceMode.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceMode.html"
index f98cbcf..9da5b73 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceMode.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaintenanceMode.html"
@@ -14,7 +14,11 @@
     <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script src="../../../layuiadmin/layui/lay/modules/util.js"></script>
-
+    <style media="screen">
+        .custom-tree-item-clicked {
+            color: #FC9003
+        }
+    </style>
 </head>
 <body>
     <div class="layui-fluid">
@@ -112,6 +116,10 @@
     <script src="../../../layuiadmin/layui/zgqlayui.js"></script>
     <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
     <script>
+        var treeCkData = { id: 0 };
+        var TagId = "";
+        var TagParentId = "";
+
         layui.config({
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
@@ -129,46 +137,65 @@
                 , tree = layui.tree
             var sWhere = "";
 
+            tree.render({
+                elem: '#treeDepartment',
+                data: getData(sWhere),
+                showCheckbox: false,     //鏄惁鏄剧ず澶嶉�夋
+                id: 'demoId',
+                isJump: false, //鏄惁鍏佽鐐瑰嚮鑺傜偣鏃跺脊鍑烘柊绐楀彛璺宠浆
+                showLine: true,//鏄惁寮�鍚繛鎺ョ嚎
+                onlyIconControl: true,   //鐐瑰嚮鍚庝笉鏀剁缉
+                click: function (obj) {
+                    //鐐瑰嚮楂樺厜
+                    if (obj.data.id !== treeCkData.id) {
+                        $('div[data-id="' + obj.data.id + '"] span').eq(1).last().addClass("custom-tree-item-clicked");
+                        $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+                        treeCkData = obj.data;
+                        TagId = obj.data.id;
+                        TagParentId = obj.data.ParentID;
+                    }
+                    else {
+                        $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+                        treeCkData = { id: 0 };
+                        TagId = "";
+                        TagParentId = "";
+                    }
+                    //鑾峰彇鎵�鏈夐�変腑鑺傜偣id鏁扮粍
+                    //var oCks = tree.getChecked('demoId'); //鑾峰彇閫変腑鑺傜偣鐨勬暟鎹�
+                    //for (var i = 0; i < oCks.length; i++) {
+                    //    //console.log(oCks[0].id, obj.data.id);
+                    //    if (oCks[i].id != obj.data.id) {
+                    //        console.log(oCks[i]);
+                    //        //鎵ц鑺傜偣鍕鹃��
 
-            $.ajax({
-                url: GetWEBURL() + '/Gy_MaintenanceMode/LoadTree',
-                type: "GET",
-                data: { "sWhere": sWhere },
-                success: function (result) {
-                    console.info(result);
-                    var data = result.data;
-                    //鐢熸垚鏁版嵁瀵硅薄闆嗗悎
-                    var treeData = LoadTree(data);
-                    tree.render({
-                        elem: '#treeDepartment',
-                        data: treeData,
-                        id: 'treeId',
-                        disabled: 'disabled',
-                        click: function (obj) {
-                            $.ajax({
-                                url: GetWEBURL() + '/Gy_MaintenanceMode/cx',
-                                type: "GET",
-                                data: { "HInterID": obj.data.ID },
-                                success: function (data1) {
-                                    if (data1.count == 1) {
-                                        option.data = data1.data;
-                                        table.render(option);
-                                        layer.close(index);
-                                    } else {
-                                        layer.close(index);
-                                        layer.alert(data1.code + data1.Message, { icon: 5 });
-                                    }
-                                }, error: function () {
-                                    layer.close(index);
-                                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
-                                }
-                            });
-                        },
-                        showCheckbox: false,     //鏄惁鏄剧ず澶嶉�夋
-                        showLine:false
+                    //        $(oCks[i]).prop("checked", false);
+                    //        $(this).prop("checked", false);
+                    //    }
+                    //}
+                    //form.render('checkbox');
+
+
+                    $.ajax({
+                        url: GetWEBURL() + '/Gy_MaintenanceMode/cx',
+                        type: "GET",
+                        data: { "HInterID": obj.data.id },
+                        success: function (data1) {
+                            if (data1.count == 1) {
+                                option.data = data1.data;
+                                table.render(option);
+                                layer.close(index);
+                            } else {
+                                layer.close(index);
+                                layer.alert(data1.code + data1.Message, { icon: 5 });
+                            }
+                        }, error: function () {
+                            layer.close(index);
+                            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        }
                     });
                 }
             });
+
 
             //$.ajax({
             //    type: "get",
@@ -212,6 +239,7 @@
                 , cols: [[
                     { type: 'radio', fixed: 'left' }
                     , { field: 'HItemID', title: 'HItemID', sort: true, hide: true }
+                    , { field: 'ParentID', title: 'ParentID', sort: true, hide: true }
                     , { field: '缁翠慨鏂瑰紡浠g爜', title: '缁翠慨鏂瑰紡浠g爜' }
                     , { field: '缁翠慨鏂瑰紡鍚嶇О', title: '缁翠慨鏂瑰紡鍚嶇О' }
                     , { field: '澶囨敞', title: '澶囨敞' }
@@ -254,7 +282,7 @@
                     shift: 2,
                     area: ['50%', '50%'],
                     maxmin: true,
-                    content: '../杈呭姪鍩虹璧勬枡/Sb_Add_MaintenanceMode.html',
+                    content:['../杈呭姪鍩虹璧勬枡/Sb_Add_MaintenanceMode.html?hID=' + TagId + ''],
                     end: function () {
                         //鍒锋柊椤甸潰,
                         location.reload();
@@ -268,24 +296,17 @@
 
             //鍒犻櫎
             form.on('submit(btndelete)', function (obj) {
-
                 var ModRightNameDelete = 'Gy_RepairType_Delete'
-
-                //var data = obj.data //鑾峰緱褰撳墠琛屾暟鎹�
-                //    , layEvent = obj.event; //鑾峰緱 lay-event 瀵瑰簲鐨勫��
-                var checkStatus = table.checkStatus('mainTable')
-                    , data = checkStatus.data;
-                var layEvent = checkStatus.event;
-                if (checkStatus.data.length === 1) {
+                if (TagId != "") {
                     layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
                         btn: ['纭畾', '鍙栨秷'] //鎸夐挳
                         , yes: function (index, layero) {
-                          
+
                             $.ajax({
                                 url: GetWEBURL() + '/Gy_MaintenanceMode/Delete_Json',
                                 type: "GET",
                                 //async: true,
-                                data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"], "ModRightNameDelete": ModRightNameDelete },
+                                data: { "HItemID": TagId, "User": sessionStorage["HUserName"], "ModRightNameDelete": ModRightNameDelete },
                                 success: function (result) {
                                     if (result.count == 1) {
                                         layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -308,7 +329,45 @@
                     });
                 }
                 else {
-                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    //var data = obj.data //鑾峰緱褰撳墠琛屾暟鎹�
+                    //    , layEvent = obj.event; //鑾峰緱 lay-event 瀵瑰簲鐨勫��
+                    var checkStatus = table.checkStatus('mainTable')
+                        , data = checkStatus.data;
+                    var layEvent = checkStatus.event;
+                    if (checkStatus.data.length === 1) {
+                        layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
+                            btn: ['纭畾', '鍙栨秷'] //鎸夐挳
+                            , yes: function (index, layero) {
+
+                                $.ajax({
+                                    url: GetWEBURL() + '/Gy_MaintenanceMode/Delete_Json',
+                                    type: "GET",
+                                    //async: true,
+                                    data: { "HItemID": data[0].HItemID, "User": sessionStorage["HUserName"], "ModRightNameDelete": ModRightNameDelete },
+                                    success: function (result) {
+                                        if (result.count == 1) {
+                                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                                // 寰楀埌frame绱㈠紩
+                                                var index = layer.getFrameIndex(window.name);
+                                                //鍏抽棴褰撳墠frame
+                                                layer.close(index);
+                                                //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                                window.location.reload();
+                                                //閲嶈浇tree
+                                                tree.reload('treeDepartment', {});
+                                            });
+
+                                        } else {
+                                            layer.alert(result.code + result.Message, { icon: 5 });
+                                        }
+                                    }
+                                })
+                            }
+                        });
+                    }
+                    else {
+                        layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    }
                 }
             });
 
@@ -348,11 +407,7 @@
 
             //淇敼鎸夐挳
             form.on('submit(btnModify)', function (data) {
-                var checkStatus = table.checkStatus('mainTable')
-                    , data = checkStatus.data;
-                if (checkStatus.data.length === 1) {
-                    var hID = data[0].HItemID.toString();
-                    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                if (TagId != "") {
                     layer.open({
                         type: 2
                         , area: ['50%', '50%']
@@ -361,7 +416,7 @@
                         , shade: 0.6 //閬僵閫忔槑搴�
                         , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                         , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: ['../杈呭姪鍩虹璧勬枡/Sb_Add_MaintenanceMode.html??hID=' + hID + '&HType=Modify', 'yes']
+                        , content: ['../杈呭姪鍩虹璧勬枡/Sb_Add_MaintenanceMode.html?hID=' + TagId + '&HType=Modify&TagParentId=' + TagParentId + '', 'yes']
                         , resize: false,
                         end: function () {
                             //鍒锋柊椤甸潰,
@@ -371,9 +426,36 @@
                             //$(".layui-btn").removeClass("layui-btn-disabled");
                         }
                     })
+                }
+                else {
+                    var checkStatus = table.checkStatus('mainTable')
+                        , data = checkStatus.data;
+                    if (checkStatus.data.length === 1) {
+                        var hID = data[0].HItemID.toString();
+                        TagParentId = data[0].ParentID.toString();
+                        //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                        layer.open({
+                            type: 2
+                            , area: ['50%', '50%']
+                            , title: '缂栬緫缁翠慨鏂瑰紡'
+                            , closeBtn: 1
+                            , shade: 0.6 //閬僵閫忔槑搴�
+                            , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                            , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                            , content: ['../杈呭姪鍩虹璧勬枡/Sb_Add_MaintenanceMode.html?hID=' + hID + '&HType=Modify&TagParentId=' + TagParentId + '', 'yes']
+                            , resize: false,
+                            end: function () {
+                                //鍒锋柊椤甸潰,
+                                location.reload();
+                            }
+                            , cancel: function () {
+                                //$(".layui-btn").removeClass("layui-btn-disabled");
+                            }
+                        })
 
-                } else {
-                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    } else {
+                        layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                    }
                 }
             });
 
@@ -389,7 +471,43 @@
             //浠ヤ笂鏄痩ayui妯″潡
         });
 
+        //鏌ヨ鏍戠姸鏁版嵁
+        function getData(sWhere) {
+            var treeData;
 
+            $.ajax({
+                url: GetWEBURL() + '/Gy_MaintenanceMode/LoadTree',
+                type: "GET",
+                data: { "sWhere": sWhere },
+                async: false,
+                success: function (result) {
+                    var data = result.data;
+                    //鐢熸垚鏁版嵁瀵硅薄闆嗗悎
+                    treeData = LoadTree(data);
+
+                }
+            });
+            return treeData;
+        }
+        /**澶勭悊鏍戝舰灞曠ず鏁版嵁锛岃姹傛湁ID鍜孭arentID銆乼itle瀛楁**/
+        function LoadTree(data) {
+            let map = {};
+            let treeData = [];
+            data.forEach(it => {
+                map[it.id] = it;    //ID涓烘瘡涓妭鐐圭殑id
+            })
+            //鐢熸垚缁撴灉闆�
+            data.forEach(it => {
+                const parent = map[it.ParentID];   //ParentID涓虹埗鑺傜偣鐨刬d
+                if (parent) {
+                    if (!Array.isArray(parent.children)) parent.children = [];
+                    parent.children.push(it);
+                } else {
+                    treeData.push(it)
+                }
+            })
+            return treeData;
+        }
 
 
     </script>
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceMode.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceMode.html"
index a73dccc..2ebb604 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceMode.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\350\276\205\345\212\251\345\237\272\347\241\200\350\265\204\346\226\231/Sb_Add_MaintenanceMode.html"
@@ -40,6 +40,8 @@
                                                 <label class="layui-form-label">浠g爜</label>
                                                 <div class="layui-input-inline">
                                                     <input class="layui-input" name="HNumber" lay-verify="HNumber" id="HNumber">
+                                                    <input id="HItemID" name="HItemID" type="hidden" />
+                                                    <input id="HParentID" name="HParentID" type="hidden" />
                                                 </div>
                                             </div>
                                             <div class="layui-inline">
@@ -98,7 +100,7 @@
         var params = getUrlVars();
         var hID = params[params[0]];//缂栬緫鏌ョ湅
         var HType = params[params[1]];    //鍗曟嵁鐘舵��
-
+        var TagParentId = params[params[2]];  //鐖剁骇ID
 
         layui.config({
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -139,6 +141,11 @@
                 var arr = new Array();
                 var isEndCheck = document.getElementById("HStopflag").checked;
                 data.field.HStopflag = isEndCheck;//灏嗘暟缁勫悎骞舵垚瀛楃涓�
+
+                data.field.HItemID = hID == "" ? 0 : hID;
+
+                data.field.HParentID = TagParentId == "" ? 0 : TagParentId;
+
                 var oMain = JSON.stringify(data.field)
                 var sMainSub = oMain + ';' + hID + ';' + user + ';' + ModRightNameAdd;
                 if (HType == "Modify") {

--
Gitblit v1.9.1