2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2020-03-13 19:33:12 +00:00
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-auto-search>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-xl vn-mb-xl">
|
|
|
|
<vn-card>
|
2021-02-24 13:49:58 +00:00
|
|
|
<vn-table
|
|
|
|
model="model"
|
|
|
|
show-fields="$ctrl.showFields"
|
|
|
|
vn-smart-table="itemIndex">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th field="id" shrink>Id</vn-th>
|
|
|
|
<vn-th field="grouping" shrink>Grouping</vn-th>
|
|
|
|
<vn-th field="packing" shrink>Packing</vn-th>
|
|
|
|
<vn-th field="name">Description</vn-th>
|
|
|
|
<vn-th field="stems" shrink>Stems</vn-th>
|
|
|
|
<vn-th field="size" shrink>Size</vn-th>
|
|
|
|
<vn-th field="typeFk" shrink>Type</vn-th>
|
|
|
|
<vn-th field="category" shrink>Category</vn-th>
|
|
|
|
<vn-th field="intrastat" shrink>Intrastat</vn-th>
|
|
|
|
<vn-th field="origin" shrink>Origin</vn-th>
|
|
|
|
<vn-th field="salesperson" shrink>Buyer</vn-th>
|
|
|
|
<vn-th field="density" shrink>Density</vn-th>
|
|
|
|
<vn-th field="stemMultiplier" shrink>Multiplier</vn-th>
|
|
|
|
<vn-th field="active" shrink>Active</vn-th>
|
2021-09-08 08:39:54 +00:00
|
|
|
<vn-th field="landed" shrink-date>Landed</vn-th>
|
2021-02-24 13:49:58 +00:00
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<a ng-repeat="item in model.data"
|
|
|
|
class="clickable vn-tr search-result"
|
|
|
|
ui-sref="item.card.summary({id: item.id})">
|
|
|
|
<vn-td shrink>
|
|
|
|
<img
|
|
|
|
ng-src="{{::$root.imagePath('catalog', '50x50', item.id)}}"
|
|
|
|
zoom-image="{{::$root.imagePath('catalog', '1600x900', item.id)}}"
|
|
|
|
vn-click-stop
|
|
|
|
on-error-src/>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<span
|
|
|
|
vn-click-stop="itemDescriptor.show($event, item.id)"
|
|
|
|
class="link">
|
|
|
|
{{::item.id}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>{{::item.grouping | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td shrink>{{::item.packing | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td vn-fetched-tags>
|
|
|
|
<vn-one title="{{::item.name}}">{{::item.name}}</vn-one>
|
|
|
|
<vn-one ng-if="::item.subName">
|
|
|
|
<h3 title="{{::item.subName}}">{{::item.subName}}</h3>
|
|
|
|
</vn-one>
|
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="item"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>{{::item.stems}}</vn-td>
|
|
|
|
<vn-td shrink>{{::item.size}}</vn-td>
|
|
|
|
<vn-td shrink title="{{::item.typeName}}">
|
|
|
|
{{::item.typeName}}
|
|
|
|
</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.userName}}">
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
vn-click-stop="workerDescriptor.show($event, item.buyerFk)">
|
|
|
|
{{::item.userName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>{{::item.density}}</vn-td>
|
|
|
|
<vn-td shrink >{{::item.stemMultiplier}}</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-check
|
|
|
|
disabled="true"
|
|
|
|
ng-model="::item.isActive">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2021-09-08 08:39:54 +00:00
|
|
|
<vn-td shrink-date>{{::item.landed | date:'dd/MM/yyyy'}}</vn-td>
|
2021-02-24 13:49:58 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-horizontal class="buttons">
|
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="clone.show(item.id)"
|
|
|
|
vn-tooltip="Clone"
|
|
|
|
icon="icon-clone">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="$ctrl.preview(item)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="preview">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
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>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-item-descriptor-popover
|
2021-05-21 13:31:05 +00:00
|
|
|
vn-id="item-descriptor"
|
|
|
|
warehouse-fk="$ctrl.vnConfig.warehouseFk">
|
2020-04-25 09:50:04 +00:00
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
2021-05-21 13:31:05 +00:00
|
|
|
vn-id="worker-descriptor">
|
2020-04-25 09:50:04 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2018-03-01 20:18:43 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="clone"
|
2020-04-25 09:50:04 +00:00
|
|
|
on-accept="$ctrl.onCloneAccept($data)"
|
2018-03-01 20:18:43 +00:00
|
|
|
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>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-popup vn-id="preview">
|
|
|
|
<vn-item-summary
|
|
|
|
item="$ctrl.itemSelected">
|
|
|
|
</vn-item-summary>
|
2021-02-17 14:38:57 +00:00
|
|
|
</vn-popup>
|
2021-02-24 13:49:58 +00:00
|
|
|
<vn-contextmenu
|
|
|
|
vn-id="contextmenu"
|
|
|
|
targets="['vn-data-viewer']"
|
|
|
|
model="model"
|
2021-02-17 14:38:57 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
2021-02-24 13:49:58 +00:00
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.excludeSelection()">
|
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.removeFilter()">
|
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-click="contextmenu.removeAllFilters()">
|
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
|
|
|
</slot-menu>
|
2021-02-17 14:38:57 +00:00
|
|
|
</vn-contextmenu>
|