@pisell/private-materials 6.4.54 → 6.4.56

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 (59) 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/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/booking/addons/model.d.ts +1 -10
  9. package/es/components/booking/components/footer/utils.js +2 -0
  10. package/es/components/booking/forms/footer.js +4 -13
  11. package/es/components/booking/forms/model.d.ts +1 -10
  12. package/es/components/booking/info/model.d.ts +1 -10
  13. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/info/service2/utils.d.ts +1 -1
  15. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/model.d.ts +1 -9
  17. package/es/components/booking/notes/model.d.ts +1 -10
  18. package/es/components/booking/payments/model.d.ts +1 -10
  19. package/es/components/booking/utils.d.ts +2 -2
  20. package/es/components/checkout/PaymentModal.js +17 -16
  21. package/es/components/eftposPay/amount.d.ts +1 -1
  22. package/es/components/eftposPay/device.d.ts +1 -1
  23. package/es/components/eftposPay/hooks.d.ts +2 -2
  24. package/es/components/eftposPay/store/index.d.ts +6 -6
  25. package/es/components/pay/toC/model.d.ts +1 -9
  26. package/es/components/schedules/model.d.ts +1 -9
  27. package/es/components/wallet/Detail/model.d.ts +1 -13
  28. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  29. package/es/components/wallet/PointCard/model.d.ts +1 -13
  30. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  31. package/es/components/wallet/Voucher/model.d.ts +1 -13
  32. package/es/components/wallet/model.d.ts +1 -9
  33. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  34. package/lib/components/booking/addons/model.d.ts +1 -10
  35. package/lib/components/booking/components/footer/utils.js +2 -0
  36. package/lib/components/booking/forms/footer.js +7 -13
  37. package/lib/components/booking/forms/model.d.ts +1 -10
  38. package/lib/components/booking/info/model.d.ts +1 -10
  39. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  40. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  41. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  42. package/lib/components/booking/model.d.ts +1 -9
  43. package/lib/components/booking/notes/model.d.ts +1 -10
  44. package/lib/components/booking/payments/model.d.ts +1 -10
  45. package/lib/components/booking/utils.d.ts +2 -2
  46. package/lib/components/checkout/PaymentModal.js +5 -4
  47. package/lib/components/eftposPay/amount.d.ts +1 -1
  48. package/lib/components/eftposPay/device.d.ts +1 -1
  49. package/lib/components/eftposPay/hooks.d.ts +2 -2
  50. package/lib/components/eftposPay/store/index.d.ts +6 -6
  51. package/lib/components/pay/toC/model.d.ts +1 -9
  52. package/lib/components/schedules/model.d.ts +1 -9
  53. package/lib/components/wallet/Detail/model.d.ts +1 -13
  54. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  55. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  56. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  57. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  58. package/lib/components/wallet/model.d.ts +1 -9
  59. package/package.json +4 -4
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -112,6 +112,8 @@ export var formatProductBundle = function formatProductBundle(bundle) {
112
112
  // checkout 2.0 新增
113
113
  "price_type": d === null || d === void 0 ? void 0 : d.price_type,
114
114
  // checkout 2.0 新增
115
+ "custom_price": d === null || d === void 0 ? void 0 : d.price,
116
+ "custom_price_type": d === null || d === void 0 ? void 0 : d.price_type,
115
117
  "option": formatProductOption(d.option)
116
118
  };
117
119
  });
@@ -9,7 +9,7 @@ import useSendModal from "./sendModal/useSendModal";
9
9
  import SendModal from "./sendModal";
10
10
  import { locales } from '@pisell/utils';
11
11
  var Footer = function Footer(_ref) {
12
- var _state$form2, _state$client6, _state$form3, _state$client7;
12
+ var _state$client6, _state$form, _state$client7;
13
13
  var state = _ref.state,
14
14
  reload = _ref.reload;
15
15
  var _useSendModal = useSendModal(state === null || state === void 0 ? void 0 : state.bookingId),
@@ -37,14 +37,6 @@ var Footer = function Footer(_ref) {
37
37
  return _ref2.apply(this, arguments);
38
38
  };
39
39
  }();
40
-
41
- // 是否都填写完成
42
- var isAllCompleted = useMemo(function () {
43
- var _state$form;
44
- return Object.values((state === null || state === void 0 || (_state$form = state.form) === null || _state$form === void 0 ? void 0 : _state$form.value) || {}).every(function (item) {
45
- return item.length > 0;
46
- });
47
- }, [state === null || state === void 0 || (_state$form2 = state.form) === null || _state$form2 === void 0 ? void 0 : _state$form2.value]);
48
40
  var defaultValues = useMemo(function () {
49
41
  var _state$client, _state$client2, _state$client3, _state$client4, _state$client5;
50
42
  return {
@@ -57,7 +49,7 @@ var Footer = function Footer(_ref) {
57
49
  }
58
50
  };
59
51
  }, [(_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : _state$client6.value]);
60
- if (!state.bookingId || !(state !== null && state !== void 0 && (_state$form3 = state.form) !== null && _state$form3 !== void 0 && _state$form3.forms.length)) {
52
+ if (!state.bookingId || !(state !== null && state !== void 0 && (_state$form = state.form) !== null && _state$form !== void 0 && _state$form.forms.length)) {
61
53
  return null;
62
54
  }
63
55
  return /*#__PURE__*/React.createElement("div", {
@@ -72,9 +64,8 @@ var Footer = function Footer(_ref) {
72
64
  size: "large",
73
65
  block: true,
74
66
  type: "primary",
75
- onClick: handleOpen,
76
- disabled: isAllCompleted
77
- }, !isAllCompleted ? locales.getText('pisell2.text.send-form-reminder') : locales.getText('pisell2.text.send-form-reminder-completed')), /*#__PURE__*/React.createElement(SendModal, {
67
+ onClick: handleOpen
68
+ }, locales.getText('pisell2.text.send-form-reminder')), /*#__PURE__*/React.createElement(SendModal, {
78
69
  refreshKey: (_state$client7 = state.client) === null || _state$client7 === void 0 || (_state$client7 = _state$client7.value) === null || _state$client7 === void 0 ? void 0 : _state$client7.id,
79
70
  open: open,
80
71
  onCancel: function onCancel() {
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -106,11 +105,4 @@ export declare const walkInData: {
106
105
  id: number;
107
106
  nickname: string;
108
107
  };
109
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
- state: FormState;
111
- } & {
112
- dispatch: (params: {
113
- type: string;
114
- payload: any;
115
- }) => void;
116
- }>;
108
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -253,7 +253,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
253
253
  var onPaymentOptionClick = /*#__PURE__*/function () {
254
254
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(method) {
255
255
  var _method$totalAmount;
256
- var _ref4, id, code, name, type, finalAmount, eftposCodes, mx51Code, payType, _paymentMethodsRef$cu, data, isSynced, _orderId, _method$metadata, service_charge, _interaction$utils2, _interaction$utils2$p;
256
+ var _ref4, id, code, name, type, finalAmount, eftposCodes, mx51Code, payType, _paymentMethodsRef$cu, data, isSynced, _Toast$loading, _orderId, _method$metadata, service_charge, _interaction$utils2, _interaction$utils2$p;
257
257
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
258
258
  while (1) switch (_context2.prev = _context2.next) {
259
259
  case 0:
@@ -268,7 +268,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
268
268
  payType = 'mx51';
269
269
  }
270
270
  if (!payType) {
271
- _context2.next = 23;
271
+ _context2.next = 24;
272
272
  break;
273
273
  }
274
274
  _context2.next = 9;
@@ -276,24 +276,25 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
276
276
  case 9:
277
277
  isSynced = _context2.sent;
278
278
  if (isSynced) {
279
- _context2.next = 16;
279
+ _context2.next = 17;
280
280
  break;
281
281
  }
282
- _context2.next = 13;
282
+ Toast === null || Toast === void 0 || (_Toast$loading = Toast.loading) === null || _Toast$loading === void 0 || _Toast$loading.call(Toast);
283
+ _context2.next = 14;
283
284
  return checkoutModule.manualSyncOrderAsync();
284
- case 13:
285
+ case 14:
285
286
  data = _context2.sent;
286
- _context2.next = 20;
287
+ _context2.next = 21;
287
288
  break;
288
- case 16:
289
- _context2.next = 18;
289
+ case 17:
290
+ _context2.next = 19;
290
291
  return checkoutModule.getCurrentOrderId();
291
- case 18:
292
+ case 19:
292
293
  _orderId = _context2.sent;
293
294
  data = {
294
295
  orderId: _orderId
295
296
  };
296
- case 20:
297
+ case 21:
297
298
  (_paymentMethodsRef$cu = paymentMethodsRef.current) === null || _paymentMethodsRef$cu === void 0 || _paymentMethodsRef$cu.onPay(payType, {
298
299
  source: 'normal',
299
300
  data: {
@@ -357,9 +358,9 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
357
358
  }
358
359
  }
359
360
  });
360
- _context2.next = 28;
361
+ _context2.next = 29;
361
362
  break;
362
- case 23:
363
+ case 24:
363
364
  service_charge = null;
364
365
  if (method !== null && method !== void 0 && method.fixed || method !== null && method !== void 0 && method.percentage) {
365
366
  service_charge = {
@@ -384,7 +385,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
384
385
  });
385
386
  }
386
387
  // 从支付方式列表中查找现金支付方式
387
- _context2.next = 28;
388
+ _context2.next = 29;
388
389
  return checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.addPaymentItemAsync({
389
390
  amount: finalAmount,
390
391
  /** 支付类型,跟支付列表上对应的支付方式保持一致 */
@@ -400,7 +401,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
400
401
  /** 支付手续费 */
401
402
  service_charge: service_charge
402
403
  });
403
- case 28:
404
+ case 29:
404
405
  case "end":
405
406
  return _context2.stop();
406
407
  }
@@ -526,9 +527,9 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
526
527
  setBalanceDueTotalAmount(data.totalAmount || '0');
527
528
  });
528
529
  var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, function () {
529
- var _Toast$loading;
530
+ var _Toast$loading2;
530
531
  setSyncingLock(true);
531
- Toast === null || Toast === void 0 || (_Toast$loading = Toast.loading) === null || _Toast$loading === void 0 || _Toast$loading.call(Toast);
532
+ Toast === null || Toast === void 0 || (_Toast$loading2 = Toast.loading) === null || _Toast$loading2 === void 0 || _Toast$loading2.call(Toast);
532
533
  });
533
534
  var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, function (res) {
534
535
  setSyncingLock(false);
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "pay" | "amount" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -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;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -113,6 +113,8 @@ var formatProductBundle = (bundle) => {
113
113
  // checkout 2.0 新增
114
114
  "price_type": d == null ? void 0 : d.price_type,
115
115
  // checkout 2.0 新增
116
+ "custom_price": d == null ? void 0 : d.price,
117
+ "custom_price_type": d == null ? void 0 : d.price_type,
116
118
  "option": formatProductOption(d.option)
117
119
  };
118
120
  });
@@ -39,37 +39,31 @@ var import_useSendModal = __toESM(require("./sendModal/useSendModal"));
39
39
  var import_sendModal = __toESM(require("./sendModal"));
40
40
  var import_utils = require("@pisell/utils");
41
41
  var Footer = ({ state, reload }) => {
42
- var _a, _b, _c, _d, _e;
42
+ var _a, _b, _c, _d;
43
43
  const { open, setOpen, handleOpen, handleValuesChange, handleOk } = (0, import_useSendModal.default)(state == null ? void 0 : state.bookingId);
44
44
  const handleReload = async () => {
45
45
  await reload();
46
46
  import_materials.message.success(import_utils.locales.getText("pisell2.text.send-form-reminder-refresh"));
47
47
  };
48
- const isAllCompleted = (0, import_react.useMemo)(() => {
49
- var _a2;
50
- return Object.values(((_a2 = state == null ? void 0 : state.form) == null ? void 0 : _a2.value) || {}).every(
51
- (item) => item.length > 0
52
- );
53
- }, [(_a = state == null ? void 0 : state.form) == null ? void 0 : _a.value]);
54
48
  const defaultValues = (0, import_react.useMemo)(() => {
55
- var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i, _j;
49
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j;
56
50
  return {
57
51
  sendSms: !!((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.phone),
58
52
  sendEmail: !!((_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.email),
59
- email: (_f = (_e2 = state.client) == null ? void 0 : _e2.value) == null ? void 0 : _f.email,
53
+ email: (_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.email,
60
54
  phone: {
61
55
  code: (_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.country_calling_code,
62
56
  phone: (_j = (_i = state.client) == null ? void 0 : _i.value) == null ? void 0 : _j.phone
63
57
  }
64
58
  };
65
- }, [(_b = state.client) == null ? void 0 : _b.value]);
66
- if (!state.bookingId || !((_c = state == null ? void 0 : state.form) == null ? void 0 : _c.forms.length)) {
59
+ }, [(_a = state.client) == null ? void 0 : _a.value]);
60
+ if (!state.bookingId || !((_b = state == null ? void 0 : state.form) == null ? void 0 : _b.forms.length)) {
67
61
  return null;
68
62
  }
69
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tooltip, { title: import_utils.locales.getText("pisell2.text.send-form-reminder-tooltip") }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null), onClick: handleReload })), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", block: true, type: "primary", onClick: handleOpen, disabled: isAllCompleted }, !isAllCompleted ? import_utils.locales.getText("pisell2.text.send-form-reminder") : import_utils.locales.getText("pisell2.text.send-form-reminder-completed")), /* @__PURE__ */ import_react.default.createElement(
63
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tooltip, { title: import_utils.locales.getText("pisell2.text.send-form-reminder-tooltip") }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null), onClick: handleReload })), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { size: "large", block: true, type: "primary", onClick: handleOpen }, import_utils.locales.getText("pisell2.text.send-form-reminder")), /* @__PURE__ */ import_react.default.createElement(
70
64
  import_sendModal.default,
71
65
  {
72
- refreshKey: (_e = (_d = state.client) == null ? void 0 : _d.value) == null ? void 0 : _e.id,
66
+ refreshKey: (_d = (_c = state.client) == null ? void 0 : _c.value) == null ? void 0 : _d.id,
73
67
  open,
74
68
  onCancel: () => setOpen(false),
75
69
  onOk: handleOk,
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];