salix/modules/claim/front/routes.json

93 lines
2.8 KiB
JSON

{
"module": "claim",
"name": "Claims",
"icon": "icon-claims",
"validations": true,
"dependencies": ["worker", "item", "client"],
"menus": {
"main": [
{"state": "claim.index", "icon": "icon-claims"}
],
"card": [
{"state": "claim.card.basicData", "icon": "settings"},
{"state": "claim.card.detail", "icon": "icon-details"},
{"state": "claim.card.photos", "icon": "image"},
{"state": "claim.card.development", "icon": "icon-traceability"},
{"state": "claim.card.action", "icon": "icon-actions"}
]
},
"keybindings": [
{"key": "r", "state": "claim.index"}
],
"routes": [
{
"url": "/claim",
"state": "claim",
"abstract": true,
"component": "vn-claim",
"description": "Claims"
}, {
"url": "/index?q",
"state": "claim.index",
"component": "vn-claim-index",
"description": "Claims"
}, {
"url": "/:id",
"state": "claim.card",
"abstract": true,
"component": "vn-claim-card"
}, {
"url": "/summary",
"state": "claim.card.summary",
"component": "vn-claim-summary",
"description": "Summary",
"params": {
"claim": "$ctrl.claim"
}
}, {
"url": "/basic-data",
"state": "claim.card.basicData",
"component": "vn-claim-basic-data",
"description": "Basic data",
"params": {
"claim": "$ctrl.claim"
},
"acl": ["salesPerson"]
}, {
"url": "/detail",
"state": "claim.card.detail",
"component": "vn-claim-detail",
"description": "Detail",
"params": {
"claim": "$ctrl.claim"
},
"acl": ["salesPerson"]
}, {
"url": "/development",
"state": "claim.card.development",
"component": "vn-claim-development",
"description": "Development",
"params": {
"claim": "$ctrl.claim"
},
"acl": ["salesAssistant"]
}, {
"url": "/action",
"state": "claim.card.action",
"component": "vn-claim-action",
"description": "Action",
"params": {
"claim": "$ctrl.claim"
},
"acl": ["salesAssistant"]
}, {
"url": "/photos",
"state": "claim.card.photos",
"component": "vn-claim-photos",
"description": "Photos",
"params": {
"claim": "$ctrl.claim"
}
}
]
}