@pisell/private-materials 3.0.140 → 3.0.142

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 (71) 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 +4 -4
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/booking/addons/model.d.ts +2 -1
  12. package/es/components/booking/forms/model.d.ts +2 -1
  13. package/es/components/booking/info/header/index.js +73 -9
  14. package/es/components/booking/locales.d.ts +3 -0
  15. package/es/components/booking/locales.js +3 -0
  16. package/es/components/booking/notes/index.d.ts +1 -1
  17. package/es/components/booking/notes/model.d.ts +2 -1
  18. package/es/components/booking/payments/model.d.ts +2 -1
  19. package/es/components/eftposPay/amount.js +1 -1
  20. package/es/components/eftposPay/component/fail/failCustom.js +5 -6
  21. package/es/components/eftposPay/component/fail/index.js +5 -5
  22. package/es/components/eftposPay/component/manual/index.js +1 -1
  23. package/es/components/eftposPay/const.d.ts +2 -0
  24. package/es/components/eftposPay/const.js +1 -0
  25. package/es/components/eftposPay/device.d.ts +3 -2
  26. package/es/components/eftposPay/device.js +100 -38
  27. package/es/components/eftposPay/device.less +37 -4
  28. package/es/components/eftposPay/helper.d.ts +11 -0
  29. package/es/components/eftposPay/helper.js +29 -6
  30. package/es/components/eftposPay/hooks.d.ts +1 -1
  31. package/es/components/eftposPay/index.d.ts +4 -1
  32. package/es/components/eftposPay/index.js +22 -11
  33. package/es/components/eftposPay/locales.js +45 -45
  34. package/es/components/eftposPay/payo/config.js +1 -1
  35. package/es/components/eftposPay/store/index.d.ts +1 -1
  36. package/es/components/eftposPay/tyro/index.js +8 -2
  37. package/es/components/eftposPay/windcave/windcave.js +2 -2
  38. package/es/components/schedules/index.d.ts +1 -1
  39. package/es/components/schedules/model.d.ts +2 -1
  40. package/lib/components/booking/addons/model.d.ts +2 -1
  41. package/lib/components/booking/forms/model.d.ts +2 -1
  42. package/lib/components/booking/info/header/index.js +52 -7
  43. package/lib/components/booking/locales.d.ts +3 -0
  44. package/lib/components/booking/locales.js +3 -0
  45. package/lib/components/booking/notes/index.d.ts +1 -1
  46. package/lib/components/booking/notes/model.d.ts +2 -1
  47. package/lib/components/booking/payments/model.d.ts +2 -1
  48. package/lib/components/eftposPay/amount.js +2 -6
  49. package/lib/components/eftposPay/component/fail/failCustom.js +5 -6
  50. package/lib/components/eftposPay/component/fail/index.js +5 -5
  51. package/lib/components/eftposPay/component/manual/index.js +1 -1
  52. package/lib/components/eftposPay/const.d.ts +2 -0
  53. package/lib/components/eftposPay/const.js +1 -0
  54. package/lib/components/eftposPay/device.d.ts +3 -2
  55. package/lib/components/eftposPay/device.js +73 -32
  56. package/lib/components/eftposPay/device.less +37 -4
  57. package/lib/components/eftposPay/helper.d.ts +11 -0
  58. package/lib/components/eftposPay/helper.js +26 -4
  59. package/lib/components/eftposPay/hooks.d.ts +1 -1
  60. package/lib/components/eftposPay/index.d.ts +4 -1
  61. package/lib/components/eftposPay/index.js +16 -6
  62. package/lib/components/eftposPay/locales.js +45 -45
  63. package/lib/components/eftposPay/payo/config.js +1 -1
  64. package/lib/components/eftposPay/store/index.d.ts +1 -1
  65. package/lib/components/eftposPay/tyro/index.js +9 -8
  66. package/lib/components/eftposPay/windcave/windcave.js +2 -2
  67. package/lib/components/schedules/index.d.ts +1 -1
  68. package/lib/components/schedules/model.d.ts +2 -1
  69. package/lowcode/eftpos-pay/meta.ts +11 -0
  70. package/lowcode/vertical-add-service/meta.ts +71 -0
  71. package/package.json +4 -4
@@ -65,7 +65,7 @@ export var getPayParams = function getPayParams(data, statue) {
65
65
  order_id: data.order_id
66
66
  };
67
67
  }
68
- if (data.mode === ModeEnum.Pay) {
68
+ if (data.mode === ModeEnum.Pay || data.mode === ModeEnum.FullPay) {
69
69
  var _data$custom;
70
70
  var pay = data.pay;
71
71
  var card_reader_surcharge = ((_data$custom = data.custom) === null || _data$custom === void 0 ? void 0 : _data$custom.card_reader_surcharge) || 0;
@@ -128,7 +128,7 @@ export var limitDecimals = function limitDecimals(value) {
128
128
 
129
129
  /**
130
130
  * @title: 通用获取 金额信息
131
- * @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
131
+ * @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
132
132
  * @param {State} store : 全局store数据管理
133
133
  * @Author: hongbing.wang
134
134
  * @Date: 2024-08-12 10:24
@@ -136,12 +136,11 @@ export var limitDecimals = function limitDecimals(value) {
136
136
  export function getAmonunt(store) {
137
137
  var device = store.device,
138
138
  pay = store.pay,
139
- custom = store.custom,
140
139
  name = store.name,
141
140
  symbol = store.symbol,
142
141
  amount = store.amount;
143
- if (!device || !custom) {
144
- throw Error('device or custom is not defined');
142
+ if (!device) {
143
+ throw Error('device is not defined');
145
144
  }
146
145
  var setting = device.setting;
147
146
 
@@ -176,7 +175,7 @@ export function getAmonunt(store) {
176
175
  // 原始手续费 是指 各个pos机厂商跟银行合作直接收取的手续费,一旦设置则清空,配置中设置的手续费
177
176
  var useOriginSurcharge = setting.useOriginSurcharge || false;
178
177
 
179
- // 直接设备中手续费金额
178
+ // 直接设备中手续费金额
180
179
  var surRate = setting.constant_rate || 0;
181
180
  var surMoney = setting.constant_money || 0;
182
181
 
@@ -192,4 +191,28 @@ export function getAmonunt(store) {
192
191
  surcharge: surcharge,
193
192
  useOriginSurcharge: useOriginSurcharge
194
193
  };
194
+ }
195
+ export function getPayAmonunt(_ref, formatAmount) {
196
+ var money = _ref.money,
197
+ amount = _ref.amount,
198
+ surRate = _ref.surRate,
199
+ surMoney = _ref.surMoney;
200
+ var surRateDeci = new Decimal(surRate);
201
+ var moneyDeci = new Decimal(amount);
202
+ var surMoneyDeci = new Decimal(surMoney);
203
+ var surRateMoney = moneyDeci.mul(surRateDeci.div(100)).toFixed(2, Decimal.ROUND_HALF_UP);
204
+ var totalSurMoney = moneyDeci.mul(surRateDeci.div(100)).add(surMoneyDeci);
205
+ var rate = new Decimal(surRate).div(100).toFixed(4, Decimal.ROUND_HALF_UP);
206
+ var total = totalSurMoney.add(moneyDeci).toFixed(2, Decimal.ROUND_HALF_UP);
207
+ return {
208
+ sourceAmount: "".concat(money),
209
+ amount: "".concat(amount),
210
+ surcharge: "".concat(totalSurMoney),
211
+ total: "".concat(total),
212
+ surPercentRate: "".concat(rate),
213
+ surRate: "".concat(surRate),
214
+ surMoney: "".concat(surMoney),
215
+ surRateMoney: "".concat(surRateMoney),
216
+ totalUnit: formatAmount(total)
217
+ };
195
218
  }
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
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<"tyro" | "windcave" | "payo" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"windcave" | "tyro" | "payo" | "stripe">;
23
23
  };
24
24
  /**
25
25
  * @title: 通用失败处理
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import { PosProps } from './const';
3
3
  import './index.less';
4
- declare const _default: (props: PosProps) => React.JSX.Element;
4
+ export declare const Root: (props: PosProps) => React.JSX.Element;
5
+ declare const _default: ({ key, ...props }: PosProps & {
6
+ key: string | number;
7
+ }) => React.JSX.Element;
5
8
  export default _default;
@@ -1,5 +1,7 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- var _excluded = ["action", "getApi", "device_number", "terminal", "tyroUrl", "tyroVersion", "onChangeParams"];
2
+ var _excluded = ["action", "getApi", "device_number", "terminal", "tyroUrl", "tyroVersion", "onChangeParams"],
3
+ _excluded2 = ["key"];
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -155,7 +157,8 @@ var App = function App(_ref) {
155
157
  isIpad: isIpad,
156
158
  className: isIpad ? 'pisell-lowcode__eft-pay-terminal' : '',
157
159
  net: net,
158
- device_number: device_number
160
+ device_number: device_number,
161
+ formatAmount: formatAmount
159
162
  });
160
163
  }
161
164
  if (current === RouteEnum.Amount) {
@@ -180,7 +183,7 @@ var App = function App(_ref) {
180
183
  formatAmount: formatAmount
181
184
  });
182
185
  };
183
- export default (function (props) {
186
+ export var Root = function Root(props) {
184
187
  var _context$appHelper2, _store$getState, _store$getState$call, _store$getState$call$, _props$params, _props$params2;
185
188
  var context = useEngineContext();
186
189
  var _ref3 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {
@@ -232,7 +235,7 @@ export default (function (props) {
232
235
  if (state.action) {
233
236
  return state.action;
234
237
  }
235
- if (mode === ModeEnum.Pay) {
238
+ if (mode === ModeEnum.Pay || mode === ModeEnum.FullPay) {
236
239
  if (state.device && state.pay) {
237
240
  return RouteEnum.Pay;
238
241
  }
@@ -252,15 +255,16 @@ export default (function (props) {
252
255
  }
253
256
  throw Error('未知模式');
254
257
  }();
255
- if (props.source === 'restore') {
256
- onChangeStatus('page', act);
257
- }
258
+
259
+ // if(props.source === 'restore'){
260
+ onChangeStatus('page', act);
261
+ // }
258
262
  return act;
259
263
  }, [mode, state]);
260
-
261
- // useEffect(() => {
262
- // document.body.id = 'body';
263
- // }, []);
264
+ useEffect(function () {
265
+ // document.body.id = 'body';
266
+ console.log('初始化 ........');
267
+ }, []);
264
268
 
265
269
  // console.log('action = ', action);
266
270
  console.log('props?.params?.device_number = ', props === null || props === void 0 ? void 0 : (_props$params = props.params) === null || _props$params === void 0 ? void 0 : _props$params.device_number);
@@ -276,4 +280,11 @@ export default (function (props) {
276
280
  source: props.source,
277
281
  device_number: props === null || props === void 0 ? void 0 : (_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.device_number
278
282
  }));
283
+ };
284
+ export default (function (_ref4) {
285
+ var key = _ref4.key,
286
+ props = _objectWithoutProperties(_ref4, _excluded2);
287
+ return /*#__PURE__*/React.createElement(Root, _extends({}, props, {
288
+ key: key
289
+ }));
279
290
  });
@@ -1,10 +1,10 @@
1
1
  export default {
2
2
  en: {
3
3
  'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
4
- return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " in progress...");
4
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? 'Payment' : 'Refund', " in progress...");
5
5
  },
6
6
  'page.eftpos-pay.text.wait': function pageEftposPayTextWait(val, mode) {
7
- return mode === 'pay' ? "Asked EFTPOS to accept payment for Purchase ".concat(val) : "Requested EFTPOS to accept the refund for ".concat(val, ".");
7
+ return mode === 'pay' || mode === 'fullPay' ? "Asked EFTPOS to accept payment for Purchase ".concat(val) : "Requested EFTPOS to accept the refund for ".concat(val, ".");
8
8
  },
9
9
  'page.eftpos-pay.text.surcharge': 'Waiting for customer to accept surcharge',
10
10
  'page.eftpos-pay.text.card': 'Waiting for customer to present card',
@@ -15,28 +15,28 @@ export default {
15
15
  'page.eftpos-pay.text.receipt.again.text': 'If the signature is correct, click "Accept". If the signature is incorrect, click "Decline".',
16
16
  'page.eftpos-pay.text.signature.title': 'Confirm decline signature?',
17
17
  'page.eftpos-pay.text.signature.text': function pageEftposPayTextSignatureText(mode) {
18
- return mode === 'pay' ? "Decline will cause payment failure, need to pay again." : "Decline will cause refund failure; a refund needs to be processed again.";
18
+ return mode === 'pay' || mode === 'fullPay' ? "Decline will cause payment failure, need to pay again." : "Decline will cause refund failure; a refund needs to be processed again.";
19
19
  },
20
20
  'page.eftpos-pay.text.timedout.title': 'Sorry, the request has timed out. ',
21
21
  'page.eftpos-pay.text.timedout.text': function pageEftposPayTextTimedoutText(mode) {
22
- return mode === 'pay' ? 'Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction.' : "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
22
+ return mode === 'pay' || mode === 'fullPay' ? 'Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction.' : "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
23
23
  },
24
24
  'page.eftpos-pay.text.request.title': function pageEftposPayTextRequestTitle(mode) {
25
- return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " request in progress... ");
25
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? 'Payment' : 'Refund', " request in progress... ");
26
26
  },
27
27
  'page.eftpos-pay.text.request.text': function pageEftposPayTextRequestText(mode) {
28
- return mode === 'pay' ? 'Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction.' : "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
28
+ return mode === 'pay' || mode === 'fullPay' ? 'Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction.' : "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
29
29
  },
30
30
  'page.eftpos-pay.text.request.unknown.title': function pageEftposPayTextRequestUnknownTitle(mode) {
31
- return "Sorry, an unknown error occurred during the ".concat(mode === 'pay' ? 'payment' : 'refund', " process. ");
31
+ return "Sorry, an unknown error occurred during the ".concat(mode === 'pay' || mode === 'fullPay' ? 'payment' : 'refund', " process. ");
32
32
  },
33
33
  'page.eftpos-pay.text.request.unknown.text': function pageEftposPayTextRequestUnknownText(mode) {
34
- return mode === 'pay' ? 'Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction.' : "Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.";
34
+ return mode === 'pay' || mode === 'fullPay' ? 'Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction.' : "Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.";
35
35
  },
36
36
  'page.eftpos-pay.text.interrupted': 'EFTPOS device connection interrupted',
37
37
  'page.eftpos-pay.text.reconnect': 'Attempting to reconnect the EFTPOS ...',
38
38
  'page.eftpos-pay.text.waiting.pay': function pageEftposPayTextWaitingPay(mode) {
39
- return mode === 'pay' ? 'If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip.' : 'If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.';
39
+ return mode === 'pay' || mode === 'fullPay' ? 'If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip.' : 'If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.';
40
40
  },
41
41
  'page.eftpos-pay.text.restored': 'Network connection restored',
42
42
  'page.eftpos-pay.text.disconnected': 'This iPad network disconnected',
@@ -60,13 +60,13 @@ export default {
60
60
  'page.eftpos-pay.text.manual.tip': "Amount tendered (incl. surcharge)",
61
61
  'page.eftpos-pay.text.manual.cancel': 'Cancel current transaction',
62
62
  'page.eftpos-pay.text.modify.payment.info': function pageEftposPayTextModifyPaymentInfo(mode) {
63
- return mode === 'pay' ? 'Modify payment info' : 'Modify refund information';
63
+ return mode === 'pay' || mode === 'fullPay' ? 'Modify payment info' : 'Modify refund information';
64
64
  },
65
65
  'page.eftpos-pay.text.successful': function pageEftposPayTextSuccessful(mode) {
66
- return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " successful");
66
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? 'Payment' : 'Refund', " successful");
67
67
  },
68
68
  'page.eftpos-pay.text.failed': function pageEftposPayTextFailed(mode) {
69
- return "".concat(mode === 'pay' ? 'Payment' : 'Refund', " failed");
69
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? 'Payment' : 'Refund', " failed");
70
70
  },
71
71
  'page.eftpos-pay.text.confirm': 'Confirm',
72
72
  'page.eftpos-pay.text.confirm.decline': 'Confirm decline',
@@ -118,7 +118,7 @@ export default {
118
118
  'page.eftpos-pay.text.transaction.eftpos.fail.device': '2. Check if the device is turned on.',
119
119
  'page.eftpos-pay.text.transaction.eftpos.fail.network': '3. Check the device network.',
120
120
  'page.eftpos-pay.text.transaction.eftpos.fail.if': function pageEftposPayTextTransactionEftposFailIf(mode) {
121
- return mode === 'pay' ? 'If you have confirmed the payment status of this order, please click on Manual marking.' : 'If you have confirmed the refund status of this order, please click on Manual Marking.';
121
+ return mode === 'pay' || mode === 'fullPay' ? 'If you have confirmed the payment status of this order, please click on Manual marking.' : 'If you have confirmed the refund status of this order, please click on Manual Marking.';
122
122
  },
123
123
  'page.eftpos-pay.text.application': 'Waiting for customer to select application',
124
124
  'page.eftpos-pay.text.approved': 'Approved',
@@ -128,10 +128,10 @@ export default {
128
128
  'page.eftpos-pay.text.device.no.terminal': "Terminal: Settings > EFTPOS > Click 'Manage' next to the vendor > Add Device",
129
129
  'page.eftpos-pay.text.waiting.decline.signature': ' Waiting for the decline signature',
130
130
  'page.eftpos-pay.text.unknown.title': function pageEftposPayTextUnknownTitle(mode) {
131
- return "Mark ".concat(mode === 'pay' ? 'payment' : 'refund', " status");
131
+ return "Mark ".concat(mode === 'pay' || mode === 'fullPay' ? 'payment' : 'refund', " status");
132
132
  },
133
133
  'page.eftpos-pay.text.unknown.text': function pageEftposPayTextUnknownText(mode) {
134
- return "Sorry, an unknown error occurred during the ".concat(mode === 'pay' ? 'payment' : 'refund', " process. Please manually mark the status of this ").concat(mode === 'pay' ? 'payment' : 'refund');
134
+ return "Sorry, an unknown error occurred during the ".concat(mode === 'pay' || mode === 'fullPay' ? 'payment' : 'refund', " process. Please manually mark the status of this ").concat(mode === 'pay' || mode === 'fullPay' ? 'payment' : 'refund');
135
135
  },
136
136
  'page.eftpos-pay.text.reconnecting': 'Reconnecting',
137
137
  'page.eftpos-pay.text.reconnect.network': 'Reconnect network',
@@ -146,10 +146,10 @@ export default {
146
146
  },
147
147
  'zh-CN': {
148
148
  'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
149
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u8FDB\u884C\u4E2D...");
149
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u8FDB\u884C\u4E2D...");
150
150
  },
151
151
  'page.eftpos-pay.text.wait': function pageEftposPayTextWait(val, mode) {
152
- return mode === 'pay' ? "\u7B49\u5F85EFTPOS\u63A5\u53D7".concat(val, "\u7684\u4ED8\u6B3E") : "\u8BF7\u6C42EFTPOS\u63A5\u53D7".concat(val, "\u7684\u9000\u6B3E\u3002");
152
+ return mode === 'pay' || mode === 'fullPay' ? "\u7B49\u5F85EFTPOS\u63A5\u53D7".concat(val, "\u7684\u4ED8\u6B3E") : "\u8BF7\u6C42EFTPOS\u63A5\u53D7".concat(val, "\u7684\u9000\u6B3E\u3002");
153
153
  },
154
154
  'page.eftpos-pay.text.surcharge': '等待客户确认支付手续费',
155
155
  'page.eftpos-pay.text.card': '等待客户出示卡片',
@@ -160,28 +160,28 @@ export default {
160
160
  'page.eftpos-pay.text.receipt.again.text': '如果签名正确,请点击“接受”。如果签名错误,请点击“拒绝”。',
161
161
  'page.eftpos-pay.text.signature.title': '确认拒绝签名?',
162
162
  'page.eftpos-pay.text.signature.text': function pageEftposPayTextSignatureText(mode) {
163
- return mode === 'pay' ? '拒绝将导致支付失败,需重新支付。' : '拒绝将导致退款失败;需要重新退款';
163
+ return mode === 'pay' || mode === 'fullPay' ? '拒绝将导致支付失败,需重新支付。' : '拒绝将导致退款失败;需要重新退款';
164
164
  },
165
165
  'page.eftpos-pay.text.timedout.title': '抱歉,请求超时了。',
166
166
  'page.eftpos-pay.text.timedout.text': function pageEftposPayTextTimedoutText(mode) {
167
- return mode === 'pay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : '请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。';
167
+ return mode === 'pay' || mode === 'fullPay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : '请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。';
168
168
  },
169
169
  'page.eftpos-pay.text.request.title': function pageEftposPayTextRequestTitle(mode) {
170
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u8BF7\u6C42\u4ECD\u5728\u8FDB\u884C\u4E2D... ");
170
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u8BF7\u6C42\u4ECD\u5728\u8FDB\u884C\u4E2D... ");
171
171
  },
172
172
  'page.eftpos-pay.text.request.text': function pageEftposPayTextRequestText(mode) {
173
- return mode === 'pay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : '请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。';
173
+ return mode === 'pay' || mode === 'fullPay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : '请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。';
174
174
  },
175
175
  'page.eftpos-pay.text.request.unknown.title': function pageEftposPayTextRequestUnknownTitle(mode) {
176
- return "\u62B1\u6B49\uFF0C ".concat(mode === 'pay' ? '支付' : '退款', " \u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF");
176
+ return "\u62B1\u6B49\uFF0C ".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', " \u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF");
177
177
  },
178
178
  'page.eftpos-pay.text.request.unknown.text': function pageEftposPayTextRequestUnknownText(mode) {
179
- return mode === 'pay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : "\u8BF7\u60A8\u6839\u636E\u5237\u5361\u673A\u4E0A\u7684\u9000\u6B3E\u72B6\u6001\uFF0C\u624B\u52A8\u6807\u8BB0\u9000\u6B3E\u7ED3\u679C\uFF0C\u4EE5\u786E\u4FDD\u4EA4\u6613\u7684\u51C6\u786E\u6027\u3002";
179
+ return mode === 'pay' || mode === 'fullPay' ? '请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。' : "\u8BF7\u60A8\u6839\u636E\u5237\u5361\u673A\u4E0A\u7684\u9000\u6B3E\u72B6\u6001\uFF0C\u624B\u52A8\u6807\u8BB0\u9000\u6B3E\u7ED3\u679C\uFF0C\u4EE5\u786E\u4FDD\u4EA4\u6613\u7684\u51C6\u786E\u6027\u3002";
180
180
  },
181
181
  'page.eftpos-pay.text.interrupted': 'EFTPOS设备连接中断',
182
182
  'page.eftpos-pay.text.reconnect': '正在尝试重新连接EFTPOS。。。',
183
183
  'page.eftpos-pay.text.waiting.pay': function pageEftposPayTextWaitingPay(mode) {
184
- return mode === 'pay' ? '如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。' : '如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。';
184
+ return mode === 'pay' || mode === 'fullPay' ? '如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。' : '如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。';
185
185
  },
186
186
  'page.eftpos-pay.text.restored': '网络连接已恢复',
187
187
  'page.eftpos-pay.text.disconnected': '此iPad网络已断开连接',
@@ -205,13 +205,13 @@ export default {
205
205
  'page.eftpos-pay.text.manual.tip': "实付金额(含附加费)",
206
206
  'page.eftpos-pay.text.manual.cancel': '取消当前交易',
207
207
  'page.eftpos-pay.text.modify.payment.info': function pageEftposPayTextModifyPaymentInfo(mode) {
208
- return mode === 'pay' ? '修改支付信息' : '修改退款信息';
208
+ return mode === 'pay' || mode === 'fullPay' ? '修改支付信息' : '修改退款信息';
209
209
  },
210
210
  'page.eftpos-pay.text.successful': function pageEftposPayTextSuccessful(mode) {
211
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u6210\u529F");
211
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u6210\u529F");
212
212
  },
213
213
  'page.eftpos-pay.text.failed': function pageEftposPayTextFailed(mode) {
214
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u5931\u8D25");
214
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u5931\u8D25");
215
215
  },
216
216
  'page.eftpos-pay.text.confirm': '确认',
217
217
  'page.eftpos-pay.text.confirm.decline': '确认拒绝',
@@ -271,7 +271,7 @@ export default {
271
271
  'page.eftpos-pay.text.transaction.eftpos.fail.device': '2. 检查设备是否开机',
272
272
  'page.eftpos-pay.text.transaction.eftpos.fail.network': '3. 检查设备网络',
273
273
  'page.eftpos-pay.text.transaction.eftpos.fail.if': function pageEftposPayTextTransactionEftposFailIf(mode) {
274
- return mode === 'pay' ? '如果您已确认此交易的付款状态,请点击手动标记' : '如果您已确认此订单的退款状态,请点击手动标记。';
274
+ return mode === 'pay' || mode === 'fullPay' ? '如果您已确认此交易的付款状态,请点击手动标记' : '如果您已确认此订单的退款状态,请点击手动标记。';
275
275
  },
276
276
  'page.eftpos-pay.text.application': '等待客户选择应用',
277
277
  'page.eftpos-pay.text.approved': '已接受',
@@ -281,10 +281,10 @@ export default {
281
281
  'page.eftpos-pay.text.device.no.terminal': "Terminal\uFF1A\u8BBE\u7F6E > EFTPOS > \u786E\u8BA4\u5382\u5546\u70B9\u51FB\u201C\u7BA1\u7406\u201D > \u6DFB\u52A0\u8BBE\u5907",
282
282
  'page.eftpos-pay.text.waiting.decline.signature': ' 等待拒绝签名',
283
283
  'page.eftpos-pay.text.unknown.title': function pageEftposPayTextUnknownTitle(mode) {
284
- return "\u6807\u8BB0".concat(mode === 'pay' ? '支付' : '退款', "\u72B6\u6001");
284
+ return "\u6807\u8BB0".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u72B6\u6001");
285
285
  },
286
286
  'page.eftpos-pay.text.unknown.text': function pageEftposPayTextUnknownText(mode) {
287
- return "\u62B1\u6B49\uFF0C".concat(mode === 'pay' ? '支付' : '退款', "\u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF\u3002\u8BF7\u60A8\u624B\u52A8\u6807\u8BB0\u6B64").concat(mode === 'pay' ? '支付' : '退款', "\u7684\u72B6\u6001\u3002");
287
+ return "\u62B1\u6B49\uFF0C".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF\u3002\u8BF7\u60A8\u624B\u52A8\u6807\u8BB0\u6B64").concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u7684\u72B6\u6001\u3002");
288
288
  },
289
289
  'page.eftpos-pay.text.reconnecting': '连接中',
290
290
  'page.eftpos-pay.text.reconnect.network': '重连网络',
@@ -437,10 +437,10 @@ export default {
437
437
  },
438
438
  'zh-HK': {
439
439
  'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
440
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u9032\u884C\u4E2D...");
440
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u9032\u884C\u4E2D...");
441
441
  },
442
442
  'page.eftpos-pay.text.wait': function pageEftposPayTextWait(val, mode) {
443
- return mode === 'pay' ? "\u7B49\u5F85EFTPOS\u63A5\u53D7".concat(val, "\u7684\u4ED8\u6B3E") : "\u8ACB\u6C42EFTPOS\u63A5\u53D7".concat(val, "\u7684\u9000\u6B3E\u3002");
443
+ return mode === 'pay' || mode === 'fullPay' ? "\u7B49\u5F85EFTPOS\u63A5\u53D7".concat(val, "\u7684\u4ED8\u6B3E") : "\u8ACB\u6C42EFTPOS\u63A5\u53D7".concat(val, "\u7684\u9000\u6B3E\u3002");
444
444
  },
445
445
  'page.eftpos-pay.text.surcharge': '等待客户確認支付手續費',
446
446
  'page.eftpos-pay.text.card': '等待客户出示卡片',
@@ -451,28 +451,28 @@ export default {
451
451
  'page.eftpos-pay.text.receipt.again.text': '如果簽名正確,請點擊“接受”。如果簽名錯誤,請點擊“拒絕”。',
452
452
  'page.eftpos-pay.text.signature.title': '確認拒絕簽名?',
453
453
  'page.eftpos-pay.text.signature.text': function pageEftposPayTextSignatureText(mode) {
454
- return mode === 'pay' ? '拒絕將導致支付失敗,需重新支付。' : '拒絕將導致退款失敗;需要重新退款';
454
+ return mode === 'pay' || mode === 'fullPay' ? '拒絕將導致支付失敗,需重新支付。' : '拒絕將導致退款失敗;需要重新退款';
455
455
  },
456
456
  'page.eftpos-pay.text.timedout.title': '抱歉,請求超時了。',
457
457
  'page.eftpos-pay.text.timedout.text': function pageEftposPayTextTimedoutText(mode) {
458
- return mode === 'pay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : '請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。';
458
+ return mode === 'pay' || mode === 'fullPay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : '請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。';
459
459
  },
460
460
  'page.eftpos-pay.text.request.title': function pageEftposPayTextRequestTitle(mode) {
461
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u8ACB\u6C42\u4ECD\u5728\u9032\u884C\u4E2D... ");
461
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u8ACB\u6C42\u4ECD\u5728\u9032\u884C\u4E2D... ");
462
462
  },
463
463
  'page.eftpos-pay.text.request.text': function pageEftposPayTextRequestText(mode) {
464
- return mode === 'pay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : '請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。';
464
+ return mode === 'pay' || mode === 'fullPay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : '請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。';
465
465
  },
466
466
  'page.eftpos-pay.text.request.unknown.title': function pageEftposPayTextRequestUnknownTitle(mode) {
467
- return "\u62B1\u6B49\uFF0C ".concat(mode === 'pay' ? '支付' : '退款', " \u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF");
467
+ return "\u62B1\u6B49\uFF0C ".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', " \u8FC7\u7A0B\u4E2D\u51FA\u73B0\u4E86\u672A\u77E5\u9519\u8BEF");
468
468
  },
469
469
  'page.eftpos-pay.text.request.unknown.text': function pageEftposPayTextRequestUnknownText(mode) {
470
- return mode === 'pay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : "\u8ACB\u60A8\u6839\u64DA\u5237\u5361\u6A5F\u4E0A\u7684\u9000\u6B3E\u72C0\u614B\uFF0C\u624B\u52D5\u6A19\u8A18\u9000\u6B3E\u7D50\u679C\uFF0C\u4EE5\u78BA\u4FDD\u4EA4\u6613\u7684\u6E96\u78BA\u6027\u3002";
470
+ return mode === 'pay' || mode === 'fullPay' ? '請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。' : "\u8ACB\u60A8\u6839\u64DA\u5237\u5361\u6A5F\u4E0A\u7684\u9000\u6B3E\u72C0\u614B\uFF0C\u624B\u52D5\u6A19\u8A18\u9000\u6B3E\u7D50\u679C\uFF0C\u4EE5\u78BA\u4FDD\u4EA4\u6613\u7684\u6E96\u78BA\u6027\u3002";
471
471
  },
472
472
  'page.eftpos-pay.text.interrupted': 'EFTPOS設備連接中斷',
473
473
  'page.eftpos-pay.text.reconnect': '正在嘗試重新連接EFTPOS。。。',
474
474
  'page.eftpos-pay.text.waiting.pay': function pageEftposPayTextWaitingPay(mode) {
475
- return mode === 'pay' ? '如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。' : '如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。';
475
+ return mode === 'pay' || mode === 'fullPay' ? '如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。' : '如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。';
476
476
  },
477
477
  'page.eftpos-pay.text.restored': '網絡連接已恢復',
478
478
  'page.eftpos-pay.text.disconnected': '此iPad網絡已斷開連接',
@@ -496,13 +496,13 @@ export default {
496
496
  'page.eftpos-pay.text.manual.tip': "實付金額(含附加費)",
497
497
  'page.eftpos-pay.text.manual.cancel': '取消當前交易',
498
498
  'page.eftpos-pay.text.modify.payment.info': function pageEftposPayTextModifyPaymentInfo(mode) {
499
- return mode === 'pay' ? '修改支付信息' : '修改退款信息';
499
+ return mode === 'pay' || mode === 'fullPay' ? '修改支付信息' : '修改退款信息';
500
500
  },
501
501
  'page.eftpos-pay.text.successful': function pageEftposPayTextSuccessful(mode) {
502
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u6210\u529F");
502
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u6210\u529F");
503
503
  },
504
504
  'page.eftpos-pay.text.failed': function pageEftposPayTextFailed(mode) {
505
- return "".concat(mode === 'pay' ? '支付' : '退款', "\u5931\u6557");
505
+ return "".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u5931\u6557");
506
506
  },
507
507
  'page.eftpos-pay.text.confirm': '確認',
508
508
  'page.eftpos-pay.text.confirm.decline': '確認拒絕',
@@ -562,7 +562,7 @@ export default {
562
562
  'page.eftpos-pay.text.transaction.eftpos.fail.device': '2. 檢查設備是否開機',
563
563
  'page.eftpos-pay.text.transaction.eftpos.fail.network': '3. 檢查設備網絡',
564
564
  'page.eftpos-pay.text.transaction.eftpos.fail.if': function pageEftposPayTextTransactionEftposFailIf(mode) {
565
- return mode === 'pay' ? '如果您已確認此交易的付款狀態,請點擊手動標記' : '如果您已確認此訂單的退款狀態,請點擊手動標記。';
565
+ return mode === 'pay' || mode === 'fullPay' ? '如果您已確認此交易的付款狀態,請點擊手動標記' : '如果您已確認此訂單的退款狀態,請點擊手動標記。';
566
566
  },
567
567
  'page.eftpos-pay.text.application': '等待客户選擇應用',
568
568
  'page.eftpos-pay.text.approved': '已接受',
@@ -572,10 +572,10 @@ export default {
572
572
  'page.eftpos-pay.text.device.no.terminal': "Terminal\uFF1A\u8A2D\u7F6E > EFTPOS > \u78BA\u8A8D\u5EE0\u5546\u9EDE\u64CA\u201C\u7BA1\u7406\u201D > \u6DFB\u52A0\u8A2D\u5099",
573
573
  'page.eftpos-pay.text.waiting.decline.signature': ' 等待拒絕簽名',
574
574
  'page.eftpos-pay.text.unknown.title': function pageEftposPayTextUnknownTitle(mode) {
575
- return "\u6A19\u8A18".concat(mode === 'pay' ? '支付' : '退款', "\u72C0\u614B");
575
+ return "\u6A19\u8A18".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u72C0\u614B");
576
576
  },
577
577
  'page.eftpos-pay.text.unknown.text': function pageEftposPayTextUnknownText(mode) {
578
- return "\u62B1\u6B49\uFF0C".concat(mode === 'pay' ? '支付' : '退款', "\u904E\u7A0B\u4E2D\u51FA\u73FE\u4E86\u672A\u77E5\u932F\u8AA4\u3002\u8ACB\u60A8\u624B\u52D5\u6A19\u8A18\u6B64").concat(mode === 'pay' ? '支付' : '退款', "\u7684\u72C0\u614B\u3002");
578
+ return "\u62B1\u6B49\uFF0C".concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u904E\u7A0B\u4E2D\u51FA\u73FE\u4E86\u672A\u77E5\u932F\u8AA4\u3002\u8ACB\u60A8\u624B\u52D5\u6A19\u8A18\u6B64").concat(mode === 'pay' || mode === 'fullPay' ? '支付' : '退款', "\u7684\u72C0\u614B\u3002");
579
579
  },
580
580
  'page.eftpos-pay.text.reconnecting': '連接中',
581
581
  'page.eftpos-pay.text.reconnect.network': '重連網絡',
@@ -143,7 +143,7 @@ export var POS = function POS(_ref) {
143
143
  }));
144
144
  controllerRef.current = new AbortController();
145
145
  // 支付 or 退款
146
- var resultPromise = modeRef.current === ModeEnum.Pay ? api.pay({
146
+ var resultPromise = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay ? api.pay({
147
147
  order_id: orderIdRef.current,
148
148
  amount: payRef.current.total,
149
149
  card_reader_type: eftposRef.current,
@@ -283,7 +283,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
283
283
  amount?: string | number | undefined;
284
284
  mode?: "refund" | "pay" | "query" | undefined;
285
285
  order_id?: string | number | undefined;
286
- eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
286
+ eftpos?: "windcave" | "tyro" | "payo" | "stripe" | undefined;
287
287
  action?: "amount" | "deviceList" | "pay" | undefined;
288
288
  key?: number | undefined;
289
289
  step?: number | undefined;
@@ -302,7 +302,7 @@ export default (function (_ref) {
302
302
  setManually(false);
303
303
  dispatch(updateState({
304
304
  status: 'loading',
305
- title: locales.getText('page.eftpos-pay.text.loading')(modeRef.current || ModeEnum.Pay),
305
+ title: locales.getText('page.eftpos-pay.text.loading')(modeRef.current),
306
306
  subTitle: ''
307
307
  }));
308
308
  setStatus(Date.now());
@@ -386,6 +386,12 @@ export default (function (_ref) {
386
386
  }));
387
387
  }, 1000);
388
388
  return;
389
+ } else {
390
+ var _deviceRef$current7;
391
+ var current = (_deviceRef$current7 = deviceRef.current) !== null && _deviceRef$current7 !== void 0 && _deviceRef$current7.setting.receipts ? [] : receipt;
392
+ if (current.length > 0) {
393
+ onChange('print', current);
394
+ }
389
395
  }
390
396
  if (response.result === 'UNKNOWN') {
391
397
  dispatch(updateCustom({
@@ -427,7 +433,7 @@ export default (function (_ref) {
427
433
  return;
428
434
  }
429
435
  if (!numRef.current) {
430
- if (modeRef.current === ModeEnum.Pay) {
436
+ if (modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay) {
431
437
  getTerminalInfo(payOrder);
432
438
  } else if (modeRef.current === ModeEnum.Refund) {
433
439
  getTerminalInfo(refundOrder);
@@ -164,7 +164,7 @@ export default (function (_ref) {
164
164
  dispatch(updateState({
165
165
  number: numRef.current
166
166
  }));
167
- var resultPromise = modeRef.current === ModeEnum.Pay ? api.pay({
167
+ var resultPromise = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay ? api.pay({
168
168
  order_id: orderIdRef.current,
169
169
  amount: payRef.current.total,
170
170
  card_reader_type: eftposRef.current,
@@ -243,7 +243,7 @@ export default (function (_ref) {
243
243
  if (listRef.current.length === 0) {
244
244
  // 总金额(+ 单位)
245
245
  var totalUnit = '';
246
- if (modeRef.current === ModeEnum.Pay) {
246
+ if (modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay) {
247
247
  var _payRef$current;
248
248
  // 支付状态,前往pay中获取
249
249
  totalUnit = (_payRef$current = payRef.current) === null || _payRef$current === void 0 ? void 0 : _payRef$current.totalUnit;
@@ -1,3 +1,3 @@
1
1
  import "./index.less";
2
- declare const Schedules: (props: any) => JSX.Element;
2
+ declare const Schedules: (props: any) => any;
3
3
  export default Schedules;
@@ -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,7 +69,7 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
72
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
72
73
  state: FormState;
73
74
  } & {
74
75
  dispatch: (params: {
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {