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

121 lines
4.2 KiB
HTML
Raw Normal View History

2018-09-05 09:48:38 +00:00
<vn-crud-model
vn-id="model"
url="ClaimDevelopments"
2018-09-05 09:48:38 +00:00
fields="['id', 'claimFk', 'claimReasonFk', 'claimResultFk', 'claimResponsibleFk', 'workerFk', 'claimRedeliveryFk']"
2020-03-16 10:58:14 +00:00
link="{claimFk: $ctrl.$params.id}"
2018-09-05 09:48:38 +00:00
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="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
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
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
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">
<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-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"
2019-11-28 11:54:34 +00:00
rule>
2019-01-27 23:26:01 +00:00
</vn-autocomplete>
<vn-autocomplete
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"
2019-11-28 11:54:34 +00:00
rule>
2019-01-27 23:26:01 +00:00
</vn-autocomplete>
<vn-autocomplete
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"
2019-11-28 11:54:34 +00:00
rule>
2019-01-27 23:26:01 +00:00
</vn-autocomplete>
2020-04-25 09:50:04 +00:00
<vn-autocomplete
2019-10-09 22:47:29 +00:00
ng-model="claimDevelopment.workerFk"
url="Workers/activeWithInheritedRole"
show-field="nickname"
2019-01-27 23:26:01 +00:00
search-function="{firstName: $search}"
value-field="id"
where="{role: 'employee'}"
label="Worker"
2019-11-28 11:54:34 +00:00
rule>
2019-01-27 23:26:01 +00:00
</vn-autocomplete>
<vn-autocomplete
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"
2019-11-28 11:54:34 +00:00
rule>
2019-01-27 23:26:01 +00:00
</vn-autocomplete>
<vn-icon-button
2020-04-25 09:50:04 +00:00
vn-none
class="vn-my-md"
2019-01-27 23:26:01 +00:00
vn-tooltip="Remove sale"
icon="delete"
ng-click="model.remove($index)"
2019-11-28 11:54:34 +00:00
tabindex="-1">
2019-01-27 23:26:01 +00:00
</vn-icon-button>
</vn-horizontal>
2018-09-05 09:48:38 +00:00
</form>
<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"
2019-11-28 11:54:34 +00:00
ng-click="model.insert()">
2018-09-05 09:48:38 +00:00
</vn-icon-button>
</vn-one>
</vn-vertical>
</vn-card>
<vn-button-bar>
2020-12-15 16:24:13 +00:00
<vn-submit
disabled="!watcher.dataChanged()"
ng-click="$ctrl.onSubmit()"
label="Save">
2018-09-05 11:47:53 +00:00
</vn-submit>
2020-12-15 16:24:13 +00:00
<!-- # #2680 Undo changes button bugs -->
<!-- <vn-button
class="cancel"
label="Undo changes"
disabled="!watcher.dataChanged()"
ng-click="watcher.loadOriginalData()">
</vn-button> -->
2018-09-05 09:48:38 +00:00
</vn-button-bar>
</vn-vertical>