salix/modules/item/front/routes.json

231 lines
6.9 KiB
JSON
Raw Normal View History

2017-12-19 10:24:24 +00:00
{
"module": "item",
"name": "Items",
2019-02-21 09:17:13 +00:00
"icon": "icon-item",
2018-01-09 13:54:18 +00:00
"validations" : true,
2024-06-07 09:35:03 +00:00
"dependencies": ["worker", "client", "ticket"],
2019-11-10 10:08:44 +00:00
"menus": {
"main": [
{"state": "item.index", "icon": "icon-item"},
2021-11-26 12:04:07 +00:00
{"state": "item.request", "icon": "icon-buyrequest"},
2021-03-30 08:28:44 +00:00
{"state": "item.waste.index", "icon": "icon-claims"},
{"state": "item.fixedPrice", "icon": "icon-fixedPrice"},
{"state": "item.itemType", "icon": "contact_support"}
2019-11-10 10:08:44 +00:00
],
"card": [
{"state": "item.card.basicData", "icon": "settings"},
{"state": "item.card.tags", "icon": "icon-tags"},
{"state": "item.card.last-entries", "icon": "icon-regentry"},
2019-11-10 10:08:44 +00:00
{"state": "item.card.tax", "icon": "icon-tax"},
2022-10-05 13:13:48 +00:00
{"state": "item.card.botanical", "icon": "local_florist"},
{"state": "item.card.shelving", "icon": "icon-inventory"},
2024-06-07 09:35:03 +00:00
{"state": "item.card.itemBarcode", "icon": "icon-barcode"},
{"state": "item.card.diary", "icon": "icon-transaction"},
2019-11-10 10:08:44 +00:00
{"state": "item.card.log", "icon": "history"}
2022-05-11 12:47:54 +00:00
],
"itemType": [
{"state": "item.itemType.card.basicData", "icon": "settings"}
2019-11-10 10:08:44 +00:00
]
},
2019-01-28 15:24:45 +00:00
"keybindings": [
{"key": "a", "state": "item.index"}
],
2017-12-19 10:24:24 +00:00
"routes": [
{
"url": "/item",
"state": "item",
"abstract": true,
2018-07-25 13:14:03 +00:00
"description": "Items",
2019-11-10 10:08:44 +00:00
"component": "vn-items"
2021-01-18 13:16:39 +00:00
},
{
"url": "/index?q",
2017-12-19 10:24:24 +00:00
"state": "item.index",
2018-07-25 13:14:03 +00:00
"component": "vn-item-index",
2019-01-27 23:26:01 +00:00
"description": "Items"
2021-01-18 13:16:39 +00:00
},
{
2017-12-19 10:24:24 +00:00
"url": "/create",
"state": "item.create",
2018-07-25 13:14:03 +00:00
"component": "vn-item-create",
"description": "New item"
2021-01-18 13:16:39 +00:00
},
{
2017-12-20 13:36:12 +00:00
"url": "/:id",
"state": "item.card",
"abstract": true,
"component": "vn-item-card"
2021-01-18 13:16:39 +00:00
},
{
"url" : "/basic-data",
"state": "item.card.basicData",
"component": "vn-item-basic-data",
2018-07-25 13:14:03 +00:00
"description": "Basic data",
2017-12-21 13:09:55 +00:00
"params": {
"item": "$ctrl.item"
},
2018-02-21 08:43:13 +00:00
"acl": ["buyer"]
2021-01-18 13:16:39 +00:00
},
{
"url" : "/tags",
"state": "item.card.tags",
"component": "vn-item-tags",
2018-07-25 13:14:03 +00:00
"description": "Tags",
"params": {
"item-tags": "$ctrl.itemTags"
},
2019-04-17 06:21:58 +00:00
"acl": ["buyer", "replenisher"]
2021-01-18 13:16:39 +00:00
},
{
2018-02-23 12:04:44 +00:00
"url" : "/tax",
"state": "item.card.tax",
"component": "vn-item-tax",
2018-07-25 13:14:03 +00:00
"description": "Tax",
"acl": ["administrative","buyer"]
2021-01-18 13:16:39 +00:00
},
{
"url" : "/botanical",
"state": "item.card.botanical",
"component": "vn-item-botanical",
2018-07-25 13:14:03 +00:00
"description": "Botanical",
"params": {
"item": "$ctrl.item"
},
2018-02-21 08:43:13 +00:00
"acl": ["buyer"]
2021-01-18 13:16:39 +00:00
},
2022-10-05 13:13:48 +00:00
{
"url" : "/shelving",
"state": "item.card.shelving",
"component": "vn-item-shelving",
"description": "Shelvings",
"params": {
"item": "$ctrl.item"
},
"acl": ["employee"]
},
2021-01-18 13:16:39 +00:00
{
"url" : "/barcode",
"state": "item.card.itemBarcode",
"component": "vn-item-barcode",
2018-07-25 13:14:03 +00:00
"description": "Barcodes",
2017-12-21 13:09:55 +00:00
"params": {
"item": "$ctrl.item"
},
2018-02-21 08:43:13 +00:00
"acl": ["buyer","replenisher"]
2021-01-18 13:16:39 +00:00
},
{
2018-02-20 10:10:54 +00:00
"url" : "/summary",
"state": "item.card.summary",
"component": "vn-item-summary",
2018-07-25 13:14:03 +00:00
"description": "Summary",
2018-02-20 10:10:54 +00:00
"params": {
"item": "$ctrl.item"
}
2021-01-18 13:16:39 +00:00
},
{
"url" : "/diary?warehouseFk&lineFk",
"state": "item.card.diary",
"component": "vn-item-diary",
2018-07-25 13:14:03 +00:00
"description": "Diary",
"params": {
"item": "$ctrl.item"
},
"acl": ["employee"]
2021-01-18 13:16:39 +00:00
},
{
2018-06-20 09:39:29 +00:00
"url" : "/last-entries",
"state": "item.card.last-entries",
"component": "vn-item-last-entries",
2018-07-25 13:14:03 +00:00
"description": "Last entries",
2018-06-20 09:39:29 +00:00
"params": {
"item": "$ctrl.item"
},
"acl": ["employee"]
2021-01-18 13:16:39 +00:00
},
{
2019-03-12 10:47:53 +00:00
"url" : "/log",
"state": "item.card.log",
"component": "vn-item-log",
"description": "Log"
2021-01-18 13:16:39 +00:00
},
{
2019-04-05 13:20:12 +00:00
"url" : "/request?q",
"state": "item.request",
"component": "vn-item-request",
"description": "Buy requests",
2019-04-05 13:20:12 +00:00
"params": {
"item": "$ctrl.item"
},
"acl": ["employee"]
2021-01-18 13:16:39 +00:00
},
{
2021-03-30 08:28:44 +00:00
"url": "/waste",
2020-01-15 12:07:33 +00:00
"state": "item.waste",
2021-03-30 08:28:44 +00:00
"component": "ui-view",
"abstract": true
},
{
"url" : "/index",
"state": "item.waste.index",
"component": "vn-item-waste-index",
2020-01-16 12:39:32 +00:00
"description": "Waste breakdown",
"acl": ["buyer"]
2021-01-18 13:16:39 +00:00
},
2021-03-30 08:28:44 +00:00
{
2021-04-06 11:46:38 +00:00
"url" : "/detail?buyer&family",
2021-03-30 08:28:44 +00:00
"state": "item.waste.detail",
"component": "vn-item-waste-detail",
2021-04-06 11:46:38 +00:00
"description": "Waste breakdown by item",
2021-03-30 08:28:44 +00:00
"acl": ["buyer"]
},
2021-01-18 13:16:39 +00:00
{
2021-02-11 10:14:52 +00:00
"url" : "/fixed-price?q",
2021-01-18 13:16:39 +00:00
"state": "item.fixedPrice",
"component": "vn-fixed-price",
"description": "Fixed prices",
"acl": ["buyer"]
},
{
"url" : "/item-type?q",
"state": "item.itemType",
"component": "vn-item-type",
"description": "Item Type",
"acl": ["buyer"]
},
{
"url": "/create",
"state": "item.itemType.create",
"component": "vn-item-type-create",
"description": "New itemType",
"acl": ["buyer"]
},
{
"url": "/:id",
"state": "item.itemType.card",
"component": "vn-item-type-card",
"abstract": true,
"description": "Detail"
},
{
"url": "/summary",
"state": "item.itemType.card.summary",
"component": "vn-item-type-summary",
"description": "Summary",
"params": {
2022-05-11 12:47:54 +00:00
"item-type": "$ctrl.itemType"
},
"acl": ["buyer"]
},
{
"url": "/basic-data",
"state": "item.itemType.card.basicData",
"component": "vn-item-type-basic-data",
"description": "Basic data",
"params": {
2022-05-11 12:47:54 +00:00
"item-type": "$ctrl.itemType"
},
"acl": ["buyer"]
2017-12-19 10:24:24 +00:00
}
]
2024-06-07 09:35:03 +00:00
}