salix/modules/item/front/niche/index.html

62 lines
1.8 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="ItemNiches"
fields="['id', 'itemFk', 'warehouseFk', 'code']"
2020-03-17 13:43:46 +00:00
link="{itemFk: $ctrl.$params.id}"
data="niches"
auto-load="true">
</vn-crud-model>
2018-04-04 17:59:03 +00:00
<vn-watcher
vn-id="watcher"
data="niches"
2018-04-04 17:59:03 +00:00
form="form">
</vn-watcher>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="Warehouses"
2020-09-21 09:17:40 +00:00
data="warehouses"
2020-09-17 18:12:52 +00:00
order="name"
vn-id="warehouse-model">
</vn-crud-model>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal ng-repeat="niche in niches track by $index">
2020-09-17 18:12:52 +00:00
<vn-autocomplete vn-one vn-focus
2020-09-21 09:17:40 +00:00
data="warehouses"
2020-09-17 18:12:52 +00:00
label="Warehouse"
2018-04-04 17:59:03 +00:00
show-field="name"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="niche.warehouseFk"
2020-09-17 18:12:52 +00:00
vn-acl="buyer,replenisher">
2018-04-04 17:59:03 +00:00
</vn-autocomplete>
<vn-textfield
2018-04-05 07:06:35 +00:00
vn-three
2018-04-04 17:59:03 +00:00
label="Code"
2019-10-09 22:47:29 +00:00
ng-model="niche.code"
2019-10-11 15:38:04 +00:00
rule="ItemNiche"
2018-04-04 17:59:03 +00:00
vn-acl="buyer,replenisher">
</vn-textfield>
<vn-none>
<vn-icon-button
vn-acl="buyer,replenisher"
pointer
vn-tooltip="Remove niche"
icon="delete"
ng-click="model.remove($index)">
</vn-icon-button>
</vn-none>
2018-04-04 17:59:03 +00:00
</vn-horizontal>
2018-04-05 07:06:35 +00:00
<vn-one>
<vn-icon-button
2018-04-05 07:06:35 +00:00
vn-acl="buyer, replenisher"
vn-tooltip="Add niche"
vn-bind="+"
icon="add_circle"
ng-click="model.insert()">
</vn-icon-button>
2018-04-05 07:06:35 +00:00
</vn-one>
2018-04-04 17:59:03 +00:00
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
</vn-button-bar>
</form>