2018-09-05 09:48:38 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimDevelopments"
|
2018-09-05 09:48:38 +00:00
|
|
|
fields="['id', 'claimFk', 'claimReasonFk', 'claimResultFk', 'claimResponsibleFk', 'workerFk', 'claimRedeliveryFk']"
|
|
|
|
link="{claimFk: $ctrl.$state.params.id}"
|
|
|
|
filter="$ctrl.filter"
|
2019-01-14 10:47:34 +00:00
|
|
|
data="claimDevelopments"
|
|
|
|
auto-load="true">
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimReasons"
|
2018-09-05 09:48:38 +00:00
|
|
|
data="claimReasons"
|
2019-01-14 10:47:34 +00:00
|
|
|
order="description"
|
|
|
|
auto-load="true">
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimResults"
|
2018-09-05 09:48:38 +00:00
|
|
|
data="claimResults"
|
2019-01-14 10:47:34 +00:00
|
|
|
order="description"
|
|
|
|
auto-load="true">
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimResponsibles"
|
2018-09-05 09:48:38 +00:00
|
|
|
data="claimResponsibles"
|
2019-01-14 10:47:34 +00:00
|
|
|
order="description"
|
|
|
|
auto-load="true">
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-crud-model
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ClaimRedeliveries"
|
2018-09-05 09:48:38 +00:00
|
|
|
data="claimRedeliveries"
|
2019-01-14 10:47:34 +00:00
|
|
|
order="description"
|
|
|
|
auto-load="true">
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="claimDevelopments"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-vertical class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-09-05 09:48:38 +00:00
|
|
|
<vn-vertical>
|
2019-06-20 11:50:58 +00:00
|
|
|
<form name="form">
|
2019-01-27 23:26:01 +00:00
|
|
|
<vn-horizontal ng-repeat="claimDevelopment in claimDevelopments">
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
|
|
|
label="Reason"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="claimDevelopment.claimReasonFk"
|
2019-01-27 23:26:01 +00:00
|
|
|
data="claimReasons"
|
|
|
|
fields="['id', 'description']"
|
|
|
|
show-field="description"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Result"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="claimDevelopment.claimResultFk"
|
2019-01-27 23:26:01 +00:00
|
|
|
data="claimResults"
|
|
|
|
fields="['id', 'description']"
|
|
|
|
show-field="description"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Responsible"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="claimDevelopment.claimResponsibleFk"
|
2019-01-27 23:26:01 +00:00
|
|
|
data="claimResponsibles"
|
|
|
|
fields="['id', 'description']"
|
|
|
|
show-field="description"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="claimDevelopment.workerFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients/activeWorkersWithRole"
|
2019-01-31 13:14:39 +00:00
|
|
|
show-field="nickname"
|
2019-01-27 23:26:01 +00:00
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
2019-01-31 13:14:39 +00:00
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Worker"
|
2019-01-27 23:26:01 +00:00
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Redelivery"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="claimDevelopment.claimRedeliveryFk"
|
2019-01-27 23:26:01 +00:00
|
|
|
data="claimRedeliveries"
|
|
|
|
fields="['id', 'description']"
|
|
|
|
show-field="description"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-icon-button
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-my-md"
|
2019-01-27 23:26:01 +00:00
|
|
|
vn-tooltip="Remove sale"
|
|
|
|
icon="delete"
|
|
|
|
ng-click="model.remove($index)"
|
|
|
|
tabindex="-1"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
2018-09-05 09:48:38 +00:00
|
|
|
</form>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-one class="vn-pt-md">
|
2018-09-05 09:48:38 +00:00
|
|
|
<vn-icon-button
|
|
|
|
vn-bind="+"
|
2018-09-13 15:00:01 +00:00
|
|
|
vn-tooltip="Add sale"
|
2018-09-05 09:48:38 +00:00
|
|
|
icon="add_circle"
|
2018-09-05 11:47:53 +00:00
|
|
|
ng-click="model.insert()"
|
|
|
|
vn-acl="salesAssistant">
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-icon-button>
|
|
|
|
</vn-one>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2018-09-05 11:47:53 +00:00
|
|
|
<vn-submit
|
|
|
|
label="Save"
|
|
|
|
ng-click="$ctrl.onSubmit()"
|
|
|
|
vn-acl="salesAssistant">
|
|
|
|
</vn-submit>
|
2018-09-05 09:48:38 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</vn-vertical>
|