2018-08-30 06:50:03 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="ItemBarcodes"
|
2018-08-30 06:50:03 +00:00
|
|
|
fields="['id', 'itemFk', 'code']"
|
2020-03-18 13:08:04 +00:00
|
|
|
link="{itemFk: $ctrl.$params.id}"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="barcodes"
|
|
|
|
auto-load="true">
|
2018-08-30 06:50:03 +00:00
|
|
|
</vn-crud-model>
|
2018-05-31 09:52:39 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2018-08-30 06:50:03 +00:00
|
|
|
data="barcodes"
|
2018-05-31 09:52:39 +00:00
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
2019-11-10 10:08:44 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-08-30 06:50:03 +00:00
|
|
|
<vn-horizontal ng-repeat="barcode in barcodes track by $index">
|
2018-04-04 17:59:03 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-three
|
|
|
|
label="Code"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="barcode.code"
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-acl="buyer, replenisher"
|
|
|
|
vn-focus>
|
2018-04-04 17:59:03 +00:00
|
|
|
</vn-textfield>
|
2018-08-30 06:50:03 +00:00
|
|
|
<vn-none>
|
2019-02-21 10:40:27 +00:00
|
|
|
<vn-icon-button
|
2018-04-05 07:06:35 +00:00
|
|
|
vn-acl="buyer,replenisher"
|
|
|
|
pointer
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-tooltip="Remove barcode"
|
2018-12-11 07:50:54 +00:00
|
|
|
icon="delete"
|
2018-08-30 06:50:03 +00:00
|
|
|
ng-click="model.remove($index)">
|
2019-02-21 10:40:27 +00:00
|
|
|
</vn-icon-button>
|
2018-08-30 06:50:03 +00:00
|
|
|
</vn-none>
|
2018-04-04 17:59:03 +00:00
|
|
|
</vn-horizontal>
|
2018-04-05 07:06:35 +00:00
|
|
|
<vn-one>
|
2018-04-19 12:46:06 +00:00
|
|
|
<vn-icon-button
|
2018-04-05 07:06:35 +00:00
|
|
|
vn-acl="buyer, replenisher"
|
2018-04-19 12:46:06 +00:00
|
|
|
vn-tooltip="Add barcode"
|
2018-04-23 09:17:30 +00:00
|
|
|
vn-bind="+"
|
2018-05-22 09:44:24 +00:00
|
|
|
icon="add_circle"
|
2018-08-30 06:50:03 +00:00
|
|
|
ng-click="model.insert()">
|
2018-04-19 12:46:06 +00:00
|
|
|
</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>
|