2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2020-03-13 19:33:12 +00:00
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-auto-search>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-12-17 08:23:11 +00:00
|
|
|
class="vn-w-lg">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
2021-02-16 14:50:48 +00:00
|
|
|
<vn-th field="created" center shrink-date>Created</vn-th>
|
2019-11-10 10:08:44 +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>
|
|
|
|
<a
|
2020-03-13 19:33:12 +00:00
|
|
|
ng-repeat="claim in model.data"
|
2019-11-10 10:08:44 +00:00
|
|
|
class="{{::$ctrl.compareDate(ticket.shipped)}} clickable vn-tr search-result"
|
|
|
|
ui-sref="claim.card.summary({id: claim.id})">
|
|
|
|
<vn-td number>{{::claim.id}}</vn-td>
|
|
|
|
<vn-td expand>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="clientDescriptor.show($event, claim.clientFk)"
|
|
|
|
class="link">
|
2019-11-10 10:08:44 +00:00
|
|
|
{{::claim.name}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2021-02-16 14:40:20 +00:00
|
|
|
<vn-td center shrink-date>{{::claim.created | date:'dd/MM/yyyy'}}</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td expand>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="workerDescriptor.show($event, claim.workerFk)"
|
|
|
|
class="link" >
|
2020-09-03 13:11:16 +00:00
|
|
|
{{::claim.userName}}
|
2019-11-10 10:08:44 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span class="chip {{::$ctrl.stateColor(claim)}}">
|
|
|
|
{{::claim.description}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="$ctrl.preview(claim)"
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-tooltip="Preview"
|
2020-11-24 07:22:54 +00:00
|
|
|
icon="preview">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-card>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-data-viewer>
|
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
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-id="workerDescriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-claim-summary
|
|
|
|
claim="$ctrl.claimSelected">
|
|
|
|
</vn-claim-summary>
|
2019-10-26 23:30:01 +00:00
|
|
|
</vn-popup>
|