@pisell/pisellos 0.0.82 → 0.0.84
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.
|
@@ -525,27 +525,29 @@ export var AccountListModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
525
525
|
});
|
|
526
526
|
case 5:
|
|
527
527
|
res = _context9.sent;
|
|
528
|
+
this.store.accountList = [];
|
|
529
|
+
this.store.accounts = [];
|
|
528
530
|
if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data = _res$data.list) !== null && _res$data !== void 0 && _res$data.length)) {
|
|
529
|
-
_context9.next =
|
|
531
|
+
_context9.next = 11;
|
|
530
532
|
break;
|
|
531
533
|
}
|
|
532
|
-
_context9.next =
|
|
534
|
+
_context9.next = 11;
|
|
533
535
|
return this.addHolderAccounts({
|
|
534
536
|
holders: res.data.list,
|
|
535
537
|
customerId: customer_id
|
|
536
538
|
});
|
|
537
|
-
case 9:
|
|
538
|
-
_context9.next = 14;
|
|
539
|
-
break;
|
|
540
539
|
case 11:
|
|
541
|
-
_context9.
|
|
540
|
+
_context9.next = 16;
|
|
541
|
+
break;
|
|
542
|
+
case 13:
|
|
543
|
+
_context9.prev = 13;
|
|
542
544
|
_context9.t0 = _context9["catch"](2);
|
|
543
545
|
console.error(_context9.t0);
|
|
544
|
-
case
|
|
546
|
+
case 16:
|
|
545
547
|
case "end":
|
|
546
548
|
return _context9.stop();
|
|
547
549
|
}
|
|
548
|
-
}, _callee9, this, [[2,
|
|
550
|
+
}, _callee9, this, [[2, 13]]);
|
|
549
551
|
}));
|
|
550
552
|
function fetchHolderAccounts(_x11) {
|
|
551
553
|
return _fetchHolderAccounts.apply(this, arguments);
|
|
@@ -2177,7 +2177,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2177
2177
|
// 在已经选定时间的情况下,只要canUseTime如果有一个 false 那就不可用
|
|
2178
2178
|
if (!currentResourcesTimeSlotCanUsedArr.some(function (n) {
|
|
2179
2179
|
return n === false;
|
|
2180
|
-
})) {
|
|
2180
|
+
}) && currentResourcesCount >= count) {
|
|
2181
2181
|
count = currentResourcesCount;
|
|
2182
2182
|
}
|
|
2183
2183
|
});
|
|
@@ -300,6 +300,8 @@ var AccountListModule = class extends import_BaseModule.BaseModule {
|
|
|
300
300
|
num: num || 100,
|
|
301
301
|
skip: skip || 1
|
|
302
302
|
});
|
|
303
|
+
this.store.accountList = [];
|
|
304
|
+
this.store.accounts = [];
|
|
303
305
|
if ((_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.list) == null ? void 0 : _b.length) {
|
|
304
306
|
await this.addHolderAccounts({
|
|
305
307
|
holders: res.data.list,
|
|
@@ -1516,7 +1516,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
currentResourcesTimeSlotCanUsedArr.push(res.usable);
|
|
1518
1518
|
});
|
|
1519
|
-
if (!currentResourcesTimeSlotCanUsedArr.some((n) => n === false)) {
|
|
1519
|
+
if (!currentResourcesTimeSlotCanUsedArr.some((n) => n === false) && currentResourcesCount >= count) {
|
|
1520
1520
|
count = currentResourcesCount;
|
|
1521
1521
|
}
|
|
1522
1522
|
});
|