salix/modules/order/front/routes.json

85 lines
2.3 KiB
JSON

{
"module": "order",
"name": "Orders",
"icon": "shopping_cart",
"validations": true,
"dependencies": ["item", "ticket"],
"routes": [
{
"url": "/order",
"state": "order",
"abstract": true,
"component": "ui-view",
"description": "Orders"
},
{
"url": "/index?q",
"state": "order.index",
"component": "vn-order-index",
"description": "Orders"
},
{
"url": "/:id",
"state": "order.card",
"abstract": true,
"component": "vn-order-card"
},
{
"url": "/summary",
"state": "order.card.summary",
"component": "vn-order-summary",
"description": "Summary",
"params": {
"order": "$ctrl.order"
}
},
{
"url": "/catalog?category&type",
"state": "order.card.catalog",
"component": "vn-order-catalog",
"description": "Catalog",
"params": {
"order": "$ctrl.order"
}
},
{
"url": "/volume",
"state": "order.card.volume",
"component": "vn-order-volume",
"description": "Volume",
"params": {
"order": "$ctrl.order"
}
},
{
"url": "/line",
"state": "order.card.line",
"component": "vn-order-line",
"description": "Lines",
"params": {
"order": "$ctrl.order"
}
},
{
"url": "/create?clientFk",
"state": "order.create",
"component": "vn-order-create",
"description": "New order"
},
{
"url": "/basic-data",
"state": "order.card.basicData",
"component": "vn-order-basic-data",
"description": "Basic data",
"params": {
"order": "$ctrl.order"
}
}
],
"menu": [
{"state": "order.card.basicData", "icon": "settings"},
{"state": "order.card.catalog", "icon": "shopping_cart"},
{"state": "order.card.volume", "icon": "icon-volume"},
{"state": "order.card.line", "icon": "icon-lines"}
]
}