@pisell/private-materials 6.6.92 → 6.6.94

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 (69) 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/addons/model.d.ts +1 -10
  8. package/es/components/booking/forms/model.d.ts +1 -10
  9. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  10. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +8 -5
  11. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  12. package/es/components/booking/info/model.d.ts +1 -10
  13. package/es/components/booking/model.d.ts +1 -9
  14. package/es/components/booking/notes/model.d.ts +1 -10
  15. package/es/components/booking/payments/model.d.ts +1 -10
  16. package/es/components/booking/utils.d.ts +2 -2
  17. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  18. package/es/components/eftposPay/amount.d.ts +1 -1
  19. package/es/components/eftposPay/device.d.ts +1 -1
  20. package/es/components/eftposPay/hooks.d.ts +2 -2
  21. package/es/components/eftposPay/store/index.d.ts +4 -4
  22. package/es/components/pay/toC/model.d.ts +1 -9
  23. package/es/components/schedules/model.d.ts +1 -9
  24. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  25. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  26. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  27. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  28. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  29. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  30. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  31. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  32. package/lib/components/booking/addons/model.d.ts +1 -10
  33. package/lib/components/booking/forms/model.d.ts +1 -10
  34. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  35. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -5
  36. package/lib/components/booking/info/clientVariant/vertical/index.js +1 -1
  37. package/lib/components/booking/info/model.d.ts +1 -10
  38. package/lib/components/booking/model.d.ts +1 -9
  39. package/lib/components/booking/notes/model.d.ts +1 -10
  40. package/lib/components/booking/payments/model.d.ts +1 -10
  41. package/lib/components/booking/utils.d.ts +2 -2
  42. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  43. package/lib/components/eftposPay/amount.d.ts +1 -1
  44. package/lib/components/eftposPay/device.d.ts +1 -1
  45. package/lib/components/eftposPay/hooks.d.ts +2 -2
  46. package/lib/components/eftposPay/store/index.d.ts +4 -4
  47. package/lib/components/pay/toC/model.d.ts +1 -9
  48. package/lib/components/schedules/model.d.ts +1 -9
  49. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  50. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  51. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  52. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  53. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  54. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  55. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  56. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  57. package/package.json +4 -4
  58. package/es/components/booking/components/footer/utils.d.ts +0 -67
  59. package/es/components/booking/components/voucher/index.d.ts +0 -3
  60. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  61. package/es/components/booking/info2/service/editService/utils.d.ts +0 -44
  62. package/es/components/ticketBooking/utils/index.d.ts +0 -103
  63. package/es/plus/clinetSearch/Add/index.d.ts +0 -18
  64. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  65. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  66. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  67. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -44
  68. package/lib/components/ticketBooking/utils/index.d.ts +0 -103
  69. package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const CardMask: ({ props }: {
5
5
  props: SkuStatusOverlayConfig;
6
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
7
7
  export default CardMask;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const Countdown: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
7
7
  export default Countdown;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Duration: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Duration;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const MemberPrice: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
7
7
  export default MemberPrice;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Resource: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Resource;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Stock: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Stock;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Time: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Time;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.92",
3
+ "version": "6.6.94",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -63,10 +63,10 @@
63
63
  "styled-components": "^6.0.0-rc.3",
64
64
  "@react-spring/web": "^9.6.1",
65
65
  "@use-gesture/react": "^10.3.1",
66
- "@pisell/date-picker": "3.0.7",
67
- "@pisell/icon": "0.0.11",
68
66
  "@pisell/utils": "3.0.2",
69
- "@pisell/materials": "6.6.24"
67
+ "@pisell/materials": "6.6.24",
68
+ "@pisell/icon": "0.0.11",
69
+ "@pisell/date-picker": "3.0.7"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": "^18.0.0",
@@ -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,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,44 +0,0 @@
1
- /**
2
- 1. 在进入编辑服务前
3
-
4
- 计算出各种需要的列表
5
-
6
- 设置默认值
7
-
8
- 判断是否需要进入编辑服务页
9
- */
10
- export declare const hasEntitlementDiscount: (item: any) => boolean;
11
- /** 已提交部分保留原扣次;增加的数量作为新商品交给 OS 重新计算。 */
12
- export declare const updateEntitlementQuantity: (previous: any, next: any) => any[];
13
- export declare const getAutoAllocationStorage: (id: string | number) => any;
14
- export declare const setAutoAllocationStorage: (data: {
15
- [key: string]: boolean;
16
- }) => void;
17
- /**
18
- * 手动折扣后给商品价格和子商品价格重新计算
19
- *
20
- * 计算逻辑:
21
- * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
22
- * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
23
- *
24
- * @param cacheItem - 缓存的商品项
25
- * @param newTotal - 折扣后的新总价
26
- * @param origin_total - 原始总价
27
- */
28
- export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
29
- newTotal: number;
30
- origin_total: number;
31
- }) => any;
32
- /**
33
- * 获取商品所有折扣列表 包含子商品
34
- * @param cacheItem - 缓存的商品项
35
- * @returns 折扣列表
36
- */
37
- export declare const getProductAllDiscountList: (cacheItem: any) => any[];
38
- /**
39
- * 合并 bundle 数据,基于 id 和 product_id 匹配,price 优先使用 originalOther 中的值
40
- * @param other - callback 返回的新数据
41
- * @param originalOther - 编辑前的原始数据 (item._extend.other)
42
- * @returns 合并后的 other
43
- */
44
- export declare const mergeBundleWithOriginalPrice: (other: any, originalOther: any) => any;
@@ -1,103 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- /** dayjs对象格式化为字符串时间 */
3
- export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
- export declare const getDefaultStartParam: () => string | string[];
5
- export declare const formatBookingList: (bookingList: any[]) => any[];
6
- export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
- export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
- export declare const formatOptions: (detail: any) => any;
9
- export declare const formatHolder: (detail: any) => any;
10
- export declare const restoreProductOtherData: (data: any) => {
11
- product_id: any;
12
- option: any;
13
- bundle: any;
14
- product_variant_id: any;
15
- quantity: number;
16
- } | undefined;
17
- export declare const isSameProduct: (a: any, b: any) => boolean;
18
- export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
19
- list: any[];
20
- count: number;
21
- quantity?: undefined;
22
- } | {
23
- list: any[];
24
- quantity: any;
25
- count?: undefined;
26
- };
27
- export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
28
- export declare const getCartProductOverlay: (state: any) => any;
29
- export declare const getIsOverlayProduct: (item: any, state: any) => any;
30
- export declare const getIsShowNumber: (item: any, state: any) => any;
31
- export declare const genServiceKey: (item: any) => string;
32
- export declare const genHolderKey: (item: any) => string;
33
- export declare const getIsParallelResourcesBooking: (record: any) => boolean;
34
- declare type ScanData = {
35
- type: string;
36
- status: 'success' | 'failed';
37
- scanType: 'nfc' | 'scanner';
38
- scanCode: string;
39
- result: {
40
- searchType: 'customer' | 'wallet' | 'walletPass' | 'product' | 'local_product';
41
- response: {
42
- status: boolean;
43
- code: number;
44
- message: string;
45
- data: any;
46
- };
47
- };
48
- };
49
- export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
51
- data: any;
52
- scanCode: string;
53
- } | null;
54
- export declare const formatScanGlobal: (data: ScanData) => {
55
- searchType: "wallet";
56
- data: any;
57
- scanCode: string;
58
- } | {
59
- searchType: "walletPass";
60
- data: any;
61
- scanCode: string;
62
- } | {
63
- searchType: "product" | "local_product";
64
- data: any;
65
- scanCode: string;
66
- } | null | undefined;
67
- export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
68
- export declare const getBookingTicketKey: (osKey: string) => string;
69
- export declare const getShopDiscountKey: (osKey: string) => string;
70
- export declare const rulesHooks: {
71
- getProduct(product: Record<string, any>): {
72
- booking_id: any;
73
- id: any;
74
- _id: any;
75
- price: any;
76
- total: any;
77
- discount_list: any;
78
- origin_total: any;
79
- num: any;
80
- quantity: any;
81
- vouchersApplicable: any;
82
- holder_id: any;
83
- isNormalProduct: any;
84
- startDate: any;
85
- bundle: any;
86
- options: any;
87
- main_product_selling_price: any;
88
- };
89
- setProduct(product: Record<string, any>, values: {
90
- total: number;
91
- discount_list: any[];
92
- price: number;
93
- quantity: number;
94
- _id?: string;
95
- }): {
96
- _id: any;
97
- discount_list: any[];
98
- _extend: any;
99
- };
100
- };
101
- export declare const clearCacheProductDetail: () => void;
102
- export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
103
- export type { CacheType } from './productCache';
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface AddClientProps {
4
- onChange: (value: any, isChecked: boolean) => void;
5
- phone?: string;
6
- containerProps: {
7
- className?: string;
8
- title?: string;
9
- open?: boolean;
10
- onCancel?: () => void;
11
- width?: string | number;
12
- };
13
- }
14
- export interface AddClientRef {
15
- reset: () => void;
16
- }
17
- declare const AddClient: React.ForwardRefExoticComponent<AddClientProps & React.RefAttributes<unknown>>;
18
- export default AddClient;
@@ -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,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,44 +0,0 @@
1
- /**
2
- 1. 在进入编辑服务前
3
-
4
- 计算出各种需要的列表
5
-
6
- 设置默认值
7
-
8
- 判断是否需要进入编辑服务页
9
- */
10
- export declare const hasEntitlementDiscount: (item: any) => boolean;
11
- /** 已提交部分保留原扣次;增加的数量作为新商品交给 OS 重新计算。 */
12
- export declare const updateEntitlementQuantity: (previous: any, next: any) => any[];
13
- export declare const getAutoAllocationStorage: (id: string | number) => any;
14
- export declare const setAutoAllocationStorage: (data: {
15
- [key: string]: boolean;
16
- }) => void;
17
- /**
18
- * 手动折扣后给商品价格和子商品价格重新计算
19
- *
20
- * 计算逻辑:
21
- * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
22
- * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
23
- *
24
- * @param cacheItem - 缓存的商品项
25
- * @param newTotal - 折扣后的新总价
26
- * @param origin_total - 原始总价
27
- */
28
- export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
29
- newTotal: number;
30
- origin_total: number;
31
- }) => any;
32
- /**
33
- * 获取商品所有折扣列表 包含子商品
34
- * @param cacheItem - 缓存的商品项
35
- * @returns 折扣列表
36
- */
37
- export declare const getProductAllDiscountList: (cacheItem: any) => any[];
38
- /**
39
- * 合并 bundle 数据,基于 id 和 product_id 匹配,price 优先使用 originalOther 中的值
40
- * @param other - callback 返回的新数据
41
- * @param originalOther - 编辑前的原始数据 (item._extend.other)
42
- * @returns 合并后的 other
43
- */
44
- export declare const mergeBundleWithOriginalPrice: (other: any, originalOther: any) => any;
@@ -1,103 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- /** dayjs对象格式化为字符串时间 */
3
- export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
- export declare const getDefaultStartParam: () => string | string[];
5
- export declare const formatBookingList: (bookingList: any[]) => any[];
6
- export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
- export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
- export declare const formatOptions: (detail: any) => any;
9
- export declare const formatHolder: (detail: any) => any;
10
- export declare const restoreProductOtherData: (data: any) => {
11
- product_id: any;
12
- option: any;
13
- bundle: any;
14
- product_variant_id: any;
15
- quantity: number;
16
- } | undefined;
17
- export declare const isSameProduct: (a: any, b: any) => boolean;
18
- export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
19
- list: any[];
20
- count: number;
21
- quantity?: undefined;
22
- } | {
23
- list: any[];
24
- quantity: any;
25
- count?: undefined;
26
- };
27
- export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
28
- export declare const getCartProductOverlay: (state: any) => any;
29
- export declare const getIsOverlayProduct: (item: any, state: any) => any;
30
- export declare const getIsShowNumber: (item: any, state: any) => any;
31
- export declare const genServiceKey: (item: any) => string;
32
- export declare const genHolderKey: (item: any) => string;
33
- export declare const getIsParallelResourcesBooking: (record: any) => boolean;
34
- declare type ScanData = {
35
- type: string;
36
- status: 'success' | 'failed';
37
- scanType: 'nfc' | 'scanner';
38
- scanCode: string;
39
- result: {
40
- searchType: 'customer' | 'wallet' | 'walletPass' | 'product' | 'local_product';
41
- response: {
42
- status: boolean;
43
- code: number;
44
- message: string;
45
- data: any;
46
- };
47
- };
48
- };
49
- export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
51
- data: any;
52
- scanCode: string;
53
- } | null;
54
- export declare const formatScanGlobal: (data: ScanData) => {
55
- searchType: "wallet";
56
- data: any;
57
- scanCode: string;
58
- } | {
59
- searchType: "walletPass";
60
- data: any;
61
- scanCode: string;
62
- } | {
63
- searchType: "product" | "local_product";
64
- data: any;
65
- scanCode: string;
66
- } | null | undefined;
67
- export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
68
- export declare const getBookingTicketKey: (osKey: string) => string;
69
- export declare const getShopDiscountKey: (osKey: string) => string;
70
- export declare const rulesHooks: {
71
- getProduct(product: Record<string, any>): {
72
- booking_id: any;
73
- id: any;
74
- _id: any;
75
- price: any;
76
- total: any;
77
- discount_list: any;
78
- origin_total: any;
79
- num: any;
80
- quantity: any;
81
- vouchersApplicable: any;
82
- holder_id: any;
83
- isNormalProduct: any;
84
- startDate: any;
85
- bundle: any;
86
- options: any;
87
- main_product_selling_price: any;
88
- };
89
- setProduct(product: Record<string, any>, values: {
90
- total: number;
91
- discount_list: any[];
92
- price: number;
93
- quantity: number;
94
- _id?: string;
95
- }): {
96
- _id: any;
97
- discount_list: any[];
98
- _extend: any;
99
- };
100
- };
101
- export declare const clearCacheProductDetail: () => void;
102
- export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
103
- export type { CacheType } from './productCache';
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface AddClientProps {
4
- onChange: (value: any, isChecked: boolean) => void;
5
- phone?: string;
6
- containerProps: {
7
- className?: string;
8
- title?: string;
9
- open?: boolean;
10
- onCancel?: () => void;
11
- width?: string | number;
12
- };
13
- }
14
- export interface AddClientRef {
15
- reset: () => void;
16
- }
17
- declare const AddClient: React.ForwardRefExoticComponent<AddClientProps & React.RefAttributes<unknown>>;
18
- export default AddClient;