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

58 lines
1.7 KiB
HTML
Raw Normal View History

<vn-crud-model
vn-id="model"
url="ItemBarcodes"
fields="['id', 'itemFk', 'code']"
2020-03-18 13:08:04 +00:00
link="{itemFk: $ctrl.$params.id}"
data="barcodes"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"
data="barcodes"
form="form">
</vn-watcher>
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="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"
vn-acl="buyer, replenisher"
vn-focus>
2018-04-04 17:59:03 +00:00
</vn-textfield>
<vn-none>
<vn-icon-button
2018-04-05 07:06:35 +00:00
vn-acl="buyer,replenisher"
pointer
vn-tooltip="Remove barcode"
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 barcode"
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>
2020-12-13 12:54:17 +00:00
<vn-submit
disabled="!watcher.dataChanged()"
2020-12-13 12:54:17 +00:00
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> -->
2018-04-04 17:59:03 +00:00
</vn-button-bar>
</form>