web.js 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. 'use strict';
  2. /**
  3. * 前端所需js
  4. *
  5. * {String} webPath: 记录 合并压缩后的 文件存放的路径
  6. * {String[]} commonFiles: 所有页面通用的js包文件
  7. * {Object} controller: 根据controller和action来区分不同的页面数据
  8. * - files: 当前页面所需的js包文件
  9. * - mergeFiles: 当前页面所需 合并压缩的 js文件
  10. * - mergeFile: 合并压缩后 生成的js文件名
  11. *
  12. * 在app中运行合并压缩代码,运行后数据为app.jsFiles,示例(ledger)如下:
  13. * app.jsFiles = {
  14. * common: String[]
  15. * controller1: {
  16. * action1: String[]
  17. * action2: String[]
  18. * }
  19. * }
  20. *
  21. * 在Controller中使用时,需添加到renderData.jsFiles中,并调用Layout方法
  22. * 没有该值时,Layout方法会自动加载app.jsFiles.common
  23. * 有该值时,例如台账审核页面,renderData.jsFiles = app.jsFiles.ledger.audit = ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/web/ledger_audit.min.1.0.0.js']
  24. * 则layout方法会同时加载app.jsFiles.common与renderData.jsFiles
  25. * 加载位置为head
  26. *
  27. * 如果页面无需合并压缩js文件,可以直接添加到JsFiles.controller.controller1.action1.files,也可以直接添加到调用的ejs模板中
  28. *
  29. * @author Mai
  30. * @date 2019/1/10
  31. * @version
  32. */
  33. const JsFiles = {
  34. webPath: '/public/js/web/',
  35. commonFiles: [
  36. '/public/js/jquery/jquery-3.2.1.min.js',
  37. '/public/js/jquery/jquery-ui.js',
  38. '/public/js/jquery/jquery.validate.js',
  39. '/public/js/messages_zh.js',
  40. '/public/js/popper/popper.min.js',
  41. '/public/js/bootstrap/bootstrap.min.js',
  42. '/public/js/vue/vue.min.js',
  43. '/public/js/component/input.js',
  44. '/public/js/cookies.js',
  45. '/public/js/jquery-contextmenu/jquery.ui.position.min.js',
  46. '/public/js/jquery-contextmenu/jquery.contextMenu.min.js',
  47. '/public/js/lodash.js',
  48. '/public/js/lz-string/lz-string.js',
  49. '/public/js/toastr.min.js',
  50. '/public/js/global.js',
  51. ],
  52. controller: {
  53. tender: {
  54. list: {
  55. files: ['/public/js/ztree/jquery.ztree.core.js', '/public/js/ztree/jquery.ztree.exedit.js', '/public/js/decimal.min.js', '/public/js/moment/moment.min.js'],
  56. mergeFiles: [
  57. '/public/js/zh_calc.js',
  58. '/public/js/PinYinOrder.bundle.js',
  59. '/public/js/shares/tender_list_order.js',
  60. '/public/js/tender_showhide.js',
  61. '/public/js/tender_list.js',
  62. ],
  63. mergeFile: 'tender_list',
  64. },
  65. info: {
  66. files: ['/public/js/ztree/jquery.ztree.core.js', '/public/js/ztree/jquery.ztree.exedit.js', '/public/js/decimal.min.js', '/public/js/moment/moment.min.js'],
  67. mergeFiles: [
  68. '/public/js/zh_calc.js',
  69. '/public/js/PinYinOrder.bundle.js',
  70. '/public/js/shares/tender_list_order.js',
  71. '/public/js/tender_showhide.js',
  72. '/public/js/tender_list_info.js',
  73. ],
  74. mergeFile: 'tender_list_info',
  75. },
  76. progress: {
  77. files: ['/public/js/ztree/jquery.ztree.core.js', '/public/js/ztree/jquery.ztree.exedit.js', '/public/js/decimal.min.js', '/public/js/moment/moment.min.js'],
  78. mergeFiles: [
  79. '/public/js/zh_calc.js',
  80. '/public/js/PinYinOrder.bundle.js',
  81. '/public/js/shares/tender_list_order.js',
  82. '/public/js/tender_showhide.js',
  83. '/public/js/tender_list_progress.js',
  84. ],
  85. mergeFile: 'tender_list_progress',
  86. },
  87. manage: {
  88. files: ['/public/js/ztree/jquery.ztree.core.js', '/public/js/ztree/jquery.ztree.exedit.js', '/public/js/moment/moment.min.js', '/public/js/decimal.min.js'],
  89. mergeFiles: [
  90. '/public/js/zh_calc.js',
  91. '/public/js/PinYinOrder.bundle.js',
  92. '/public/js/shares/tender_list_order.js',
  93. '/public/js/tender_showhide.js',
  94. '/public/js/tender_list_manage.js',
  95. ],
  96. mergeFile: 'tender_list_manage',
  97. },
  98. tenderInfo: {
  99. files: ['/public/js/echarts/echarts.min.js', '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  100. mergeFiles: [
  101. '/public/js/spreadjs_rela/spreadjs_zh.js',
  102. '/public/js/zh_calc.js',
  103. '/public/js/tender_showhide.js',
  104. '/public/js/tender_copy_setting.js',
  105. // "/public/js/tender.js",
  106. ],
  107. mergeFile: 'tender',
  108. },
  109. shenpi: {
  110. files: [
  111. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  112. '/public/js/decimal.min.js',
  113. ],
  114. mergeFiles: [
  115. '/public/js/sub_menu.js',
  116. '/public/js/div_resizer.js',
  117. '/public/js/spreadjs_rela/spreadjs_zh.js',
  118. '/public/js/shares/sjs_setting.js',
  119. '/public/js/zh_calc.js',
  120. '/public/js/path_tree.js',
  121. '/public/js/shenpi.js',
  122. '/public/js/tender_showhide.js',
  123. ],
  124. mergeFile: 'tender_shenpi',
  125. },
  126. },
  127. ledger: {
  128. explode: {
  129. files: [
  130. '/public/js/js-xlsx/xlsx.full.min.js',
  131. '/public/js/js-xlsx/xlsx.utils.js',
  132. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  133. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  134. '/public/js/decimal.min.js',
  135. '/public/js/math.min.js',
  136. '/public/js/file-saver/FileSaver.js',
  137. ],
  138. mergeFiles: [
  139. '/public/js/sub_menu.js',
  140. '/public/js/div_resizer.js',
  141. '/public/js/spreadjs_rela/spreadjs_zh.js',
  142. '/public/js/shares/sjs_setting.js',
  143. '/public/js/shares/export_excel.js',
  144. '/public/js/shares/cs_tools.js',
  145. '/public/js/shares/merge_peg.js',
  146. '/public/js/shares/new_tag.js',
  147. '/public/js/zh_calc.js',
  148. '/public/js/path_tree.js',
  149. '/public/js/ledger_tree_col.js',
  150. '/public/js/std_lib.js',
  151. '/public/js/ledger_check.js',
  152. '/public/js/ledger.js',
  153. ],
  154. mergeFile: 'explode',
  155. },
  156. audit: {
  157. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  158. mergeFiles: [
  159. '/public/js/sub_menu.js',
  160. '/public/js/div_resizer.js',
  161. '/public/js/spreadjs_rela/spreadjs_zh.js',
  162. '/public/js/shares/sjs_setting.js',
  163. '/public/js/shares/cs_tools.js',
  164. '/public/js/zh_calc.js',
  165. '/public/js/path_tree.js',
  166. '/public/js/ledger_audit.js',
  167. ],
  168. mergeFile: 'ledger_audit',
  169. },
  170. bwtz: {
  171. files: [
  172. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  173. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  174. '/public/js/decimal.min.js',
  175. '/public/js/file-saver/FileSaver.js',
  176. '/public/js/shares/export_excel.js',
  177. ],
  178. mergeFiles: [
  179. '/public/js/sub_menu.js',
  180. '/public/js/div_resizer.js',
  181. '/public/js/spreadjs_rela/spreadjs_zh.js',
  182. '/public/js/shares/sjs_setting.js',
  183. '/public/js/shares/cs_tools.js',
  184. '/public/js/zh_calc.js',
  185. '/public/js/path_tree.js',
  186. '/public/js/shares/bills_pos_convert.js',
  187. '/public/js/ledger_bwtz.js',
  188. ],
  189. mergeFile: 'ledger_bwtz',
  190. },
  191. gather: {
  192. files: [
  193. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  194. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  195. '/public/js/decimal.min.js',
  196. '/public/js/file-saver/FileSaver.js',
  197. '/public/js/shares/export_excel.js',
  198. ],
  199. mergeFiles: [
  200. '/public/js/sub_menu.js',
  201. '/public/js/div_resizer.js',
  202. '/public/js/spreadjs_rela/spreadjs_zh.js',
  203. '/public/js/shares/sjs_setting.js',
  204. '/public/js/zh_calc.js',
  205. '/public/js/path_tree.js',
  206. '/public/js/gcl_gather.js',
  207. '/public/js/ledger_gather.js',
  208. ],
  209. mergeFile: 'ledger_gather',
  210. },
  211. revise: {
  212. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  213. mergeFiles: [
  214. '/public/js/sub_menu.js',
  215. '/public/js/div_resizer.js',
  216. '/public/js/spreadjs_rela/spreadjs_zh.js',
  217. '/public/js/shares/cs_tools.js',
  218. '/public/js/zh_calc.js',
  219. '/public/js/path_tree.js',
  220. '/public/js/std_lib.js',
  221. '/public/js/revise.js',
  222. ],
  223. mergeFile: 'revise',
  224. },
  225. },
  226. revise: {
  227. info: {
  228. files: [
  229. '/public/js/js-xlsx/xlsx.full.min.js',
  230. '/public/js/js-xlsx/xlsx.utils.js',
  231. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  232. '/public/js/decimal.min.js',
  233. '/public/js/math.min.js',
  234. '/public/js/component/menu.js',
  235. ],
  236. mergeFiles: [
  237. '/public/js/sub_menu.js',
  238. '/public/js/div_resizer.js',
  239. '/public/js/spreadjs_rela/spreadjs_zh.js',
  240. '/public/js/shares/sjs_setting.js',
  241. '/public/js/shares/cs_tools.js',
  242. '/public/js/shares/merge_peg.js',
  243. '/public/js/zh_calc.js',
  244. '/public/js/path_tree.js',
  245. '/public/js/std_lib.js',
  246. '/public/js/ledger_check.js',
  247. '/public/js/revise.js',
  248. ],
  249. mergeFile: 'revise',
  250. },
  251. history: {
  252. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  253. mergeFiles: [
  254. '/public/js/sub_menu.js',
  255. '/public/js/div_resizer.js',
  256. '/public/js/spreadjs_rela/spreadjs_zh.js',
  257. '/public/js/shares/sjs_setting.js',
  258. '/public/js/shares/cs_tools.js',
  259. '/public/js/zh_calc.js',
  260. '/public/js/path_tree.js',
  261. '/public/js/revise_history.js',
  262. ],
  263. mergeFile: 'revise_history',
  264. },
  265. compare: {
  266. files: [
  267. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  268. '/public/js/decimal.min.js',
  269. '/public/js/math.min.js',
  270. '/public/js/component/menu.js',
  271. ],
  272. mergeFiles: [
  273. '/public/js/sub_menu.js',
  274. '/public/js/div_resizer.js',
  275. '/public/js/spreadjs_rela/spreadjs_zh.js',
  276. '/public/js/shares/sjs_setting.js',
  277. '/public/js/shares/cs_tools.js',
  278. '/public/js/zh_calc.js',
  279. '/public/js/path_tree.js',
  280. '/public/js/revise_compare.js',
  281. ],
  282. mergeFile: 'revise_compare',
  283. },
  284. gclCompare: {
  285. files: [
  286. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  287. '/public/js/decimal.min.js',
  288. '/public/js/math.min.js',
  289. '/public/js/component/menu.js',
  290. ],
  291. mergeFiles: [
  292. '/public/js/sub_menu.js',
  293. '/public/js/div_resizer.js',
  294. '/public/js/spreadjs_rela/spreadjs_zh.js',
  295. '/public/js/shares/sjs_setting.js',
  296. '/public/js/zh_calc.js',
  297. '/public/js/path_tree.js',
  298. '/public/js/shares/gcl_gather_compare.js',
  299. '/public/js/revise_gcl_compare.js',
  300. ],
  301. mergeFile: 'revise_gcl_compare',
  302. },
  303. },
  304. stage: {
  305. // 本期计量台账
  306. index: {
  307. files: [
  308. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  309. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  310. '/public/js/decimal.min.js',
  311. '/public/js/math.min.js',
  312. '/public/js/file-saver/FileSaver.js',
  313. ],
  314. mergeFiles: [
  315. '/public/js/sub_menu.js',
  316. '/public/js/div_resizer.js',
  317. '/public/js/msg_box.js',
  318. '/public/js/spreadjs_rela/spreadjs_zh.js',
  319. '/public/js/shares/sjs_setting.js',
  320. '/public/js/shares/export_excel.js',
  321. '/public/js/shares/cs_tools.js',
  322. '/public/js/shares/merge_peg.js',
  323. '/public/js/shares/new_tag.js',
  324. '/public/js/zh_calc.js',
  325. '/public/js/path_tree.js',
  326. '/public/js/stage_im.js',
  327. '/public/js/ledger_check.js',
  328. '/public/js/stage.js',
  329. '/public/js/stage_audit.js',
  330. ],
  331. mergeFile: 'stage',
  332. },
  333. detail: {
  334. files: [
  335. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  336. '/public/js/decimal.min.js',
  337. '/public/js/html2canvas/html2canvas.min.js',
  338. '/public/js/html2canvas/canvas2image.js',
  339. ],
  340. mergeFiles: [
  341. '/public/js/sub_menu.js',
  342. '/public/js/spreadjs_rela/spreadjs_zh.js',
  343. '/public/js/zh_calc.js',
  344. '/public/js/path_tree.js',
  345. '/public/js/shares/cs_tools.js',
  346. '/public/js/stage_im.js',
  347. '/public/js/stage_detail.js',
  348. '/public/js/stage_audit.js',
  349. ],
  350. mergeFile: 'stage_detail',
  351. },
  352. pay: {
  353. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/math.min.js'],
  354. mergeFiles: [
  355. '/public/js/sub_menu.js',
  356. '/public/js/spreadjs_rela/spreadjs_zh.js',
  357. '/public/js/shares/sjs_setting.js',
  358. '/public/js/shares/cs_tools.js',
  359. '/public/js/stage_pay.js',
  360. '/public/js/stage_audit.js',
  361. ],
  362. mergeFile: 'stage_pay',
  363. },
  364. bwtz: {
  365. files: [
  366. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  367. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  368. '/public/js/decimal.min.js',
  369. '/public/js/file-saver/FileSaver.js',
  370. '/public/js/shares/export_excel.js',
  371. ],
  372. mergeFiles: [
  373. '/public/js/sub_menu.js',
  374. '/public/js/div_resizer.js',
  375. '/public/js/spreadjs_rela/spreadjs_zh.js',
  376. '/public/js/shares/sjs_setting.js',
  377. '/public/js/shares/cs_tools.js',
  378. '/public/js/zh_calc.js',
  379. '/public/js/path_tree.js',
  380. '/public/js/shares/bills_pos_convert.js',
  381. '/public/js/stage_bwtz.js',
  382. '/public/js/stage_audit.js',
  383. ],
  384. mergeFile: 'stage_bwtz',
  385. },
  386. change: {
  387. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  388. mergeFiles: [
  389. '/public/js/sub_menu.js',
  390. '/public/js/div_resizer.js',
  391. '/public/js/spreadjs_rela/spreadjs_zh.js',
  392. '/public/js/shares/cs_tools.js',
  393. '/public/js/zh_calc.js',
  394. '/public/js/path_tree.js',
  395. '/public/js/stage_change.js',
  396. '/public/js/stage_audit.js',
  397. ],
  398. mergeFile: 'stage_change',
  399. },
  400. gather: {
  401. files: [
  402. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  403. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  404. '/public/js/decimal.min.js',
  405. '/public/js/file-saver/FileSaver.js',
  406. '/public/js/shares/export_excel.js',
  407. ],
  408. mergeFiles: [
  409. '/public/js/sub_menu.js',
  410. '/public/js/div_resizer.js',
  411. '/public/js/spreadjs_rela/spreadjs_zh.js',
  412. '/public/js/shares/sjs_setting.js',
  413. '/public/js/shares/cs_tools.js',
  414. '/public/js/zh_calc.js',
  415. '/public/js/path_tree.js',
  416. '/public/js/gcl_gather.js',
  417. '/public/js/stage_gather.js',
  418. '/public/js/stage_audit.js',
  419. ],
  420. mergeFile: 'stage_gather',
  421. },
  422. compare: {
  423. files: [
  424. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  425. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  426. '/public/js/decimal.min.js',
  427. '/public/js/file-saver/FileSaver.js',
  428. '/public/js/shares/export_excel.js',
  429. ],
  430. mergeFiles: [
  431. '/public/js/sub_menu.js',
  432. '/public/js/div_resizer.js',
  433. '/public/js/spreadjs_rela/spreadjs_zh.js',
  434. '/public/js/shares/sjs_setting.js',
  435. '/public/js/shares/cs_tools.js',
  436. '/public/js/zh_calc.js',
  437. '/public/js/path_tree.js',
  438. '/public/js/stage_compare.js',
  439. '/public/js/stage_audit.js',
  440. ],
  441. mergeFile: 'stage_compare',
  442. },
  443. manager: {
  444. files: ['/public/js/decimal.min.js'],
  445. mergeFiles: ['/public/js/sub_menu.js', '/public/js/div_resizer.js', '/public/js/shares/cs_tools.js', '/public/js/zh_calc.js', '/public/js/stage_audit.js'],
  446. mergeFile: 'stage_manager',
  447. },
  448. },
  449. stageExtra: {
  450. jgcl: {
  451. files: [
  452. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  453. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  454. '/public/js/decimal.min.js',
  455. '/public/js/file-saver/FileSaver.js',
  456. '/public/js/shares/export_excel.js',
  457. '/public/js/component/menu.js',
  458. ],
  459. mergeFiles: [
  460. '/public/js/sub_menu.js',
  461. '/public/js/spreadjs_rela/spreadjs_zh.js',
  462. '/public/js/shares/sjs_setting.js',
  463. '/public/js/zh_calc.js',
  464. '/public/js/se_jgcl.js',
  465. ],
  466. mergeFile: 'se_jgcl',
  467. },
  468. bonus: {
  469. files: [
  470. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  471. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  472. '/public/js/decimal.min.js',
  473. '/public/js/datepicker/datepicker.min.js',
  474. '/public/js/datepicker/datepicker.zh.js',
  475. '/public/js/file-saver/FileSaver.js',
  476. '/public/js/shares/export_excel.js',
  477. '/public/js/component/menu.js',
  478. ],
  479. mergeFiles: [
  480. '/public/js/sub_menu.js',
  481. '/public/js/spreadjs_rela/spreadjs_zh.js',
  482. '/public/js/shares/sjs_setting.js',
  483. '/public/js/zh_calc.js',
  484. '/public/js/se_bonus.js',
  485. ],
  486. mergeFile: 'se_bonus',
  487. },
  488. other: {
  489. files: [
  490. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  491. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  492. '/public/js/decimal.min.js',
  493. '/public/js/datepicker/datepicker.min.js',
  494. '/public/js/datepicker/datepicker.zh.js',
  495. '/public/js/file-saver/FileSaver.js',
  496. '/public/js/shares/export_excel.js',
  497. '/public/js/component/menu.js',
  498. ],
  499. mergeFiles: [
  500. '/public/js/sub_menu.js',
  501. '/public/js/div_resizer.js',
  502. '/public/js/spreadjs_rela/spreadjs_zh.js',
  503. '/public/js/shares/sjs_setting.js',
  504. '/public/js/zh_calc.js',
  505. '/public/js/path_tree.js',
  506. '/public/js/se_other.js',
  507. ],
  508. mergeFile: 'se_other',
  509. },
  510. },
  511. measure: {
  512. compare: {
  513. files: [
  514. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  515. '/public/js/spreadjs/sheets/v11/interop/gc.spread.excelio.11.2.2.min.js',
  516. '/public/js/decimal.min.js',
  517. '/public/js/file-saver/FileSaver.js',
  518. '/public/js/shares/export_excel.js',
  519. ],
  520. mergeFiles: [
  521. '/public/js/sub_menu.js',
  522. '/public/js/div_resizer.js',
  523. '/public/js/spreadjs_rela/spreadjs_zh.js',
  524. '/public/js/shares/sjs_setting.js',
  525. '/public/js/zh_calc.js',
  526. '/public/js/path_tree.js',
  527. '/public/js/measure_compare.js',
  528. ],
  529. mergeFile: 'measure_compare',
  530. },
  531. },
  532. material: {
  533. info: {
  534. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js', '/public/js/toastr.min.js'],
  535. mergeFiles: [
  536. '/public/js/sub_menu.js',
  537. '/public/js/div_resizer.js',
  538. '/public/js/spreadjs_rela/spreadjs_zh.js',
  539. '/public/js/zh_calc.js',
  540. '/public/js/path_tree.js',
  541. '/public/js/material.js',
  542. '/public/js/shares/cs_tools.js',
  543. '/public/js/material_audit.js',
  544. '/public/js/datepicker/datepicker.min.js',
  545. '/public/js/datepicker/datepicker.zh.js',
  546. ],
  547. mergeFile: 'material',
  548. },
  549. exponent: {
  550. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js', '/public/js/toastr.min.js'],
  551. mergeFiles: [
  552. '/public/js/sub_menu.js',
  553. '/public/js/div_resizer.js',
  554. '/public/js/spreadjs_rela/spreadjs_zh.js',
  555. '/public/js/zh_calc.js',
  556. '/public/js/path_tree.js',
  557. '/public/js/material_exponent.js',
  558. '/public/js/shares/cs_tools.js',
  559. '/public/js/material_audit.js',
  560. '/public/js/datepicker/datepicker.min.js',
  561. '/public/js/datepicker/datepicker.zh.js',
  562. ],
  563. mergeFile: 'material_exponent',
  564. },
  565. list: {
  566. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js', '/public/js/toastr.min.js'],
  567. mergeFiles: [
  568. '/public/js/sub_menu.js',
  569. '/public/js/div_resizer.js',
  570. '/public/js/spreadjs_rela/spreadjs_zh.js',
  571. '/public/js/zh_calc.js',
  572. '/public/js/path_tree.js',
  573. '/public/js/gcl_gather.js',
  574. '/public/js/material_list.js',
  575. '/public/js/material_audit.js',
  576. ],
  577. mergeFile: 'material_list',
  578. },
  579. file: {
  580. files: ['/public/js/toastr.min.js'],
  581. mergeFiles: ['/public/js/sub_menu.js', '/public/js/material_file.js', '/public/js/material_audit.js'],
  582. mergeFile: 'material_file',
  583. },
  584. },
  585. compare: {
  586. tz: {
  587. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  588. mergeFiles: [
  589. '/public/js/sub_menu.js',
  590. '/public/js/div_resizer.js',
  591. '/public/js/spreadjs_rela/spreadjs_zh.js',
  592. '/public/js/shares/sjs_setting.js',
  593. '/public/js/zh_calc.js',
  594. '/public/js/path_tree.js',
  595. '/public/js/compare_tz.js',
  596. ],
  597. mergeFile: 'compare_tz',
  598. },
  599. stage: {
  600. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  601. mergeFiles: [
  602. '/public/js/sub_menu.js',
  603. '/public/js/div_resizer.js',
  604. '/public/js/spreadjs_rela/spreadjs_zh.js',
  605. '/public/js/shares/sjs_setting.js',
  606. '/public/js/zh_calc.js',
  607. '/public/js/path_tree.js',
  608. '/public/js/compare_stage.js',
  609. ],
  610. mergeFile: 'compare_stage',
  611. },
  612. },
  613. gather: {
  614. tz: {
  615. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  616. mergeFiles: [
  617. '/public/js/sub_menu.js',
  618. '/public/js/div_resizer.js',
  619. '/public/js/spreadjs_rela/spreadjs_zh.js',
  620. '/public/js/shares/sjs_setting.js',
  621. '/public/js/zh_calc.js',
  622. '/public/js/path_tree.js',
  623. '/public/js/gather_tz.js',
  624. ],
  625. mergeFile: 'gather_tz',
  626. },
  627. stage: {
  628. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  629. mergeFiles: [
  630. '/public/js/sub_menu.js',
  631. '/public/js/div_resizer.js',
  632. '/public/js/spreadjs_rela/spreadjs_zh.js',
  633. '/public/js/shares/sjs_setting.js',
  634. '/public/js/zh_calc.js',
  635. '/public/js/path_tree.js',
  636. '/public/js/gather_stage.js',
  637. ],
  638. mergeFile: 'gather_stage',
  639. },
  640. },
  641. tools: {
  642. checkTz: {
  643. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js'],
  644. mergeFiles: [
  645. '/public/js/sub_menu.js',
  646. '/public/js/div_resizer.js',
  647. '/public/js/spreadjs_rela/spreadjs_zh.js',
  648. '/public/js/shares/sjs_setting.js',
  649. '/public/js/zh_calc.js',
  650. '/public/js/path_tree.js',
  651. '/public/js/spss_check_tz.js',
  652. ],
  653. mergeFile: 'spss_check_tz',
  654. },
  655. },
  656. report: {
  657. main: {
  658. files: ['/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js', '/public/js/decimal.min.js', '/public/js/moment/moment.min.js'],
  659. mergeFiles: [
  660. '/public/js/zh_calc.js',
  661. '/public/js/path_tree.js',
  662. '/public/js/spreadjs_rela/spreadjs_zh.js',
  663. '/public/js/shares/tenders2tree.js',
  664. '/public/report/js/rpt_custom.js',
  665. '/public/js/stage_audit.js',
  666. ],
  667. mergeFile: 'report_main',
  668. },
  669. },
  670. advance: {
  671. main: {
  672. files: ['/public/js/decimal.min.js'],
  673. mergeFiles: ['/public/js/zh_calc.js', '/public/js/advance.js'],
  674. mergeFile: 'advance',
  675. },
  676. info: {
  677. files: ['/public/js/decimal.min.js'],
  678. mergeFiles: ['/public/js/zh_calc.js', '/public/js/advance_audit.js'],
  679. mergeFile: 'advance_audit',
  680. },
  681. },
  682. schedule: {
  683. ledger: {
  684. files: [
  685. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  686. '/public/js/decimal.min.js',
  687. ],
  688. mergeFiles: [
  689. '/public/js/sub_menu.js',
  690. '/public/js/div_resizer.js',
  691. '/public/js/spreadjs_rela/spreadjs_zh.js',
  692. '/public/js/shares/sjs_setting.js',
  693. '/public/js/zh_calc.js',
  694. '/public/js/path_tree.js',
  695. '/public/js/schedule_ledger.js',
  696. ],
  697. mergeFile: 'schedule_ledger',
  698. },
  699. plan: {
  700. files: [
  701. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  702. '/public/js/decimal.min.js',
  703. ],
  704. mergeFiles: [
  705. '/public/js/sub_menu.js',
  706. '/public/js/div_resizer.js',
  707. '/public/js/spreadjs_rela/spreadjs_zh.js',
  708. '/public/js/shares/sjs_setting.js',
  709. '/public/js/zh_calc.js',
  710. '/public/js/path_tree.js',
  711. '/public/js/schedule_plan.js',
  712. '/public/js/datepicker/datepicker.min.js',
  713. '/public/js/datepicker/datepicker.zh.js',
  714. ],
  715. mergeFile: 'schedule_plan',
  716. },
  717. stageTp: {
  718. files: [
  719. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  720. '/public/js/decimal.min.js',
  721. ],
  722. mergeFiles: [
  723. '/public/js/sub_menu.js',
  724. '/public/js/div_resizer.js',
  725. '/public/js/spreadjs_rela/spreadjs_zh.js',
  726. '/public/js/shares/sjs_setting.js',
  727. '/public/js/zh_calc.js',
  728. '/public/js/path_tree.js',
  729. '/public/js/schedule_stage_tp.js',
  730. ],
  731. mergeFile: 'schedule_stage_tp',
  732. },
  733. stageGcl: {
  734. files: [
  735. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  736. '/public/js/decimal.min.js',
  737. ],
  738. mergeFiles: [
  739. '/public/js/sub_menu.js',
  740. '/public/js/div_resizer.js',
  741. '/public/js/spreadjs_rela/spreadjs_zh.js',
  742. '/public/js/shares/sjs_setting.js',
  743. '/public/js/zh_calc.js',
  744. '/public/js/path_tree.js',
  745. '/public/js/schedule_stage_gcl.js',
  746. ],
  747. mergeFile: 'schedule_stage_gcl',
  748. },
  749. },
  750. change: {
  751. information: {
  752. files: [
  753. '/public/js/spreadjs/sheets/v11/gc.spread.sheets.all.11.2.2.min.js',
  754. '/public/js/decimal.min.js',
  755. ],
  756. mergeFiles: [
  757. '/public/js/sub_menu.js',
  758. '/public/js/div_resizer.js',
  759. '/public/js/spreadjs_rela/spreadjs_zh.js',
  760. '/public/js/zh_calc.js',
  761. '/public/js/path_tree.js',
  762. '/public/js/gcl_gather.js',
  763. '/public/js/jquery/jquery.form.min.js',
  764. '/public/js/moment/moment.min.js',
  765. // '/public/js/change_calculation.js',
  766. '/public/js/change_information.js',
  767. ],
  768. mergeFile: 'information',
  769. },
  770. },
  771. },
  772. };
  773. module.exports = JsFiles;