2018-08-07 09:57:11 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2018-08-07 10:48:55 +00:00
|
|
|
url="/claim/api/Claims"
|
2018-08-07 09:57:11 +00:00
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
2018-08-07 10:48:55 +00:00
|
|
|
data="claims"
|
2018-08-07 09:57:11 +00:00
|
|
|
auto-load="false">
|
|
|
|
</vn-crud-model>
|
|
|
|
<div margin-medium>
|
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
|
|
|
<vn-searchbar
|
2018-09-04 13:08:36 +00:00
|
|
|
panel="vn-claim-search-panel"
|
2018-08-07 09:57:11 +00:00
|
|
|
model="model"
|
2018-09-17 12:54:38 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
2018-11-21 13:30:32 +00:00
|
|
|
auto-load="true"
|
2018-09-17 12:54:38 +00:00
|
|
|
vn-focus>
|
2018-08-07 09:57:11 +00:00
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
</div>
|
2018-12-14 11:56:21 +00:00
|
|
|
<vn-card margin-medium-v pad-medium compact>
|
2018-08-07 10:48:55 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
|
|
<vn-th field="created">Created</vn-th>
|
|
|
|
<vn-th field="workerFk">Worker</vn-th>
|
|
|
|
<vn-th field="claimStateFk">State</vn-th>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2018-12-12 08:20:31 +00:00
|
|
|
<a
|
|
|
|
ng-repeat="claim in claims"
|
2019-01-22 12:18:20 +00:00
|
|
|
class="{{::$ctrl.compareDate(ticket.shipped)}} clickable vn-tr searchResult"
|
2018-12-12 08:20:31 +00:00
|
|
|
ui-sref="claim.card.summary({id: claim.id})">
|
2018-08-07 10:48:55 +00:00
|
|
|
<vn-td number>{{::claim.id}}</vn-td>
|
2018-09-06 10:47:25 +00:00
|
|
|
<vn-td>
|
|
|
|
<span class="link" ng-click="$ctrl.showDescriptor($event, claim.client.id)">
|
|
|
|
{{::claim.client.name}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-08-07 10:48:55 +00:00
|
|
|
<vn-td>{{::claim.created | date:'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td>{{::claim.worker.firstName}} {{::claim.worker.name}}</vn-td>
|
2019-01-16 14:05:35 +00:00
|
|
|
<vn-td class="{{::claim.claimState.description}}">{{::claim.claimState.description}}</vn-td>
|
2018-08-07 10:48:55 +00:00
|
|
|
<vn-td>
|
2018-08-07 09:57:11 +00:00
|
|
|
<vn-icon-button
|
2018-11-21 13:30:32 +00:00
|
|
|
ng-click="$ctrl.preview($event, claim)"
|
2018-08-07 09:57:11 +00:00
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
2018-08-07 10:48:55 +00:00
|
|
|
</vn-td>
|
2018-12-12 08:20:31 +00:00
|
|
|
</a>
|
2018-08-07 10:48:55 +00:00
|
|
|
</vn-tbody>
|
2018-12-11 10:59:44 +00:00
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
<vn-empty-rows ng-if="model.data === null" translate>
|
2018-11-21 13:30:32 +00:00
|
|
|
Enter a new search
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-empty-rows>
|
2018-08-07 10:48:55 +00:00
|
|
|
</vn-table>
|
2018-08-07 09:57:11 +00:00
|
|
|
</vn-card>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-08-31 12:35:20 +00:00
|
|
|
</div>
|
2018-09-05 11:47:15 +00:00
|
|
|
<vn-client-descriptor-popover vn-id="descriptor"></vn-client-descriptor-popover>
|
|
|
|
<vn-dialog class="dialog-summary"
|
|
|
|
vn-id="dialog-summary-claim">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-claim-summary claim="$ctrl.claimSelected"></vn-claim-summary>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|