route.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. import Layout from '@/layout/index';
  2. const contractManagementRouter = {
  3. path: '/contractManagement',
  4. component: Layout,
  5. redirect: '/contractManagement',
  6. name: 'contractManagement',
  7. alwaysShow: true, // will always show the root menu
  8. meta: {
  9. title: 'contractManagement',
  10. module: 'contractManagement',
  11. icon: '-hetongguanli'
  12. },
  13. children: [
  14. // 现货采购合同
  15. {
  16. path: 'buyContract',
  17. component: () =>
  18. import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/purchaseContract'),
  19. name: 'buyContract',
  20. meta: {
  21. title: 'purchaseContract',
  22. shortcutEntrance: 'contractManagement',
  23. module: 'contractManagement.buyContract',
  24. permissicon: [],
  25. keepAlive: true,
  26. _title:'采购合同'
  27. }
  28. },
  29. // 现货采购合同费用
  30. {
  31. path: 'buyContractcost',
  32. component: () =>
  33. import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/purchaseContractCost'),
  34. name: 'buyContractcost',
  35. meta: {
  36. title: 'purchaseContractcost',
  37. shortcutEntrance: 'contractManagement',
  38. module: 'contractManagement.buyContract',
  39. permissicon: [],
  40. keepAlive: true,
  41. _title:'采购合同费用'
  42. },
  43. hidden: true
  44. },
  45. //现货采购合同查看
  46. {
  47. path: 'purchaseContractExamine',
  48. component: () =>
  49. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/purchaseContractExamine'),
  50. name: 'purchaseContractExamine',
  51. meta: {
  52. title: 'purchaseContractExamine',
  53. shortcutEntrance: 'contractManagement',
  54. module: 'contractManagement.buyContract.buyContractInfo.view',
  55. permissicon: [],
  56. keepAlive: true,
  57. _title:'采购合同查看'
  58. // module: 'procurement.sparepart.applDetail'
  59. },
  60. hidden: true
  61. },
  62. //现货采购合同编辑
  63. {
  64. path: 'purchaseContractEdit',
  65. component: () =>
  66. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/purchaseContractEdit'),
  67. name: 'purchaseContractEdit',
  68. meta: {
  69. title: 'purchaseContractEdit',
  70. shortcutEntrance: 'contractManagement',
  71. module: 'contractManagement.buyContract.buyContractInfo.edit',
  72. permissicon: [],
  73. keepAlive: true,
  74. _title:'采购合同编辑'
  75. // module: 'procurement.sparepart.applDetail'
  76. },
  77. hidden: true
  78. },
  79. //现货采购合同添加
  80. {
  81. path: 'purchaseContractAdd',
  82. component: () =>
  83. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/purchaseContractAdd'),
  84. name: 'purchaseContractAdd',
  85. meta: {
  86. title: 'purchaseContractAdd',
  87. shortcutEntrance: 'contractManagement',
  88. module: 'contractManagement.buyContract.buyContractInfo.add',
  89. permissicon: [],
  90. keepAlive: true,
  91. _title:'采购合同添加'
  92. // module: 'procurement.sparepart.applDetail'
  93. },
  94. hidden: true
  95. },
  96. // 期货采购合同
  97. // {
  98. // path: 'futuresPurchaseContract',
  99. // component: () =>
  100. // import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/futuresPurchaseContract'),
  101. // name: 'futuresPurchaseContract',
  102. // meta: {
  103. // title: 'futuresPurchaseContract',
  104. // shortcutEntrance: 'contractManagement',
  105. // module: 'contractManagement.buyContract',
  106. // permissicon: [],
  107. // keepAlive: true,
  108. // _title:'期货采购合同'
  109. // }
  110. // },
  111. //期货采购合同查看
  112. // {
  113. // path: 'futuresPurchaseContractExamine',
  114. // component: () =>
  115. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresPurchaseContractExamine'),
  116. // name: 'futuresPurchaseContractExamine',
  117. // meta: {
  118. // title: 'futuresPurchaseContractExamine',
  119. // shortcutEntrance: 'contractManagement',
  120. // module: 'contractManagement.buyContract.buyContractInfo.view',
  121. // permissicon: [],
  122. // keepAlive: true,
  123. // _title:'期货采购合同查看'
  124. // // module: 'procurement.sparepart.applDetail'
  125. // },
  126. // hidden: true
  127. // },
  128. //期货采购合同编辑
  129. // {
  130. // path: 'futuresPurchaseContractEdit',
  131. // component: () =>
  132. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresPurchaseContractEdit'),
  133. // name: 'futuresPurchaseContractEdit',
  134. // meta: {
  135. // title: 'futuresPurchaseContractEdit',
  136. // shortcutEntrance: 'contractManagement',
  137. // module: 'contractManagement.buyContract.buyContractInfo.edit',
  138. // permissicon: [],
  139. // keepAlive: true,
  140. // _title:'期货采购合同编辑'
  141. // // module: 'procurement.sparepart.applDetail'
  142. // },
  143. // hidden: true
  144. // },
  145. // //期货采购合同添加
  146. // {
  147. // path: 'futuresPurchaseContractAdd',
  148. // component: () =>
  149. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresPurchaseContractAdd'),
  150. // name: 'futuresPurchaseContractAdd',
  151. // meta: {
  152. // title: 'futuresPurchaseContractAdd',
  153. // shortcutEntrance: 'contractManagement',
  154. // module: 'contractManagement.buyContract.buyContractInfo.add',
  155. // permissicon: [],
  156. // keepAlive: true,
  157. // _title:'期货采购合同添加'
  158. // // module: 'procurement.sparepart.applDetail'
  159. // },
  160. // hidden: true
  161. // },
  162. //现货销售合同费用
  163. {
  164. path: 'salesContractcost',
  165. component: () =>
  166. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractCost'),
  167. name: 'salesContractcost',
  168. meta: {
  169. title: 'salesContractcost',
  170. shortcutEntrance: 'contractManagement',
  171. module: 'contractManagement.salesContract',
  172. permissicon: [],
  173. keepAlive: true,
  174. _title:'销售合同费用'
  175. // module: 'procurement.sparepart.applDetail'
  176. },
  177. hidden: true
  178. },
  179. //现货销售合同
  180. {
  181. path: 'salesContract',
  182. component: () =>
  183. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContract'),
  184. name: 'salesContract',
  185. meta: {
  186. title: 'salesContract',
  187. shortcutEntrance: 'contractManagement',
  188. module: 'contractManagement.salesContract',
  189. permissicon: [],
  190. keepAlive: true,
  191. _title:'销售合同'
  192. // module: 'procurement.sparepart.applDetail'
  193. }
  194. },
  195. //现货销售合同查看
  196. {
  197. path: 'salesContractExamine',
  198. component: () =>
  199. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractExamine'),
  200. name: 'salesContractExamine',
  201. meta: {
  202. title: 'salesContractExamine',
  203. shortcutEntrance: 'contractManagement',
  204. module: 'contractManagement.salesContract.salesContractInfo.view',
  205. permissicon: [],
  206. keepAlive: true,
  207. _title:'销售合同查看'
  208. // module: 'procurement.sparepart.applDetail'
  209. },
  210. hidden: true
  211. },
  212. //现货销售合同编辑
  213. {
  214. path: 'salesContractEdit',
  215. component: () =>
  216. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractEdit'),
  217. name: 'salesContractEdit',
  218. meta: {
  219. title: 'salesContractEdit',
  220. shortcutEntrance: 'contractManagement',
  221. module: 'contractManagement.salesContract.salesContractInfo.edit',
  222. permissicon: [],
  223. keepAlive: true,
  224. _title:'销售合同编辑'
  225. // module: 'procurement.sparepart.applDetail'
  226. },
  227. hidden: true
  228. },
  229. //现货销售合同添加
  230. {
  231. path: 'salesContractAdd',
  232. component: () =>
  233. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractAdd'),
  234. name: 'salesContractAdd',
  235. meta: {
  236. title: 'salesContractAdd',
  237. shortcutEntrance: 'contractManagement',
  238. module: 'contractManagement.salesContract.salesContractInfo.add',
  239. permissicon: [],
  240. keepAlive: true,
  241. _title:'销售合同添加'
  242. // module: 'procurement.sparepart.applDetail'
  243. },
  244. hidden: true
  245. },
  246. // 收购合同
  247. {
  248. path: 'acquisitionContract',
  249. component: () =>
  250. import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/acquisitionContract'),
  251. name: 'acquisitionContract',
  252. meta: {
  253. title: 'acquisitionContract',
  254. shortcutEntrance: 'contractManagement',
  255. module: 'contractManagement.buyContract',
  256. permissicon: [],
  257. keepAlive: true,
  258. _title:'收购合同'
  259. }
  260. },
  261. //收购合同查看
  262. {
  263. path: 'acquisitionContractExamine',
  264. component: () =>
  265. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/acquisitionContractExamine'),
  266. name: 'acquisitionContractExamine',
  267. meta: {
  268. title: 'acquisitionContractExamine',
  269. shortcutEntrance: 'contractManagement',
  270. module: 'contractManagement.buyContract.buyContractInfo.view',
  271. permissicon: [],
  272. keepAlive: true,
  273. _title:'收购合同查看'
  274. // module: 'procurement.sparepart.applDetail'
  275. },
  276. hidden: true
  277. },
  278. //收购合同编辑
  279. {
  280. path: 'acquisitionContractEdit',
  281. component: () =>
  282. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/acquisitionContractEdit'),
  283. name: 'acquisitionContractEdit',
  284. meta: {
  285. title: 'acquisitionContractEdit',
  286. shortcutEntrance: 'contractManagement',
  287. module: 'contractManagement.buyContract.buyContractInfo.edit',
  288. permissicon: [],
  289. keepAlive: true,
  290. _title:'收购合同编辑'
  291. // module: 'procurement.sparepart.applDetail'
  292. },
  293. hidden: true
  294. },
  295. //收购合同添加
  296. {
  297. path: 'acquisitionContractAdd',
  298. component: () =>
  299. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/acquisitionContractAdd'),
  300. name: 'acquisitionContractAdd',
  301. meta: {
  302. title: 'acquisitionContractAdd',
  303. shortcutEntrance: 'contractManagement',
  304. module: 'contractManagement.buyContract.buyContractInfo.add',
  305. permissicon: [],
  306. keepAlive: true,
  307. _title:'收购合同添加'
  308. // module: 'procurement.sparepart.applDetail'
  309. },
  310. hidden: true
  311. },
  312. //期货销售合同
  313. // {
  314. // path: 'futuresSalesContract',
  315. // component: () =>
  316. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresSalesContract'),
  317. // name: 'futuresSalesContract',
  318. // meta: {
  319. // title: 'futuresSalesContract',
  320. // shortcutEntrance: 'contractManagement',
  321. // module: 'contractManagement.salesContract',
  322. // permissicon: [],
  323. // keepAlive: true,
  324. // _title:'期货销售合同'
  325. // // module: 'procurement.sparepart.applDetail'
  326. // }
  327. // },
  328. //期货销售合同查看
  329. // {
  330. // path: 'futuresSalesContractExamine',
  331. // component: () =>
  332. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresSalesContractExamine'),
  333. // name: 'futuresSalesContractExamine',
  334. // meta: {
  335. // title: 'futuresSalesContractExamine',
  336. // shortcutEntrance: 'contractManagement',
  337. // module: 'contractManagement.salesContract.salesContractInfo.view',
  338. // permissicon: [],
  339. // keepAlive: true,
  340. // _title:'期货销售合同查看'
  341. // // module: 'procurement.sparepart.applDetail'
  342. // },
  343. // hidden: true
  344. // },
  345. // //期货销售合同编辑
  346. // {
  347. // path: 'futuresSalesContractEdit',
  348. // component: () =>
  349. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresSalesContractEdit'),
  350. // name: 'futuresSalesContractEdit',
  351. // meta: {
  352. // title: 'futuresSalesContractEdit',
  353. // shortcutEntrance: 'contractManagement',
  354. // module: 'contractManagement.salesContract.salesContractInfo.edit',
  355. // permissicon: [],
  356. // keepAlive: true,
  357. // _title:'期货销售合同编辑'
  358. // // module: 'procurement.sparepart.applDetail'
  359. // },
  360. // hidden: true
  361. // },
  362. // //期货销售合同添加
  363. // {
  364. // path: 'futuresSalesContractAdd',
  365. // component: () =>
  366. // import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/futuresSalesContractAdd'),
  367. // name: 'futuresSalesContractAdd',
  368. // meta: {
  369. // title: 'futuresSalesContractAdd',
  370. // shortcutEntrance: 'contractManagement',
  371. // module: 'contractManagement.salesContract.salesContractInfo.add',
  372. // permissicon: [],
  373. // keepAlive: true,
  374. // _title:'期货销售合同添加'
  375. // // module: 'procurement.sparepart.applDetail'
  376. // },
  377. // hidden: true
  378. // },
  379. //点价确认单
  380. {
  381. path: 'priceConfirmationSheet',
  382. component: () =>
  383. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/priceConfirmationSheet'),
  384. name: 'priceConfirmationSheet',
  385. meta: {
  386. title: 'priceConfirmationSheet',
  387. shortcutEntrance: 'contractManagement',
  388. module: 'contractManagement.salesContract',
  389. permissicon: [],
  390. keepAlive: true,
  391. _title:'点价确认单'
  392. // module: 'procurement.sparepart.applDetail'
  393. },
  394. hidden: true
  395. },
  396. //创建点价确认单
  397. {
  398. path: 'priceConfirmationSheetAdd',
  399. component: () =>
  400. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/priceConfirmationSheetAdd'),
  401. name: 'priceConfirmationSheetAdd',
  402. meta: {
  403. title: 'priceConfirmationSheetAdd',
  404. shortcutEntrance: 'contractManagement',
  405. module: 'contractManagement.salesContract',
  406. permissicon: [],
  407. keepAlive: true,
  408. _title:'创建点价确认单'
  409. // module: 'procurement.sparepart.applDetail'
  410. },
  411. hidden: true
  412. },
  413. //编辑点价确认单
  414. {
  415. path: 'priceConfirmationSheetEdit',
  416. component: () =>
  417. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/priceConfirmationSheetEdit'),
  418. name: 'priceConfirmationSheetEdit',
  419. meta: {
  420. title: 'priceConfirmationSheetEdit',
  421. shortcutEntrance: 'contractManagement',
  422. module: 'contractManagement.salesContract',
  423. permissicon: [],
  424. keepAlive: true,
  425. _title:'编辑点价确认单'
  426. // module: 'procurement.sparepart.applDetail'
  427. },
  428. hidden: true
  429. },
  430. // 代收合同
  431. {
  432. path: 'collectionContract',
  433. component: () =>
  434. import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/collectionContract'),
  435. name: 'collectionContract',
  436. meta: {
  437. title: 'collectionContract',
  438. shortcutEntrance: 'contractManagement',
  439. module: 'contractManagement.dsContract',
  440. permissicon: [],
  441. keepAlive: true,
  442. _title:'代收合同'
  443. }
  444. },
  445. //代收合同添加
  446. {
  447. path: 'collectionContractAdd',
  448. component: () =>
  449. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/collectionContractAdd'),
  450. name: 'collectionContractAdd',
  451. meta: {
  452. title: 'collectionContractAdd',
  453. shortcutEntrance: 'contractManagement',
  454. module: 'contractManagement.dsContract.dsContractInfo.add',
  455. permissicon: [],
  456. keepAlive: true,
  457. _title:'代收合同添加'
  458. // module: 'procurement.sparepart.applDetail'
  459. },
  460. hidden: true
  461. },
  462. //代收合同编辑
  463. {
  464. path: 'collectionContractEdit',
  465. component: () =>
  466. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/collectionContractEdit'),
  467. name: 'collectionContractEdit',
  468. meta: {
  469. title: 'collectionContractEdit',
  470. shortcutEntrance: 'contractManagement',
  471. module: 'contractManagement.dsContract.dsContractInfo.edit',
  472. permissicon: [],
  473. keepAlive: true,
  474. _title:'代收合同编辑'
  475. // module: 'procurement.sparepart.applDetail'
  476. },
  477. hidden: true
  478. },
  479. //代收合同查看
  480. {
  481. path: 'collectionContractExamine',
  482. component: () =>
  483. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/collectionContractExamine'),
  484. name: 'collectionContractExamine',
  485. meta: {
  486. title: 'collectionContractExamine',
  487. shortcutEntrance: 'contractManagement',
  488. module: 'contractManagement.dsContract.dsContractInfo.view',
  489. permissicon: [],
  490. keepAlive: true,
  491. _title:'代收合同查看'
  492. // module: 'procurement.sparepart.applDetail'
  493. },
  494. hidden: true
  495. },
  496. //代收合同记录
  497. {
  498. path: 'collectionContractRecord',
  499. component: () =>
  500. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/collectionContractRecord'),
  501. name: 'collectionContractRecord',
  502. meta: {
  503. title: 'collectionContractRecord',
  504. shortcutEntrance: 'contractManagement',
  505. module: 'contractManagement.dsContract.dsContractInfo.list',
  506. permissicon: [],
  507. keepAlive: true,
  508. _title:'代收合同记录'
  509. // module: 'procurement.sparepart.applDetail'
  510. },
  511. hidden: true
  512. },// 代储合同
  513. {
  514. path: 'storageContract',
  515. component: () =>
  516. import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/storageContract'),
  517. name: 'storageContract',
  518. meta: {
  519. title: 'storageContract',
  520. shortcutEntrance: 'contractManagement',
  521. module: 'contractManagement.dcContract',
  522. permissicon: [],
  523. keepAlive: true,
  524. _title:'代储合同'
  525. }
  526. },
  527. //代储合同添加
  528. {
  529. path: 'storageContractAdd',
  530. component: () =>
  531. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/storageContractAdd'),
  532. name: 'storageContractAdd',
  533. meta: {
  534. title: 'storageContractAdd',
  535. shortcutEntrance: 'contractManagement',
  536. module: 'contractManagement.dcContract.dcContractInfo.add',
  537. permissicon: [],
  538. keepAlive: true,
  539. _title:'代储合同添加'
  540. // module: 'procurement.sparepart.applDetail'
  541. },
  542. hidden: true
  543. },
  544. //代储合同编辑
  545. {
  546. path: 'storageContractEdit',
  547. component: () =>
  548. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/storageContractEdit'),
  549. name: 'storageContractEdit',
  550. meta: {
  551. title: 'storageContractEdit',
  552. shortcutEntrance: 'contractManagement',
  553. module: 'contractManagement.dcContract.dcContractInfo.edit',
  554. permissicon: [],
  555. keepAlive: true,
  556. _title:'代储合同编辑'
  557. // module: 'procurement.sparepart.applDetail'
  558. },
  559. hidden: true
  560. },
  561. //代储合同查看
  562. {
  563. path: 'storageContractExamine',
  564. component: () =>
  565. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/storageContractExamine'),
  566. name: 'storageContractExamine',
  567. meta: {
  568. title: 'storageContractExamine',
  569. shortcutEntrance: 'contractManagement',
  570. module: 'contractManagement.dcContract.dcContractInfo.view',
  571. permissicon: [],
  572. keepAlive: true,
  573. _title:'代储合同查看'
  574. // module: 'procurement.sparepart.applDetail'
  575. },
  576. hidden: true
  577. },
  578. //代储合同记录
  579. {
  580. path: 'storageContractRecord',
  581. component: () =>
  582. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/storageContractRecord'),
  583. name: 'storageContractRecord',
  584. meta: {
  585. title: 'storageContractRecord',
  586. shortcutEntrance: 'contractManagement',
  587. module: 'contractManagement.dcContract.dcContractInfo.list',
  588. permissicon: [],
  589. keepAlive: false,
  590. _title:'代储合同记录'
  591. // module: 'procurement.sparepart.applDetail'
  592. },
  593. hidden: true
  594. },
  595. ],
  596. };
  597. export default contractManagementRouter;