2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="item"
|
2022-04-11 06:02:05 +00:00
|
|
|
description="$ctrl.item.name"
|
|
|
|
summary="$ctrl.$.summary">
|
2020-04-30 10:48:52 +00:00
|
|
|
<slot-menu>
|
2020-05-06 12:38:09 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="regularize.show()"
|
|
|
|
name="regularizeStock"
|
|
|
|
translate>
|
|
|
|
Regularize stock
|
|
|
|
</vn-item>
|
2020-06-01 11:38:59 +00:00
|
|
|
<vn-item
|
|
|
|
ng-click="clone.show()"
|
|
|
|
name="cloneItem"
|
|
|
|
translate>
|
|
|
|
Clone
|
|
|
|
</vn-item>
|
2020-04-30 10:48:52 +00:00
|
|
|
</slot-menu>
|
2020-05-06 12:38:09 +00:00
|
|
|
<slot-before>
|
2020-11-27 12:10:39 +00:00
|
|
|
<div class="photo" text-center>
|
|
|
|
<img vn-id="photo"
|
2023-02-07 12:40:39 +00:00
|
|
|
ng-src="{{$root.imagePath('catalog', '200x200', $ctrl.item.id)}}"
|
2020-11-27 12:10:39 +00:00
|
|
|
zoom-image="{{$root.imagePath('catalog', '1600x900', $ctrl.item.id)}}"
|
|
|
|
on-error-src/>
|
|
|
|
<vn-float-button ng-click="uploadPhoto.show('catalog', $ctrl.item.id)"
|
|
|
|
icon="edit"
|
2020-12-11 14:04:55 +00:00
|
|
|
vn-visible-by="catalogPhotos">
|
2020-11-27 12:10:39 +00:00
|
|
|
</vn-float-button>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2020-05-06 12:38:09 +00:00
|
|
|
<vn-horizontal class="item-state">
|
|
|
|
<vn-one>
|
|
|
|
<p translate>Visible</p>
|
|
|
|
<p>{{$ctrl.visible | dashIfEmpty}}</p>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<p translate>Available</p>
|
|
|
|
<p>{{$ctrl.available | dashIfEmpty}}</p>
|
|
|
|
</vn-one>
|
2023-02-07 12:40:39 +00:00
|
|
|
<vn-one>
|
|
|
|
<p>
|
|
|
|
<vn-icon
|
|
|
|
ng-if="$ctrl.showIcon"
|
|
|
|
icon="info_outline"
|
|
|
|
vn-tooltip="{{$ctrl.warehouseText}}"
|
|
|
|
pointer>
|
|
|
|
</vn-icon>
|
|
|
|
</p>
|
|
|
|
</vn-one>
|
2020-05-06 12:38:09 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</slot-before>
|
|
|
|
<slot-body>
|
2019-01-21 14:21:24 +00:00
|
|
|
<div class="attributes">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2020-09-03 13:11:16 +00:00
|
|
|
label="Buyer">
|
2023-02-07 12:40:39 +00:00
|
|
|
<span
|
2020-09-03 13:11:16 +00:00
|
|
|
ng-click="workerDescriptor.show($event, $ctrl.item.itemType.worker.userFk)"
|
|
|
|
class="link">
|
|
|
|
{{$ctrl.item.itemType.worker.user.name}}
|
|
|
|
</span>
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
2018-04-26 14:41:08 +00:00
|
|
|
<vn-label-value
|
2021-02-26 10:36:22 +00:00
|
|
|
label="{{$ctrl.item.tag5}}"
|
2023-02-07 12:40:39 +00:00
|
|
|
ng-if="$ctrl.item.value5"
|
2021-02-26 10:36:22 +00:00
|
|
|
value="{{$ctrl.item.value5}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
2023-02-07 12:40:39 +00:00
|
|
|
label="{{$ctrl.item.tag6}}"
|
|
|
|
ng-if="$ctrl.item.value6"
|
2021-02-26 10:36:22 +00:00
|
|
|
value="{{$ctrl.item.value6}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
2023-02-07 12:40:39 +00:00
|
|
|
label="{{$ctrl.item.tag7}}"
|
|
|
|
ng-if="$ctrl.item.value7"
|
2021-02-26 10:36:22 +00:00
|
|
|
value="{{$ctrl.item.value7}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
2023-02-07 12:40:39 +00:00
|
|
|
label="{{$ctrl.item.tag8}}"
|
|
|
|
ng-if="$ctrl.item.value8"
|
2021-02-26 10:36:22 +00:00
|
|
|
value="{{$ctrl.item.value8}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2019-03-04 19:00:12 +00:00
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Item inactive"
|
|
|
|
icon="icon-unavailable"
|
2020-12-04 12:40:58 +00:00
|
|
|
ng-if="$ctrl.item.isActive == false">
|
2019-03-04 19:00:12 +00:00
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<div ng-transclude="btnOne"></div>
|
|
|
|
<div ng-transclude="btnTwo"></div>
|
|
|
|
<div ng-transclude="btnThree"></div>
|
|
|
|
</div>
|
|
|
|
</slot-body>
|
|
|
|
</vn-descriptor-content>
|
2018-11-12 12:12:25 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="regularize"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-open="$ctrl.warehouseFk = $ctrl.vnConfig.warehouseFk"
|
|
|
|
on-close="$ctrl.clearRegularizeDialog()"
|
2020-05-06 12:38:09 +00:00
|
|
|
on-accept="$ctrl.saveRegularize()"
|
|
|
|
message="Regularize stock">
|
2018-11-12 12:12:25 +00:00
|
|
|
<tpl-body>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-textfield
|
|
|
|
label="Type the visible quantity"
|
|
|
|
ng-model="$ctrl.quantity"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Warehouse"
|
|
|
|
ng-model="$ctrl.warehouseFk"
|
|
|
|
url="Warehouses">
|
|
|
|
</vn-autocomplete>
|
2018-11-12 12:12:25 +00:00
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
2019-10-30 15:57:14 +00:00
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Save</button>
|
2018-11-12 12:12:25 +00:00
|
|
|
</tpl-buttons>
|
2020-05-13 15:51:27 +00:00
|
|
|
</vn-dialog>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="clone"
|
|
|
|
on-accept="$ctrl.onCloneAccept()"
|
|
|
|
question="Do you want to clone this item?"
|
|
|
|
message="All it's properties will be copied">
|
|
|
|
</vn-confirm>
|
2023-02-07 12:40:39 +00:00
|
|
|
<vn-worker-descriptor-popover
|
2020-09-03 13:11:16 +00:00
|
|
|
vn-id="workerDescriptor">
|
2020-11-27 12:10:39 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2022-04-11 06:02:05 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-item-summary item="$ctrl.item"></vn-item-summary>
|
|
|
|
</vn-popup>
|
2020-11-27 12:10:39 +00:00
|
|
|
|
|
|
|
<!-- Upload photo dialog -->
|
2023-02-07 12:40:39 +00:00
|
|
|
<vn-upload-photo
|
|
|
|
vn-id="uploadPhoto"
|
2020-11-27 12:10:39 +00:00
|
|
|
on-response="$ctrl.onUploadResponse()">
|
2023-02-07 12:40:39 +00:00
|
|
|
</vn-upload-photo>
|