2018-06-07 21:47:19 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2018-07-06 14:32:23 +00:00
|
|
|
url="/item/api/Items/filter"
|
2019-02-13 08:27:11 +00:00
|
|
|
limit="12"
|
2018-11-26 11:42:37 +00:00
|
|
|
order="isActive DESC, name, id"
|
2018-06-07 21:47:19 +00:00
|
|
|
data="items"
|
2019-02-19 09:15:39 +00:00
|
|
|
auto-load="false">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-crud-model>
|
2019-01-30 22:47:06 +00:00
|
|
|
<div class="content-block">
|
2018-03-01 20:18:43 +00:00
|
|
|
<div class="vn-list">
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-card pad-medium-h>
|
2019-04-05 13:20:12 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-searchbar
|
|
|
|
vn-three
|
|
|
|
panel="vn-item-search-panel"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
2019-04-12 12:33:08 +00:00
|
|
|
info="Search items by id, name or barcode"
|
2019-04-05 13:20:12 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
on-change="$ctrl.onMoreChange(value)"
|
|
|
|
on-open="$ctrl.onMoreOpen()">
|
|
|
|
</vn-icon-menu>
|
|
|
|
</vn-horizontal>
|
2017-12-19 11:29:35 +00:00
|
|
|
</vn-card>
|
2019-02-13 08:27:11 +00:00
|
|
|
</div>
|
2019-05-15 11:07:32 +00:00
|
|
|
<vn-card margin-medium-v margin-huge-bottom>
|
2019-02-19 09:15:39 +00:00
|
|
|
<vn-table model="model" auto-load="false" show-fields="$ctrl.showFields" vn-uvc="itemIndex">
|
2019-02-13 08:27:11 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-03-29 07:01:15 +00:00
|
|
|
<vn-th th-id="picture" shrink></vn-th>
|
|
|
|
<vn-th field="id" shrink>Id</vn-th>
|
|
|
|
<vn-th th-id="grouping" shrink>Grouping</vn-th>
|
|
|
|
<vn-th th-id="packing" shrink>Packing</vn-th>
|
2019-02-13 08:27:11 +00:00
|
|
|
<vn-th th-id="description" style="text-align: center">Description</vn-th>
|
2019-03-29 07:01:15 +00:00
|
|
|
<vn-th th-id="stems" shrink>Stems</vn-th>
|
|
|
|
<vn-th th-id="size" shrink>Size</vn-th>
|
|
|
|
<vn-th th-id="niche" shrink>Niche</vn-th>
|
|
|
|
<vn-th th-id="type" shrink>Type</vn-th>
|
|
|
|
<vn-th th-id="category" shrink>Category</vn-th>
|
|
|
|
<vn-th th-id="intrastat" shrink>Intrastat</vn-th>
|
|
|
|
<vn-th th-id="origin" shrink>Origin</vn-th>
|
|
|
|
<vn-th th-id="salesperson" shrink>Buyer</vn-th>
|
|
|
|
<vn-th th-id="density" shrink>Density</vn-th>
|
2019-02-20 13:38:41 +00:00
|
|
|
<vn-th th-id="active" shrink>Active</vn-th>
|
2019-02-13 08:27:11 +00:00
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<a ng-repeat="item in items"
|
|
|
|
class="clickable vn-tr searchResult"
|
|
|
|
ui-sref="item.card.summary({id: item.id})">
|
|
|
|
<vn-td shrink>
|
|
|
|
<img
|
|
|
|
ng-src="{{::$ctrl.imagesPath}}/50x50/{{::item.image}}"
|
|
|
|
zoom-image="{{::$ctrl.imagesPath}}/1600x900/{{::item.image}}"
|
2019-02-19 09:15:39 +00:00
|
|
|
ng-click="$ctrl.stopEvent($event)"
|
2019-02-13 08:27:11 +00:00
|
|
|
on-error-src/>
|
|
|
|
</vn-td>
|
2019-03-29 07:01:15 +00:00
|
|
|
<vn-td shrink>
|
2019-02-15 11:39:21 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showItemDescriptor($event, item.id)">
|
|
|
|
{{::item.id | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-03-29 07:01:15 +00:00
|
|
|
<vn-td shrink>{{::item.grouping | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td shrink>{{::item.packing | dashIfEmpty}}</vn-td>
|
2019-02-13 08:27:11 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
2019-02-19 11:50:24 +00:00
|
|
|
item="::item"
|
2019-07-02 10:12:15 +00:00
|
|
|
name="::item.name"
|
2019-03-22 14:05:15 +00:00
|
|
|
sub-name="::item.subName">
|
2019-02-13 08:27:11 +00:00
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
2019-03-29 07:01:15 +00:00
|
|
|
<vn-td shrink>{{::item.stems}}</vn-td>
|
|
|
|
<vn-td shrink>{{::item.size}}</vn-td>
|
|
|
|
<vn-td shrink>{{::item.niche}}</vn-td>
|
|
|
|
<vn-td shrink title="{{::item.type}}">
|
|
|
|
{{::item.type}}
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink title="{{::item.category}}">
|
|
|
|
{{::item.category}}
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink title="{{::item.intrastat}}">
|
|
|
|
{{::item.intrastat}}
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>{{::item.origin}}</vn-td>
|
|
|
|
<vn-td shrink title="{{::item.userNickname}}">
|
2019-02-15 11:39:21 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
2019-04-25 12:24:02 +00:00
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, item.buyerFk)">
|
2019-02-15 11:39:21 +00:00
|
|
|
{{::item.userNickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-03-29 07:01:15 +00:00
|
|
|
<vn-td shrink>{{::item.density}}</vn-td>
|
2019-02-20 13:38:41 +00:00
|
|
|
<vn-td shrink>
|
2019-02-13 08:27:11 +00:00
|
|
|
<vn-check
|
|
|
|
disabled="true"
|
2019-02-19 11:50:24 +00:00
|
|
|
field="::item.isActive">
|
2019-02-13 08:27:11 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.cloneItem($event, item)"
|
|
|
|
vn-tooltip="Clone"
|
|
|
|
icon="icon-clone">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, item)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-02-20 15:43:01 +00:00
|
|
|
</vn-card>
|
2019-02-13 08:27:11 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-03-01 20:18:43 +00:00
|
|
|
</div>
|
2018-07-25 13:14:03 +00:00
|
|
|
<a ui-sref="item.create" vn-tooltip="New item" vn-bind="+" fixed-bottom-right>
|
2018-03-01 20:18:43 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-dialog vn-id="preview" class="dialog-summary">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-item-summary item="$ctrl.itemSelected"></vn-item-summary>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="clone"
|
|
|
|
on-response="$ctrl.onCloneAccept(response)"
|
|
|
|
question="Do you want to clone this item?"
|
|
|
|
message="All it's properties will be copied">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-confirm>
|
2019-05-07 09:32:35 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="itemDescriptor"></vn-item-descriptor-popover>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 12:24:02 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|