salix/modules/ticket/front/descriptor/index.html

104 lines
3.7 KiB
HTML
Raw Permalink Normal View History

2020-05-06 12:38:09 +00:00
<vn-descriptor-content
module="ticket"
description="$ctrl.ticket.client.name"
summary="$ctrl.$.summary">
2020-11-09 13:52:25 +00:00
<slot-dot-menu>
2021-05-03 10:09:12 +00:00
<vn-ticket-descriptor-menu
vn-id="descriptorMenu"
ticket-id="$ctrl.ticket.id"
parent-reload="$ctrl.cardReload()"
/>
2020-11-09 13:52:25 +00:00
</slot-dot-menu>
<slot-body>
2019-01-21 14:21:24 +00:00
<div class="attributes">
<vn-label-value
label="Client"
value="{{$ctrl.ticket.client.id}}">
</vn-label-value>
<vn-label-value
label="State"
2020-06-23 11:40:49 +00:00
value="{{$ctrl.ticket.ticketState.state.name}}">
2019-01-21 14:21:24 +00:00
</vn-label-value>
<vn-label-value
2020-09-03 13:11:16 +00:00
label="Sales person">
<span
ng-click="workerDescriptor.show($event, $ctrl.ticket.client.salesPersonFk)"
class="link">
{{$ctrl.ticket.client.salesPersonUser.name}}
2020-09-03 13:11:16 +00:00
</span>
2019-01-21 14:21:24 +00:00
</vn-label-value>
<vn-label-value
label="Shipped"
value="{{$ctrl.ticket.shipped | date: 'dd/MM/yyyy HH:mm' }}">
2019-01-21 14:21:24 +00:00
</vn-label-value>
<vn-label-value
label="Agency"
2019-01-21 14:21:24 +00:00
value="{{$ctrl.ticket.agencyMode.name}}">
</vn-label-value>
<vn-label-value
label="Warehouse"
2019-01-21 14:21:24 +00:00
value="{{$ctrl.ticket.warehouse.name}}">
</vn-label-value>
<vn-label-value
label="Alias"
2019-01-21 14:21:24 +00:00
value="{{$ctrl.ticket.nickname}}">
</vn-label-value>
</div>
<div class="icons">
<vn-icon
2019-01-21 14:21:24 +00:00
vn-tooltip="Client inactive"
icon="icon-disabled"
2020-12-04 12:40:58 +00:00
ng-if="$ctrl.ticket.client.isActive == false">
2018-09-04 09:49:00 +00:00
</vn-icon>
<vn-icon
2019-01-30 13:13:47 +00:00
vn-tooltip="Client frozen"
2019-01-21 14:21:24 +00:00
icon="icon-frozen"
2020-12-04 12:40:58 +00:00
ng-if="$ctrl.ticket.client.isFreezed == true">
2018-09-04 09:49:00 +00:00
</vn-icon>
<vn-icon
2019-01-21 14:21:24 +00:00
vn-tooltip="Client has debt"
icon="icon-risk"
ng-if="$ctrl.ticket.problem.includes('hasRisk')">
2018-09-04 09:49:00 +00:00
</vn-icon>
<vn-icon
2019-01-21 14:21:24 +00:00
vn-tooltip="Client not checked"
icon="icon-no036"
2020-12-04 12:40:58 +00:00
ng-if="$ctrl.ticket.client.isTaxDataChecked == false">
2019-01-21 14:21:24 +00:00
</vn-icon>
<vn-icon
vn-tooltip="Deleted ticket"
icon="icon-deletedTicket"
2020-12-04 12:40:58 +00:00
ng-if="$ctrl.ticket.isDeleted == true">
</vn-icon>
2019-01-21 14:21:24 +00:00
</div>
<div class="quicklinks">
<div ng-transclude="btnOne">
<vn-quick-link
tooltip="Client card"
state="['client.card.summary', {id: $ctrl.ticket.clientFk}]"
icon="person">
</vn-quick-link>
</div>
<div ng-transclude="btnTwo">
2020-07-03 11:28:49 +00:00
<vn-quick-link
tooltip="Client ticket list"
state="['ticket.index', {q: $ctrl.filter}]"
icon="icon-ticket">
</vn-quick-link>
</div>
<div ng-transclude="btnThree">
<vn-quick-link
tooltip="New order"
state="['order.create', {clientFk: $ctrl.ticket.clientFk}]"
icon="icon-basketadd">
</vn-quick-link>
</div>
2019-01-21 14:21:24 +00:00
</div>
</slot-body>
2021-02-25 14:51:51 +00:00
</vn-descriptor-content>
<vn-worker-descriptor-popover
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
<vn-popup vn-id="summary">
<vn-ticket-summary ticket="$ctrl.ticket"></vn-ticket-summary>
</vn-popup>