#229 ticket descriptor
This commit is contained in:
parent
3a798757cf
commit
e65942a296
|
@ -11,6 +11,30 @@ class TicketCard {
|
|||
|
||||
_getTicket() {
|
||||
let filter = {
|
||||
include: [
|
||||
{relation: 'warehouse', scope: {fields: ['name']}},
|
||||
{relation: 'agencyMode', scope: {fields: ['name']}},
|
||||
{
|
||||
relation: 'client',
|
||||
scope: {
|
||||
fields: ['salesPersonFk', 'name'],
|
||||
include: {
|
||||
relation: 'salesPerson',
|
||||
fields: ['firstName', 'name']
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
relation: 'ticketTracking',
|
||||
scope: {
|
||||
fields: ['stateFk'],
|
||||
include: {
|
||||
relation: 'state',
|
||||
fields: ['name']
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
this.$http.get(`/ticket/api/Tickets/${this.$state.params.id}?filter=${JSON.stringify(filter)}`)
|
||||
.then(res => {
|
||||
|
|
|
@ -8,9 +8,31 @@
|
|||
<vn-icon icon="desktop_windows"></vn-icon>
|
||||
</a>
|
||||
</vn-horizontal>
|
||||
<vn-vertical>
|
||||
<vn-auto pad-medium>
|
||||
|
||||
</vn-auto>
|
||||
</vn-vertical>
|
||||
<div pad-medium>
|
||||
<h6>{{$ctrl.client.name}}</h6>
|
||||
<div>
|
||||
<vn-label translate>ID:</vn-label> {{$ctrl.ticket.id}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>Cliente:</vn-label> {{$ctrl.ticket.client.name}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>State:</vn-label> {{$ctrl.ticket.ticketTracking.state.name}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>Sales person:</vn-label> {{$ctrl.ticket.client.salesPerson.firstName}} {{$ctrl.ticket.client.salesPerson.name}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>Shipped:</vn-label> {{$ctrl.ticket.shipped | date}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>Agency:</vn-label> {{$ctrl.ticket.agencyMode.name}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>Warehouse:</vn-label> {{$ctrl.ticket.warehouse.name}}
|
||||
</div>
|
||||
<div>
|
||||
<vn-label translate>Alias:</vn-label> {{$ctrl.ticket.nickname}}
|
||||
</div>
|
||||
</div>
|
||||
</vn-card>
|
||||
|
|
|
@ -36,7 +36,6 @@ module.exports = Self => {
|
|||
}
|
||||
}
|
||||
);
|
||||
|
||||
return filters;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue