172 lines
5.1 KiB
JSON
172 lines
5.1 KiB
JSON
{
|
|
"module": "item",
|
|
"name": "Items",
|
|
"icon": "icon-item",
|
|
"validations" : true,
|
|
"dependencies": ["worker", "client", "ticket", "entry"],
|
|
"menus": {
|
|
"main": [
|
|
{"state": "item.index", "icon": "icon-item"},
|
|
{"state": "item.request", "icon": "pan_tool"},
|
|
{"state": "item.waste", "icon": "icon-claims"},
|
|
{"state": "item.fixedPrice", "icon": ""}
|
|
],
|
|
"card": [
|
|
{"state": "item.card.basicData", "icon": "settings"},
|
|
{"state": "item.card.tags", "icon": "icon-tags"},
|
|
{"state": "item.card.tax", "icon": "icon-tax"},
|
|
{"state": "item.card.niche", "icon": "place"},
|
|
{"state": "item.card.botanical", "icon": "local_florist"},
|
|
{"state": "item.card.itemBarcode", "icon": "icon-barcode"},
|
|
{"state": "item.card.diary", "icon": "icon-transaction"},
|
|
{"state": "item.card.last-entries", "icon": "icon-regentry"},
|
|
{"state": "item.card.log", "icon": "history"}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{"key": "a", "state": "item.index"}
|
|
],
|
|
"routes": [
|
|
{
|
|
"url": "/item",
|
|
"state": "item",
|
|
"abstract": true,
|
|
"description": "Items",
|
|
"component": "vn-items"
|
|
},
|
|
{
|
|
"url": "/index?q",
|
|
"state": "item.index",
|
|
"component": "vn-item-index",
|
|
"description": "Items"
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "item.create",
|
|
"component": "vn-item-create",
|
|
"description": "New item"
|
|
},
|
|
{
|
|
"url": "/:id",
|
|
"state": "item.card",
|
|
"abstract": true,
|
|
"component": "vn-item-card"
|
|
},
|
|
{
|
|
"url" : "/basic-data",
|
|
"state": "item.card.basicData",
|
|
"component": "vn-item-basic-data",
|
|
"description": "Basic data",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/tags",
|
|
"state": "item.card.tags",
|
|
"component": "vn-item-tags",
|
|
"description": "Tags",
|
|
"params": {
|
|
"item-tags": "$ctrl.itemTags"
|
|
},
|
|
"acl": ["buyer", "replenisher"]
|
|
},
|
|
{
|
|
"url" : "/tax",
|
|
"state": "item.card.tax",
|
|
"component": "vn-item-tax",
|
|
"description": "Tax",
|
|
"acl": ["administrative","buyer"]
|
|
},
|
|
{
|
|
"url" : "/niche",
|
|
"state": "item.card.niche",
|
|
"component": "vn-item-niche",
|
|
"description": "Niches",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["buyer","replenisher"]
|
|
},
|
|
{
|
|
"url" : "/botanical",
|
|
"state": "item.card.botanical",
|
|
"component": "vn-item-botanical",
|
|
"description": "Botanical",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/barcode",
|
|
"state": "item.card.itemBarcode",
|
|
"component": "vn-item-barcode",
|
|
"description": "Barcodes",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["buyer","replenisher"]
|
|
},
|
|
{
|
|
"url" : "/summary",
|
|
"state": "item.card.summary",
|
|
"component": "vn-item-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
}
|
|
},
|
|
{
|
|
"url" : "/diary?warehouseFk&lineFk",
|
|
"state": "item.card.diary",
|
|
"component": "vn-item-diary",
|
|
"description": "Diary",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["employee"]
|
|
},
|
|
{
|
|
"url" : "/last-entries",
|
|
"state": "item.card.last-entries",
|
|
"component": "vn-item-last-entries",
|
|
"description": "Last entries",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["employee"]
|
|
},
|
|
{
|
|
"url" : "/log",
|
|
"state": "item.card.log",
|
|
"component": "vn-item-log",
|
|
"description": "Log"
|
|
},
|
|
{
|
|
"url" : "/request?q",
|
|
"state": "item.request",
|
|
"component": "vn-item-request",
|
|
"description": "Buy requests",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["employee"]
|
|
},
|
|
{
|
|
"url" : "/waste",
|
|
"state": "item.waste",
|
|
"component": "vn-item-waste",
|
|
"description": "Waste breakdown",
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/fixed-price",
|
|
"state": "item.fixedPrice",
|
|
"component": "vn-fixed-price",
|
|
"description": "Fixed prices",
|
|
"acl": ["buyer"]
|
|
}
|
|
]
|
|
} |