@pisell/private-materials 6.8.30 → 6.8.31

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 (119) 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/components/footer/index.d.ts +1 -0
  8. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  9. package/es/components/kioskSkuDetail/index.d.ts +7 -4
  10. package/es/components/kioskSkuDetail/index.js +182 -35
  11. package/es/components/kioskSkuDetail/locales.d.ts +21 -0
  12. package/es/components/kioskSkuDetail/locales.js +20 -0
  13. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  14. package/lib/components/booking/components/footer/index.d.ts +1 -0
  15. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  16. package/lib/components/kioskSkuDetail/index.d.ts +7 -4
  17. package/lib/components/kioskSkuDetail/index.js +178 -65
  18. package/lib/components/kioskSkuDetail/locales.d.ts +21 -0
  19. package/lib/components/kioskSkuDetail/locales.js +44 -0
  20. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  21. package/package.json +3 -3
  22. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  23. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  24. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  25. package/es/components/booking/components/footer/utils.d.ts +0 -67
  26. package/es/components/booking/components/voucher/index.d.ts +0 -3
  27. package/es/components/booking/info/service/Lists.d.ts +0 -3
  28. package/es/components/booking/info/service/serve.d.ts +0 -34
  29. package/es/components/booking/info/service2/utils.d.ts +0 -219
  30. package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
  31. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  32. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  33. package/es/components/booking/utils.d.ts +0 -182
  34. package/es/components/checkout/PaymentModal.d.ts +0 -39
  35. package/es/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  36. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  37. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  38. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  39. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  40. package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
  41. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  42. package/es/components/list/List.d.ts +0 -5
  43. package/es/components/list/hooks/useListState.d.ts +0 -45
  44. package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
  45. package/es/components/pay/toB/types/index.d.ts +0 -72
  46. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  47. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  48. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  49. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  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/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  56. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  57. package/es/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  58. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  59. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  60. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  61. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  62. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  63. package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  64. package/es/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  65. package/es/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  66. package/es/plus/webPosLogin/index.d.ts +0 -12
  67. package/es/plus/webPosLogin/locales.d.ts +0 -49
  68. package/es/plus/webPosLogin/service.d.ts +0 -44
  69. package/es/plus/webPosLogin/types.d.ts +0 -286
  70. package/es/pro/Login2.0/Login2.d.ts +0 -61
  71. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  72. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  73. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  74. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  75. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  76. package/lib/components/booking/info/service/Lists.d.ts +0 -3
  77. package/lib/components/booking/info/service/serve.d.ts +0 -34
  78. package/lib/components/booking/info/service2/utils.d.ts +0 -219
  79. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
  80. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  81. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  82. package/lib/components/booking/utils.d.ts +0 -182
  83. package/lib/components/checkout/PaymentModal.d.ts +0 -39
  84. package/lib/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  85. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  86. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  87. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  88. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  89. package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
  90. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  91. package/lib/components/list/List.d.ts +0 -5
  92. package/lib/components/list/hooks/useListState.d.ts +0 -45
  93. package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
  94. package/lib/components/pay/toB/types/index.d.ts +0 -72
  95. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  96. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  97. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  98. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  99. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  100. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  101. package/lib/components/ticketBooking/index.d.ts +0 -15
  102. package/lib/components/ticketBooking/serve.d.ts +0 -288
  103. package/lib/components/ticketBooking/utils/index.d.ts +0 -101
  104. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  105. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  106. package/lib/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  107. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  108. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  109. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  110. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  111. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  112. package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  113. package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  114. package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  115. package/lib/plus/webPosLogin/index.d.ts +0 -12
  116. package/lib/plus/webPosLogin/locales.d.ts +0 -49
  117. package/lib/plus/webPosLogin/service.d.ts +0 -44
  118. package/lib/plus/webPosLogin/types.d.ts +0 -286
  119. package/lib/pro/Login2.0/Login2.d.ts +0 -61
@@ -1,219 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
- /**
4
- * @title: 获取资源名称
5
- * @description:
6
- * @param {any} id
7
- * @param {any} state
8
- * @return {*}
9
- * @Author: WangHan
10
- * @Date: 2024-11-29 18:02
11
- */
12
- export declare const getResourceItem: (id: any, state: any) => any;
13
- /**
14
- * @title: 错误提示
15
- * @description:
16
- * @param {any} service
17
- * @param {any} resourceItem
18
- * @return {*}
19
- * @Author: WangHan
20
- * @Date: 2024-11-29 18:41
21
- */
22
- export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
- /**
24
- * @title: 格式化主体列表
25
- * @description:
26
- * @param {any} lists
27
- * @param {boolean} isOpenGroup
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-04 11:27
31
- */
32
- export declare const formatHolderLists: (lists: any) => any;
33
- export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
- /**
35
- * @title: 是否是预约商品
36
- * @description:
37
- * @return {*}
38
- * @Author: WangHan
39
- * @Date: 2024-12-06 11:24
40
- */
41
- export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
- export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
43
- /**
44
- * @title: 更新商品数据
45
- * @description:
46
- * @param {any} state
47
- * @param currentItem
48
- * @param {string} type
49
- * @param {any} other
50
- * @param actions
51
- * @return {*}
52
- * @Author: WangHan
53
- * @Date: 2025-01-03 15:00
54
- */
55
- export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
- export declare const formItems: (items: any[]) => any[];
57
- export declare const getIsSubjectRequire: (state: any) => boolean;
58
- export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
- export declare const isAllNormalProduct: (items: any[]) => boolean;
60
- export declare const isAllNormalProductByState: (state: any) => boolean;
61
- export declare const genRowKey: (key: string) => string;
62
- /**
63
- * @title: 格式化商品数据
64
- * @description:
65
- * @param {any} lists
66
- * @return {*}
67
- * @Author: WangHan
68
- * @Date: 2024-11-29 17:36
69
- */
70
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => any[];
71
- /**
72
- * @title: 禁用日期
73
- * @description:
74
- * @param {any} current
75
- * @param {string} position
76
- * @param {any} startDate
77
- * @return {*}
78
- * @Author: WangHan
79
- * @Date: 2024-12-03 17:51
80
- */
81
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
82
- /**
83
- * @title: 是否是跨日预约
84
- * @description:
85
- * @param {any} state
86
- * @return {*}
87
- * @Author: WangHan
88
- * @Date: 2024-12-04 09:49
89
- */
90
- export declare const isDayBooking: (state: any) => boolean;
91
- export declare const isDaysBooking: (state: any) => boolean;
92
- export declare const isEventBooking: (state: any) => boolean;
93
- export declare const isAppointmentProduct: (item: any) => boolean;
94
- /**
95
- * @title: 是否是terminal上的跨日预约
96
- * @description:
97
- * @param {any} state
98
- * @return {*}
99
- * @Author: WangHan
100
- * @Date: 2024-12-04 15:31
101
- */
102
- export declare const isTerminalDayBooking: (state: any) => any;
103
- export declare const formatDayDate: (_extend: any) => any;
104
- /**
105
- * @title: 根据营业日时间格式化时间
106
- * @description:
107
- * @param {any} state
108
- * @return {*}
109
- * @Author: WangHan
110
- * @Date: 2024-12-04 12:07
111
- */
112
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
113
- startDateTime: dayjs.Dayjs;
114
- endDateTime: dayjs.Dayjs;
115
- };
116
- export declare const formatDateTime: (start_date: any, end_date: any) => {
117
- value: dayjs.Dayjs;
118
- end_date: dayjs.Dayjs;
119
- };
120
- /**
121
- * @title: 初始化日期
122
- * @description:
123
- * @return {*}
124
- * @Author: WangHan
125
- * @Date: 2024-12-06 17:24
126
- */
127
- export declare const initDate: () => {
128
- value: dayjs.Dayjs;
129
- end_date: dayjs.Dayjs;
130
- };
131
- /**
132
- * @title: 是否有预约商品
133
- * @description:
134
- * @return {*}
135
- * @Author: WangHan
136
- * @Date: 2024-12-12 15:47
137
- */
138
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
139
- /**
140
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
141
- * @description:
142
- * @param {any} lists
143
- * @return {*}
144
- * @Author: WangHan
145
- * @Date: 2024-12-13 16:44
146
- */
147
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
148
- /**
149
- * @title: 格式化表单数据
150
- * @description:
151
- * @param {any} state
152
- * @return {*}
153
- * @Author: WangHan
154
- * @Date: 2024-12-30 22:19
155
- */
156
- export declare const getPets: (state: any) => any;
157
- /**
158
- * @title: 得出预约商品
159
- * @description:
160
- * @param {any} state
161
- * @return {*}
162
- * @Author: WangHan
163
- * @Date: 2024-12-30 22:26
164
- */
165
- export declare const getAppointmentService: (state: any) => any;
166
- /**
167
- * @title: 判断是否打开删除宠物弹窗
168
- * @description:
169
- * @param {any} state
170
- * @param {any} newVal
171
- * @return {*}
172
- * @Author: WangHan
173
- * @Date: 2024-12-16 16:12
174
- */
175
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
176
- ids: any;
177
- lists: any;
178
- };
179
- /**
180
- * @title: 当前选中的表单id
181
- * @description:
182
- * @param {any} state
183
- * @return {*}
184
- * @Author: WangHan
185
- * @Date: 2024-12-17 14:40
186
- */
187
- export declare const holderId: (state: any) => number;
188
- /**
189
- * @title: 更新套餐的价格
190
- * @description:
191
- * @param {any} currentValue
192
- * @param {any} newBundleData
193
- * @return {*}
194
- * @Author: WangHan
195
- * @Date: 2024-12-31 15:16
196
- */
197
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
198
- /**
199
- * @title: 更新预约商品报价单
200
- * @description:
201
- * @param {any} state
202
- * @param {any} cacheItem
203
- * @return {*}
204
- * @Author: WangHan
205
- * @Date: 2024-12-25 16:41
206
- */
207
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
208
- multiDayPrices: any;
209
- price: number;
210
- }>;
211
- /**
212
- * @title: 更新普通商品报价单价格
213
- * @description:
214
- * @param {any} state
215
- * @return {*}
216
- * @Author: WangHan
217
- * @Date: 2024-12-24 11:32
218
- */
219
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,106 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const getUsableTime: (cacheItem: any) => any;
3
- export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
- startDate: dayjs.Dayjs;
5
- usableTime: any;
6
- duration: string | number | {
7
- type: string;
8
- value: number;
9
- };
10
- locale: any;
11
- slice: any;
12
- selectProps: {
13
- size: string;
14
- };
15
- };
16
- /**
17
- * @title: 灵活时长选项
18
- * @description:
19
- * @param {*} useMemo
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-02-23 10:10
23
- */
24
- export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
- label: any;
26
- value: any;
27
- } | null;
28
- export declare const getTimeSlices: ({ state }: any) => {
29
- timeSlices: {
30
- label: string;
31
- value: string;
32
- }[];
33
- };
34
- /**
35
- * @title: 时间切片
36
- * @description:
37
- * @return {*}
38
- * @Author: zhiwei.Wang
39
- * @Date: 2024-01-09 13:37
40
- */
41
- export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
- timeSlices: {
43
- label: string;
44
- value: string;
45
- }[];
46
- durationSlicesBasedOnTime: {
47
- label: string;
48
- value: number;
49
- }[];
50
- };
51
- /**
52
- * @title: 获取资源列表
53
- * @description:
54
- * @return {*}
55
- * @Author: zhiwei.Wang
56
- * @Date: 2024-01-09 13:38
57
- */
58
- export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
- list: any;
60
- maps: any;
61
- };
62
- export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
- /**
64
- * @title: 设置默认容量
65
- * @description:
66
- * @param {any} param1
67
- * @return {*}
68
- * @Author: zhiwei.Wang
69
- * @Date: 2024-09-19 20:26
70
- */
71
- export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
- /**
73
- * @title: 将商品内关联的资源id还原成数据
74
- * @description:
75
- * @param {any} resourcesOriginMap
76
- * @param {any} cacheItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-09-19 20:23
80
- */
81
- export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
- /**
83
- * @title: 是否是跨日商品
84
- * @description:
85
- * @param {any} cacheItem
86
- * @return {*}
87
- */
88
- export declare const isMultiDayProduct: (product: any) => boolean;
89
- export declare const getMultiDay: ({ start_date, end_date, state, cacheItem, }: any) => Promise<any>;
90
- /**
91
- * @title: 预生成服务的 extend
92
- * @description:
93
- * @param {any} param1
94
- * @return {*}
95
- * @Author: zhiwei.Wang
96
- * @Date: 2024-06-01 13:25
97
- */
98
- export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
99
- /**
100
- * @title: 格式化服务列表
101
- * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
102
- * 使用with resourceRelation后 返回的resource_relation是实时数据
103
- * 这里做一次转换
104
- * @param list
105
- */
106
- export declare const transServiceList: (list: any[]) => any[];
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import './index.less';
4
- export interface EditServiceRef {
5
- init: (cacheItem?: any) => void;
6
- }
7
- declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
8
- export default _default;
@@ -1,36 +0,0 @@
1
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
- export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
3
- /**
4
- * @title: 查找是否有可用的time
5
- * @description:
6
- * @param {any} resourceItem
7
- * @return {*}
8
- * @Author: zhiwei.Wang
9
- * @Date: 2024-01-09 13:57
10
- */
11
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
- export declare const getErrorList: (resource: any, cacheItem: any) => {
13
- label: any;
14
- type: string;
15
- }[];
16
- /**
17
- * @title: 格式化资源, 添加自定义参数
18
- * @description:
19
- * @param {any} resourceItem
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-01-09 13:40
23
- */
24
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
- export declare const getAppointmentTimingPreference: (state: any) => any;
26
- /**
27
- * @title: 创建服务的开始时间和结束时间
28
- * @description:
29
- * @param {any} state
30
- * @param {any} item
31
- * @return {*}
32
- * @Author: zhiwei.Wang
33
- * @Date: 2024-01-26 14:09
34
- */
35
- export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
36
- export declare const getIsNoSpecAndPackage: (product: any) => boolean;
@@ -1,182 +0,0 @@
1
- import dayjs from 'dayjs';
2
- /**
3
- * @title: 高阶函数结果缓存(Memoization)
4
- */
5
- export declare function memoize<T extends (...args: any[]) => any>(fn: T): T;
6
- declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
7
- declare class Request {
8
- private request;
9
- constructor();
10
- setRequest(val: any): void;
11
- getRequest(): {
12
- get: RType;
13
- post: RType;
14
- put: RType;
15
- remove: RType;
16
- custom: RType;
17
- };
18
- }
19
- export declare const request: Request;
20
- /**
21
- * @title: 格式化持续时长用于展示
22
- * @description:
23
- * @param {number} service_times
24
- * @return {*}
25
- * @Author: zhiwei.Wang
26
- * @Date: 2024-04-26 14:00
27
- */
28
- export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
29
- /**
30
- * @title: 格式化跨日预约的时长用于展示
31
- * @description:
32
- * @param {number} days
33
- * @param {number} minutes
34
- * @return {*}
35
- */
36
- export declare const getDiscountTimeByDayMinutes: (days: number, minutes: number) => string;
37
- /**
38
- * @title: 时间切片(带缓存版本)
39
- * @description: 使用 memoize 高阶函数包裹 sliceDayIntoFiveMinutes,相同参数时直接返回缓存结果
40
- */
41
- export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
42
- timeSlices: {
43
- label: string;
44
- value: string;
45
- }[];
46
- durationSlicesBasedOnTime: {
47
- label: string;
48
- value: number;
49
- }[];
50
- };
51
- export declare const getNowTime: () => string;
52
- export declare const isNowTime: (time: string) => boolean;
53
- /**
54
- * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
55
- * @description:
56
- * @param {string} start_time
57
- * @return {*}
58
- * @Author: zhiwei.Wang
59
- * @Date: 2024-04-26 14:03
60
- */
61
- export declare const getServeStartTime: (start_time: string) => string;
62
- /**
63
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
64
- * @description:
65
- * @param {any} item
66
- * @param {any} currentDate
67
- * @return {*}
68
- * @Author: zhiwei.Wang
69
- * @Date: 2024-04-26 14:04
70
- */
71
- export declare const getServiceTime: (item: any, currentDate: any) => string;
72
- export declare const findNextSlice: ({ timeSlices, index, date, }: {
73
- timeSlices: any[];
74
- index?: number | undefined;
75
- date?: string | undefined;
76
- }) => any;
77
- export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
78
- export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
79
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
80
- /**
81
- * @title: 查找是否有可用的time
82
- * @description:
83
- * @param {any} resourceItem
84
- * @return {*}
85
- * @Author: zhiwei.Wang
86
- * @Date: 2024-01-09 13:57
87
- */
88
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
89
- /**
90
- * @title: 获取店铺的营业结束时间
91
- * @description:
92
- * @return {*}
93
- * @Author: zhiwei.Wang
94
- * @Date: 2024-02-23 10:00
95
- */
96
- export declare const getShopOpeningHours: () => string;
97
- /**
98
- * @title: 对灵活时长进行处理
99
- * @description:
100
- * @return {*}
101
- * @Author: zhiwei.Wang
102
- * @Date: 2024-02-23 10:00
103
- */
104
- export declare const flexibleObj: {
105
- create: (num: number) => any;
106
- getValue: (str: string | number) => number;
107
- isFlexible: (str: string | number) => boolean;
108
- add: (current: number | string, duration: number) => any;
109
- };
110
- /**
111
- * @title: 获取结束时间
112
- * @description: 取 endDate | 店铺营业时间 最小的那一个
113
- * @param {any} startDate
114
- * @param {string} duration
115
- * @param {any} endDate
116
- * @return {*}
117
- * @Author: zhiwei.Wang
118
- * @Date: 2024-02-23 10:01
119
- */
120
- export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
121
- export declare const getServiceTimes: (service: any) => {
122
- startDate: dayjs.Dayjs;
123
- endDate: any;
124
- };
125
- export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
126
- label: any;
127
- type: string;
128
- }[];
129
- /**
130
- * @title: 格式化资源, 添加自定义参数
131
- * @description:
132
- * @param {any} resourceItem
133
- * @return {*}
134
- * @Author: zhiwei.Wang
135
- * @Date: 2024-01-09 13:40
136
- */
137
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
138
- export declare const getLastServer: (list: any) => any;
139
- export declare const getCacheParams: () => any;
140
- export declare const deleteCacheParams: () => void;
141
- /**
142
- * @title: 获取跨日预约的时长
143
- * @description:
144
- * @param {any} cacheItem
145
- * @return {*}
146
- * @Author: WangHan
147
- * @Date: 2024-12-01 22:43
148
- */
149
- export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
150
- export declare const isSessionProduct: (cacheItem: any) => boolean;
151
- export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
152
- export declare const getIsOnlySession: (item: any) => boolean;
153
- /**
154
- * @title: 创建一个服务商品
155
- * @description:
156
- * @param {any} state
157
- * @param {any} item
158
- * @return {*}
159
- * @Author: zhiwei.Wang
160
- * @Date: 2024-01-26 14:09
161
- */
162
- export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
163
- export declare const getMainPrice: (item: any, price?: number) => number;
164
- export declare const getProductTotalPrice: (item: any) => number;
165
- /**
166
- * @title: 判断 duration
167
- * @description: 用于处理不同格式的duration
168
- * @param {number} duration
169
- * @return {*}
170
- * @Author: zhiwei.Wang
171
- * @Date: 2024-02-23 10:02
172
- */
173
- export declare const getDuration: (duration: number | {
174
- type: string;
175
- value: number;
176
- }) => number | {
177
- type: string;
178
- value: number;
179
- } | "flexible";
180
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
181
- export declare const getIsEdit: (state: any) => boolean;
182
- export {};
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface PaymentModalData {
4
- order_info: any;
5
- subtotal_info: {
6
- subTotalList: any[];
7
- orderTotalList: any[];
8
- total: number;
9
- showDetail: boolean;
10
- };
11
- total: any;
12
- }
13
- interface PaymentModalProps {
14
- open?: boolean;
15
- data?: PaymentModalData;
16
- callback?: (result: any) => void;
17
- onClose?: (reset?: boolean) => void;
18
- paymentResultDisplayMode?: string;
19
- shopDiscount?: number;
20
- client?: any;
21
- currentTotalPrice?: number;
22
- config?: any;
23
- onChangeShopDiscount?: (discount: string) => void;
24
- onChangeOrderNote?: (note: string) => void;
25
- onDeleteOrderNote?: () => void;
26
- }
27
- interface PaymentModalMainProps extends PaymentModalProps {
28
- onClose?: (reset?: boolean) => void;
29
- setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
30
- editOrderId?: number;
31
- config?: {
32
- showHeaderCenter?: boolean;
33
- showHeaderRightButton?: boolean;
34
- disabledSwitchClient?: boolean;
35
- };
36
- }
37
- declare const PaymentModal: React.FC<PaymentModalMainProps>;
38
- export type { PaymentModalData, PaymentModalProps };
39
- export default PaymentModal;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { CurrentOrderInfo } from '../../types';
4
- interface AdditionalModuleProps {
5
- orderInfo?: CurrentOrderInfo;
6
- customAmount?: string;
7
- handleButtonClick: (key: string) => void;
8
- hasOrderNote?: boolean;
9
- disabled?: boolean;
10
- showCashPayment?: boolean;
11
- isFullWidth?: boolean;
12
- showMore?: boolean;
13
- }
14
- declare function AdditionalModule({ orderInfo, customAmount, handleButtonClick, hasOrderNote, disabled, showCashPayment, isFullWidth, showMore }: AdditionalModuleProps): JSX.Element;
15
- export default AdditionalModule;
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import { CurrentOrderInfo } from '../../types';
3
- import './index.less';
4
- export interface CashPaymentModuleProps {
5
- amountSymbol?: string;
6
- orderInfo?: CurrentOrderInfo;
7
- onPaymentComplete?: (result: any) => void;
8
- amountButtons?: number[];
9
- customAmount?: string;
10
- disabled?: boolean;
11
- roundingFunction?: (amount: number) => Promise<{
12
- roundedAmount: number;
13
- roundingDifference: number;
14
- }>;
15
- balanceDueAmount?: string;
16
- balanceDueTotalAmount?: string;
17
- syncingLock?: boolean;
18
- shortcutsSize?: 'default' | 'large';
19
- }
20
- export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
21
- disabled, // 禁用状态
22
- roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
23
- balanceDueTotalAmount, // 完整订单剩余待付金额
24
- syncingLock, // 是否锁定
25
- shortcutsSize, }: CashPaymentModuleProps): JSX.Element;
26
- export default CashPaymentModule;
@@ -1,38 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface SummaryItem {
4
- key: string;
5
- value: number;
6
- label?: string;
7
- hidden?: boolean;
8
- tax?: any;
9
- }
10
- declare type SubTotalKey = 'deposit' | 'total' | 'sub_total' | 'tax' | 'delivery_fee' | 'discount' | 'point_deduction' | 'member_deduction' | 'expect_amount';
11
- interface PaymentItem {
12
- uuid: string;
13
- amount: number;
14
- code: string;
15
- name: string;
16
- status: string;
17
- voucher_id?: string;
18
- [key: string]: any;
19
- }
20
- interface PaymentDetailModalProps {
21
- amountSymbol?: string;
22
- orderInfo?: any;
23
- onClose: () => void;
24
- summaryData?: SummaryItem[];
25
- labelMaps?: Record<SubTotalKey, string>;
26
- paymentItems?: PaymentItem[];
27
- customAmount?: string;
28
- voidPayment?: (paymentItem: PaymentItem) => void;
29
- cartData?: any;
30
- walletPassData?: {
31
- selectedWallet?: any[];
32
- availableDiscountList?: any[];
33
- selectedDiscountList?: number[];
34
- };
35
- clientInfo?: any;
36
- }
37
- declare function PaymentDetailModal({ amountSymbol, orderInfo, cartData, onClose, summaryData, labelMaps, paymentItems, customAmount, voidPayment, walletPassData, clientInfo, }: PaymentDetailModalProps): JSX.Element;
38
- export default PaymentDetailModal;