@pisell/private-materials 3.3.64 → 3.3.65
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +15 -30
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.less +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +9 -13
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +10 -17
- package/es/components/booking/utils.js +4 -10
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.less +152 -158
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +9 -135
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/ticketBooking/serve.d.ts +0 -5
- package/es/components/ticketBooking/serve.js +0 -27
- package/es/components/wallet/DiscountCard/index.less +1 -0
- package/es/components/wallet/PointCard/index.less +1 -0
- package/es/components/wallet/RechargeableCard/index.less +9 -5
- package/es/components/wallet/Voucher/index.less +1 -0
- package/es/components/wallet/index.less +4 -0
- package/es/components/walletList/index.js +7 -55
- package/es/components/walletList/index.less +15 -17
- package/es/components/walletList/serve.d.ts +0 -8
- package/es/components/walletList/serve.js +0 -38
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +2 -14
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.less +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -7
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +9 -7
- package/lib/components/booking/utils.js +3 -7
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.less +152 -158
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -5
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +8 -134
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -5
- package/lib/components/ticketBooking/serve.js +2 -8
- package/lib/components/wallet/DiscountCard/index.less +1 -0
- package/lib/components/wallet/PointCard/index.less +1 -0
- package/lib/components/wallet/RechargeableCard/index.less +9 -5
- package/lib/components/wallet/Voucher/index.less +1 -0
- package/lib/components/wallet/index.less +4 -0
- package/lib/components/walletList/index.js +14 -42
- package/lib/components/walletList/index.less +15 -17
- package/lib/components/walletList/serve.d.ts +0 -8
- package/lib/components/walletList/serve.js +2 -15
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -53
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/locales.js +0 -17
- package/es/components/walletList/status.d.ts +0 -38
- package/es/components/walletList/status.js +0 -47
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -76
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/locales.js +0 -41
- package/lib/components/walletList/status.d.ts +0 -38
- package/lib/components/walletList/status.js +0 -66
|
@@ -67,8 +67,6 @@ var AddSerivce = (props) => {
|
|
|
67
67
|
state == null ? void 0 : state.renderType
|
|
68
68
|
);
|
|
69
69
|
const [currentProduct, setCurrentProduct] = (0, import_react.useState)(null);
|
|
70
|
-
const stateRef = (0, import_react.useRef)(state);
|
|
71
|
-
stateRef.current = state;
|
|
72
70
|
const menuList = (0, import_react.useMemo)(() => {
|
|
73
71
|
var _a2, _b2, _c2;
|
|
74
72
|
return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.menu_list_tab) == null ? void 0 : _c2.menu_list) || [];
|
|
@@ -126,13 +124,13 @@ var AddSerivce = (props) => {
|
|
|
126
124
|
});
|
|
127
125
|
};
|
|
128
126
|
const removeNotAvailableService = (list) => {
|
|
129
|
-
var _a2, _b2, _c2
|
|
130
|
-
if (!((
|
|
127
|
+
var _a2, _b2, _c2;
|
|
128
|
+
if (!((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length)) return;
|
|
131
129
|
const listMap = list.reduce((acc, cur) => {
|
|
132
130
|
acc[cur.id] = cur;
|
|
133
131
|
return acc;
|
|
134
132
|
}, {});
|
|
135
|
-
const newValue = (((
|
|
133
|
+
const newValue = (((_c2 = state.service) == null ? void 0 : _c2.value) || []).filter(
|
|
136
134
|
(item) => listMap[item.product_id]
|
|
137
135
|
);
|
|
138
136
|
dispatch({
|
|
@@ -45,32 +45,19 @@ var import_utils2 = require("../../utils");
|
|
|
45
45
|
var import_addServiceVariant = __toESM(require("../addServiceVariant"));
|
|
46
46
|
var import_timeBar = __toESM(require("../timeBar"));
|
|
47
47
|
var import_index = require("./index.less");
|
|
48
|
-
var import_utils3 = require("../../../booking/info/service2/utils");
|
|
49
|
-
var import_amount = require("../../../booking/components/footer/amount");
|
|
50
|
-
var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
|
|
51
48
|
var TicketBooking = () => {
|
|
52
49
|
var _a;
|
|
53
50
|
const [state, setState] = (0, import_miniRedux.useStore)();
|
|
54
51
|
const engineContext = (0, import_useEngineContext.default)();
|
|
55
52
|
const { props: engineProps } = engineContext.engine;
|
|
56
|
-
const {
|
|
57
|
-
action,
|
|
58
|
-
isTerminal,
|
|
59
|
-
lowcodeRef,
|
|
60
|
-
interaction,
|
|
61
|
-
store,
|
|
62
|
-
storage,
|
|
63
|
-
Toast,
|
|
64
|
-
getSymbolic,
|
|
65
|
-
translation
|
|
66
|
-
} = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
|
|
53
|
+
const { action, isTerminal, lowcodeRef, interaction, store, storage, Toast } = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
|
|
67
54
|
const _persistentRef = (0, import_react.useRef)(false);
|
|
68
55
|
const _initStateRef = (0, import_react.useRef)({});
|
|
69
56
|
const _listTimerRef = (0, import_react.useRef)();
|
|
70
57
|
const _timerRef = (0, import_react.useRef)();
|
|
71
58
|
const _callbackFnRef = (0, import_react.useRef)();
|
|
72
59
|
(0, import_react.useEffect)(() => {
|
|
73
|
-
var _a2, _b, _c, _d, _e
|
|
60
|
+
var _a2, _b, _c, _d, _e;
|
|
74
61
|
_persistentRef.current = storage.get(`drawer-booking`) === "true" ? true : isTerminal();
|
|
75
62
|
if (lowcodeRef) {
|
|
76
63
|
lowcodeRef.onReady(void 0);
|
|
@@ -108,15 +95,10 @@ var TicketBooking = () => {
|
|
|
108
95
|
"booking",
|
|
109
96
|
"refreshBookingDetail",
|
|
110
97
|
(type, orderId) => {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
(_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
|
|
116
|
-
"booking",
|
|
117
|
-
"voidBooking",
|
|
118
|
-
(orderId) => {
|
|
119
|
-
(0, import_serve.voidAppointment)(orderId);
|
|
98
|
+
console.log(type, orderId, "type, orderId");
|
|
99
|
+
if (state.bookingId) {
|
|
100
|
+
_getBookingDetail();
|
|
101
|
+
}
|
|
120
102
|
}
|
|
121
103
|
);
|
|
122
104
|
return () => {
|
|
@@ -150,112 +132,6 @@ var TicketBooking = () => {
|
|
|
150
132
|
intervalSetTime: isInterval
|
|
151
133
|
});
|
|
152
134
|
};
|
|
153
|
-
(0, import_react.useEffect)(() => {
|
|
154
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
155
|
-
const cartItems = (_b = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.service) == null ? void 0 : _b.value;
|
|
156
|
-
if (!Array.isArray(cartItems) || cartItems.length === 0) {
|
|
157
|
-
(_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.postMessageToApp) == null ? void 0 : _d.call(_c, {
|
|
158
|
-
module: "cds",
|
|
159
|
-
key: "cartUpdate",
|
|
160
|
-
data: {
|
|
161
|
-
currency_symbol: getSymbolic(),
|
|
162
|
-
total: "0",
|
|
163
|
-
// 小计
|
|
164
|
-
products: [],
|
|
165
|
-
fees: []
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
const total = (0, import_amount.getSumTotal)(state.modalState, true);
|
|
170
|
-
let formatedProducts = [];
|
|
171
|
-
try {
|
|
172
|
-
formatedProducts = (0, import_utils3.formatProducts)(
|
|
173
|
-
cartItems,
|
|
174
|
-
state.modalState,
|
|
175
|
-
false,
|
|
176
|
-
true,
|
|
177
|
-
true
|
|
178
|
-
);
|
|
179
|
-
} catch (error) {
|
|
180
|
-
console.error(error);
|
|
181
|
-
}
|
|
182
|
-
console.log("formatedProducts", total, formatedProducts);
|
|
183
|
-
let fees = [];
|
|
184
|
-
let products = [];
|
|
185
|
-
for (const item of formatedProducts) {
|
|
186
|
-
const { id, name, image, origin_total, total: total2, num, note, _origin } = item;
|
|
187
|
-
(_e = _origin == null ? void 0 : _origin.discount_list) == null ? void 0 : _e.forEach((dl) => {
|
|
188
|
-
fees.push({
|
|
189
|
-
isReduce: dl.type === "good_pass",
|
|
190
|
-
title: translation(dl == null ? void 0 : dl.discount.title),
|
|
191
|
-
price: dl.amount,
|
|
192
|
-
type: dl.type
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
let msg = "";
|
|
196
|
-
try {
|
|
197
|
-
msg = (0, import_formatProductMessage.default)(
|
|
198
|
-
{
|
|
199
|
-
...item,
|
|
200
|
-
currency_symbol: getSymbolic()
|
|
201
|
-
},
|
|
202
|
-
(_f = engineContext.appHelper) == null ? void 0 : _f.utils
|
|
203
|
-
);
|
|
204
|
-
} catch (error) {
|
|
205
|
-
console.error(error);
|
|
206
|
-
}
|
|
207
|
-
let _item = {
|
|
208
|
-
productID: id,
|
|
209
|
-
title: name,
|
|
210
|
-
cover: image,
|
|
211
|
-
// 封面图
|
|
212
|
-
price: total2,
|
|
213
|
-
// 售价
|
|
214
|
-
buyCount: num,
|
|
215
|
-
// 购买数量
|
|
216
|
-
productFormatMessage: msg,
|
|
217
|
-
note
|
|
218
|
-
};
|
|
219
|
-
if (origin_total !== total2) _item.modifyPrice = origin_total;
|
|
220
|
-
products.push(_item);
|
|
221
|
-
}
|
|
222
|
-
console.log(
|
|
223
|
-
"formatedProducts",
|
|
224
|
-
(_g = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _g(products.length)
|
|
225
|
-
);
|
|
226
|
-
if (products.length > 0) {
|
|
227
|
-
fees.unshift({
|
|
228
|
-
title: import_utils.locales.getText("pisell2.product.card.subtotal"),
|
|
229
|
-
price: total.productAmount,
|
|
230
|
-
type: "subtotal",
|
|
231
|
-
message: (_h = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _h(
|
|
232
|
-
products.length
|
|
233
|
-
)
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
console.log("start post message, config:", {
|
|
237
|
-
module: "cds",
|
|
238
|
-
key: "cartUpdate",
|
|
239
|
-
data: {
|
|
240
|
-
currency_symbol: getSymbolic(),
|
|
241
|
-
total: total.productAmount,
|
|
242
|
-
// 小计
|
|
243
|
-
products,
|
|
244
|
-
fees
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
(_j = (_i = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _i.postMessageToApp) == null ? void 0 : _j.call(_i, {
|
|
248
|
-
module: "cds",
|
|
249
|
-
key: "cartUpdate",
|
|
250
|
-
data: {
|
|
251
|
-
currency_symbol: getSymbolic(),
|
|
252
|
-
total: total.expectAmount,
|
|
253
|
-
// 小计
|
|
254
|
-
products,
|
|
255
|
-
fees
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
}, [state.modalState]);
|
|
259
135
|
const _setModalState = (props) => {
|
|
260
136
|
var _a2, _b;
|
|
261
137
|
console.log("同步state到外层", props);
|
|
@@ -769,10 +645,8 @@ var TicketBooking = () => {
|
|
|
769
645
|
}
|
|
770
646
|
);
|
|
771
647
|
};
|
|
772
|
-
const _callback = (data
|
|
773
|
-
|
|
774
|
-
return;
|
|
775
|
-
}
|
|
648
|
+
const _callback = (data) => {
|
|
649
|
+
console.log("callbackcallback");
|
|
776
650
|
setState({
|
|
777
651
|
createCount: state.createCount + 1
|
|
778
652
|
});
|
|
@@ -1,171 +1,153 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
52
|
-
'pisell2.product.card.subtotal': string;
|
|
53
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
54
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
55
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
56
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
3
|
+
"pisell2.ticket-booking.info": string;
|
|
4
|
+
"pisell2.ticket-booking.notes": string;
|
|
5
|
+
"pisell2.ticket-booking.forms": string;
|
|
6
|
+
"pisell2.ticket-booking.sales": string;
|
|
7
|
+
"pisell2.ticket-booking.payment": string;
|
|
8
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
9
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
10
|
+
"pisell2.ticket-booking.go-back": string;
|
|
11
|
+
"pisell2.ticket-booking.exit": string;
|
|
12
|
+
"pisell2.ticket-booking.deposit": string;
|
|
13
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
14
|
+
"pisell2.ticket-booking.no-data": string;
|
|
15
|
+
"pisell2.ticket-booking.authorized": string;
|
|
16
|
+
"pisell2.ticket-booking.paid": string;
|
|
17
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
18
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
19
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
20
|
+
"pisell2.ticket-booking.refunded": string;
|
|
21
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
22
|
+
"pisell2.ticket-booking.voided": string;
|
|
23
|
+
"pisell2.ticket-booking.pending": string;
|
|
24
|
+
"pisell2.ticket-booking.all": string;
|
|
25
|
+
"pisell2.ticket-booking.not-started": string;
|
|
26
|
+
"pisell2.ticket-booking.started": string;
|
|
27
|
+
"pisell2.ticket-booking.finished": string;
|
|
28
|
+
"pisell2.ticket-booking.canceled": string;
|
|
29
|
+
"pisell2.ticket-booking.inform": string;
|
|
30
|
+
"pisell2.ticket-booking.check-management": string;
|
|
31
|
+
"pisell2.ticket-booking.confirm": string;
|
|
32
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
33
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
34
|
+
"pisell2.ticket-booking.full-data": string;
|
|
35
|
+
"pisell2.ticket-booking.today": string;
|
|
36
|
+
"pisell2.ticket-booking.now": string;
|
|
37
|
+
"pisell2.ticket-booking.start-time": string;
|
|
38
|
+
"pisell2.ticket-booking.create-time": string;
|
|
39
|
+
"pisell2.ticket-booking.customer": string;
|
|
40
|
+
"pisell2.ticket-booking.total": string;
|
|
41
|
+
"pisell2.ticket-booking.search": string;
|
|
42
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
43
|
+
"pisell2.ticket-booking.loading": string;
|
|
44
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
45
|
+
"pisell2.ticket-booking.scan": string;
|
|
46
|
+
"pisell2.ticket-booking.create-new": string;
|
|
47
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
48
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
49
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
50
|
+
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
57
51
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
'pisell2.product.card.subtotal': string;
|
|
108
|
-
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
|
109
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
110
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
111
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
112
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
52
|
+
"zh-CN": {
|
|
53
|
+
"pisell2.ticket-booking.info": string;
|
|
54
|
+
"pisell2.ticket-booking.notes": string;
|
|
55
|
+
"pisell2.ticket-booking.forms": string;
|
|
56
|
+
"pisell2.ticket-booking.sales": string;
|
|
57
|
+
"pisell2.ticket-booking.payment": string;
|
|
58
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
59
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
60
|
+
"pisell2.ticket-booking.go-back": string;
|
|
61
|
+
"pisell2.ticket-booking.exit": string;
|
|
62
|
+
"pisell2.ticket-booking.deposit": string;
|
|
63
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
64
|
+
"pisell2.ticket-booking.no-data": string;
|
|
65
|
+
"pisell2.ticket-booking.authorized": string;
|
|
66
|
+
"pisell2.ticket-booking.paid": string;
|
|
67
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
68
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
69
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
70
|
+
"pisell2.ticket-booking.refunded": string;
|
|
71
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
72
|
+
"pisell2.ticket-booking.voided": string;
|
|
73
|
+
"pisell2.ticket-booking.pending": string;
|
|
74
|
+
"pisell2.ticket-booking.all": string;
|
|
75
|
+
"pisell2.ticket-booking.not-started": string;
|
|
76
|
+
"pisell2.ticket-booking.started": string;
|
|
77
|
+
"pisell2.ticket-booking.finished": string;
|
|
78
|
+
"pisell2.ticket-booking.canceled": string;
|
|
79
|
+
"pisell2.ticket-booking.inform": string;
|
|
80
|
+
"pisell2.ticket-booking.check-management": string;
|
|
81
|
+
"pisell2.ticket-booking.confirm": string;
|
|
82
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
83
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
84
|
+
"pisell2.ticket-booking.full-data": string;
|
|
85
|
+
"pisell2.ticket-booking.today": string;
|
|
86
|
+
"pisell2.ticket-booking.now": string;
|
|
87
|
+
"pisell2.ticket-booking.start-time": string;
|
|
88
|
+
"pisell2.ticket-booking.create-time": string;
|
|
89
|
+
"pisell2.ticket-booking.customer": string;
|
|
90
|
+
"pisell2.ticket-booking.total": string;
|
|
91
|
+
"pisell2.ticket-booking.search": string;
|
|
92
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
93
|
+
"pisell2.ticket-booking.loading": string;
|
|
94
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
95
|
+
"pisell2.ticket-booking.scan": string;
|
|
96
|
+
"pisell2.ticket-booking.create-new": string;
|
|
97
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
98
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
99
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
100
|
+
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
113
101
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
164
|
-
'pisell2.product.card.subtotal': string;
|
|
165
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
166
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
167
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
168
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
102
|
+
"zh-HK": {
|
|
103
|
+
"pisell2.ticket-booking.info": string;
|
|
104
|
+
"pisell2.ticket-booking.notes": string;
|
|
105
|
+
"pisell2.ticket-booking.forms": string;
|
|
106
|
+
"pisell2.ticket-booking.sales": string;
|
|
107
|
+
"pisell2.ticket-booking.payment": string;
|
|
108
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
109
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
110
|
+
"pisell2.ticket-booking.go-back": string;
|
|
111
|
+
"pisell2.ticket-booking.exit": string;
|
|
112
|
+
"pisell2.ticket-booking.deposit": string;
|
|
113
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
114
|
+
"pisell2.ticket-booking.no-data": string;
|
|
115
|
+
"pisell2.ticket-booking.authorized": string;
|
|
116
|
+
"pisell2.ticket-booking.paid": string;
|
|
117
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
118
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
119
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
120
|
+
"pisell2.ticket-booking.refunded": string;
|
|
121
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
122
|
+
"pisell2.ticket-booking.voided": string;
|
|
123
|
+
"pisell2.ticket-booking.pending": string;
|
|
124
|
+
"pisell2.ticket-booking.all": string;
|
|
125
|
+
"pisell2.ticket-booking.not-started": string;
|
|
126
|
+
"pisell2.ticket-booking.started": string;
|
|
127
|
+
"pisell2.ticket-booking.finished": string;
|
|
128
|
+
"pisell2.ticket-booking.canceled": string;
|
|
129
|
+
"pisell2.ticket-booking.inform": string;
|
|
130
|
+
"pisell2.ticket-booking.check-management": string;
|
|
131
|
+
"pisell2.ticket-booking.confirm": string;
|
|
132
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
133
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
134
|
+
"pisell2.ticket-booking.full-data": string;
|
|
135
|
+
"pisell2.ticket-booking.today": string;
|
|
136
|
+
"pisell2.ticket-booking.now": string;
|
|
137
|
+
"pisell2.ticket-booking.start-time": string;
|
|
138
|
+
"pisell2.ticket-booking.create-time": string;
|
|
139
|
+
"pisell2.ticket-booking.customer": string;
|
|
140
|
+
"pisell2.ticket-booking.total": string;
|
|
141
|
+
"pisell2.ticket-booking.search": string;
|
|
142
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
143
|
+
"pisell2.ticket-booking.loading": string;
|
|
144
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
145
|
+
"pisell2.ticket-booking.scan": string;
|
|
146
|
+
"pisell2.ticket-booking.create-new": string;
|
|
147
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
148
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
149
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
150
|
+
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
169
151
|
};
|
|
170
152
|
};
|
|
171
153
|
export default _default;
|
|
@@ -23,7 +23,7 @@ __export(locales_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(locales_exports);
|
|
25
25
|
var locales_default = {
|
|
26
|
-
en: {
|
|
26
|
+
"en": {
|
|
27
27
|
"pisell2.ticket-booking.info": "Info",
|
|
28
28
|
"pisell2.ticket-booking.notes": "Notes",
|
|
29
29
|
"pisell2.ticket-booking.forms": "Forms",
|
|
@@ -71,13 +71,7 @@ var locales_default = {
|
|
|
71
71
|
"pisell2.ticket-booking.add-to-cart": "Added to Cart",
|
|
72
72
|
"pisell2.ticket-booking.not-available-title": "Sorry, Not available at current time.",
|
|
73
73
|
"pisell2.ticket-booking.not-available-ok": "OK",
|
|
74
|
-
"pisell2.ticket-booking.in-cart": (number) => `${number} in cart
|
|
75
|
-
"pisell2.product.card.cart-items": (number) => `${number}items`,
|
|
76
|
-
"pisell2.product.card.subtotal": "Subtotal",
|
|
77
|
-
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
|
|
78
|
-
"pisell2.product.card.day": (val) => `${val > 1 ? " days" : " day"}`,
|
|
79
|
-
"pisell2.product.card.day.event": (val) => `${val > 1 ? " events" : " event"}`,
|
|
80
|
-
"pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}`
|
|
74
|
+
"pisell2.ticket-booking.in-cart": (number) => `${number} in cart`
|
|
81
75
|
},
|
|
82
76
|
"zh-CN": {
|
|
83
77
|
"pisell2.ticket-booking.info": "信息",
|
|
@@ -127,13 +121,7 @@ var locales_default = {
|
|
|
127
121
|
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
128
122
|
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售时间。",
|
|
129
123
|
"pisell2.ticket-booking.not-available-ok": "好的",
|
|
130
|
-
"pisell2.
|
|
131
|
-
"pisell2.product.card.subtotal": "小计",
|
|
132
|
-
"pisell2.ticket-booking.in-cart": (number) => `已有${number}件`,
|
|
133
|
-
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
|
|
134
|
-
"pisell2.product.card.day": (val) => "天",
|
|
135
|
-
"pisell2.product.card.day.event": (val) => "个活动",
|
|
136
|
-
"pisell2.product.card.minute": (val) => "分钟"
|
|
124
|
+
"pisell2.ticket-booking.in-cart": (number) => `已有${number}件`
|
|
137
125
|
},
|
|
138
126
|
"zh-HK": {
|
|
139
127
|
"pisell2.ticket-booking.info": "資訊",
|
|
@@ -183,12 +171,6 @@ var locales_default = {
|
|
|
183
171
|
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
184
172
|
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售時間。",
|
|
185
173
|
"pisell2.ticket-booking.not-available-ok": "好的",
|
|
186
|
-
"pisell2.ticket-booking.in-cart": (number) => `已有${number}
|
|
187
|
-
"pisell2.product.card.cart-items": (number) => `${number}件商品`,
|
|
188
|
-
"pisell2.product.card.subtotal": "小計",
|
|
189
|
-
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
|
|
190
|
-
"pisell2.product.card.day": (val) => "天",
|
|
191
|
-
"pisell2.product.card.day.event": (val) => "个活動",
|
|
192
|
-
"pisell2.product.card.minute": (val) => "分鐘"
|
|
174
|
+
"pisell2.ticket-booking.in-cart": (number) => `已有${number}件`
|
|
193
175
|
}
|
|
194
176
|
};
|
|
@@ -280,8 +280,3 @@ export declare const getOrderInfoByCode: (params: any) => Promise<any>;
|
|
|
280
280
|
* @Date: 2025-04-24 16:28
|
|
281
281
|
*/
|
|
282
282
|
export declare const getClientsEs: (params: any) => Promise<any>;
|
|
283
|
-
/**
|
|
284
|
-
* 作废2.0预约订单
|
|
285
|
-
* @param order_id
|
|
286
|
-
*/
|
|
287
|
-
export declare const voidAppointment: (order_id: number) => Promise<any>;
|
|
@@ -48,8 +48,7 @@ __export(serve_exports, {
|
|
|
48
48
|
getServices: () => getServices,
|
|
49
49
|
removeNoteByOrder: () => removeNoteByOrder,
|
|
50
50
|
saveAddonsByOrderId: () => saveAddonsByOrderId,
|
|
51
|
-
saveBookingFormData: () => saveBookingFormData
|
|
52
|
-
voidAppointment: () => voidAppointment
|
|
51
|
+
saveBookingFormData: () => saveBookingFormData
|
|
53
52
|
});
|
|
54
53
|
module.exports = __toCommonJS(serve_exports);
|
|
55
54
|
var import_utils = require("./../../utils");
|
|
@@ -184,10 +183,6 @@ var getClientsEs = async (params) => {
|
|
|
184
183
|
let { data } = await import_utils.request.getRequest().get(prefix + "/customer/es/data", params);
|
|
185
184
|
return data;
|
|
186
185
|
};
|
|
187
|
-
var voidAppointment = async (order_id) => {
|
|
188
|
-
let { data } = await import_utils.request.getRequest().put(prefix + `/order/void/appointment/${order_id}`, {});
|
|
189
|
-
return data;
|
|
190
|
-
};
|
|
191
186
|
// Annotate the CommonJS export names for ESM import in node:
|
|
192
187
|
0 && (module.exports = {
|
|
193
188
|
addNotesByOrder,
|
|
@@ -219,6 +214,5 @@ var voidAppointment = async (order_id) => {
|
|
|
219
214
|
getServices,
|
|
220
215
|
removeNoteByOrder,
|
|
221
216
|
saveAddonsByOrderId,
|
|
222
|
-
saveBookingFormData
|
|
223
|
-
voidAppointment
|
|
217
|
+
saveBookingFormData
|
|
224
218
|
});
|