@pisell/private-materials 6.8.12 → 6.8.14

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.
Files changed (131) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/info2/service/editNormalService/index.js +2 -1
  8. package/es/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
  9. package/lib/components/booking/info2/service/editNormalService/index.js +2 -1
  10. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
  11. package/package.json +4 -4
  12. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  13. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  14. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  15. package/es/components/booking/components/footer/index.d.ts +0 -11
  16. package/es/components/booking/components/footer/utils.d.ts +0 -67
  17. package/es/components/booking/components/voucher/index.d.ts +0 -3
  18. package/es/components/booking/dashboard/serve.d.ts +0 -1
  19. package/es/components/booking/forms/serve.d.ts +0 -18
  20. package/es/components/booking/info/client/serve.d.ts +0 -2
  21. package/es/components/booking/info/pet/serve.d.ts +0 -1
  22. package/es/components/booking/info/service/Lists.d.ts +0 -3
  23. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  24. package/es/components/booking/info/service/serve.d.ts +0 -34
  25. package/es/components/booking/info/service2/utils.d.ts +0 -219
  26. package/es/components/booking/info2/serve.d.ts +0 -6
  27. package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
  28. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  29. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  30. package/es/components/booking/utils.d.ts +0 -182
  31. package/es/components/checkout/PaymentModal.d.ts +0 -39
  32. package/es/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  33. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  34. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  35. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  36. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  37. package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
  38. package/es/components/checkout/plugin.d.ts +0 -2
  39. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  40. package/es/components/list/List.d.ts +0 -5
  41. package/es/components/list/hooks/useListState.d.ts +0 -45
  42. package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
  43. package/es/components/pay/toB/types/index.d.ts +0 -72
  44. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  45. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  46. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  47. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  48. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  49. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -11
  50. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  51. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  52. package/es/components/ticketBooking/index.d.ts +0 -15
  53. package/es/components/ticketBooking/serve.d.ts +0 -288
  54. package/es/components/ticketBooking/utils/index.d.ts +0 -101
  55. package/es/index.d.ts +0 -80
  56. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  57. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  58. package/es/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  59. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  60. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  61. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  62. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  63. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  64. package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  65. package/es/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  66. package/es/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  67. package/es/plus/webPosLogin/index.d.ts +0 -12
  68. package/es/plus/webPosLogin/locales.d.ts +0 -49
  69. package/es/plus/webPosLogin/service.d.ts +0 -44
  70. package/es/plus/webPosLogin/types.d.ts +0 -286
  71. package/es/pro/Login2.0/Login2.d.ts +0 -61
  72. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  73. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  74. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  75. package/lib/components/booking/components/footer/index.d.ts +0 -11
  76. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  77. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  78. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  79. package/lib/components/booking/forms/serve.d.ts +0 -18
  80. package/lib/components/booking/info/client/serve.d.ts +0 -2
  81. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  82. package/lib/components/booking/info/service/Lists.d.ts +0 -3
  83. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  84. package/lib/components/booking/info/service/serve.d.ts +0 -34
  85. package/lib/components/booking/info/service2/utils.d.ts +0 -219
  86. package/lib/components/booking/info2/serve.d.ts +0 -6
  87. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
  88. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  89. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  90. package/lib/components/booking/utils.d.ts +0 -182
  91. package/lib/components/checkout/PaymentModal.d.ts +0 -39
  92. package/lib/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  93. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  94. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  95. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  96. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  97. package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
  98. package/lib/components/checkout/plugin.d.ts +0 -2
  99. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  100. package/lib/components/list/List.d.ts +0 -5
  101. package/lib/components/list/hooks/useListState.d.ts +0 -45
  102. package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
  103. package/lib/components/pay/toB/types/index.d.ts +0 -72
  104. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  105. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  106. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  107. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  108. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  109. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -11
  110. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  111. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  112. package/lib/components/ticketBooking/index.d.ts +0 -15
  113. package/lib/components/ticketBooking/serve.d.ts +0 -288
  114. package/lib/components/ticketBooking/utils/index.d.ts +0 -101
  115. package/lib/index.d.ts +0 -80
  116. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  117. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  118. package/lib/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  119. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  120. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  121. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  122. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  123. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  124. package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  125. package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  126. package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  127. package/lib/plus/webPosLogin/index.d.ts +0 -12
  128. package/lib/plus/webPosLogin/locales.d.ts +0 -49
  129. package/lib/plus/webPosLogin/service.d.ts +0 -44
  130. package/lib/plus/webPosLogin/types.d.ts +0 -286
  131. package/lib/pro/Login2.0/Login2.d.ts +0 -61
@@ -1,286 +0,0 @@
1
- /**
2
- * WebPosLogin 组件类型定义
3
- * @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
4
- */
5
- /// <reference types="react" />
6
- /**
7
- * 店铺数据结构
8
- * @description 从租户列表接口返回的店铺信息
9
- */
10
- export interface StoreItem {
11
- /** 店铺ID */
12
- id: number;
13
- /** 租户ID */
14
- tenant_id: number;
15
- /** 账户ID */
16
- account_id: number;
17
- /** 类型 */
18
- type: string;
19
- /** 昵称 */
20
- nickname: string;
21
- /** 状态 */
22
- status: string;
23
- /** 创建时间 */
24
- created_at?: string;
25
- /** 更新时间 */
26
- updated_at?: string;
27
- /** 租户详情 */
28
- tenant: {
29
- /** 租户ID */
30
- id: number;
31
- /** 父租户ID */
32
- tenant_id?: number;
33
- /** 账户ID */
34
- account_id?: number;
35
- /** 类型 */
36
- type?: string;
37
- /** 名称(多语言) */
38
- name: {
39
- en?: string | null;
40
- 'zh-CN'?: string | null;
41
- 'zh-HK'?: string | null;
42
- original: string;
43
- };
44
- /** Logo图片 */
45
- logo?: string;
46
- /** 图标 */
47
- icon?: string;
48
- /** Favicon */
49
- favicon?: string;
50
- /** 默认域名 */
51
- default_domain: string;
52
- /** 私有域名 */
53
- private_domain?: string | null;
54
- /** 货币代码 */
55
- currency_code?: string | null;
56
- /** 国家代码 */
57
- country_code?: string | null;
58
- /** 语言 */
59
- locale?: string;
60
- /** 时区 */
61
- timezone?: string;
62
- /** 状态 */
63
- status?: string;
64
- };
65
- }
66
- /**
67
- * 设备客户端信息
68
- * @description 设备绑定的客户端详情
69
- */
70
- export interface DeviceClient {
71
- /** 客户端ID */
72
- id: number;
73
- /** 店铺ID */
74
- shop_id: number;
75
- /** 设备ID */
76
- device_id: number;
77
- /** 客户端编号 */
78
- number: string;
79
- /** 客户端名称 */
80
- name: string;
81
- /** 客户端类型 */
82
- type: string;
83
- /** 设备型号 */
84
- model?: string;
85
- /** 系统版本 */
86
- version?: string;
87
- /** 设备详细数据 */
88
- data?: {
89
- battery?: {
90
- is_charging?: boolean;
91
- visible_percent?: string;
92
- };
93
- hardware?: {
94
- country?: string;
95
- datetime?: string;
96
- language?: string;
97
- timezone?: string;
98
- };
99
- application?: {
100
- name?: string;
101
- type?: string;
102
- version?: string;
103
- language?: string;
104
- bundle_id?: string;
105
- };
106
- connectivity?: {
107
- ip?: string;
108
- type?: string;
109
- wifi_details?: any[];
110
- };
111
- };
112
- /** 最后刷新时间 */
113
- refreshed_at?: string;
114
- /** 创建时间 */
115
- created_at?: string;
116
- /** 更新时间 */
117
- updated_at?: string;
118
- }
119
- /**
120
- * 设备数据结构
121
- * @description 从设备列表接口返回的设备信息
122
- */
123
- export interface DeviceItem {
124
- /** 设备ID */
125
- id: number;
126
- /** 店铺ID */
127
- shop_id: number;
128
- /** 设备类型 */
129
- type: string;
130
- /** 设备编号 */
131
- number: string;
132
- /** 设备名称 */
133
- name: string;
134
- /** 设备描述 */
135
- description?: string;
136
- /** 设备设置 */
137
- setting?: any[];
138
- /** 创建时间 */
139
- created_at?: string;
140
- /** 更新时间 */
141
- updated_at?: string;
142
- /** 绑定的客户端信息(null 表示未被使用) */
143
- client?: DeviceClient | null;
144
- }
145
- /**
146
- * 用户信息
147
- * @description 当前登录用户的基本信息
148
- */
149
- export interface UserInfo {
150
- /** 用户名称 */
151
- name: string;
152
- /** 用户头像 */
153
- avatar?: string;
154
- }
155
- /**
156
- * 品牌区轮播项
157
- * @description 左侧品牌区的轮播内容配置
158
- */
159
- export interface CarouselItem {
160
- /** 内容类型:图片或视频 */
161
- type: 'image' | 'video';
162
- /** 资源URL */
163
- url: string;
164
- }
165
- /**
166
- * 品牌区配置
167
- * @description 左侧品牌展示区域的配置
168
- */
169
- export interface BrandConfig {
170
- /** 轮播内容列表(图片/视频) */
171
- carouselItems?: CarouselItem[];
172
- /** 默认Logo(当无轮播时显示) */
173
- logo?: string;
174
- /** 品牌标语 */
175
- slogan?: string;
176
- }
177
- /**
178
- * 登录流程步骤
179
- */
180
- export declare type LoginStep = 'login' | 'store' | 'device';
181
- /**
182
- * 支持的语言类型
183
- */
184
- export declare type LocaleType = 'en' | 'zh-CN' | 'zh-HK';
185
- /**
186
- * WebPosLogin 主组件 Props
187
- * @description WebPOS 登录组件的所有配置项
188
- */
189
- export interface WebPosLoginCptProps {
190
- /** 自定义类名 */
191
- className?: string;
192
- /** 自定义样式 */
193
- style?: React.CSSProperties;
194
- /** 背景图片URL */
195
- backgroundImage?: string;
196
- /** 品牌区配置 */
197
- brandConfig?: BrandConfig;
198
- /** 当前步骤:login-登录 | store-店铺选择 | device-设备选择 */
199
- step?: LoginStep;
200
- /** 是否显示返回按钮(默认 true) */
201
- showBackButton?: boolean;
202
- /** 店铺列表数据 */
203
- storeList?: StoreItem[];
204
- /** 设备列表数据 */
205
- deviceList?: DeviceItem[];
206
- /** 当前用户信息 */
207
- userInfo?: UserInfo;
208
- /** 当前选中的店铺 */
209
- selectedStore?: StoreItem;
210
- /** 上次使用的店铺ID(用于显示 Last used 标签) */
211
- lastUsedStoreId?: number;
212
- /** 上次使用的设备ID(用于显示 Last used 标签) */
213
- lastUsedDeviceId?: number;
214
- /** 语言设置 */
215
- locale?: LocaleType;
216
- /** 加载状态 */
217
- loading?: boolean;
218
- /** 登录配置 */
219
- loginConfig?: any;
220
- /** 店铺选择回调 */
221
- onStoreSelect?: (store: StoreItem) => void;
222
- /** 设备选择回调 */
223
- onDeviceSelect?: (device: DeviceItem) => void;
224
- /** 切换账号回调 */
225
- onChangeAccount?: () => void;
226
- /** 切换店铺回调 */
227
- onChangeStore?: () => void;
228
- /** 返回上一步回调 */
229
- onBack?: () => void;
230
- /** 登录成功回调 */
231
- onLoginSuccess?: (data: any) => void;
232
- }
233
- /**
234
- * BrandPanel 品牌区组件 Props
235
- */
236
- export interface BrandPanelProps {
237
- /** 品牌配置 */
238
- config?: BrandConfig;
239
- /** 自定义类名 */
240
- className?: string;
241
- }
242
- /**
243
- * SelectStore 店铺选择组件 Props
244
- */
245
- export interface SelectStoreProps {
246
- /** 店铺列表 */
247
- storeList?: StoreItem[];
248
- /** 语言 */
249
- locale?: LocaleType;
250
- /** 加载状态 */
251
- loading?: boolean;
252
- /** 上次使用的店铺ID */
253
- lastUsedStoreId?: number;
254
- /** 选择店铺回调 */
255
- onSelect?: (store: StoreItem) => void;
256
- }
257
- /**
258
- * SelectDevice 设备选择组件 Props
259
- */
260
- export interface SelectDeviceProps {
261
- /** 设备列表 */
262
- deviceList?: DeviceItem[];
263
- /** 语言 */
264
- locale?: LocaleType;
265
- /** 加载状态 */
266
- loading?: boolean;
267
- /** 选择设备回调 */
268
- onSelect?: (device: DeviceItem) => void;
269
- }
270
- /**
271
- * UserFooter 底部用户信息组件 Props
272
- */
273
- export interface UserFooterProps {
274
- /** 用户信息 */
275
- userInfo?: UserInfo;
276
- /** 当前选中的店铺 */
277
- selectedStore?: StoreItem;
278
- /** 当前步骤 */
279
- step?: LoginStep;
280
- /** 语言 */
281
- locale?: LocaleType;
282
- /** 切换账号回调 */
283
- onChangeAccount?: () => void;
284
- /** 切换店铺回调 */
285
- onChangeStore?: () => void;
286
- }
@@ -1,61 +0,0 @@
1
- import React from 'react';
2
- import { UIConfig, LoginFormData, AuthMethodType, LoginMethodItem, LegalTermsConfig, OAuthConfig } from './shared/types';
3
- import './index.less';
4
- /** 登录组件配置 */
5
- export interface Login2Config {
6
- /**
7
- * 登录方式配置数组
8
- * 数组顺序决定显示顺序,第一项为默认登录方式
9
- */
10
- loginMethods: LoginMethodItem[];
11
- /** UI 配置 */
12
- ui?: UIConfig;
13
- /** 三方 OAuth 配置 */
14
- oauth?: OAuthConfig;
15
- /** 渠道标识 - 用于区分不同来源的登录请求 */
16
- channel?: string;
17
- /** 法律条款配置 */
18
- legalTerms?: LegalTermsConfig;
19
- /** 邮件链接验证配置 - 从邮件链接进入重置密码时使用 */
20
- emailLinkVerification?: {
21
- /** 是否启用邮件链接验证模式 */
22
- enabled: boolean;
23
- /** 从URL参数获取的验证码 */
24
- code: string;
25
- };
26
- }
27
- /** 登录组件事件 */
28
- export interface Login2Events {
29
- /** 登录回调 */
30
- onLogin?: (originResult: any, method: AuthMethodType, data: LoginFormData, channel?: string) => Promise<void> | void;
31
- /** 三方登录回调 */
32
- onOAuthLogin?: (provider: 'google' | 'facebook' | 'apple', channel?: string) => Promise<void> | void;
33
- /** 发送验证码回调 */
34
- onSendVerificationCode?: (account: string, type: 'email' | 'phone', channel?: string) => Promise<void> | void;
35
- /** 忘记密码回调 */
36
- onForgotPassword?: (account: string, channel?: string) => Promise<void> | void;
37
- /** 切换到注册回调 */
38
- onSwitchToRegister?: () => void;
39
- /** 错误处理回调 */
40
- onError?: (error: any, method?: AuthMethodType) => void;
41
- }
42
- /** 登录组件属性 */
43
- export interface Login2Props extends Login2Events {
44
- /** 配置对象 */
45
- config: Login2Config;
46
- /** 是否显示 */
47
- visible?: boolean;
48
- /** 关闭回调 */
49
- onClose?: () => void;
50
- /** 自定义类名 */
51
- className?: string;
52
- /** 自定义样式 */
53
- style?: React.CSSProperties;
54
- }
55
- /**
56
- * 登录 2.0 组件
57
- * 支持邮箱、手机、三方登录
58
- * 组件宽度固定 360px
59
- */
60
- declare const Login2: React.FC<Login2Props>;
61
- export default Login2;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default Services;
@@ -1,4 +0,0 @@
1
- import '../../../booking/components/voucher/index.less';
2
- import './index.less';
3
- declare const VoucherCard: (props: any) => JSX.Element;
4
- export default VoucherCard;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ActionButtonsProps {
4
- /** booking 状态对象,包含 service、addons 等数据 */
5
- state: {
6
- service?: {
7
- value?: any[];
8
- };
9
- addons?: {
10
- value?: any[];
11
- };
12
- disabledEdit?: boolean;
13
- channelDisabledEdit?: boolean;
14
- shop_discount?: string;
15
- bookingDetail?: {
16
- [key: string]: any;
17
- };
18
- [key: string]: any;
19
- };
20
- /** dispatch 函数,用于触发状态更新 */
21
- dispatch: (action: {
22
- type: string;
23
- payload?: any;
24
- }) => void;
25
- /** 是否禁用所有按钮 */
26
- disabled?: boolean;
27
- /** 数据源,传递给 VoucherCard */
28
- source?: any;
29
- }
30
- declare const ActionButtons: React.FC<ActionButtonsProps>;
31
- export default ActionButtons;
@@ -1,11 +0,0 @@
1
- import './index.less';
2
- /**
3
- * @title: 底部
4
- * @description:
5
- * @param {any} props
6
- * @return {*}
7
- * @Author: zhiwei.Wang
8
- * @Date: 2024-01-30 16:51
9
- */
10
- declare const Footer: (props: any) => JSX.Element;
11
- export default Footer;
@@ -1,67 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- /**
20
- * 获取子商品折扣信息
21
- * @param item
22
- */
23
- export declare const getBundleDiscountList: (bundle: any[]) => any[];
24
- export interface ResourceItem {
25
- [key: string]: any;
26
- }
27
- /**
28
- * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
29
- * @description:
30
- * @param {object} resource
31
- * @return {*}
32
- * @Author: jinglin.tan
33
- */
34
- export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
35
- export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
36
- /**
37
- * @title: 格式化商品单价
38
- * @description:
39
- * @param {any} item
40
- * @return {*}
41
- * @Author: WangHan
42
- * @Date: 2024-12-23 12:05
43
- */
44
- export declare const formatProductPrice: (item: any) => number;
45
- /**
46
- * checkout2.0: 单个数量商品总价(原价),包含所有套餐子商品金额、报价单等等
47
- * @param item
48
- * @returns
49
- */
50
- export declare const formatOriginalPrice: (item: any) => number;
51
- /**
52
- * checkout2.0: 商品维度折扣后价格, original_price - 商品折扣金额(商品手动折扣等等)
53
- * @param item
54
- * @returns
55
- */
56
- export declare const formatSellingPrice: (item: any) => number;
57
- export declare const getSourceProductPrice: (item: any) => number;
58
- export declare const getMainProductSellingPrice: (item: any) => number | undefined;
59
- /**
60
- * @title: 是否包含跨日预约商品
61
- * @description:
62
- * @param {any} data
63
- * @return {*}
64
- */
65
- export declare const getHasMultiDayProduct: (data: any) => any;
66
- export declare const formatValues: (state: any) => any;
67
- export declare const checkHolderIsError: (state: any) => any;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const VoucherCard: (props: any) => JSX.Element | null;
3
- export default VoucherCard;
@@ -1 +0,0 @@
1
- export declare const getBookingList: (params: any) => Promise<any>;
@@ -1,18 +0,0 @@
1
- /**
2
- * 获取表单数据
3
- */
4
- export declare const getFormData: (params: {
5
- form_id: number;
6
- form_record_ids: number[];
7
- num: number;
8
- skip: number;
9
- }) => Promise<any>;
10
- /**
11
- * 发送表单填写提醒
12
- */
13
- export declare const sendFormReminder: (params: {
14
- email?: string;
15
- phone?: string;
16
- order_id: number;
17
- country_calling_code?: string;
18
- }) => Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare const getFranchiseeCustomerInfo: (params: any) => Promise<any>;
2
- export declare const getFranchiseeCustomerList: (params: any) => Promise<any>;
@@ -1 +0,0 @@
1
- export declare const getFormDetail: (id: number) => Promise<any>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Lists: ({ onEdit, onChange, onAction, isParallelResource, isShowDelete, isShowAmountFooter }: any) => JSX.Element;
3
- export default Lists;
@@ -1,5 +0,0 @@
1
- export declare const getAddTimeProducts: (params: any, config: any) => Promise<any>;
2
- export declare const saveAddTimeProduct: ({ orderId, params }: {
3
- orderId: number | string;
4
- params: any;
5
- }) => Promise<any>;
@@ -1,34 +0,0 @@
1
- export declare const getProductDetail: (id: string, params: any) => Promise<any>;
2
- /**
3
- * @title: 跨日预约获取预约商品报价单
4
- * @description:
5
- * @param {string} id
6
- * @param {any} params
7
- * @return {*}
8
- * @Author: WangHan
9
- * @Date: 2024-12-23 17:06
10
- */
11
- export declare const postMultiDay: (id: string, params: any) => Promise<any>;
12
- /**
13
- * 批量查询指定商品的最新价格
14
- * @param params
15
- */
16
- export declare const getProductPrice: (params: {
17
- ids: number[];
18
- customer_id: number;
19
- schedule_date: string;
20
- }) => Promise<any>;
21
- declare type MultiDayProductPriceParams = {
22
- customer_id: number;
23
- data: {
24
- product_id: number;
25
- schedule_date: string;
26
- }[];
27
- };
28
- /**
29
- * 获取普通商品和跨日预约的价格
30
- * @param params
31
- * @returns
32
- */
33
- export declare const getNormalAndMultiDayProductPrice: (params: MultiDayProductPriceParams) => Promise<any>;
34
- export {};