@pisell/private-materials 6.3.142 → 6.3.143
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/scanOrder/components/Check/index.js +2 -1
- package/lib/components/scanOrder/components/Check/index.js +3 -1
- package/package.json +1 -1
- package/es/components/scanOrder/components/Cart/index.d.ts +0 -16
- package/es/components/scanOrder/components/Footer/index.d.ts +0 -12
- package/es/components/scanOrder/components/Menu/index.d.ts +0 -18
- package/es/components/scanOrder/context.d.ts +0 -4
- package/es/components/scanOrder/types.d.ts +0 -79
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +0 -21
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +0 -59
- package/es/components/venueBooking/components/Addons/index.d.ts +0 -3
- package/es/components/venueBooking/components/Cart/index.d.ts +0 -28
- package/es/components/venueBooking/components/Checkout/index.d.ts +0 -2
- package/es/components/venueBooking/components/Footer/index.d.ts +0 -3
- package/es/components/venueBooking/components/Header/index.d.ts +0 -2
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.d.ts +0 -2
- package/es/components/venueBooking/context.d.ts +0 -9
- package/es/components/venueBooking/hooks.d.ts +0 -72
- package/es/components/venueBooking/index.d.ts +0 -6
- package/es/components/venueBooking/locales.d.ts +0 -627
- package/es/components/venueBooking/types.d.ts +0 -204
- package/lib/components/scanOrder/components/Cart/index.d.ts +0 -16
- package/lib/components/scanOrder/components/Footer/index.d.ts +0 -12
- package/lib/components/scanOrder/components/Menu/index.d.ts +0 -18
- package/lib/components/scanOrder/context.d.ts +0 -4
- package/lib/components/scanOrder/types.d.ts +0 -79
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +0 -21
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +0 -59
- package/lib/components/venueBooking/components/Addons/index.d.ts +0 -3
- package/lib/components/venueBooking/components/Cart/index.d.ts +0 -28
- package/lib/components/venueBooking/components/Checkout/index.d.ts +0 -2
- package/lib/components/venueBooking/components/Footer/index.d.ts +0 -3
- package/lib/components/venueBooking/components/Header/index.d.ts +0 -2
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.d.ts +0 -2
- package/lib/components/venueBooking/context.d.ts +0 -9
- package/lib/components/venueBooking/hooks.d.ts +0 -72
- package/lib/components/venueBooking/index.d.ts +0 -6
- package/lib/components/venueBooking/locales.d.ts +0 -627
- package/lib/components/venueBooking/types.d.ts +0 -204
|
@@ -132,7 +132,8 @@ export default function Check() {
|
|
|
132
132
|
type: 'pisell1.payment',
|
|
133
133
|
data: {
|
|
134
134
|
order_id: res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.order_id,
|
|
135
|
-
total_amount: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.order_wait_pay_amount) || (viewModel === null || viewModel === void 0 || (_viewModel$summary = viewModel.summary) === null || _viewModel$summary === void 0 ? void 0 : _viewModel$summary.total_amount)
|
|
135
|
+
total_amount: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.order_wait_pay_amount) || (viewModel === null || viewModel === void 0 || (_viewModel$summary = viewModel.summary) === null || _viewModel$summary === void 0 ? void 0 : _viewModel$summary.total_amount),
|
|
136
|
+
sale_channel: 'table-order' // TODO 因为渠道问题,现在只能先写死,等 2.0 有支付和渠道统一规划以后可以做动态
|
|
136
137
|
},
|
|
137
138
|
callback: function () {
|
|
138
139
|
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_e) {
|
|
@@ -108,7 +108,9 @@ function Check() {
|
|
|
108
108
|
type: "pisell1.payment",
|
|
109
109
|
data: {
|
|
110
110
|
order_id: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.order_id,
|
|
111
|
-
total_amount: ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.order_wait_pay_amount) || ((_c = viewModel == null ? void 0 : viewModel.summary) == null ? void 0 : _c.total_amount)
|
|
111
|
+
total_amount: ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.order_wait_pay_amount) || ((_c = viewModel == null ? void 0 : viewModel.summary) == null ? void 0 : _c.total_amount),
|
|
112
|
+
sale_channel: "table-order"
|
|
113
|
+
// TODO 因为渠道问题,现在只能先写死,等 2.0 有支付和渠道统一规划以后可以做动态
|
|
112
114
|
},
|
|
113
115
|
callback: async (_e2) => {
|
|
114
116
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface CartProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
onNext: () => void;
|
|
7
|
-
items: any[];
|
|
8
|
-
summary: Record<string, any>;
|
|
9
|
-
embedded?: boolean;
|
|
10
|
-
confirmLoading?: boolean;
|
|
11
|
-
extraContent?: React.ReactNode;
|
|
12
|
-
/** 视觉禁用:按钮仍会触发 onNext,由父级自行拦截(用于弹 toast 等反馈) */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export default function Cart(props: CartProps): JSX.Element | null;
|
|
16
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface FooterProps {
|
|
4
|
-
cartItems: any[];
|
|
5
|
-
summary: Record<string, any>;
|
|
6
|
-
actionText: string;
|
|
7
|
-
onAction: () => void;
|
|
8
|
-
/** 视觉禁用:按钮仍会触发 onAction,由父级自行拦截(用于弹 toast 等反馈) */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export default function Footer(props: FooterProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface MenuProps {
|
|
3
|
-
onCheckout: () => void;
|
|
4
|
-
/**
|
|
5
|
-
* 商品列表(由上层 ReadyState 持有,配合 onEnsureProductList 做幂等拉取与持久化:
|
|
6
|
-
* 切 step 回到 product 时 Menu 会 remount,但 productList 在 ReadyState 不会丢)
|
|
7
|
-
*/
|
|
8
|
-
productList: any[];
|
|
9
|
-
/**
|
|
10
|
-
* 幂等触发商品列表拉取。Menu mount 时调用:
|
|
11
|
-
* - 首次:真发请求
|
|
12
|
-
* - 后续(如从 check 返回 product):命中缓存,直接短路,不重复发请求
|
|
13
|
-
*/
|
|
14
|
-
isProductListLoading: boolean;
|
|
15
|
-
onEnsureProductList: () => Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
export default function Menu(props: MenuProps): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ScanOrderContextValue, ScanOrderProviderProps } from './types';
|
|
3
|
-
export declare function ScanOrderProvider({ entryContext, children, }: ScanOrderProviderProps): JSX.Element;
|
|
4
|
-
export declare function useScanOrderContext(): ScanOrderContextValue;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ScanOrderEntryContext {
|
|
3
|
-
biz: string;
|
|
4
|
-
resource_id?: string;
|
|
5
|
-
order_id?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ScanOrderProps {
|
|
8
|
-
biz?: string;
|
|
9
|
-
resource_id?: string;
|
|
10
|
-
order_id?: string;
|
|
11
|
-
entryContext?: ScanOrderEntryContext;
|
|
12
|
-
}
|
|
13
|
-
export declare type ScanOrderStepKey = 'init' | 'product' | 'check' | 'error';
|
|
14
|
-
export declare type ScanOrderEntryMode = 'default' | 'additional_order';
|
|
15
|
-
/** 步骤缓存中记录的 gate 标记(对应协议 / 表单 / 人数 modal 是否已走过) */
|
|
16
|
-
export declare type ScanOrderGateKey = 'policyAccepted' | 'formSubmitted' | 'paxEntered';
|
|
17
|
-
/** 存入 sessionStorage 桶内的 entryContext 快照(用于校验是否同一扫码场景) */
|
|
18
|
-
export interface ScanOrderCachedEntryContext {
|
|
19
|
-
resourceId?: string;
|
|
20
|
-
hasOrderId?: boolean;
|
|
21
|
-
biz?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ScanOrderViewModel {
|
|
24
|
-
menuItems: any[];
|
|
25
|
-
cartItems: any[];
|
|
26
|
-
summary: Record<string, any>;
|
|
27
|
-
note: string;
|
|
28
|
-
}
|
|
29
|
-
export interface ScanOrderContextValue {
|
|
30
|
-
entryContext: ScanOrderEntryContext;
|
|
31
|
-
scanOrderModule: any;
|
|
32
|
-
cartValidation: {
|
|
33
|
-
passed: boolean | null;
|
|
34
|
-
failures: any[];
|
|
35
|
-
};
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
errorMessage: string;
|
|
38
|
-
currentStep: ScanOrderStepKey;
|
|
39
|
-
stepList: ScanOrderStepKey[];
|
|
40
|
-
viewModel: ScanOrderViewModel;
|
|
41
|
-
footerActionText: string;
|
|
42
|
-
tableName: string;
|
|
43
|
-
entryMode: ScanOrderEntryMode;
|
|
44
|
-
submitDisabledTips: string;
|
|
45
|
-
/** 折扣/优惠券列表(来自 scanOrder 模块 getDiscountList) */
|
|
46
|
-
discountList: any[];
|
|
47
|
-
isReady: boolean;
|
|
48
|
-
setCurrentStep: (step: ScanOrderStepKey) => void;
|
|
49
|
-
setTableName: (name: string) => void;
|
|
50
|
-
setEntryMode: (mode: ScanOrderEntryMode) => void;
|
|
51
|
-
setSubmitDisabledTips: (tips: string) => void;
|
|
52
|
-
goToStep: (step: ScanOrderStepKey) => void;
|
|
53
|
-
nextStep: () => void;
|
|
54
|
-
prevStep: () => void;
|
|
55
|
-
refreshViewModel: () => Promise<void>;
|
|
56
|
-
runModuleAction: (actionName: string, ...args: any[]) => Promise<any>;
|
|
57
|
-
setFooterActionText: (text: string) => void;
|
|
58
|
-
updateOrderNote: (note: string) => Promise<void>;
|
|
59
|
-
/** 步骤缓存 hydrate 是否已完成(未完成时不建议写入 step,避免覆盖缓存) */
|
|
60
|
-
isCacheHydrated: boolean;
|
|
61
|
-
/** 将 gate 标记为已完成(写入 sessionStorage 桶) */
|
|
62
|
-
markGate: (flag: ScanOrderGateKey) => void;
|
|
63
|
-
/** 查询某个 gate 是否已完成 */
|
|
64
|
-
isGatePassed: (flag: ScanOrderGateKey) => boolean;
|
|
65
|
-
/** 整桶清空(提交成功 / restoreOrder 等场景) */
|
|
66
|
-
clearStepCache: () => void;
|
|
67
|
-
/**
|
|
68
|
-
* bootstrap 结束后要恢复到的目标 step(仅记录 `'product' | 'check'`)。
|
|
69
|
-
* hydrate 阶段不直接 `setCurrentStep`,避免在 checkResourceAvailable 之前让
|
|
70
|
-
* `<Menu>` / `<Check>` mount、提前发出缺 menu_list_ids 的请求。
|
|
71
|
-
*/
|
|
72
|
-
resumeStep: ScanOrderStepKey | null;
|
|
73
|
-
/** 消费并清空 resumeStep;建议在完成 goToStep 后立刻调用 */
|
|
74
|
-
consumeResumeStep: () => void;
|
|
75
|
-
}
|
|
76
|
-
export interface ScanOrderProviderProps {
|
|
77
|
-
entryContext: ScanOrderEntryContext;
|
|
78
|
-
children: React.ReactNode;
|
|
79
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface ScanOrderOrderProduct {
|
|
2
|
-
product_id: number | null;
|
|
3
|
-
product_variant_id: number;
|
|
4
|
-
num?: number;
|
|
5
|
-
/** 券后单品单价(订单域成交单价)。 */
|
|
6
|
-
selling_price?: string | number;
|
|
7
|
-
/** 券前单品单价(店铺售价)。 */
|
|
8
|
-
original_price?: string | number;
|
|
9
|
-
product_option_item?: any[];
|
|
10
|
-
product_bundle?: any[];
|
|
11
|
-
identity_key?: string;
|
|
12
|
-
note?: string;
|
|
13
|
-
metadata?: Record<string, any>;
|
|
14
|
-
_origin?: Record<string, any>;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export declare function toShoppingCartProducts(params: {
|
|
18
|
-
orderProducts: ScanOrderOrderProduct[];
|
|
19
|
-
amountSymbol?: string;
|
|
20
|
-
}): Record<string, any>[];
|
|
21
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface ProductDetailOptionItem {
|
|
2
|
-
product_option_item_id?: number | string;
|
|
3
|
-
option_group_item_id?: number | string;
|
|
4
|
-
option_group_id?: number | string;
|
|
5
|
-
num?: number;
|
|
6
|
-
price?: number | string;
|
|
7
|
-
}
|
|
8
|
-
export interface ProductDetailBundleItem {
|
|
9
|
-
option?: ProductDetailOptionItem[];
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export interface ProductDetailCallbackPayload {
|
|
13
|
-
id?: number | string | null;
|
|
14
|
-
product_id?: number | string | null;
|
|
15
|
-
variant_id?: number | string;
|
|
16
|
-
product_variant_id?: number | string;
|
|
17
|
-
quantity?: number;
|
|
18
|
-
num?: number;
|
|
19
|
-
option?: ProductDetailOptionItem[];
|
|
20
|
-
product_option_item?: ProductDetailOptionItem[];
|
|
21
|
-
bundle?: ProductDetailBundleItem[];
|
|
22
|
-
product_bundle?: ProductDetailBundleItem[];
|
|
23
|
-
unique?: string;
|
|
24
|
-
session?: any;
|
|
25
|
-
form?: any;
|
|
26
|
-
service_times?: number;
|
|
27
|
-
machine_code?: string;
|
|
28
|
-
schedule_id?: number[];
|
|
29
|
-
duration?: number;
|
|
30
|
-
policy_id?: number;
|
|
31
|
-
source_shop_id?: number;
|
|
32
|
-
origin?: any;
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}
|
|
35
|
-
export interface ScanOrderOrderProductInput {
|
|
36
|
-
product_id: number | null;
|
|
37
|
-
product_variant_id: number;
|
|
38
|
-
num: number;
|
|
39
|
-
product_option_item: Array<{
|
|
40
|
-
product_option_item_id: number;
|
|
41
|
-
option_group_id: number;
|
|
42
|
-
num: number;
|
|
43
|
-
price: number;
|
|
44
|
-
}>;
|
|
45
|
-
product_bundle: ProductDetailBundleItem[];
|
|
46
|
-
/** 券后单品单价;初次加购由入口置为 selling_price,之后由 SDK Rules 引擎维护。 */
|
|
47
|
-
selling_price: string;
|
|
48
|
-
/** 券前单品单价(店铺售价)。 */
|
|
49
|
-
original_price: string;
|
|
50
|
-
tax_fee: string;
|
|
51
|
-
is_charge_tax: number;
|
|
52
|
-
metadata: Record<string, any>;
|
|
53
|
-
_origin: Record<string, any>;
|
|
54
|
-
}
|
|
55
|
-
export declare function transformProductDetailToOrderProduct(params: {
|
|
56
|
-
payload: ProductDetailCallbackPayload;
|
|
57
|
-
fallbackProductId?: number | string | null;
|
|
58
|
-
sourceItem?: Record<string, any>;
|
|
59
|
-
}): ScanOrderOrderProductInput | null;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* venueBooking 购物车组件
|
|
3
|
-
* 参照 scanOrder/Cart 实现,使用系统内置 ShoppingCart + SubTotal 组件
|
|
4
|
-
* 支持两种模式:embedded(桌面端内嵌)和 drawer(移动端抽屉弹出)
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import './index.less';
|
|
8
|
-
/** Cart 组件 Props,与 scanOrder/Cart 对齐 */
|
|
9
|
-
interface CartProps {
|
|
10
|
-
/** 是否打开(drawer 模式生效) */
|
|
11
|
-
open: boolean;
|
|
12
|
-
/** 关闭回调(drawer 模式) */
|
|
13
|
-
onCancel: () => void;
|
|
14
|
-
/** 确认/下一步回调 */
|
|
15
|
-
onNext: () => void;
|
|
16
|
-
/** 购物车商品列表(从 OS 模块获取后由 toShoppingCartProducts 转换) */
|
|
17
|
-
items: any[];
|
|
18
|
-
/** 金额汇总(从 OS 模块 getSummary 获取) */
|
|
19
|
-
summary: Record<string, any>;
|
|
20
|
-
/** 是否内嵌模式(桌面端侧边栏使用) */
|
|
21
|
-
embedded?: boolean;
|
|
22
|
-
/** 确认按钮 loading 状态 */
|
|
23
|
-
confirmLoading?: boolean;
|
|
24
|
-
/** 购物车底部额外内容插槽 */
|
|
25
|
-
extraContent?: React.ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export default function Cart(props: CartProps): JSX.Element | null;
|
|
28
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { VenueBookingContextValue, VenueBookingProviderProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* VenueBookingProvider -- 场地预订全局 Context
|
|
5
|
-
* 管理步骤导航、场地选择状态、OS 模块集成
|
|
6
|
-
*/
|
|
7
|
-
export declare function VenueBookingProvider({ entryContext, children }: VenueBookingProviderProps): JSX.Element;
|
|
8
|
-
/** 消费 venueBooking Context 的 hook */
|
|
9
|
-
export declare function useVenueBookingContext(): VenueBookingContextValue;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { VenueBookingProps, VenueBookingEntryContext, VenueBookingViewModel, VenueTimeSlotGrid, VenueDateSummaryItem } from './types';
|
|
2
|
-
/** 步骤定义常量 */
|
|
3
|
-
export declare const VENUE_BOOKING_STEPS: readonly ["select-venue", "addons", "checkout"];
|
|
4
|
-
/** 写死的场地商品 ID(后续改为从配置读取) */
|
|
5
|
-
export declare const VENUE_PRODUCT_IDS: number[];
|
|
6
|
-
/**
|
|
7
|
-
* 获取 PisellOS venueBooking 业务模块
|
|
8
|
-
* 使用 useRef 稳定模块引用,防止 getModule 返回值每次渲染变化时触发 bootstrap useEffect 重跑
|
|
9
|
-
*/
|
|
10
|
-
export declare function useVenueBookingModule(): any;
|
|
11
|
-
/** 统一获取货币前缀(优先引擎配置,兜底 '$') */
|
|
12
|
-
export declare function useVenueBookingSymbol(): string;
|
|
13
|
-
/** 获取引擎上下文中的 utils 工具集(action / token 等) */
|
|
14
|
-
export declare function contextUtils(): any;
|
|
15
|
-
/** 从 engine props 提取标准化的入口上下文 */
|
|
16
|
-
export declare function normalizeEntryContext(props: VenueBookingProps): VenueBookingEntryContext;
|
|
17
|
-
/**
|
|
18
|
-
* 安全调用模块异步方法
|
|
19
|
-
* 检查模块和方法是否存在,不存在时抛出友好错误
|
|
20
|
-
*/
|
|
21
|
-
export declare function safeRunModuleAction(module: any, actionName: string, ...args: any[]): Promise<any>;
|
|
22
|
-
/** 加载场地商品(初始化时调用一次) */
|
|
23
|
-
export declare function loadVenueProducts(module: any, productIds: number[]): Promise<any>;
|
|
24
|
-
/** 拉取资源可用性数据(按日期范围,翻周时调用) */
|
|
25
|
-
export declare function fetchResourceAvailability(module: any, startDate: string, endDate: string): Promise<any>;
|
|
26
|
-
/** 获取日期概览(纯计算不发请求,fetchResourceAvailability 后调用) */
|
|
27
|
-
export declare function getDateRangeSummary(module: any, startDate: string, endDate: string): VenueDateSummaryItem[];
|
|
28
|
-
/** 获取某天的时段网格(纯计算不发请求,切换日期时调用) */
|
|
29
|
-
export declare function getTimeSlotGrid(module: any, date: string): VenueTimeSlotGrid | null;
|
|
30
|
-
/** 切换选中/取消一个时段(同一资源下多商品场景必须携带 productId) */
|
|
31
|
-
export declare function toggleSlotAction(module: any, params: {
|
|
32
|
-
resourceId: number;
|
|
33
|
-
productId: number;
|
|
34
|
-
startTime: string;
|
|
35
|
-
endTime: string;
|
|
36
|
-
price: string;
|
|
37
|
-
}): Promise<any>;
|
|
38
|
-
/**
|
|
39
|
-
* 查询某个时段是否已被选中
|
|
40
|
-
* 不传 productId 时:该资源下任一商品选中即 true;传了则精确匹配
|
|
41
|
-
*/
|
|
42
|
-
export declare function isSlotSelected(module: any, resourceId: number, startTime: string, productId?: number): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* 询问 OS:该 (resourceId, productId, startTime) 格子是否因其它已选项而应禁用
|
|
45
|
-
* 覆盖:同场地多商品互斥、组合资源 ↔ 子资源联动
|
|
46
|
-
*/
|
|
47
|
-
export declare function isSlotDisabledBySelection(module: any, params: {
|
|
48
|
-
resourceId: number;
|
|
49
|
-
productId: number;
|
|
50
|
-
startTime: string;
|
|
51
|
-
}): boolean;
|
|
52
|
-
/** 获取全部已选时段(按资源分组) */
|
|
53
|
-
export declare function getAllSelectedSlots(module: any): any[];
|
|
54
|
-
/** 查询 otherParams */
|
|
55
|
-
export declare function getOtherParams(module: any): any;
|
|
56
|
-
/**
|
|
57
|
-
* 获取所有“已选时段”对应的日期 key(YYYY-MM-DD)
|
|
58
|
-
* 兼容 venueBooking 模块返回 Map 或数组结构
|
|
59
|
-
*/
|
|
60
|
-
export declare function getSelectedDateKeySet(module: any): Set<string>;
|
|
61
|
-
/**
|
|
62
|
-
* 从 OS 模块快照构建 ViewModel(购物车部分)
|
|
63
|
-
* 购物车数据使用 toShoppingCartProducts 转换为 ShoppingCart 组件所需格式
|
|
64
|
-
*/
|
|
65
|
-
export declare function createVenueBookingViewModel(module: any): Partial<VenueBookingViewModel>;
|
|
66
|
-
/** 登录状态 hook(检查 token + 弹出登录弹窗) */
|
|
67
|
-
export declare function useVenueBookingLogin(): {
|
|
68
|
-
isLogin: boolean;
|
|
69
|
-
openLoginModal: (params: {
|
|
70
|
-
callback: any;
|
|
71
|
-
}) => void;
|
|
72
|
-
};
|