259 lines
8.6 KiB
JSON
259 lines
8.6 KiB
JSON
{
|
|
"module": "ticket",
|
|
"name": "Tickets",
|
|
"icon": "icon-ticket",
|
|
"validations": true,
|
|
"dependencies": ["worker", "item", "client"],
|
|
"menus": {
|
|
"main": [
|
|
{"state": "ticket.index", "icon": "icon-ticket"},
|
|
{"state": "ticket.weekly.index", "icon": "schedule"}
|
|
],
|
|
"card": [
|
|
{"state": "ticket.card.basicData.stepOne", "icon": "settings"},
|
|
{"state": "ticket.card.sale", "icon": "icon-lines"},
|
|
{"state": "ticket.card.observation", "icon": "insert_drive_file"},
|
|
{"state": "ticket.card.volume", "icon": "icon-volume"},
|
|
{"state": "ticket.card.expedition", "icon": "icon-package"},
|
|
{"state": "ticket.card.service", "icon": "icon-services"},
|
|
{"state": "ticket.card.package", "icon": "icon-bucket"},
|
|
{"state": "ticket.card.tracking.index", "icon": "remove_red_eye"},
|
|
{"state": "ticket.card.saleChecked", "icon": "assignment"},
|
|
{"state": "ticket.card.components", "icon": "icon-components"},
|
|
{"state": "ticket.card.saleTracking", "icon": "assignment"},
|
|
{"state": "ticket.card.picture", "icon": "image"},
|
|
{"state": "ticket.card.log", "icon": "history"},
|
|
{"state": "ticket.card.request.index", "icon": "icon-100"},
|
|
{"state": "ticket.card.dms.index", "icon": "cloud_download"}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{"key": "t", "state": "ticket.index"}
|
|
],
|
|
"routes": [
|
|
{
|
|
"url": "/ticket",
|
|
"state": "ticket",
|
|
"abstract": true,
|
|
"component": "vn-ticket",
|
|
"description": "Tickets"
|
|
}, {
|
|
"url": "/index?q",
|
|
"state": "ticket.index",
|
|
"component": "vn-ticket-index",
|
|
"description": "Tickets"
|
|
}, {
|
|
"url": "/:id",
|
|
"state": "ticket.card",
|
|
"abstract": true,
|
|
"component": "vn-ticket-card"
|
|
}, {
|
|
"url": "/summary",
|
|
"state": "ticket.card.summary",
|
|
"component": "vn-ticket-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/basic-data",
|
|
"state": "ticket.card.basicData",
|
|
"component": "vn-ticket-basic-data",
|
|
"abstract": true,
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/step-one",
|
|
"state": "ticket.card.basicData.stepOne",
|
|
"component": "vn-ticket-basic-data-step-one",
|
|
"description": "Basic data",
|
|
"params": {
|
|
"ticket": "$ctrl.data"
|
|
}
|
|
}, {
|
|
"url" : "/step-two",
|
|
"state": "ticket.card.basicData.stepTwo",
|
|
"component": "vn-ticket-basic-data-step-two",
|
|
"description": "Price difference",
|
|
"params": {
|
|
"ticket": "$ctrl.data"
|
|
}
|
|
}, {
|
|
"url" : "/step-three",
|
|
"state": "ticket.card.basicData.stepThree",
|
|
"component": "vn-ticket-basic-data-step-three",
|
|
"description": "Charge",
|
|
"params": {
|
|
"ticket": "$ctrl.data"
|
|
}
|
|
}, {
|
|
"url" : "/sale",
|
|
"state": "ticket.card.sale",
|
|
"component": "vn-ticket-sale",
|
|
"description": "Sale",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url": "/observation",
|
|
"state": "ticket.card.observation",
|
|
"component": "vn-ticket-observation",
|
|
"description": "Notes",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url": "/volume",
|
|
"state": "ticket.card.volume",
|
|
"component": "vn-ticket-volume",
|
|
"description": "Volume",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url": "/expedition",
|
|
"state": "ticket.card.expedition",
|
|
"component": "vn-ticket-expedition",
|
|
"description": "Expedition",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/package",
|
|
"state": "ticket.card.package",
|
|
"component": "vn-ticket-package",
|
|
"description": "Packages",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url": "/tracking",
|
|
"state": "ticket.card.tracking",
|
|
"abstract": true,
|
|
"component": "ui-view"
|
|
}, {
|
|
"url" : "/index",
|
|
"state": "ticket.card.tracking.index",
|
|
"component": "vn-ticket-tracking-index",
|
|
"description": "Tracking",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url": "/edit",
|
|
"state": "ticket.card.tracking.edit",
|
|
"component": "vn-ticket-tracking-edit",
|
|
"description": "New state",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
},
|
|
"acl": ["production", "administrative", "salesPerson"]
|
|
}, {
|
|
"url" : "/sale-checked",
|
|
"state": "ticket.card.saleChecked",
|
|
"component": "vn-ticket-sale-checked",
|
|
"description": "Sale checked",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/components",
|
|
"state": "ticket.card.components",
|
|
"component": "vn-ticket-components",
|
|
"description": "Components",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/sale-tracking",
|
|
"state": "ticket.card.saleTracking",
|
|
"component": "vn-ticket-sale-tracking",
|
|
"description": "Sale tracking",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/picture",
|
|
"state": "ticket.card.picture",
|
|
"component": "vn-ticket-picture",
|
|
"description": "Pictures",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}, {
|
|
"url" : "/log",
|
|
"state": "ticket.card.log",
|
|
"component": "vn-ticket-log",
|
|
"description": "Log"
|
|
}, {
|
|
"url": "/weekly",
|
|
"state": "ticket.weekly",
|
|
"abstract": true,
|
|
"component": "ui-view",
|
|
"description": "Weekly"
|
|
}, {
|
|
"url": "/index?q",
|
|
"state": "ticket.weekly.index",
|
|
"component": "vn-ticket-weekly-index",
|
|
"description": "Weekly tickets"
|
|
}, {
|
|
"url": "/request",
|
|
"state": "ticket.card.request",
|
|
"abstract": true,
|
|
"component": "ui-view"
|
|
}, {
|
|
"url": "/service",
|
|
"state": "ticket.card.service",
|
|
"component": "vn-ticket-service",
|
|
"description": "Service"
|
|
}, {
|
|
"url" : "/index",
|
|
"state": "ticket.card.request.index",
|
|
"component": "vn-ticket-request-index",
|
|
"description": "Purchase request",
|
|
"acl": ["salesPerson"]
|
|
}, {
|
|
"url" : "/create",
|
|
"state": "ticket.card.request.create",
|
|
"component": "vn-ticket-request-create",
|
|
"description": "New purchase request",
|
|
"acl": ["salesPerson"]
|
|
}, {
|
|
"url": "/create?clientFk",
|
|
"state": "ticket.create",
|
|
"component": "vn-ticket-create",
|
|
"description": "New ticket"
|
|
},
|
|
{
|
|
"url": "/dms",
|
|
"state": "ticket.card.dms",
|
|
"abstract": true,
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "ticket.card.dms.index",
|
|
"component": "vn-ticket-dms-index",
|
|
"description": "File management"
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "ticket.card.dms.create",
|
|
"component": "vn-ticket-dms-create",
|
|
"description": "Upload file",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
},
|
|
{
|
|
"url": "/:dmsId/edit",
|
|
"state": "ticket.card.dms.edit",
|
|
"component": "vn-ticket-dms-edit",
|
|
"description": "Edit file",
|
|
"params": {
|
|
"ticket": "$ctrl.ticket"
|
|
}
|
|
}
|
|
]
|
|
} |