@pisell/pisellos 2.2.79 → 2.2.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1567,6 +1567,7 @@ export var ProductsModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1567
1567
|
if ((_msg$relation_product = msg.relation_product_ids) !== null && _msg$relation_product !== void 0 && _msg$relation_product.length) {
|
|
1568
1568
|
sseRefreshIds.push.apply(sseRefreshIds, _toConsumableArray(msg.relation_product_ids));
|
|
1569
1569
|
if (channelKey === 'product_quotation') {
|
|
1570
|
+
this.clearPriceCache();
|
|
1570
1571
|
priceRefreshIds.push.apply(priceRefreshIds, _toConsumableArray(msg.relation_product_ids));
|
|
1571
1572
|
}
|
|
1572
1573
|
}
|
|
@@ -1770,14 +1771,16 @@ export var ProductsModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1770
1771
|
_context20.next = 10;
|
|
1771
1772
|
return this.saveProductsToIndexDB(this.store.list);
|
|
1772
1773
|
case 10:
|
|
1773
|
-
|
|
1774
|
+
_context20.next = 12;
|
|
1775
|
+
return this.updatePriceCacheForProducts(_toConsumableArray(bodyUpdates.values()));
|
|
1776
|
+
case 12:
|
|
1774
1777
|
this.core.effects.emit(ProductsHooks.onProductsChanged, this.store.list);
|
|
1775
1778
|
this.logInfo('applyBodyUpdatesToStore: 完成', {
|
|
1776
1779
|
updatedCount: updatedCount,
|
|
1777
1780
|
newCount: newCount,
|
|
1778
1781
|
totalCount: this.store.list.length
|
|
1779
1782
|
});
|
|
1780
|
-
case
|
|
1783
|
+
case 14:
|
|
1781
1784
|
case "end":
|
|
1782
1785
|
return _context20.stop();
|
|
1783
1786
|
}
|
|
@@ -909,6 +909,7 @@ var ProductsModule = class extends import_BaseModule.BaseModule {
|
|
|
909
909
|
if ((_e = msg.relation_product_ids) == null ? void 0 : _e.length) {
|
|
910
910
|
sseRefreshIds.push(...msg.relation_product_ids);
|
|
911
911
|
if (channelKey === "product_quotation") {
|
|
912
|
+
this.clearPriceCache();
|
|
912
913
|
priceRefreshIds.push(...msg.relation_product_ids);
|
|
913
914
|
}
|
|
914
915
|
}
|
|
@@ -1002,7 +1003,7 @@ var ProductsModule = class extends import_BaseModule.BaseModule {
|
|
|
1002
1003
|
}
|
|
1003
1004
|
this.syncProductsMap();
|
|
1004
1005
|
await this.saveProductsToIndexDB(this.store.list);
|
|
1005
|
-
this.
|
|
1006
|
+
await this.updatePriceCacheForProducts([...bodyUpdates.values()]);
|
|
1006
1007
|
this.core.effects.emit(import_types.ProductsHooks.onProductsChanged, this.store.list);
|
|
1007
1008
|
this.logInfo("applyBodyUpdatesToStore: 完成", {
|
|
1008
1009
|
updatedCount,
|