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>
|
2022-02-28 06:57:46 +00:00
|
|
|
<vn-card>
|
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
options="$ctrl.smartTableOptions"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th field="id" shrink>
|
|
|
|
<span translate>Id</span>
|
|
|
|
</th>
|
|
|
|
<th field="clientFk">
|
|
|
|
<span translate>Client</span>
|
|
|
|
</th>
|
|
|
|
<th field="created" center shrink-date>
|
|
|
|
<span translate>Created</span>
|
|
|
|
</th>
|
2022-02-28 11:40:44 +00:00
|
|
|
<th field="salesPersonFk">
|
2022-02-28 06:57:46 +00:00
|
|
|
<span translate>Worker</span>
|
|
|
|
</th>
|
|
|
|
<th field="claimStateFk">
|
|
|
|
<span translate>State</span>
|
|
|
|
</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr
|
|
|
|
ng-repeat="claim in model.data"
|
|
|
|
vn-anchor="::{
|
|
|
|
state: 'claim.card.summary',
|
|
|
|
params: {id: claim.id}
|
|
|
|
}">
|
|
|
|
<td>{{::claim.id}}</td>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
vn-click-stop="clientDescriptor.show($event, claim.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{::claim.socialName}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td center shrink-date>{{::claim.created | date:'dd/MM/yyyy'}}</td>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
vn-click-stop="workerDescriptor.show($event, claim.workerFk)"
|
|
|
|
class="link" >
|
|
|
|
{{::claim.workerName}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="chip {{::$ctrl.stateColor(claim)}}">
|
|
|
|
{{::claim.description}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td shrink>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="$ctrl.preview(claim)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="preview">
|
|
|
|
</vn-icon-button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
</smart-table>
|
|
|
|
</vn-card>
|
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
|
2022-02-28 06:57:46 +00:00
|
|
|
claim="$ctrl.claimSelected"
|
|
|
|
parent-reload="$ctrl.reload()">
|
2020-04-25 09:50:04 +00:00
|
|
|
</vn-claim-summary>
|
2019-10-26 23:30:01 +00:00
|
|
|
</vn-popup>
|