@pisell/pisellos 2.2.158 → 2.2.159
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.
|
@@ -888,9 +888,17 @@ export var SalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
888
888
|
return _this7.getBookingOrderPaymentStatus(booking) === 'unpaid' || _this7.getBookingOrderPaymentStatus(booking) === 'payment_processing';
|
|
889
889
|
});
|
|
890
890
|
bookings = this.pickBookingsForCurrentPoint(current, this.normalizeResourceBookings(current, deviceCurrent, matchedBookingList));
|
|
891
|
-
completedBookings =
|
|
892
|
-
|
|
893
|
-
|
|
891
|
+
completedBookings = completedBookingList.map(function (booking) {
|
|
892
|
+
return _objectSpread(_objectSpread({}, booking), {}, {
|
|
893
|
+
status: 'compelete',
|
|
894
|
+
isTimeout: false,
|
|
895
|
+
timeoutTime: undefined,
|
|
896
|
+
progressPercent: 100,
|
|
897
|
+
lateTime: undefined,
|
|
898
|
+
reserved_status: undefined,
|
|
899
|
+
remainingReserveTime: undefined
|
|
900
|
+
});
|
|
901
|
+
});
|
|
894
902
|
unpaidBookings = this.pickBookingsForCurrentPoint(current, this.normalizeResourceBookings(current, deviceCurrent, unpaidBookingList));
|
|
895
903
|
orderCount = this.countBookingOrders(matchedBookingList);
|
|
896
904
|
bookingCount = matchedBookingList.length;
|
|
@@ -16,7 +16,7 @@ export declare enum SalesHooks {
|
|
|
16
16
|
* 当前不要直接把 OrderData 当作最终 UI 数据结构。
|
|
17
17
|
*/
|
|
18
18
|
export type Reservation = OrderData;
|
|
19
|
-
export type SalesBookingStatus = 'reserved' | 'occupied' | 'locked' | undefined;
|
|
19
|
+
export type SalesBookingStatus = 'reserved' | 'occupied' | 'locked' | 'completed' | undefined;
|
|
20
20
|
export type SalesReservedStatus = 'not_arrived' | 'late' | undefined;
|
|
21
21
|
export interface SalesResourceMatchedBooking extends Omit<BookingData, 'status'> {
|
|
22
22
|
status: SalesBookingStatus;
|
|
@@ -632,12 +632,18 @@ var SalesImpl = class extends import_BaseModule.BaseModule {
|
|
|
632
632
|
current,
|
|
633
633
|
this.normalizeResourceBookings(current, deviceCurrent, matchedBookingList)
|
|
634
634
|
);
|
|
635
|
-
const completedBookings =
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
635
|
+
const completedBookings = completedBookingList.map((booking) => {
|
|
636
|
+
return {
|
|
637
|
+
...booking,
|
|
638
|
+
status: "compelete",
|
|
639
|
+
isTimeout: false,
|
|
640
|
+
timeoutTime: void 0,
|
|
641
|
+
progressPercent: 100,
|
|
642
|
+
lateTime: void 0,
|
|
643
|
+
reserved_status: void 0,
|
|
644
|
+
remainingReserveTime: void 0
|
|
645
|
+
};
|
|
646
|
+
});
|
|
641
647
|
const unpaidBookings = this.pickBookingsForCurrentPoint(
|
|
642
648
|
current,
|
|
643
649
|
this.normalizeResourceBookings(current, deviceCurrent, unpaidBookingList)
|
|
@@ -16,7 +16,7 @@ export declare enum SalesHooks {
|
|
|
16
16
|
* 当前不要直接把 OrderData 当作最终 UI 数据结构。
|
|
17
17
|
*/
|
|
18
18
|
export type Reservation = OrderData;
|
|
19
|
-
export type SalesBookingStatus = 'reserved' | 'occupied' | 'locked' | undefined;
|
|
19
|
+
export type SalesBookingStatus = 'reserved' | 'occupied' | 'locked' | 'completed' | undefined;
|
|
20
20
|
export type SalesReservedStatus = 'not_arrived' | 'late' | undefined;
|
|
21
21
|
export interface SalesResourceMatchedBooking extends Omit<BookingData, 'status'> {
|
|
22
22
|
status: SalesBookingStatus;
|