fixed ticket id in state.go

This commit is contained in:
Gerard 2018-11-21 12:17:11 +01:00
parent 665f324db9
commit cc542eccbe
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ class Controller {
onSubmit() {
this.$.watcher.submit().then(
json => this.$state.go('ticket.card.request.index', {id: json.data.id})
json => this.$state.go('ticket.card.request.index', {id: $state.params.id})
);
}
}

View File

@ -20,10 +20,10 @@
<vn-thead>
<vn-tr>
<vn-th number>Id</vn-th>
<vn-th number>Description</vn-th>
<vn-th>Description</vn-th>
<vn-th number>Created</vn-th>
<vn-th number>Requester</vn-th>
<vn-th number>Atender</vn-th>
<vn-th>Requester</vn-th>
<vn-th>Atender</vn-th>
<vn-th number>Quantity</vn-th>
<vn-th number>Price</vn-th>
<vn-th number>Sale id</vn-th>
@ -33,10 +33,10 @@
<vn-tbody>
<vn-tr ng-repeat="request in purchaseRequests">
<vn-td number>{{::request.id}}</vn-td>
<vn-td number>{{::request.description}}</vn-td>
<vn-td>{{::request.description}}</vn-td>
<vn-td number>{{::request.created | dateTime: 'dd/MM/yyyy'}}</vn-td>
<vn-td number>{{::request.requester.firstName}} {{::request.requester.name}}</vn-td>
<vn-td number>{{::request.atender.firstName}} {{::request.atender.name}}</vn-td>
<vn-td>{{::request.requester.firstName}} {{::request.requester.name}}</vn-td>
<vn-td>{{::request.atender.firstName}} {{::request.atender.name}}</vn-td>
<vn-td number>{{::request.quantity}}</vn-td>
<vn-td number>{{::request.price}}</vn-td>
<vn-td number>