230 lines
6.9 KiB
JSON
230 lines
6.9 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": "icon-buyrequest"},
|
|
{"state": "item.waste.index", "icon": "icon-claims"},
|
|
{"state": "item.fixedPrice", "icon": "icon-fixedPrice"},
|
|
{"state": "item.itemType", "icon": "contact_support"}
|
|
],
|
|
"card": [
|
|
{"state": "item.card.basicData", "icon": "settings"},
|
|
{"state": "item.card.tags", "icon": "icon-tags"},
|
|
{"state": "item.card.tax", "icon": "icon-tax"},
|
|
{"state": "item.card.botanical", "icon": "local_florist"},
|
|
{"state": "item.card.shelving", "icon": "icon-inventory"},
|
|
{"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"}
|
|
],
|
|
"itemType": [
|
|
{"state": "item.itemType.card.basicData", "icon": "settings"}
|
|
]
|
|
},
|
|
"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" : "/botanical",
|
|
"state": "item.card.botanical",
|
|
"component": "vn-item-botanical",
|
|
"description": "Botanical",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/shelving",
|
|
"state": "item.card.shelving",
|
|
"component": "vn-item-shelving",
|
|
"description": "Shelvings",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"acl": ["employee"]
|
|
},
|
|
{
|
|
"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": "ui-view",
|
|
"abstract": true
|
|
},
|
|
{
|
|
"url" : "/index",
|
|
"state": "item.waste.index",
|
|
"component": "vn-item-waste-index",
|
|
"description": "Waste breakdown",
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/detail?buyer&family",
|
|
"state": "item.waste.detail",
|
|
"component": "vn-item-waste-detail",
|
|
"description": "Waste breakdown by item",
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/fixed-price?q",
|
|
"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": {
|
|
"item-type": "$ctrl.itemType"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url": "/basic-data",
|
|
"state": "item.itemType.card.basicData",
|
|
"component": "vn-item-type-basic-data",
|
|
"description": "Basic data",
|
|
"params": {
|
|
"item-type": "$ctrl.itemType"
|
|
},
|
|
"acl": ["buyer"]
|
|
}
|
|
]
|
|
} |