2020-12-31 13:18:06 +00:00
|
|
|
<mg-ajax path="Claims/updateClaim/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
2018-08-29 07:45:37 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
data="$ctrl.claim"
|
2020-12-31 13:18:06 +00:00
|
|
|
form="form"
|
|
|
|
save="patch">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-watcher>
|
2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="ClaimStates"
|
|
|
|
data="claimStates">
|
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-08-29 07:45:37 +00:00
|
|
|
<vn-horizontal>
|
2019-10-15 14:19:35 +00:00
|
|
|
<vn-textfield
|
2019-01-11 07:03:36 +00:00
|
|
|
label="Client"
|
2019-10-15 14:19:35 +00:00
|
|
|
ng-model="$ctrl.claim.client.name"
|
|
|
|
readonly="true">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2019-06-04 09:00:05 +00:00
|
|
|
label="Created"
|
2019-11-14 13:40:19 +00:00
|
|
|
field="::$ctrl.claim.created | date:'yyyy-MM-dd HH:mm'"
|
2019-10-15 14:19:35 +00:00
|
|
|
readonly="true">
|
|
|
|
</vn-textfield>
|
2019-06-04 09:00:05 +00:00
|
|
|
</vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-horizontal>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-autocomplete
|
2019-01-31 13:14:39 +00:00
|
|
|
disabled="false"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.workerFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients/activeWorkersWithRole"
|
2019-01-31 13:14:39 +00:00
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
where="{role: 'employee'}"
|
2019-09-02 10:23:49 +00:00
|
|
|
label="Attended by">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.claimStateFk"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="claimStates"
|
2018-08-29 07:45:37 +00:00
|
|
|
show-field="description"
|
|
|
|
value-field="id"
|
2018-08-29 09:43:25 +00:00
|
|
|
label="Claim state"
|
2020-05-18 11:46:45 +00:00
|
|
|
order="priority ASC"
|
2018-08-29 09:43:25 +00:00
|
|
|
vn-focus>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-horizontal>
|
2018-08-29 07:45:37 +00:00
|
|
|
<vn-textarea
|
|
|
|
label="Observation"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.observation"
|
|
|
|
rule>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-textarea>
|
2019-10-09 22:47:29 +00:00
|
|
|
</vn-horizontal>
|
2020-06-03 12:46:58 +00:00
|
|
|
<vn-horizontal>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-check
|
|
|
|
class="vn-mr-md"
|
2020-06-03 12:46:58 +00:00
|
|
|
label="Pick up"
|
2020-06-04 06:21:08 +00:00
|
|
|
ng-model="$ctrl.claim.hasToPickUp"
|
2020-10-26 11:16:57 +00:00
|
|
|
vn-acl="claimManager"
|
|
|
|
info="When checked will notify to the salesPerson">
|
2020-06-03 12:46:58 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-15 16:24:13 +00:00
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Save">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Undo changes"
|
|
|
|
disabled="!watcher.dataChanged()"
|
2020-03-16 10:58:14 +00:00
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|