@pisell/pisellos 1.0.129 → 1.0.130
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.
|
@@ -2882,12 +2882,14 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2882
2882
|
currentStats.left += 1;
|
|
2883
2883
|
if (currentResourceTypeConfig.type === 'multiple') {
|
|
2884
2884
|
currentStats.summaryCount += currentResourceMaxRemainingCapacity;
|
|
2885
|
-
if (currentResourceMaxRemainingCapacity > currentStats.count) currentStats.count = currentResourceMaxRemainingCapacity;
|
|
2886
|
-
} else {
|
|
2887
|
-
// 单个预约:一个资源只计 1,不关心剩余容量
|
|
2888
|
-
currentStats.summaryCount += 1;
|
|
2889
|
-
if (currentStats.count < 1) currentStats.count = 1;
|
|
2890
2885
|
}
|
|
2886
|
+
if (currentResourceMaxRemainingCapacity > currentStats.count) currentStats.count = currentResourceMaxRemainingCapacity;
|
|
2887
|
+
// else {
|
|
2888
|
+
// 单个预约:一个资源只计 1,不关心剩余容量
|
|
2889
|
+
// currentStats.summaryCount += 1;
|
|
2890
|
+
// if (currentStats.count < 1) currentStats.count = 1;
|
|
2891
|
+
//}
|
|
2892
|
+
|
|
2891
2893
|
statsByResourceType[m.form_id] = currentStats;
|
|
2892
2894
|
});
|
|
2893
2895
|
// 容量检测
|
|
@@ -2035,13 +2035,9 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2035
2035
|
currentStats.left += 1;
|
|
2036
2036
|
if (currentResourceTypeConfig.type === "multiple") {
|
|
2037
2037
|
currentStats.summaryCount += currentResourceMaxRemainingCapacity;
|
|
2038
|
-
if (currentResourceMaxRemainingCapacity > currentStats.count)
|
|
2039
|
-
currentStats.count = currentResourceMaxRemainingCapacity;
|
|
2040
|
-
} else {
|
|
2041
|
-
currentStats.summaryCount += 1;
|
|
2042
|
-
if (currentStats.count < 1)
|
|
2043
|
-
currentStats.count = 1;
|
|
2044
2038
|
}
|
|
2039
|
+
if (currentResourceMaxRemainingCapacity > currentStats.count)
|
|
2040
|
+
currentStats.count = currentResourceMaxRemainingCapacity;
|
|
2045
2041
|
statsByResourceType[m.form_id] = currentStats;
|
|
2046
2042
|
});
|
|
2047
2043
|
const cartItems2 = this.store.cart.getItems();
|