121 lines
4.2 KiB
HTML
121 lines
4.2 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="ClaimDevelopments"
|
|
fields="['id', 'claimFk', 'claimReasonFk', 'claimResultFk', 'claimResponsibleFk', 'workerFk', 'claimRedeliveryFk']"
|
|
link="{claimFk: $ctrl.$params.id}"
|
|
filter="$ctrl.filter"
|
|
data="claimDevelopments"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-crud-model
|
|
url="ClaimReasons"
|
|
data="claimReasons"
|
|
order="description"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-crud-model
|
|
url="ClaimResults"
|
|
data="claimResults"
|
|
order="description"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-crud-model
|
|
url="ClaimResponsibles"
|
|
data="claimResponsibles"
|
|
order="description"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-crud-model
|
|
url="ClaimRedeliveries"
|
|
data="claimRedeliveries"
|
|
order="description"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
data="claimDevelopments"
|
|
form="form">
|
|
</vn-watcher>
|
|
<vn-vertical class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-vertical>
|
|
<form name="form">
|
|
<vn-horizontal ng-repeat="claimDevelopment in claimDevelopments">
|
|
<vn-autocomplete
|
|
vn-focus
|
|
label="Reason"
|
|
ng-model="claimDevelopment.claimReasonFk"
|
|
data="claimReasons"
|
|
fields="['id', 'description']"
|
|
show-field="description"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
label="Result"
|
|
ng-model="claimDevelopment.claimResultFk"
|
|
data="claimResults"
|
|
fields="['id', 'description']"
|
|
show-field="description"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
label="Responsible"
|
|
ng-model="claimDevelopment.claimResponsibleFk"
|
|
data="claimResponsibles"
|
|
fields="['id', 'description']"
|
|
show-field="description"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
ng-model="claimDevelopment.workerFk"
|
|
url="Workers/activeWithInheritedRole"
|
|
show-field="nickname"
|
|
search-function="{firstName: $search}"
|
|
value-field="id"
|
|
where="{role: 'employee'}"
|
|
label="Worker"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
label="Redelivery"
|
|
ng-model="claimDevelopment.claimRedeliveryFk"
|
|
data="claimRedeliveries"
|
|
fields="['id', 'description']"
|
|
show-field="description"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-icon-button
|
|
vn-none
|
|
class="vn-my-md"
|
|
vn-tooltip="Remove sale"
|
|
icon="delete"
|
|
ng-click="model.remove($index)"
|
|
tabindex="-1">
|
|
</vn-icon-button>
|
|
</vn-horizontal>
|
|
</form>
|
|
<vn-one class="vn-pt-md">
|
|
<vn-icon-button
|
|
vn-bind="+"
|
|
vn-tooltip="Add sale"
|
|
icon="add_circle"
|
|
ng-click="model.insert()">
|
|
</vn-icon-button>
|
|
</vn-one>
|
|
</vn-vertical>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit
|
|
disabled="!watcher.dataChanged()"
|
|
ng-click="$ctrl.onSubmit()"
|
|
label="Save">
|
|
</vn-submit>
|
|
<!-- # #2680 Undo changes button bugs -->
|
|
<!-- <vn-button
|
|
class="cancel"
|
|
label="Undo changes"
|
|
disabled="!watcher.dataChanged()"
|
|
ng-click="watcher.loadOriginalData()">
|
|
</vn-button> -->
|
|
</vn-button-bar>
|
|
</vn-vertical> |