@pisell/private-materials 6.2.48 → 6.2.50

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 (170) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
  12. package/es/components/appointmentBooking/components/Content/index.js +3 -3
  13. package/es/components/appointmentBooking/components/Services/index.js +36 -18
  14. package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
  15. package/es/components/appointmentBooking/hooks.js +10 -2
  16. package/es/components/appointmentBooking/index.js +10 -0
  17. package/es/components/booking/addons/model.d.ts +1 -10
  18. package/es/components/booking/components/footer/index.js +12 -1
  19. package/es/components/booking/editBookingModal/index.js +8 -2
  20. package/es/components/booking/forms/model.d.ts +1 -10
  21. package/es/components/booking/info/model.d.ts +1 -10
  22. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  23. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/locales.d.ts +6 -0
  25. package/es/components/booking/locales.js +21 -9
  26. package/es/components/booking/model.d.ts +1 -9
  27. package/es/components/booking/notes/model.d.ts +1 -10
  28. package/es/components/booking/payments/model.d.ts +1 -10
  29. package/es/components/eftposPay/hooks.d.ts +1 -1
  30. package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
  31. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +25 -4
  32. package/es/components/eftposPay/store/index.d.ts +2 -2
  33. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
  34. package/es/components/index.d.ts +3 -1
  35. package/es/components/index.js +3 -1
  36. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
  37. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  38. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
  39. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  40. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
  41. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  42. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
  43. package/es/components/pay/toC/model.d.ts +1 -9
  44. package/es/components/pay/toC/utils.js +1 -1
  45. package/es/components/pinModal/hooks.d.ts +7 -0
  46. package/es/components/pinModal/hooks.js +65 -0
  47. package/es/components/pinModal/index.d.ts +4 -0
  48. package/es/components/pinModal/index.js +98 -0
  49. package/es/components/pinModal/index.less +44 -0
  50. package/es/components/pinModal/locales.d.ts +27 -0
  51. package/es/components/pinModal/locales.js +26 -0
  52. package/es/components/pinModal/serve.d.ts +6 -0
  53. package/es/components/pinModal/serve.js +11 -0
  54. package/es/components/pinModal/types.d.ts +0 -0
  55. package/es/components/pinModal/types.js +0 -0
  56. package/es/components/pinVerifyModal/hooks.d.ts +7 -0
  57. package/es/components/pinVerifyModal/hooks.js +80 -0
  58. package/es/components/pinVerifyModal/index.d.ts +5 -0
  59. package/es/components/pinVerifyModal/index.js +218 -0
  60. package/es/components/pinVerifyModal/index.less +92 -0
  61. package/es/components/pinVerifyModal/locales.d.ts +24 -0
  62. package/es/components/pinVerifyModal/locales.js +23 -0
  63. package/es/components/pinVerifyModal/types.d.ts +33 -0
  64. package/es/components/pinVerifyModal/types.js +1 -0
  65. package/es/components/ruleSetting/locales.js +3 -3
  66. package/es/components/schedules/model.d.ts +1 -9
  67. package/es/components/ticketBooking/components/ticketBooking/index.js +58 -10
  68. package/es/components/ticketBooking/components/timeBar/index.js +2 -1
  69. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  70. package/es/components/wallet/Detail/index.js +251 -63
  71. package/es/components/wallet/Detail/locales.d.ts +51 -0
  72. package/es/components/wallet/Detail/locales.js +57 -3
  73. package/es/components/wallet/Detail/model.d.ts +1 -13
  74. package/es/components/wallet/Detail/serve.js +5 -1
  75. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  76. package/es/components/wallet/PointCard/model.d.ts +1 -13
  77. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  78. package/es/components/wallet/Voucher/model.d.ts +1 -13
  79. package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
  80. package/es/components/wallet/components/UsageRules/index.js +147 -0
  81. package/es/components/wallet/components/UsageRules/index.less +157 -0
  82. package/es/components/wallet/components/WalletCard.js +8 -3
  83. package/es/components/wallet/components/index.d.ts +1 -0
  84. package/es/components/wallet/components/index.js +2 -1
  85. package/es/components/wallet/model.d.ts +1 -9
  86. package/es/components/walletList/index.js +20 -2
  87. package/es/index.d.ts +2 -0
  88. package/es/index.js +3 -1
  89. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
  90. package/lib/components/appointmentBooking/components/Content/index.js +2 -2
  91. package/lib/components/appointmentBooking/components/Services/index.js +13 -3
  92. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  93. package/lib/components/appointmentBooking/hooks.js +10 -2
  94. package/lib/components/appointmentBooking/index.js +6 -0
  95. package/lib/components/booking/addons/model.d.ts +1 -10
  96. package/lib/components/booking/components/footer/index.js +15 -2
  97. package/lib/components/booking/components/voucher/index.js +1 -3
  98. package/lib/components/booking/editBookingModal/index.js +6 -1
  99. package/lib/components/booking/forms/model.d.ts +1 -10
  100. package/lib/components/booking/info/model.d.ts +1 -10
  101. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  102. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  103. package/lib/components/booking/locales.d.ts +6 -0
  104. package/lib/components/booking/locales.js +15 -9
  105. package/lib/components/booking/model.d.ts +1 -9
  106. package/lib/components/booking/notes/model.d.ts +1 -10
  107. package/lib/components/booking/payments/model.d.ts +1 -10
  108. package/lib/components/eftposPay/hooks.d.ts +1 -1
  109. package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
  110. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +16 -4
  111. package/lib/components/eftposPay/store/index.d.ts +2 -2
  112. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
  113. package/lib/components/index.d.ts +3 -1
  114. package/lib/components/index.js +6 -0
  115. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  116. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  117. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
  118. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  119. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
  120. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  121. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
  122. package/lib/components/pay/toC/model.d.ts +1 -9
  123. package/lib/components/pay/toC/utils.js +1 -1
  124. package/lib/components/pinModal/hooks.d.ts +7 -0
  125. package/lib/components/pinModal/hooks.js +85 -0
  126. package/lib/components/pinModal/index.d.ts +4 -0
  127. package/lib/components/pinModal/index.js +88 -0
  128. package/lib/components/pinModal/index.less +44 -0
  129. package/lib/components/pinModal/locales.d.ts +27 -0
  130. package/lib/components/pinModal/locales.js +50 -0
  131. package/lib/components/pinModal/serve.d.ts +6 -0
  132. package/lib/components/pinModal/serve.js +37 -0
  133. package/lib/components/pinModal/types.d.ts +0 -0
  134. package/lib/components/pinModal/types.js +0 -0
  135. package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
  136. package/lib/components/pinVerifyModal/hooks.js +93 -0
  137. package/lib/components/pinVerifyModal/index.d.ts +5 -0
  138. package/lib/components/pinVerifyModal/index.js +230 -0
  139. package/lib/components/pinVerifyModal/index.less +92 -0
  140. package/lib/components/pinVerifyModal/locales.d.ts +24 -0
  141. package/lib/components/pinVerifyModal/locales.js +47 -0
  142. package/lib/components/pinVerifyModal/types.d.ts +33 -0
  143. package/lib/components/pinVerifyModal/types.js +17 -0
  144. package/lib/components/ruleSetting/locales.js +3 -3
  145. package/lib/components/schedules/model.d.ts +1 -9
  146. package/lib/components/ticketBooking/components/ticketBooking/index.js +50 -6
  147. package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
  148. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  149. package/lib/components/wallet/Detail/index.js +140 -8
  150. package/lib/components/wallet/Detail/locales.d.ts +51 -0
  151. package/lib/components/wallet/Detail/locales.js +57 -3
  152. package/lib/components/wallet/Detail/model.d.ts +1 -13
  153. package/lib/components/wallet/Detail/serve.js +6 -1
  154. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  155. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  156. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  157. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  158. package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
  159. package/lib/components/wallet/components/UsageRules/index.js +113 -0
  160. package/lib/components/wallet/components/UsageRules/index.less +157 -0
  161. package/lib/components/wallet/components/WalletCard.js +3 -1
  162. package/lib/components/wallet/components/index.d.ts +1 -0
  163. package/lib/components/wallet/components/index.js +3 -0
  164. package/lib/components/wallet/model.d.ts +1 -9
  165. package/lib/components/walletList/index.js +19 -2
  166. package/lib/index.d.ts +2 -0
  167. package/lib/index.js +6 -0
  168. package/lowcode/pin-modal/meta.ts +37 -0
  169. package/lowcode/pin-verify-modal/meta.ts +80 -0
  170. package/package.json +3 -3
@@ -0,0 +1,92 @@
1
+ .pin-verify-modal-content {
2
+ width: 100%;
3
+ height: 100%;
4
+ padding-bottom: 16px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ gap: 16px;
9
+
10
+ &-user {
11
+ min-width: 300px;
12
+ min-height: 60px;
13
+ padding: 8px;
14
+ display: flex;
15
+ align-items: center;
16
+ gap: 8px;
17
+ border-radius: 8px;
18
+ border: 1px solid #d0d5dd;
19
+
20
+ &-avatar {
21
+ width: 42px;
22
+ height: 42px;
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ border-radius: 50%;
27
+ overflow: hidden;
28
+
29
+ &-img {
30
+ width: 100%;
31
+ }
32
+ }
33
+
34
+ &-right {
35
+ display: flex;
36
+ flex-direction: column;
37
+ gap: 4px;
38
+
39
+ &-name {
40
+ font-size: 16px;
41
+ font-weight: 600;
42
+ color: #101828;
43
+ }
44
+
45
+ &-wallet {
46
+ color: #667085;
47
+ font-size: 14px;
48
+ font-weight: 400;
49
+ }
50
+ }
51
+ }
52
+
53
+ &-keyboard {
54
+ display: flex;
55
+ flex-direction: column;
56
+ align-items: center;
57
+ gap: 8px;
58
+
59
+ &-title {
60
+ text-align: center;
61
+ color: #101828;
62
+ font-size: 16px;
63
+ font-weight: 500;
64
+ }
65
+
66
+ &-desc {
67
+ color: #667085;
68
+ font-size: 16px;
69
+ font-weight: 400;
70
+ }
71
+ }
72
+
73
+ .virtual-keyboard-input-wrap {
74
+ height: 45px !important;
75
+ }
76
+
77
+ .virtual-keyboard-wrap .virtual-keyboard-content .virtual-keyboard-item {
78
+ padding-top: 50px !important;
79
+ }
80
+
81
+ .virtual-keyboard-wrap
82
+ .virtual-keyboard-content
83
+ .virtual-keyboard-item
84
+ .virtual-keyboard-item-button {
85
+ padding: 0 !important;
86
+ }
87
+
88
+ .virtual-keyboard-input-delete {
89
+ font-size: 30px;
90
+ color: #000;
91
+ }
92
+ }
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.pin.verify.modal.title': string;
4
+ 'pisell2.pin.verify.modal.wallet': string;
5
+ 'pisell2.pin.verify.modal.keyboard.title': string;
6
+ 'pisell2.pin.verify.modal.keyboard.desc': string;
7
+ 'pisell2.pin.verify.modal.keyboard.verify': string;
8
+ };
9
+ 'zh-CN': {
10
+ 'pisell2.pin.verify.modal.title': string;
11
+ 'pisell2.pin.verify.modal.wallet': string;
12
+ 'pisell2.pin.verify.modal.keyboard.title': string;
13
+ 'pisell2.pin.verify.modal.keyboard.desc': string;
14
+ 'pisell2.pin.verify.modal.keyboard.verify': string;
15
+ };
16
+ 'zh-HK': {
17
+ 'pisell2.pin.verify.modal.title': string;
18
+ 'pisell2.pin.verify.modal.wallet': string;
19
+ 'pisell2.pin.verify.modal.keyboard.title': string;
20
+ 'pisell2.pin.verify.modal.keyboard.desc': string;
21
+ 'pisell2.pin.verify.modal.keyboard.verify': string;
22
+ };
23
+ };
24
+ export default _default;
@@ -0,0 +1,23 @@
1
+ export default {
2
+ en: {
3
+ 'pisell2.pin.verify.modal.title': 'Wallet Verification',
4
+ 'pisell2.pin.verify.modal.wallet': 'Wallet : ',
5
+ 'pisell2.pin.verify.modal.keyboard.title': 'Enter the 4-digit PIN to continue',
6
+ 'pisell2.pin.verify.modal.keyboard.desc': 'Remaining attempts : ',
7
+ 'pisell2.pin.verify.modal.keyboard.verify': 'Verify'
8
+ },
9
+ 'zh-CN': {
10
+ 'pisell2.pin.verify.modal.title': '钱包验证',
11
+ 'pisell2.pin.verify.modal.wallet': '钱包 : ',
12
+ 'pisell2.pin.verify.modal.keyboard.title': '请输入该钱包的4位PIN码以继续',
13
+ 'pisell2.pin.verify.modal.keyboard.desc': '剩余验证次数 : ',
14
+ 'pisell2.pin.verify.modal.keyboard.verify': '验证'
15
+ },
16
+ 'zh-HK': {
17
+ 'pisell2.pin.verify.modal.title': '錢包驗證',
18
+ 'pisell2.pin.verify.modal.wallet': '錢包 : ',
19
+ 'pisell2.pin.verify.modal.keyboard.title': '請輸入該錢包的4位PIN碼以繼續',
20
+ 'pisell2.pin.verify.modal.keyboard.desc': '剩餘驗證次數 : ',
21
+ 'pisell2.pin.verify.modal.keyboard.verify': '驗證'
22
+ }
23
+ };
@@ -0,0 +1,33 @@
1
+ export interface PinVerifyModalProps {
2
+ onOpen?: () => void;
3
+ onClose?: () => void;
4
+ onSuccess?: (params?: VerifyPinSuccessParams) => void;
5
+ }
6
+ export interface PinVerifyModalRef {
7
+ open: (params: ModalParams) => void;
8
+ close: () => void;
9
+ }
10
+ export interface ModalParams {
11
+ wallet_code: string;
12
+ wallet_detail_id: string | number;
13
+ failed_count?: number;
14
+ check_max_count?: number;
15
+ customer?: {
16
+ display_name?: string;
17
+ nickname?: string;
18
+ cover?: string;
19
+ };
20
+ }
21
+ export interface VerifyInfo {
22
+ remaining_count?: number;
23
+ failed_count?: number;
24
+ check_max_count?: number;
25
+ }
26
+ export declare type TVerifyPin = (data: {
27
+ wallet_detail_id: string | number;
28
+ pin: string;
29
+ }, onSuccess: (params: VerifyPinSuccessParams) => void) => void;
30
+ export interface VerifyPinSuccessParams {
31
+ customer_id: string | number;
32
+ customer_pin_key: string;
33
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -11,7 +11,7 @@ export default {
11
11
  'pisell2.text.rule-setting.sales_channel': "Operation platform",
12
12
  'pisell2.text.rule-setting.staff': "Staff",
13
13
  'pisell2.text.rule-setting.payment_method': "Payment method",
14
- 'pisell2.text.rule-setting.pisell_terminal_device': "Pisell terminal device",
14
+ 'pisell2.text.rule-setting.pisell_terminal_device': "Terminal device",
15
15
  'pisell2.text.rule-setting.current_device': "Current device"
16
16
  },
17
17
  'zh-CN': {
@@ -26,7 +26,7 @@ export default {
26
26
  'pisell2.text.rule-setting.sales_channel': "操作平台",
27
27
  'pisell2.text.rule-setting.staff': "员工",
28
28
  'pisell2.text.rule-setting.payment_method': "支付方式",
29
- 'pisell2.text.rule-setting.pisell_terminal_device': "Pisell终端",
29
+ 'pisell2.text.rule-setting.pisell_terminal_device': "终端",
30
30
  'pisell2.text.rule-setting.current_device': "当前设备"
31
31
  },
32
32
  'zh-HK': {
@@ -41,7 +41,7 @@ export default {
41
41
  'pisell2.text.rule-setting.sales_channel': "操作平台",
42
42
  'pisell2.text.rule-setting.staff': "員工",
43
43
  'pisell2.text.rule-setting.payment_method': "支付方式",
44
- 'pisell2.text.rule-setting.pisell_terminal_device': "Pisell終端",
44
+ 'pisell2.text.rule-setting.pisell_terminal_device': "終端",
45
45
  'pisell2.text.rule-setting.current_device': "當前設備"
46
46
  }
47
47
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -23,7 +23,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
23
23
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
24
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
25
  import React, { useEffect, useMemo, useRef, useState } from 'react';
26
- import { locales } from '@pisell/utils';
26
+ import { locales, sendWarningLog } from '@pisell/utils';
27
27
  import { message } from 'antd';
28
28
  import { Iconfont } from '@pisell/materials';
29
29
  import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices, voidAppointment } from "../../serve";
@@ -48,6 +48,7 @@ import { getBookingType } from "../bookingDataPanel/bookingList/utils";
48
48
  import { useCustomer } from "../../hooks/pisellos";
49
49
  import useScanManager from "../../hooks/pisellos/useScanManager";
50
50
  import { useShopDiscount } from "../../../appointmentBooking/hooks";
51
+ import { useDebounceFn } from 'ahooks';
51
52
  export var _formatBookingDetail = function _formatBookingDetail(data, modalState) {
52
53
  var _bookings$list, _bookings$list2;
53
54
  var customer_id = data.customer_id,
@@ -266,8 +267,56 @@ var TicketBooking = function TicketBooking() {
266
267
  closeScan();
267
268
  };
268
269
  }, []);
270
+ var _useDebounceFn = useDebounceFn(function (type, orderId) {
271
+ // 支付成功后清空状态
272
+ try {
273
+ var _store$getState;
274
+ _initFn(function () {});
275
+ setState({
276
+ createCount: state.createCount + 1
277
+ });
278
+ sendWarningLog({
279
+ title: '清空购物车',
280
+ content: [{
281
+ key: '店铺id',
282
+ value: store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.globalConfig) === null || _store$getState === void 0 ? void 0 : _store$getState.id
283
+ }, {
284
+ key: '订单id',
285
+ value: orderId
286
+ }, {
287
+ key: '类型',
288
+ value: type
289
+ }]
290
+ });
291
+ } catch (err) {
292
+ var _store$getState2;
293
+ sendWarningLog({
294
+ title: '清空购物车失败',
295
+ content: [{
296
+ key: '店铺id',
297
+ value: store === null || store === void 0 || (_store$getState2 = store.getState) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.call(store)) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.global) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.globalConfig) === null || _store$getState2 === void 0 ? void 0 : _store$getState2.id
298
+ }, {
299
+ key: '订单id',
300
+ value: orderId
301
+ }, {
302
+ key: '类型',
303
+ value: type
304
+ }, {
305
+ key: 'error',
306
+ value: err === null || err === void 0 ? void 0 : err.message
307
+ }]
308
+ });
309
+ }
310
+ }, {
311
+ wait: 500,
312
+ leading: true,
313
+ trailing: false
314
+ }),
315
+ clearAllCart = _useDebounceFn.run;
269
316
  useEffect(function () {
270
- var _store$getState, _interaction$utils, _interaction$utils2;
317
+ var _store$getState3, _interaction$utils, _interaction$utils2;
318
+ // bellaswonderland.mypisell.com localStorage可能满了
319
+ localStorage.removeItem('bookingResourceList');
271
320
  _persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
272
321
  if (lowcodeRef) {
273
322
  lowcodeRef.onReady(_this);
@@ -293,7 +342,7 @@ var TicketBooking = function TicketBooking() {
293
342
  });
294
343
  });
295
344
  setState({
296
- amountSymbol: (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 ? void 0 : _store$getState.symbol) || '$'
345
+ amountSymbol: (store === null || store === void 0 || (_store$getState3 = store.getState) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.call(store)) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.global) === null || _store$getState3 === void 0 ? void 0 : _store$getState3.symbol) || '$'
297
346
  }, function () {
298
347
  _initStateRef.current = JSON.parse(JSON.stringify(state));
299
348
  _getBoardConfig();
@@ -305,6 +354,7 @@ var TicketBooking = function TicketBooking() {
305
354
  console.log('bookingTicket.clearAllCart');
306
355
  // 支付成功后清空状态
307
356
  _initFn(function () {});
357
+ _setIntervalTime(true);
308
358
  selectCustomer(null);
309
359
  enableAllScanListeners();
310
360
  shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
@@ -511,8 +561,8 @@ var TicketBooking = function TicketBooking() {
511
561
  }, 100);
512
562
  };
513
563
  var _setShopOpeningHours = function _setShopOpeningHours() {
514
- var _store$getState2;
515
- var time = store === null || store === void 0 || (_store$getState2 = store.getState) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.call(store)) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.global) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.shopDetail) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.operating_day_boundary) === null || _store$getState2 === void 0 ? void 0 : _store$getState2.time;
564
+ var _store$getState4;
565
+ var time = store === null || store === void 0 || (_store$getState4 = store.getState) === null || _store$getState4 === void 0 || (_store$getState4 = _store$getState4.call(store)) === null || _store$getState4 === void 0 || (_store$getState4 = _store$getState4.global) === null || _store$getState4 === void 0 || (_store$getState4 = _store$getState4.shopDetail) === null || _store$getState4 === void 0 || (_store$getState4 = _store$getState4.operating_day_boundary) === null || _store$getState4 === void 0 ? void 0 : _store$getState4.time;
516
566
  if (time) {
517
567
  localStorage.setItem('shopOpeningHours', time);
518
568
  }
@@ -531,11 +581,10 @@ var TicketBooking = function TicketBooking() {
531
581
  });
532
582
  case 2:
533
583
  data = _context.sent;
534
- console.log('wwww', data);
535
584
  setState({
536
585
  addTimeProducts: (data === null || data === void 0 ? void 0 : data.list) || []
537
586
  });
538
- case 5:
587
+ case 4:
539
588
  case "end":
540
589
  return _context.stop();
541
590
  }
@@ -700,9 +749,9 @@ var TicketBooking = function TicketBooking() {
700
749
  // 储存参数, 添加服务商品时使用
701
750
  sessionStorage.setItem('pisell2.booking.serviceParams', JSON.stringify(data));
702
751
  } else {
703
- var _store$getState3;
752
+ var _store$getState5;
704
753
  // 当前时区的时间
705
- var timezone = store === null || store === void 0 || (_store$getState3 = store.getState) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.call(store)) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.global) === null || _store$getState3 === void 0 || (_store$getState3 = _store$getState3.globalConfig) === null || _store$getState3 === void 0 ? void 0 : _store$getState3.timezone;
754
+ var timezone = store === null || store === void 0 || (_store$getState5 = store.getState) === null || _store$getState5 === void 0 || (_store$getState5 = _store$getState5.call(store)) === null || _store$getState5 === void 0 || (_store$getState5 = _store$getState5.global) === null || _store$getState5 === void 0 || (_store$getState5 = _store$getState5.globalConfig) === null || _store$getState5 === void 0 ? void 0 : _store$getState5.timezone;
706
755
  initState.modalState.date.value = dayjs.tz(new Date(), timezone);
707
756
  // 兜底, 没有传递则清空下
708
757
  sessionStorage.removeItem('pisell2.booking.serviceParams');
@@ -901,7 +950,6 @@ var TicketBooking = function TicketBooking() {
901
950
  isShowDeposit: state.isShowDeposit,
902
951
  disableEventBookingEdit: state.disableEventBookingEdit,
903
952
  list: state.list,
904
- intervalSetTime: state.intervalSetTime,
905
953
  createCount: state.createCount,
906
954
  bookingFunctions: state.bookingFunctions,
907
955
  isParallelResourcesBooking: state.isParallelResourcesBooking
@@ -9,6 +9,7 @@ import { LeftOutlined, RightOutlined } from '@ant-design/icons';
9
9
  import { DatePicker, SelectTime } from '@pisell/materials';
10
10
  import { useMemoizedFn } from 'ahooks';
11
11
  import { Button } from 'antd';
12
+ import dayjs from 'dayjs';
12
13
  import classNames from 'classnames';
13
14
  import { locales } from '@pisell/utils';
14
15
  import "./index.less";
@@ -54,7 +55,7 @@ var TimeBar = function TimeBar(props) {
54
55
  setGlobalState({
55
56
  isTimeChange: true
56
57
  });
57
- (_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, false);
58
+ (_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, timeString === dayjs().format('HH:mm'));
58
59
  });
59
60
  return useMemo(function () {
60
61
  var _state$modalState4, _state$modalState5;
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "wallet" | "walletPass" | "product" | "local_product" | "customer";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;