salix/modules/claim/front/development/index.html

122 lines
4.4 KiB
HTML
Raw Normal View History

2018-09-05 09:48:38 +00:00
<vn-crud-model
vn-id="model"
url="claim/api/ClaimDevelopments"
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
url="claim/api/ClaimReasons"
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
url="claim/api/ClaimResults"
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
url="claim/api/ClaimResponsibles"
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
url="claim/api/ClaimRedeliveries"
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>
2018-12-14 11:56:21 +00:00
<vn-vertical compact>
2018-09-05 09:48:38 +00:00
<vn-card pad-large>
<vn-vertical>
<form name="form" ng-submit="$ctrl.onSubmit()">
2019-01-27 23:26:01 +00:00
<vn-horizontal ng-repeat="claimDevelopment in claimDevelopments">
<vn-autocomplete
vn-one
vn-focus
label="Reason"
field="claimDevelopment.claimReasonFk"
data="claimReasons"
fields="['id', 'description']"
show-field="description"
vn-acl="salesAssistant">
</vn-autocomplete>
<vn-autocomplete
vn-one
label="Result"
field="claimDevelopment.claimResultFk"
data="claimResults"
fields="['id', 'description']"
show-field="description"
vn-acl="salesAssistant">
</vn-autocomplete>
<vn-autocomplete
vn-one
label="Responsible"
field="claimDevelopment.claimResponsibleFk"
data="claimResponsibles"
fields="['id', 'description']"
show-field="description"
vn-acl="salesAssistant">
</vn-autocomplete>
<vn-autocomplete
vn-one
label="Worker"
field="claimDevelopment.workerFk"
url="/client/api/Clients/activeWorkersWithRole"
search-function="{firstName: $search}"
where="{role: 'employee'}"
show-field="firstName"
value-field="id"
vn-acl="salesAssistant">
<tpl-item>{{firstName}} {{name}}</tpl-item>
</vn-autocomplete>
<vn-autocomplete
vn-one
label="Redelivery"
field="claimDevelopment.claimRedeliveryFk"
data="claimRedeliveries"
fields="['id', 'description']"
show-field="description"
vn-acl="salesAssistant">
</vn-autocomplete>
<vn-icon-button
medium-grey
margin-medium-v
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>
<vn-one pad-medium-top>
<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>