2018-08-07 09:57:11 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Claims/filter"
|
2018-08-07 09:57:11 +00:00
|
|
|
limit="20"
|
2018-08-07 10:48:55 +00:00
|
|
|
data="claims"
|
2019-10-02 19:02:49 +00:00
|
|
|
order="claimStateFk ASC, created DESC"
|
|
|
|
auto-load="true">
|
2018-08-07 09:57:11 +00:00
|
|
|
</vn-crud-model>
|
2019-01-30 22:47:06 +00:00
|
|
|
<div class="content-block">
|
2019-10-18 19:54:13 +00:00
|
|
|
<vn-card class="vn-w-sm vn-pa-md">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-claim-search-panel"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
|
|
|
info="Search claim by id or client name"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-w-md vn-my-md">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-card>
|
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>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th field="created" center>Created</vn-th>
|
2018-08-07 10:48:55 +00:00
|
|
|
<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>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>
|
2019-04-24 07:10:56 +00:00
|
|
|
<span class="link" ng-click="$ctrl.showClientDescriptor($event, claim.clientFk)">
|
2019-04-15 09:06:42 +00:00
|
|
|
{{::claim.name}}
|
2018-09-06 10:47:25 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td center>{{::claim.created | date:'dd/MM/yyyy'}}</vn-td>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
2019-04-24 07:10:56 +00:00
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, claim.workerFk)">
|
2019-04-15 09:06:42 +00:00
|
|
|
{{::claim.nickName}}
|
2019-02-15 11:39:21 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-08-07 10:48:55 +00:00
|
|
|
<vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<span class="chip {{::$ctrl.stateColor(claim)}}">
|
2019-04-15 09:06:42 +00:00
|
|
|
{{::claim.description}}
|
2019-02-10 21:52:35 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
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>
|
|
|
|
</vn-table>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2018-08-31 12:35:20 +00:00
|
|
|
</div>
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
|
|
|
</vn-client-descriptor-popover>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 12:24:02 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="dialog-summary-claim">
|
|
|
|
<vn-claim-summary claim="$ctrl.claimSelected"></vn-claim-summary>
|
|
|
|
</vn-popup>
|
2019-09-05 11:06:40 +00:00
|
|
|
<vn-scroll-up></vn-scroll-up>
|