salix/modules/entry/front/routes.json

122 lines
3.6 KiB
JSON
Raw Normal View History

2020-01-10 10:52:35 +00:00
{
"module": "entry",
"name": "Entries",
"icon": "icon-entry",
2020-08-26 14:33:47 +00:00
"dependencies": ["travel", "item"],
2020-01-10 10:52:35 +00:00
"validations": true,
"menus": {
"main": [
2020-07-20 09:31:47 +00:00
{"state": "entry.index", "icon": "icon-entry"},
2021-05-12 10:11:27 +00:00
{"state": "entry.latestBuys", "icon": "contact_support"}
2020-01-10 10:52:35 +00:00
],
"card": [
2020-09-07 06:15:43 +00:00
{"state": "entry.card.basicData", "icon": "settings"},
2021-01-26 06:21:05 +00:00
{"state": "entry.card.buy.index", "icon": "icon-lines"},
{"state": "entry.card.observation", "icon": "insert_drive_file"},
2020-03-06 09:21:42 +00:00
{"state": "entry.card.log", "icon": "history"}
2020-01-10 10:52:35 +00:00
]
},
2021-01-29 08:46:57 +00:00
"keybindings": [
{"key": "e", "state": "entry.index"}
],
2020-01-10 10:52:35 +00:00
"routes": [
{
"url": "/entry",
"state": "entry",
"abstract": true,
"component": "vn-entry",
"description": "Entries"
2021-06-03 14:14:52 +00:00
},
{
2020-01-10 10:52:35 +00:00
"url": "/index?q",
"state": "entry.index",
"component": "vn-entry-index",
2020-08-26 14:33:47 +00:00
"description": "Entries",
"acl": ["buyer", "administrative"]
2021-06-03 14:14:52 +00:00
},
{
2020-07-20 09:31:47 +00:00
"url": "/latest-buys?q",
"state": "entry.latestBuys",
"component": "vn-entry-latest-buys",
2020-08-26 14:33:47 +00:00
"description": "Latest buys",
"acl": ["buyer", "administrative"]
2021-06-03 14:14:52 +00:00
},
{
2020-09-02 12:08:56 +00:00
"url": "/create?supplierFk&travelFk&companyFk",
"state": "entry.create",
"component": "vn-entry-create",
"description": "New entry",
"acl": ["buyer", "administrative"]
2021-06-03 14:14:52 +00:00
},
{
2020-01-10 10:52:35 +00:00
"url": "/:id",
"state": "entry.card",
"abstract": true,
"component": "vn-entry-card"
2021-06-03 14:14:52 +00:00
},
{
2020-02-04 08:34:31 +00:00
"url": "/summary",
"state": "entry.card.summary",
"component": "vn-entry-summary",
"description": "Summary",
"params": {
"entry": "$ctrl.entry"
2021-03-10 10:04:56 +00:00
},
"acl": ["buyer", "administrative"]
2021-06-03 14:14:52 +00:00
},
{
2020-09-07 06:15:43 +00:00
"url": "/basic-data",
"state": "entry.card.basicData",
"component": "vn-entry-basic-data",
"description": "Basic data",
"params": {
"entry": "$ctrl.entry"
2021-03-10 10:04:56 +00:00
},
"acl": ["buyer", "administrative"]
2021-06-03 14:14:52 +00:00
},
{
"url": "/observation",
"state": "entry.card.observation",
"component": "vn-entry-observation",
"description": "Notes",
"params": {
"entry": "$ctrl.entry"
2021-03-10 10:04:56 +00:00
},
"acl": ["buyer", "administrative"]
2021-06-03 14:14:52 +00:00
},
{
2020-03-02 08:28:08 +00:00
"url" : "/log",
"state": "entry.card.log",
"component": "vn-entry-log",
2021-03-10 10:04:56 +00:00
"description": "Log",
"acl": ["buyer", "administrative"]
2021-01-26 06:21:05 +00:00
},
{
"url": "/buy",
2020-03-06 08:57:05 +00:00
"state": "entry.card.buy",
2021-01-26 06:21:05 +00:00
"abstract": true,
2021-04-28 08:32:24 +00:00
"component": "ui-view",
"acl": ["buyer"]
2021-01-26 06:21:05 +00:00
},
{
"url" : "/index",
"state": "entry.card.buy.index",
"component": "vn-entry-buy-index",
2021-04-28 10:11:49 +00:00
"description": "Buys",
2020-03-06 08:57:05 +00:00
"params": {
"entry": "$ctrl.entry"
2021-03-10 10:04:56 +00:00
},
"acl": ["buyer", "administrative"]
2021-01-26 06:21:05 +00:00
},
{
"url" : "/import",
"state": "entry.card.buy.import",
"component": "vn-entry-buy-import",
"description": "Import buys",
"params": {
"entry": "$ctrl.entry"
2021-03-10 10:04:56 +00:00
},
"acl": ["buyer"]
2020-01-10 10:52:35 +00:00
}
]
}