#1150 descriptor popover intentar abrir con id movimiento
gitea/salix/test This commit looks good Details

This commit is contained in:
Gerard 2019-02-20 18:46:30 +01:00
parent 0cca3bb9ce
commit 4b54b82a9d
4 changed files with 10 additions and 9 deletions

View File

@ -135,14 +135,15 @@ module.exports = Self => {
relation: 'user' relation: 'user'
} }
} }
}, }, {
{
relation: 'atender', relation: 'atender',
scope: { scope: {
include: { include: {
relation: 'user' relation: 'user'
} }
} }
}, {
relation: 'sale'
} }
] ]
}; };

View File

@ -54,7 +54,7 @@
<vn-td number> <vn-td number>
<span <span
ng-show="::request.saleFk" ng-show="::request.saleFk"
ng-click="$ctrl.showItemDescriptor($event, request.sale)" ng-click="$ctrl.showItemDescriptor($event, request.sale.itemFk)"
class="link"> class="link">
{{request.saleFk | zeroFill:6}} {{request.saleFk | zeroFill:6}}
</span> </span>

View File

@ -44,18 +44,18 @@ class Controller {
}); });
} }
showItemDescriptor(event, sale) { showItemDescriptor(event, itemFk) {
this.quicklinks = { this.quicklinks = {
btnThree: { btnThree: {
icon: 'icon-transaction', icon: 'icon-transaction',
state: `item.card.diary({ state: `item.card.diary({
id: ${sale.itemFk}, id: ${itemFk},
ticketFk: ${this.$stateParams.id} ticketFk: ${this.$stateParams.id}
})`, })`,
tooltip: 'Item diary' tooltip: 'Item diary'
} }
}; };
this.$.itemDescriptor.itemFk = sale.itemFk; this.$.itemDescriptor.itemFk = itemFk;
this.$.itemDescriptor.parent = event.target; this.$.itemDescriptor.parent = event.target;
this.$.itemDescriptor.show(); this.$.itemDescriptor.show();
} }

View File

@ -151,7 +151,7 @@
<vn-th>Atender</vn-th> <vn-th>Atender</vn-th>
<vn-th number>Quantity</vn-th> <vn-th number>Quantity</vn-th>
<vn-th number>Price</vn-th> <vn-th number>Price</vn-th>
<vn-th number>Sale id</vn-th> <vn-th number>Item</vn-th>
<vn-th number>Ok</vn-th> <vn-th number>Ok</vn-th>
</vn-tr> </vn-tr>
</vn-thead> </vn-thead>
@ -166,9 +166,9 @@
<vn-td number> <vn-td number>
<span <span
ng-show="::request.saleFk" ng-show="::request.saleFk"
ng-click="$ctrl.showDescriptor($event, request.saleFk)" ng-click="$ctrl.showDescriptor($event, request.sale.itemFk)"
class="link"> class="link">
{{request.saleFk | zeroFill:6}} {{request.sale.itemFk | zeroFill:6}}
</span> </span>
</vn-td> </vn-td>
<vn-td number> <vn-td number>