@pisell/private-materials 6.4.11 → 6.4.13

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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/booking/addons/model.d.ts +10 -1
  11. package/es/components/booking/forms/model.d.ts +10 -1
  12. package/es/components/booking/info/model.d.ts +10 -1
  13. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/model.d.ts +9 -1
  16. package/es/components/booking/notes/model.d.ts +10 -1
  17. package/es/components/booking/payments/model.d.ts +10 -1
  18. package/es/components/booking/utils.d.ts +2 -2
  19. package/es/components/checkout/PaymentModal.js +59 -23
  20. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  21. package/es/components/eftposPay/hooks.d.ts +1 -1
  22. package/es/components/eftposPay/store/index.d.ts +4 -4
  23. package/es/components/pay/toC/model.d.ts +9 -1
  24. package/es/components/schedules/model.d.ts +9 -1
  25. package/es/components/schedules/utils.d.ts +1 -1
  26. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  27. package/es/components/wallet/Detail/model.d.ts +13 -1
  28. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  29. package/es/components/wallet/PointCard/model.d.ts +13 -1
  30. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  31. package/es/components/wallet/Voucher/model.d.ts +13 -1
  32. package/es/components/wallet/model.d.ts +9 -1
  33. package/es/utils/index.d.ts +1 -1
  34. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  35. package/lib/components/booking/addons/model.d.ts +10 -1
  36. package/lib/components/booking/forms/model.d.ts +10 -1
  37. package/lib/components/booking/info/model.d.ts +10 -1
  38. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  39. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  40. package/lib/components/booking/model.d.ts +9 -1
  41. package/lib/components/booking/notes/model.d.ts +10 -1
  42. package/lib/components/booking/payments/model.d.ts +10 -1
  43. package/lib/components/booking/utils.d.ts +2 -2
  44. package/lib/components/checkout/PaymentModal.js +45 -6
  45. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  46. package/lib/components/eftposPay/hooks.d.ts +1 -1
  47. package/lib/components/eftposPay/store/index.d.ts +4 -4
  48. package/lib/components/pay/toC/model.d.ts +9 -1
  49. package/lib/components/schedules/model.d.ts +9 -1
  50. package/lib/components/schedules/utils.d.ts +1 -1
  51. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  52. package/lib/components/wallet/Detail/model.d.ts +13 -1
  53. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  54. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  55. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  56. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  57. package/lib/components/wallet/model.d.ts +9 -1
  58. package/lib/utils/index.d.ts +1 -1
  59. package/package.json +12 -12
@@ -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[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -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 | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1587,10 +1587,8 @@ var PaymentModal = function PaymentModal(_ref17) {
1587
1587
  setOrderNote(data.order_info.order_note);
1588
1588
  }
1589
1589
  }, [data]);
1590
- var _useState37 = useState(false),
1591
- _useState38 = _slicedToArray(_useState37, 2),
1592
- isLocalOrderCreated = _useState38[0],
1593
- setIsLocalOrderCreated = _useState38[1];
1590
+ var logger = usePaymentLogger();
1591
+ var isLocalOrderCreated = useRef(undefined);
1594
1592
  var unsubscribeRef = useRef(undefined);
1595
1593
 
1596
1594
  // 初始化checkout数据
@@ -1604,11 +1602,11 @@ var PaymentModal = function PaymentModal(_ref17) {
1604
1602
  _context17.prev = 0;
1605
1603
  // 获取 checkout 模块并处理订单数据
1606
1604
  checkout = pisellos === null || pisellos === void 0 ? void 0 : pisellos.getModule('checkout');
1607
- if (!(checkout && data && !isLocalOrderCreated)) {
1608
- _context17.next = 19;
1605
+ if (!(checkout && data && !isLocalOrderCreated.current)) {
1606
+ _context17.next = 20;
1609
1607
  break;
1610
1608
  }
1611
- setIsLocalOrderCreated(true);
1609
+ isLocalOrderCreated.current = true;
1612
1610
  _context17.next = 6;
1613
1611
  return getShopWalletPassId(interaction);
1614
1612
  case 6:
@@ -1644,6 +1642,15 @@ var PaymentModal = function PaymentModal(_ref17) {
1644
1642
  setTotalAmount(_orderInfo2.totalAmount);
1645
1643
  }
1646
1644
  setOrderInfo(_orderInfo2);
1645
+ if (unsubscribeRef.current) {
1646
+ logger === null || logger === void 0 || logger.addLog({
1647
+ type: 'info',
1648
+ title: '有重复的checkout:onOrderSynced,清空',
1649
+ metadata: {}
1650
+ });
1651
+ unsubscribeRef.current();
1652
+ unsubscribeRef.current = undefined;
1653
+ }
1647
1654
  // 监听订单同步完成,同步完成后显示订单完成 toast,关闭当前弹窗
1648
1655
  unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', function (data) {
1649
1656
  var _data$response, _responseData$payment2;
@@ -1670,6 +1677,13 @@ var PaymentModal = function PaymentModal(_ref17) {
1670
1677
  if (paymentStatus) {
1671
1678
  // 打印订单完整信息
1672
1679
  console.log('print_order_onOrderSynced>>>>', responseData);
1680
+ logger === null || logger === void 0 || logger.addLog({
1681
+ type: 'info',
1682
+ title: 'print_order_onOrderSynced',
1683
+ metadata: {
1684
+ responseData: responseData
1685
+ }
1686
+ });
1673
1687
  try {
1674
1688
  var _responseData$payment3;
1675
1689
  var params = {
@@ -1682,11 +1696,32 @@ var PaymentModal = function PaymentModal(_ref17) {
1682
1696
  }
1683
1697
  };
1684
1698
  console.log('print_order_onOrderSynced_params>>>>', params);
1699
+ logger === null || logger === void 0 || logger.addLog({
1700
+ type: 'info',
1701
+ title: 'print_order_onOrderSynced_params',
1702
+ metadata: {
1703
+ params: params
1704
+ }
1705
+ });
1685
1706
  webPrint(params, function (res) {
1686
1707
  console.log('print_order_onOrderSynced_res>>>>', res);
1708
+ logger === null || logger === void 0 || logger.addLog({
1709
+ type: 'info',
1710
+ title: 'print_order_onOrderSynced_res',
1711
+ metadata: {
1712
+ res: res
1713
+ }
1714
+ });
1687
1715
  });
1688
1716
  } catch (error) {
1689
1717
  console.error('print_order_onOrderSynced_error>>>>', error);
1718
+ logger === null || logger === void 0 || logger.addLog({
1719
+ type: 'info',
1720
+ title: 'print_order_onOrderSynced_error',
1721
+ metadata: {
1722
+ error: error
1723
+ }
1724
+ });
1690
1725
  }
1691
1726
 
1692
1727
  // 确定支付状态
@@ -1719,46 +1754,46 @@ var PaymentModal = function PaymentModal(_ref17) {
1719
1754
  // 可以在这里执行同步完成后的业务逻辑
1720
1755
  // 比如:通知其他系统、更新UI状态等
1721
1756
  });
1722
- _context17.next = 30;
1757
+ _context17.next = 31;
1723
1758
  break;
1724
- case 19:
1725
- if (!isLocalOrderCreated) {
1726
- _context17.next = 30;
1759
+ case 20:
1760
+ if (!isLocalOrderCreated.current) {
1761
+ _context17.next = 31;
1727
1762
  break;
1728
1763
  }
1729
1764
  // // 如果本地订单已创建,这时候还更新了 data,则需要销毁当前的订单数据,然后更新新的订单数据了
1730
1765
  console.log('🔄 PaymentModal: data changed, updating checkout data...');
1731
- setIsLocalOrderCreated(false);
1732
- _context17.next = 24;
1766
+ isLocalOrderCreated.current = false;
1767
+ _context17.next = 25;
1733
1768
  return checkout.cancelCurrentOrderAsync();
1734
- case 24:
1735
- _context17.next = 26;
1769
+ case 25:
1770
+ _context17.next = 27;
1736
1771
  return checkout.createLocalOrderAsync({
1737
1772
  orderData: data === null || data === void 0 ? void 0 : data.order_info,
1738
1773
  cartSummary: data === null || data === void 0 || (_data$subtotal_info = data.subtotal_info) === null || _data$subtotal_info === void 0 ? void 0 : _data$subtotal_info.subTotalList,
1739
1774
  autoPayment: true,
1740
1775
  totalInfo: data === null || data === void 0 ? void 0 : data.subtotal_info
1741
1776
  });
1742
- case 26:
1777
+ case 27:
1743
1778
  // 获取订单总金额
1744
1779
  _orderInfo3 = checkout.getCurrentOrderInfo();
1745
1780
  if (_orderInfo3 && _orderInfo3.totalAmount) {
1746
1781
  setTotalAmount(_orderInfo3.totalAmount);
1747
1782
  }
1748
1783
  setOrderInfo(_orderInfo3);
1749
- setIsLocalOrderCreated(true);
1750
- case 30:
1751
- _context17.next = 35;
1784
+ isLocalOrderCreated.current = true;
1785
+ case 31:
1786
+ _context17.next = 36;
1752
1787
  break;
1753
- case 32:
1754
- _context17.prev = 32;
1788
+ case 33:
1789
+ _context17.prev = 33;
1755
1790
  _context17.t0 = _context17["catch"](0);
1756
1791
  console.error('Failed to initialize checkout data:', _context17.t0);
1757
- case 35:
1792
+ case 36:
1758
1793
  case "end":
1759
1794
  return _context17.stop();
1760
1795
  }
1761
- }, _callee17, null, [[0, 32]]);
1796
+ }, _callee17, null, [[0, 33]]);
1762
1797
  }));
1763
1798
  return function initCheckoutData() {
1764
1799
  return _ref22.apply(this, arguments);
@@ -1773,6 +1808,7 @@ var PaymentModal = function PaymentModal(_ref17) {
1773
1808
  if (typeof unsubscribeRef.current === 'function') {
1774
1809
  var _unsubscribeRef$curre;
1775
1810
  (_unsubscribeRef$curre = unsubscribeRef.current) === null || _unsubscribeRef$curre === void 0 || _unsubscribeRef$curre.call(unsubscribeRef);
1811
+ unsubscribeRef.current = undefined;
1776
1812
  }
1777
1813
  };
1778
1814
  }, []);
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -15,7 +15,7 @@ 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" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "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>;
@@ -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" | "warn" | "success" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,10 +295,10 @@ 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?: "refund" | "fullPay" | "pay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
301
+ action?: "pay" | "amount" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
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 +1,14 @@
1
- export declare const Provider: any, Context: any;
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 +1,13 @@
1
- export declare const Provider: any, Context: any;
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 +1,29 @@
1
- export declare const Provider: any, Context: any;
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 +1,13 @@
1
- export declare const Provider: any, Context: any;
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
@@ -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[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
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 +1,10 @@
1
- export declare const Provider: any, Context: any;
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
+ }>;