fix: no recarga cada vez
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
ba5616055b
commit
4f76465246
|
@ -2718,9 +2718,9 @@ INSERT INTO `vn`.`collection` (`id`, `created`, `workerFk`, `stateFk`, `itemPack
|
|||
VALUES
|
||||
(3, util.VN_NOW(), 1107, 5, NULL, 0, 0, 1, NULL, NULL);
|
||||
|
||||
INSERT INTO `vn`.`itemConfig` (`id`, `isItemTagTriggerDisabled`, `monthToDeactivate`, `wasteRecipients`, `validPriorities`, `defaultPriority`, `defaultTag`)
|
||||
INSERT INTO `vn`.`itemConfig` (`id`, `isItemTagTriggerDisabled`, `monthToDeactivate`, `wasteRecipients`, `validPriorities`, `defaultPriority`, `defaultTag`, `warehouseFk`)
|
||||
VALUES
|
||||
(0, 0, 24, '', '[1,2,3]', 2, 56);
|
||||
(0, 0, 24, '', '[1,2,3]', 2, 56, 60);
|
||||
|
||||
INSERT INTO `vn`.`ticketCollection` (`ticketFk`, `collectionFk`, `created`, `level`, `wagon`, `smartTagFk`, `usedShelves`, `itemCount`, `liters`)
|
||||
VALUES
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<vn-portal slot="menu">
|
||||
<vn-item-descriptor
|
||||
warehouse-fk="$ctrl.warehouseFk"
|
||||
warehouse-fk="$ctrl.getWarehouseFk()"
|
||||
item="$ctrl.item"
|
||||
card-reload="$ctrl.reload()"></vn-item-descriptor>
|
||||
<vn-left-menu source="card"></vn-left-menu>
|
||||
|
|
|
@ -3,21 +3,18 @@ import ModuleCard from 'salix/components/module-card';
|
|||
|
||||
class Controller extends ModuleCard {
|
||||
getWarehouseFk() {
|
||||
if (this.$state.getCurrentPath()[4].state.name === 'item.card.diary') {
|
||||
this.warehouseFk = this.$params.warehouseFk;
|
||||
return;
|
||||
}
|
||||
if (this.$state.getCurrentPath()[4].state.name === 'item.card.diary')
|
||||
return this.$params.warehouseFk;
|
||||
|
||||
this.$http.get('ItemConfigs/findOne')
|
||||
.then(res => {
|
||||
this.warehouseFk = res.data.warehouseFk;
|
||||
return res.data.warehouseFk;
|
||||
});
|
||||
}
|
||||
|
||||
reload() {
|
||||
this.$http.get(`Items/${this.$params.id}/getCard`)
|
||||
.then(res => this.item = res.data);
|
||||
|
||||
this.getWarehouseFk();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -100,6 +100,6 @@ ngModule.vnComponent('vnItemDescriptor', {
|
|||
item: '<',
|
||||
dated: '<',
|
||||
cardReload: '&',
|
||||
warehouseFk: '<?'
|
||||
warehouseFk: '<'
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue