2018-11-13 06:44:03 +00:00
|
|
|
{
|
|
|
|
"module": "travel",
|
|
|
|
"name": "Travels",
|
2019-11-10 10:08:44 +00:00
|
|
|
"icon": "local_airport",
|
2018-11-13 06:44:03 +00:00
|
|
|
"validations": true,
|
2020-10-27 11:02:49 +00:00
|
|
|
"dependencies": ["worker", "entry"],
|
2019-11-10 10:08:44 +00:00
|
|
|
"menus": {
|
|
|
|
"main": [
|
|
|
|
{"state": "travel.index", "icon": "local_airport"}
|
|
|
|
],
|
|
|
|
"card": [
|
|
|
|
{"state": "travel.card.basicData", "icon": "settings"},
|
2020-01-13 10:53:10 +00:00
|
|
|
{"state": "travel.card.log", "icon": "history"},
|
2020-01-17 07:43:10 +00:00
|
|
|
{"state": "travel.card.thermograph.index", "icon": "icon-thermometer"}
|
2019-11-10 10:08:44 +00:00
|
|
|
]
|
|
|
|
},
|
2018-11-13 06:44:03 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"url": "/travel",
|
|
|
|
"state": "travel",
|
|
|
|
"abstract": true,
|
2019-11-10 10:08:44 +00:00
|
|
|
"component": "vn-travel",
|
2018-11-13 06:44:03 +00:00
|
|
|
"description": "Travels"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-11-13 06:44:03 +00:00
|
|
|
"url": "/index?q",
|
|
|
|
"state": "travel.index",
|
|
|
|
"component": "vn-travel-index",
|
2019-12-17 11:18:17 +00:00
|
|
|
"description": "Travels"
|
2019-10-24 10:49:18 +00:00
|
|
|
}, {
|
|
|
|
"url": "/:id",
|
|
|
|
"state": "travel.card",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-travel-card"
|
|
|
|
}, {
|
|
|
|
"url": "/summary",
|
|
|
|
"state": "travel.card.summary",
|
|
|
|
"component": "vn-travel-summary",
|
|
|
|
"description": "Summary",
|
|
|
|
"params": {
|
|
|
|
"travel": "$ctrl.travel"
|
|
|
|
}
|
2019-10-25 11:26:38 +00:00
|
|
|
}, {
|
|
|
|
"url": "/basic-data",
|
|
|
|
"state": "travel.card.basicData",
|
|
|
|
"component": "vn-travel-basic-data",
|
|
|
|
"description": "Basic data",
|
|
|
|
"acl": ["buyer","logistic"],
|
|
|
|
"params": {
|
|
|
|
"travel": "$ctrl.travel"
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
"url" : "/log",
|
|
|
|
"state": "travel.card.log",
|
|
|
|
"component": "vn-travel-log",
|
|
|
|
"description": "Log"
|
2019-12-09 11:15:19 +00:00
|
|
|
}, {
|
2020-03-10 13:09:26 +00:00
|
|
|
"url": "/create?q",
|
2019-12-09 11:15:19 +00:00
|
|
|
"state": "travel.create",
|
|
|
|
"component": "vn-travel-create",
|
|
|
|
"description": "New travel"
|
2020-01-13 10:53:10 +00:00
|
|
|
}, {
|
2020-01-17 07:43:10 +00:00
|
|
|
"url": "/thermograph",
|
2020-01-13 10:53:10 +00:00
|
|
|
"state": "travel.card.thermograph",
|
2020-01-17 07:43:10 +00:00
|
|
|
"abstract": true,
|
|
|
|
"component": "ui-view"
|
|
|
|
}, {
|
|
|
|
"url" : "/index",
|
|
|
|
"state": "travel.card.thermograph.index",
|
|
|
|
"component": "vn-travel-thermograph-index",
|
2020-01-13 10:53:10 +00:00
|
|
|
"description": "Thermographs",
|
|
|
|
"params": {
|
|
|
|
"travel": "$ctrl.travel"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
2020-01-17 07:43:10 +00:00
|
|
|
}, {
|
|
|
|
"url" : "/create",
|
|
|
|
"state": "travel.card.thermograph.create",
|
|
|
|
"component": "vn-travel-thermograph-create",
|
|
|
|
"description": "Add thermograph",
|
|
|
|
"params": {
|
|
|
|
"travel": "$ctrl.travel"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
2020-02-28 08:21:00 +00:00
|
|
|
}, {
|
2020-02-28 13:18:55 +00:00
|
|
|
"url" : "/:thermographId/edit",
|
2020-02-28 08:21:00 +00:00
|
|
|
"state": "travel.card.thermograph.edit",
|
|
|
|
"component": "vn-travel-thermograph-edit",
|
|
|
|
"description": "Edit thermograph",
|
|
|
|
"params": {
|
|
|
|
"travel": "$ctrl.travel"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
2018-11-13 06:44:03 +00:00
|
|
|
}
|
2019-01-24 15:04:38 +00:00
|
|
|
]
|
2018-11-13 06:44:03 +00:00
|
|
|
}
|