salix/modules/order/front/routes.json

82 lines
2.4 KiB
JSON

{
"module": "order",
"name": "Orders",
"icon": "icon-basket",
"validations": true,
"dependencies": ["worker", "item", "ticket"],
"menus": {
"main": [
{"state": "order.index", "icon": "icon-basket"}
],
"card": [
{"state": "order.card.basicData", "icon": "settings"},
{"state": "order.card.catalog", "icon": "icon-basket"},
{"state": "order.card.volume", "icon": "icon-volume"},
{"state": "order.card.line", "icon": "icon-lines"}
]
},
"routes": [
{
"url": "/order",
"state": "order",
"abstract": true,
"component": "vn-order",
"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"
}
}
]
}