dinge.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>定额库编辑器</title>
  8. <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
  9. <!-- <link rel="stylesheet" href="/lib/css/bootstrap/themes.css">-->
  10. <link rel="stylesheet" href="/web/maintain/ration_repository/css/main.css">
  11. <link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
  12. <link rel="stylesheet" href="/lib/jquery-contextmenu/jquery.contextMenu.css">
  13. <!--zTree-->
  14. <link rel="stylesheet" href="/lib/ztree/css/zTreeStyle.css" type="text/css">
  15. <link rel="stylesheet" href="/lib/spreadjs/sheets/css/gc.spread.sheets.sc.css" type="text/css">
  16. <style type="text/css">
  17. .ztree li span.button.add{margin-right:2px;background-position:-144px 0;vertical-align:top;*vertical-align:middle}
  18. .modal-lg{max-width: 1000px}
  19. </style>
  20. <script type="text/javascript">
  21. let priceProperties = JSON.parse('<%- priceProperties %>');
  22. console.log(priceProperties);
  23. </script>
  24. </head>
  25. <body>
  26. <div class="header">
  27. <nav class="navbar navbar-toggleable-lg navbar-light bg-faded p-0 ">
  28. <span class="header-logo px-2">Smartcost</span>
  29. <div id="rationname" class="navbar-text"><a href="main">定额库</a><i class="fa fa-angle-right fa-fw"></i>XXX定额库</div>
  30. </nav>
  31. <nav class="navbar navbar-toggleable-lg justify-content-between navbar-light p-0">
  32. <ul class="nav nav-tabs" role="tablist">
  33. <li class="nav-item">
  34. <a class="nav-link active px-3" id ="dinge" >定额</a>
  35. </li>
  36. <li class="nav-item">
  37. <a class="nav-link px-3" id="gongliao" href="<%= redirectGlj %>">人材机</a>
  38. </li>
  39. <!-- <li class="nav-item">
  40. <a class="nav-link px-3" id="fuzhu" href="<%= redirectCoe %>">子目换算</a>
  41. </li>-->
  42. <li class="nav-item">
  43. <a class="nav-link px-3" id="anzhuang" href="<%= redirectInstallation %>">安装增加费</a>
  44. </li>
  45. </ul>
  46. <ul class="nav nav-tabs" role="tablist">
  47. <li class="nav-item">
  48. <a class="nav-link px-3" href="javascript:void(0);" id="zmhs">子目换算</a>
  49. </li>
  50. </ul>
  51. </nav>
  52. </div>
  53. <div class="main" style="overflow: hidden">
  54. <div class="content">
  55. <div class="container-fluid">
  56. <div class="row">
  57. <div class="main-side col-3 p-0" style="width: 100%; height: 100%; overflow: hidden">
  58. <div class="tab-bar">
  59. <a href="javascript:void(0);" id="tree_Insert" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="插入"><i class="fa fa-plus" aria-hidden="true"></i></a>
  60. <a href="javascript:void(0);" id="tree_remove" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="删除"><i class="fa fa-remove" aria-hidden="true"></i></a>
  61. <a href="javascript:void(0);" id="tree_upLevel" class="btn btn-sm " data-toggle="tooltip" data-placement="bottom" title="" data-original-title="升级"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
  62. <a href="javascript:void(0);" id="tree_downLevel" class="btn btn-sm " data-toggle="tooltip" data-placement="bottom" title="" data-original-title="降级"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
  63. <a href="javascript:void(0);" id="tree_downMove" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="下移"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  64. <a href="javascript:void(0);" id="tree_upMove" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="上移"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  65. </div>
  66. <div class="tab-content" id="sectionSpread" style="overflow: hidden">
  67. <!--<ul id="rationChapterTree" class="ztree"></ul>-->
  68. </div>
  69. </div>
  70. <div class="main-content col-9 p-0" id="mainContent">
  71. <!-- 右标签 -->
  72. <ul class="nav nav-tabs tools-bar" role="tablist">
  73. <li class="nav-item">
  74. <a class="nav-link active" data-toggle="tab" href="#tde" role="tab">定额</a>
  75. </li>
  76. <li class="nav-item">
  77. <a class="nav-link" data-toggle="tab" href="#tsm" role="tab" id="explanationLink">说明</a>
  78. </li>
  79. <li class="nav-item">
  80. <a class="nav-link" data-toggle="tab" href="#tjs" role="tab">计算规则</a>
  81. </li>
  82. <li class="nav-item">
  83. <a id="gznr" class="nav-link" data-toggle="tab" href="#tgz" role="tab">工作内容</a>
  84. </li>
  85. <li class="nav-item">
  86. <a class="nav-link" data-toggle="tab" href="#tfz" role="tab">附注</a>
  87. </li>
  88. </ul>
  89. <div class="tab-content">
  90. <!--定额-->
  91. <div class="tab-pane active" id="tde" role="tabpanel">
  92. <!--定额top-->
  93. <div id="rationItemsSheet" class="main-data-top"></div>
  94. <!--定额bottom-->
  95. <div class="bottom-content">
  96. <!-- 标签 -->
  97. <ul class="nav nav-tabs" role="tablist">
  98. <li class="nav-item">
  99. <a class="nav-link active" id="linkGLJ" data-toggle="tab" href="#rDetail" role="tab">人材机</a>
  100. </li>
  101. <li class="nav-item">
  102. <a class="nav-link" id="linkFZDE" data-toggle="tab" href="#rDetail" role="tab">辅助定额调整</a>
  103. </li>
  104. <li class="nav-item">
  105. <a class="nav-link" id="linkFZTJ" data-toggle="tab" href="#rDetail" role="tab">子目换算调整</a>
  106. </li>
  107. <li class="nav-item">
  108. <a class="nav-link" id="linkAZZJ" data-toggle="tab" href="#" role="tab">安装增加费</a>
  109. </li>
  110. </ul>
  111. <!-- 内容 -->
  112. <div class="tab-content">
  113. <div class="tab-pane active" id="rDetail" role="tabpanel">
  114. <div id="rdSpread" class="main-data-bottom" style="overflow: hidden"></div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <!--说明-->
  120. <div class="tab-pane" id="tsm" role="tabpanel">
  121. <div class="main-data">
  122. <!-- <div class="m-2"><a href="javacript:void(0);" data-toggle="modal" data-target="#editTsm" title="编辑">编辑说明</a></div>-->
  123. <div class="main-content m-2">
  124. <h5>说明</h5>
  125. <!--<textarea id="explanationShow" class="form-control" rows="35" style="background: white;"></textarea>-->
  126. <textarea id="explanationShow" class="form-control" style="background: white;"></textarea>
  127. </div>
  128. </div>
  129. </div>
  130. <!--计算规则-->
  131. <div class="tab-pane" id="tjs" role="tabpanel">
  132. <div class="main-data">
  133. <!-- <div class="m-2"><a href="javacript:void(0);" data-toggle="modal" data-target="#editTjs" title="编辑">编辑计算规则</a></div>-->
  134. <div class="main-content m-2">
  135. <h5>计算规则</h5>
  136. <textarea id="ruleTextShow" class="form-control" style="background: white;"></textarea>
  137. </div>
  138. </div>
  139. </div>
  140. <!--工作内容-->
  141. <div class="tab-pane" id="tgz" role="tabpanel">
  142. <div class="main-data">
  143. <div class="form-check m-2"><label class="form-check-label"><input type="radio" class="form-check-input" name="optionsRadios" value="ALL" disabled=""> 适合本项所有定额</label>&nbsp;&nbsp;<label class="form-check-label"><input type="radio" class="form-check-input" name="optionsRadios" value="PARTIAL" disabled> 适合本项部分定额</label></div>
  144. <!-- <p class="m-2">适合本项所有定额</p> -->
  145. <table class="table table-sm table-bordered m-0" id="tableAll">
  146. <tr>
  147. <td><textarea class="form-control" rows="30" id="txtareaAll"></textarea></td>
  148. </tr>
  149. </table>
  150. <table class="table table-sm table-bordered m-0" id="tablePartial">
  151. </table>
  152. </div>
  153. </div>
  154. <!--附注-->
  155. <div class="tab-pane" id="tfz" role="tabpanel">
  156. <div class="main-data">
  157. <div class="form-check m-2"><label class="form-check-label"><input type="radio" class="form-check-input" name="fzRadios" value="ALL" disabled=""> 适合本项所有定额</label>&nbsp;&nbsp;<label class="form-check-label"><input type="radio" class="form-check-input" name="fzRadios" value="PARTIAL" disabled> 适合本项部分定额</label></div>
  158. <!-- <p class="m-2">适合本项所有定额</p> -->
  159. <table class="table table-sm table-bordered m-0" id="fzTableAll">
  160. <tr>
  161. <td><textarea class="form-control" rows="30" id="fzTxtareaAll"></textarea></td>
  162. </tr>
  163. </table>
  164. <table class="table table-sm table-bordered m-0" id="fzTablePartial">
  165. </table>
  166. </div>
  167. </div>
  168. </div>
  169. </div i>
  170. <div class="main-side col-3 p-0" id="zmhsContent" style="display: none">
  171. <div class="main-data-top-fluid" id="mainSpread">
  172. </div>
  173. <div class="bottom-content" id="contentSpread">
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. <!--弹出添加-->
  180. <button id="gznrBtn" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#addNewgznr" style="display: none"></button>
  181. <div class="modal fade" id="addNewgznr" data-backdrop="static" style="display: none;" aria-hidden="true">
  182. <div class="modal-dialog" role="document">
  183. <div class="modal-content">
  184. <div class="modal-header">
  185. <h5 class="modal-title">添加工作内容</h5>
  186. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  187. <span aria-hidden="true">×</span>
  188. </button>
  189. </div>
  190. <div class="modal-body">
  191. <form>
  192. <div class="form-group">
  193. <label>内容</label>
  194. <textarea class="form-control" rows="5"></textarea>
  195. </div>
  196. </form>
  197. <form>
  198. <div class="form-group">
  199. <label>编码</label>
  200. <div class="form-control">
  201. <div class="row code">
  202. <div class="col">
  203. <label class="form-check-label">
  204. <input class="form-check-input" type="checkbox" value="option1" checked> AA0017
  205. </label>
  206. </div>
  207. <div class="col">
  208. <label class="form-check-label">
  209. <input class="form-check-input" type="checkbox" value="option1" checked> AA0018
  210. </label>
  211. </div>
  212. <div class="col">
  213. <label class="form-check-label">
  214. <input class="form-check-input" type="checkbox" value="option1" checked> AA0019
  215. </label>
  216. </div>
  217. <div class="w-100"></div>
  218. <div class="col">
  219. <label class="form-check-label">
  220. <input class="form-check-input" type="checkbox" value="option1"> AA0020
  221. </label>
  222. </div>
  223. <div class="col">
  224. <label class="form-check-label">
  225. <input class="form-check-input" type="checkbox" value="option1"> AA0021
  226. </label>
  227. </div>
  228. <div class="col">
  229. <label class="form-check-label">
  230. <input class="form-check-input" type="checkbox" value="option1"> AA0022
  231. </label>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. <div class="form-group">
  237. <label>内容</label>
  238. <textarea class="form-control" rows="5"></textarea>
  239. </div>
  240. </form>
  241. </div>
  242. <div class="modal-footer">
  243. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  244. <a href="" class="btn btn-primary">确定</a>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. <!--弹出编辑-->
  250. <div class="modal fade" id="editTsm" data-backdrop="static" style="display: none;" aria-hidden="true">
  251. <div class="modal-dialog" role="document">
  252. <div class="modal-content">
  253. <div class="modal-header">
  254. <h5 class="modal-title">编辑说明</h5>
  255. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  256. <span aria-hidden="true">×</span>
  257. </button>
  258. </div>
  259. <div class="modal-body">
  260. <form>
  261. <div class="form-group">
  262. <label>内容</label>
  263. <textarea class="form-control" rows="5" id="explanationAdd"></textarea>
  264. </div>
  265. </form>
  266. </div>
  267. <div class="modal-footer">
  268. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  269. <a href="javascript:void(0);" class="btn btn-primary" id="explanationBtn" data-dismiss="modal">确定</a>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="modal fade" id="editTjs" data-backdrop="static" style="display: none;" aria-hidden="true">
  275. <div class="modal-dialog" role="document">
  276. <div class="modal-content">
  277. <div class="modal-header">
  278. <h5 class="modal-title">编辑计算规则</h5>
  279. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  280. <span aria-hidden="true">×</span>
  281. </button>
  282. </div>
  283. <div class="modal-body">
  284. <form>
  285. <div class="form-group">
  286. <label>内容</label>
  287. <textarea class="form-control" rows="5"></textarea>
  288. </div>
  289. </form>
  290. </div>
  291. <div class="modal-footer">
  292. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  293. <a href="javascript:void(0);" class="btn btn-primary" data-dismiss="modal" id="ruleTextAdd">确定</a>
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. <div class="modal fade" id="editBianmaQ" data-backdrop="static" style="display: none;" aria-hidden="true">
  299. <div class="modal-dialog" role="document">
  300. <div class="modal-content">
  301. <div class="modal-header">
  302. <h5 class="modal-title">修改编码</h5>
  303. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  304. <span aria-hidden="true">×</span>
  305. </button>
  306. </div>
  307. <div class="modal-body">
  308. <form>
  309. <div class="form-group">
  310. <label>编码</label>
  311. <div class="form-control">
  312. <div class="row code" id="updateCon">
  313. </div>
  314. </div>
  315. </div>
  316. </form>
  317. </div>
  318. <div class="modal-footer">
  319. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  320. <a href="javascript: void(0);" class="btn btn-primary" data-dismiss="modal" id="updateConBtn">确定</a>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. <div class="modal fade" id="editBianma" data-backdrop="static" style="display: none;" aria-hidden="true">
  326. <div class="modal-dialog" role="document">
  327. <div class="modal-content">
  328. <div class="modal-header">
  329. <h5 class="modal-title">勾选编码</h5>
  330. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  331. <span aria-hidden="true">×</span>
  332. </button>
  333. </div>
  334. <div class="modal-body">
  335. <form>
  336. <div class="form-group">
  337. <label>编码</label>
  338. <div class="form-control">
  339. <div class="row code" id="addCon">
  340. </div>
  341. </div>
  342. </div>
  343. </form>
  344. </div>
  345. <div class="modal-footer">
  346. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  347. <a href="javascript: void(0);" class="btn btn-primary" data-dismiss="modal" id="addConBtn">确定</a>
  348. </div>
  349. </div>
  350. </div>
  351. </div>
  352. <!--弹出附注-->
  353. <div class="modal fade" id="fzEditBianmaQ" data-backdrop="static" style="display: none;" aria-hidden="true">
  354. <div class="modal-dialog" role="document">
  355. <div class="modal-content">
  356. <div class="modal-header">
  357. <h5 class="modal-title">修改编码</h5>
  358. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  359. <span aria-hidden="true">×</span>
  360. </button>
  361. </div>
  362. <div class="modal-body">
  363. <form>
  364. <div class="form-group">
  365. <label>编码</label>
  366. <div class="form-control">
  367. <div class="row code" id="fzUpdateCon">
  368. </div>
  369. </div>
  370. </div>
  371. </form>
  372. </div>
  373. <div class="modal-footer">
  374. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  375. <a href="javascript: void(0);" class="btn btn-primary" data-dismiss="modal" id="fzUpdateConBtn">确定</a>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. <div class="modal fade" id="fzEditBianma" data-backdrop="static" style="display: none;" aria-hidden="true">
  381. <div class="modal-dialog" role="document">
  382. <div class="modal-content">
  383. <div class="modal-header">
  384. <h5 class="modal-title">勾选编码</h5>
  385. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  386. <span aria-hidden="true">×</span>
  387. </button>
  388. </div>
  389. <div class="modal-body">
  390. <form>
  391. <div class="form-group">
  392. <label>编码</label>
  393. <div class="form-control">
  394. <div class="row code" id="fzAddCon">
  395. </div>
  396. </div>
  397. </div>
  398. </form>
  399. </div>
  400. <div class="modal-footer">
  401. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  402. <a href="javascript: void(0);" class="btn btn-primary" data-dismiss="modal" id="fzAddConBtn">确定</a>
  403. </div>
  404. </div>
  405. </div>
  406. </div>
  407. <!--弹出警告窗-->
  408. <button id="rationAlertBtn" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#rationAlert" style="display: none"></button>
  409. <div class="modal fade" id="rationAlert" data-backdrop="static" style="display: none;" aria-hidden="true">
  410. <input type="hidden" id="gdid" value="123">
  411. <div class="modal-dialog" role="document">
  412. <div class="modal-content">
  413. <div class="modal-header">
  414. <h5 class="modal-title">取消确认</h5>
  415. <button type="button" id="rationAlertCls" class="close" data-dismiss="modal" aria-label="Close">
  416. <span aria-hidden="true">×</span>
  417. </button>
  418. </div>
  419. <div class="modal-body">
  420. <h5 class="text-danger" id="alertRationTxt">编码不可为空,继续新增定额?</h5>
  421. </div>
  422. <div class="modal-footer">
  423. <button type="button" class="btn btn-secondary" id="rationAlertCac" data-dismiss="modal">取消</button>
  424. <a href="javascript: void(0);" id="rationAlertCof" class="btn btn-danger" data-dismiss="modal">确认</a>
  425. </div>
  426. </div>
  427. </div>
  428. </div>
  429. <button id="alertModalBtn" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#alertModal" style="display: none"></button>
  430. <div class="modal fade" id="alertModal" data-backdrop="static" style="display: none;" aria-hidden="true">
  431. <input type="hidden" id="codedid" value="123">
  432. <div class="modal-dialog" role="document">
  433. <div class="modal-content">
  434. <div class="modal-header">
  435. <h5 class="modal-title">警告</h5>
  436. <button type="button" id="alertModalCls" class="close" data-dismiss="modal" aria-label="Close">
  437. <span aria-hidden="true">×</span>
  438. </button>
  439. </div>
  440. <div class="modal-body">
  441. <h5 class="text-danger" id="alertText">输入的编号已存在,请重新输入!</h5>
  442. </div>
  443. <div class="modal-footer">
  444. <button type="button" class="btn btn-danger" id="alertModalCof" data-dismiss="modal">确认</button>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. <!--弹出选择人材机-->
  450. <div class="modal fade" id="selGlj" data-backdrop="static">
  451. <div class="modal-dialog modal-lg" role="document" id="modalCon">
  452. <div class="modal-content" >
  453. <div class="modal-header">
  454. <h5 class="modal-title">选择人材机</h5>
  455. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  456. <span aria-hidden="true">&times;</span>
  457. </button>
  458. </div>
  459. <div class="modal-body">
  460. <div style="width: 33%; float: left;">
  461. <div class="modal-auto-height" id="gljSelTreeDiv" style="overflow: hidden">
  462. <!--<div class="print-list">-->
  463. <div style="width: 100%; height: 100%; overflow: auto">
  464. <ul id="selGljTree" class="ztree"></ul>
  465. </div>
  466. <!--</div>-->
  467. </div>
  468. </div>
  469. <div style="width: 67%; padding-left: 8px; float: left;">
  470. <div class="row">
  471. <div class="col-12" id="gljRadios">
  472. <div class="row">
  473. <div class="col-7" style="margin-top: 5px;">
  474. <input type="radio" class="glj-radio" name="glj" value="allGljs">所有人材机
  475. </div>
  476. <div class="input-group col-5" style="margin-bottom: 5px;">
  477. <input type="text" class="form-control form-control-sm" placeholder="请输入筛选编码或名称" value="" id="gljSearchKeyword">
  478. </div>
  479. </div>
  480. </div>
  481. <div class="modal-auto-height col-12" style="overflow: hidden" id="gljSelSheet">
  482. </div>
  483. </div>
  484. </div>
  485. </div>
  486. <div class="modal-footer">
  487. <a href="javascript:void(0);" id="gljSelY" class="btn btn-primary">确定</a>
  488. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  489. </div>
  490. </div>
  491. </div>
  492. </div>
  493. <!--删除-->
  494. <div class="modal fade" id="delAlert" data-backdrop="static" style="display: none;" aria-hidden="true">
  495. <input type="hidden" value="123">
  496. <div class="modal-dialog" role="document">
  497. <div class="modal-content">
  498. <div class="modal-header">
  499. <h5 class="modal-title">警告</h5>
  500. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  501. <span aria-hidden="true">×</span>
  502. </button>
  503. </div>
  504. <div class="modal-body">
  505. <h5 class="text-danger" id="delText">是否删除当前节点及其子项?</h5>
  506. </div>
  507. <div class="modal-footer">
  508. <button type="button" class="btn btn-danger" id="delConfirm">确认</button>
  509. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. <div class="modal fade" id="delRationAlert" data-backdrop="static" style="display: none;" aria-hidden="true">
  515. <input type="hidden" value="123">
  516. <div class="modal-dialog" role="document">
  517. <div class="modal-content">
  518. <div class="modal-header">
  519. <h5 class="modal-title">警告</h5>
  520. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  521. <span aria-hidden="true">×</span>
  522. </button>
  523. </div>
  524. <div class="modal-body">
  525. <h5 class="text-danger">是否删除当前节点及其子项?</h5>
  526. </div>
  527. <div class="modal-footer">
  528. <button type="button" class="btn btn-danger" id="delRationConfirm">确认</button>
  529. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  530. </div>
  531. </div>
  532. </div>
  533. </div>
  534. <!-- JS. -->
  535. <script src = "/lib/spreadjs/sheets/gc.spread.sheets.all.11.1.2.min.js"></script>
  536. <script>GC.Spread.Sheets.LicenseKey = '<%- LicenseKey %>';</script>
  537. <script src="/lib/jquery/jquery.min.js"></script>
  538. <script src="/lib/jquery-contextmenu/jquery.contextMenu.min.js"></script>
  539. <script src="/lib/jquery-contextmenu/jquery.ui.position.js"></script>
  540. <script src="/lib/tether/tether.min.js"></script>
  541. <script src="/lib/bootstrap/bootstrap.min.js"></script>
  542. <script src="/lib/lodash/lodash.js"></script>
  543. <script type="text/javascript" src="/web/maintain/ration_repository/js/global.js"></script>
  544. <!-- zTree -->
  545. <script type="text/javascript" src="/lib/ztree/jquery.ztree.core.js"></script>
  546. <script type="text/javascript" src="/lib/ztree/jquery.ztree.excheck.js"></script>
  547. <script type="text/javascript" src="/lib/ztree/jquery.ztree.exedit.js"></script>
  548. <script type="text/javascript" src="/web/maintain/ration_repository/js/section_tree.js"></script>
  549. <script type="text/javascript" src="/web/maintain/ration_repository/js/explanatory.js"></script>
  550. <script type="text/javascript" src="/web/maintain/ration_repository/js/jobContent.js"></script>
  551. <script type="text/javascript" src="/web/maintain/ration_repository/js/annotation.js"></script>
  552. <script type="text/javascript" src="/public/web/scMathUtil.js"></script>
  553. <script type="text/javascript" src="/public/web/common_ajax.js"></script>
  554. <script type="text/javascript" src="/public/web/id_tree.js"></script>
  555. <script type="text/javascript" src="/public/web/tree_sheet/tree_sheet_controller.js"></script>
  556. <script src="/public/web/tree_sheet/tree_sheet_helper.js"></script>
  557. <script type="text/javascript" src="/public/web/ztree_common.js"></script>
  558. <script type="text/javascript" src="/public/web/sheet/sheet_common.js"></script>
  559. <script type="text/javascript" src="/public/web/sheet/sheet_data_helper.js"></script>
  560. <script type="text/javascript" src="/web/maintain/ration_repository/js/sheetsOpr.js"></script>
  561. <script type="text/javascript" src="/public/web/ration_glj_units.js"></script>
  562. <script type="text/javascript" src="/web/maintain/ration_repository/js/ration.js"></script>
  563. <script type="text/javascript" src="/web/maintain/ration_repository/js/gljSelect.js"></script>
  564. <script type="text/javascript" src="/web/maintain/ration_repository/js/ration_glj.js"></script>
  565. <script type="text/javascript" src="/web/maintain/ration_repository/js/ration_installation.js"></script>
  566. <script type="text/javascript" src="/public/web/sheet/sheet_creater.js"></script>
  567. <script type="text/javascript" src="/web/maintain/ration_repository/js/ration_coe.js"></script>
  568. <script type="text/javascript" src="/web/maintain/ration_repository/js/ration_assist.js"></script>
  569. <script type="text/javascript" src="/public/web/treeDataHelper.js"></script>
  570. <script type="text/javascript" src="/public/web/QueryParam.js"></script>
  571. <script type="text/javascript" src="/public/web/storageUtil.js"></script>
  572. <script type="text/javascript" src="/web/maintain/ration_repository/js/coe.js"></script>
  573. <script type="text/javascript">
  574. let userAccount = '<%=userAccount %>';
  575. $(document).ready(function(){
  576. rationOprObj.buildSheet($("#rationItemsSheet")[0]);
  577. // tabPanel 下有多个Spread时,相互之间不能正确显示。改成一个Spread下多个Sheet。
  578. var rdSpread = sheetCommonObj.createSpread($("#rdSpread")[0], 4);
  579. rationGLJOprObj.buildSheet(rdSpread.getSheet(0));
  580. rationAssistOprObj.buildSheet(rdSpread.getSheet(1));
  581. rationCoeOprObj.buildSheet(rdSpread.getSheet(2));
  582. rationInstObj.buildSheet(rdSpread.getSheet(3));
  583. rationInstObj.getInstallation(parseInt(getQueryString("repository")));
  584. pageOprObj.initPage();
  585. let rdSpreadEscSheets = [];
  586. rdSpreadEscSheets.push({sheet: rdSpread.getSheet(0), editStarting: rationGLJOprObj.onEditStarting, editEnded: rationGLJOprObj.onCellEditEnd});
  587. rdSpreadEscSheets.push({sheet: rdSpread.getSheet(1), editStarting: rationAssistOprObj.onEditStarting, editEnded: rationAssistOprObj.onEditEnded});
  588. rdSpreadEscSheets.push({sheet: rdSpread.getSheet(2), editStarting: rationCoeOprObj.onEditStarting, editEnded: rationCoeOprObj.onEditEnded});
  589. rdSpreadEscSheets.push({sheet: rdSpread.getSheet(3), editStarting: rationInstObj.onEditStarting, editEnded: rationInstObj.onEditEnded});
  590. sheetCommonObj.bindEscKey(rdSpread, rdSpreadEscSheets);
  591. $("#linkGLJ").click(function(){
  592. rationGLJOprObj.bindRationGljDelOpr();
  593. rdSpread.setActiveSheetIndex(0);
  594. });
  595. $("#linkFZDE").click(function(){
  596. rationAssistOprObj.bindRationAssDel();
  597. rdSpread.setActiveSheetIndex(1);
  598. });
  599. $("#linkFZTJ").click(function(){
  600. rationCoeOprObj.bindRationCoeDel();
  601. rdSpread.setActiveSheetIndex(2);
  602. });
  603. $("#linkAZZJ").click(function(){
  604. rationInstObj.bindRationInstDel();
  605. rdSpread.setActiveSheetIndex(3);
  606. });
  607. //解决spreadjs sheet初始化没高度宽度
  608. $('#modalCon').width($(window).width()*0.5);
  609. $('#gljSelTreeDiv').height($(window).height() - 300);
  610. $("#gljSelSheet").height($("#gljSelTreeDiv").height()-21.6);
  611. $("#gljSelSheet").width($('#modalCon').width() * 0.63);
  612. $(window).resize(function () {
  613. $('#modalCon').width($(window).width()*0.5);
  614. $('#gljSelTreeDiv').height($(window).height() - 300);
  615. $("#gljSelSheet").height($("#gljSelTreeDiv").height()-21.6);
  616. $("#gljSelSheet").width($('#modalCon').width()* 0.63);
  617. });
  618. });
  619. </script>
  620. </div>
  621. </body>
  622. <script type="text/javascript">
  623. autoFlashHeight();
  624. </script>
  625. </html>