@pisell/private-materials 3.3.17 → 3.3.19

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 (171) 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 +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/businessModel/SalesModel/index.d.ts +0 -1
  8. package/es/components/Sales/Summary/utils.d.ts +1 -1
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Date/index.js +7 -9
  11. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  16. package/es/components/booking/components/voucher/index.d.ts +0 -1
  17. package/es/components/booking/forms/footer.d.ts +0 -1
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
  19. package/es/components/booking/forms/single/index.d.ts +1 -0
  20. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  21. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  22. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  23. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  24. package/es/components/booking/info/service/Lists.d.ts +1 -0
  25. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  26. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  27. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  28. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  29. package/es/components/booking/info/service2/utils.d.ts +1 -1
  30. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  31. package/es/components/eftposPay/amount.d.ts +0 -1
  32. package/es/components/eftposPay/app.d.ts +0 -1
  33. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  34. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  35. package/es/components/eftposPay/device.d.ts +0 -1
  36. package/es/components/eftposPay/hooks.d.ts +1 -1
  37. package/es/components/eftposPay/index.d.ts +0 -1
  38. package/es/components/eftposPay/pay.d.ts +0 -1
  39. package/es/components/eftposPay/payo/config.d.ts +0 -1
  40. package/es/components/eftposPay/payo/config.js +14 -3
  41. package/es/components/eftposPay/payo/hooks.js +12 -1
  42. package/es/components/eftposPay/store/index.d.ts +3 -3
  43. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  45. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  46. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  52. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  56. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  57. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  58. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  63. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  65. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  66. package/es/components/eventBooking/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  69. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  70. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  71. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  72. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  73. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  74. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  75. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  76. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  77. package/es/components/productExtension/index.d.ts +0 -1
  78. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  79. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  80. package/es/components/ruleSetting/index.d.ts +0 -1
  81. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  82. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  83. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  84. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  85. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  86. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  87. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  88. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  89. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  90. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  91. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  92. package/lib/components/appointmentBooking/components/Date/index.js +0 -4
  93. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  94. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  95. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  96. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  97. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  98. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  99. package/lib/components/booking/forms/footer.d.ts +0 -1
  100. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
  101. package/lib/components/booking/forms/single/index.d.ts +1 -0
  102. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  103. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  104. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  105. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  106. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  107. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  108. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  109. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  110. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  111. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  112. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  113. package/lib/components/eftposPay/amount.d.ts +0 -1
  114. package/lib/components/eftposPay/app.d.ts +0 -1
  115. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  116. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  117. package/lib/components/eftposPay/device.d.ts +0 -1
  118. package/lib/components/eftposPay/hooks.d.ts +1 -1
  119. package/lib/components/eftposPay/index.d.ts +0 -1
  120. package/lib/components/eftposPay/pay.d.ts +0 -1
  121. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  122. package/lib/components/eftposPay/payo/config.js +12 -1
  123. package/lib/components/eftposPay/payo/hooks.js +10 -0
  124. package/lib/components/eftposPay/store/index.d.ts +3 -3
  125. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  126. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  127. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  128. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  129. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  130. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  131. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  132. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  133. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  134. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  135. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  136. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  137. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  138. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  139. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  140. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  141. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  142. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  143. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  144. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  145. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  146. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  147. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  148. package/lib/components/eventBooking/index.d.ts +0 -1
  149. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  150. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  151. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  152. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  153. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  154. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  155. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  156. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  157. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  158. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  159. package/lib/components/productExtension/index.d.ts +0 -1
  160. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  161. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  162. package/lib/components/ruleSetting/index.d.ts +0 -1
  163. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  164. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  165. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  166. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  167. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  168. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  169. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  170. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  171. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -25,7 +25,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
25
25
  * @return {*}
26
26
  * @Author: xiangfeng.xue
27
27
  */
28
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
28
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
29
29
  /**
30
30
  * 计算所有价格明细
31
31
  * @param items - 购物车商品数组
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
4
3
  export default Cart;
@@ -55,7 +55,7 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
55
55
  return {
56
56
  next: function () {
57
57
  var _next2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
58
- var data, result;
58
+ var data;
59
59
  return _regeneratorRuntime().wrap(function _callee$(_context) {
60
60
  while (1) switch (_context.prev = _context.next) {
61
61
  case 0:
@@ -70,15 +70,13 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
70
70
  return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unselect.date')));
71
71
  case 5:
72
72
  // 判断选定的日期是否存在可用的预约
73
- result = appointmentBooking.checkResourceListForDate();
74
- if (result) {
75
- _context.next = 8;
76
- break;
77
- }
78
- return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unuse.date')));
79
- case 8:
73
+ // const result = appointmentBooking.checkResourceListForDate();
74
+ // if (!result) {
75
+ // return Toast(locales.getText('pisell2.appointment.unuse.date'));
76
+ // }
77
+
80
78
  appointmentBooking.next();
81
- case 9:
79
+ case 6:
82
80
  case "end":
83
81
  return _context.stop();
84
82
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Deposit: () => JSX.Element;
4
3
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Deposit: (props: any) => JSX.Element;
4
3
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const VoucherCard: (props: any) => JSX.Element | null;
4
3
  export default VoucherCard;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
5
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
6
5
  handleOpen: () => void;
7
6
  handleValuesChange: (val: any) => void;
8
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
9
8
  };
10
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -240,4 +240,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
240
240
  * @Author: WangHan
241
241
  * @Date: 2024-12-24 11:32
242
242
  */
243
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
243
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps, PosProps } from './const';
3
2
  import './device.less';
4
3
  /**
@@ -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<"success" | "loading" | "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>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -33,7 +33,8 @@ export var POS = function POS(_ref) {
33
33
  var api = _ref.api,
34
34
  onChange = _ref.onChange;
35
35
  var _useContextData = useContextData(),
36
- steps = _useContextData.steps;
36
+ steps = _useContextData.steps,
37
+ custom = _useContextData.custom;
37
38
  var _useStoreRef = useStoreRef(),
38
39
  deviceRef = _useStoreRef.deviceRef,
39
40
  payRef = _useStoreRef.payRef,
@@ -150,7 +151,17 @@ export var POS = function POS(_ref) {
150
151
  }));
151
152
  controllerRef.current = new AbortController();
152
153
  // 支付 or 退款
153
- var resultPromise = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay ? api.pay({
154
+ var resultPromise = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay ? api.pay(_objectSpread(_objectSpread({}, custom !== null && custom !== void 0 && custom.platform ? {
155
+ "operator_id": custom.operator_id,
156
+ "operator_type": custom.operator_type,
157
+ "platform": custom.platform,
158
+ "custom_payment_id": custom.custom_payment_id,
159
+ "service_charge": {
160
+ "amount": payRef.current.surMoney,
161
+ "percentage": payRef.current.surPercentRate
162
+ },
163
+ "original_amount": payRef.current.amount
164
+ } : {}), {}, {
154
165
  order_id: orderIdRef.current,
155
166
  amount: payRef.current.total,
156
167
  card_reader_type: eftposRef.current,
@@ -159,7 +170,7 @@ export var POS = function POS(_ref) {
159
170
  pay_param_base64: encodeURIComponent(btoa(encodeURIComponent(JSON.stringify(_objectSpread(_objectSpread({}, dataRef.current), {}, {
160
171
  number: numRef.current
161
172
  })))))
162
- }, {
173
+ }), {
163
174
  signal: controllerRef.current.signal
164
175
  }) : api.refund({
165
176
  order_id: orderIdRef.current,
@@ -12,6 +12,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
12
12
  import { useCallback, useEffect, useRef } from 'react';
13
13
  import { PayStatus } from "../const";
14
14
  import { sleep } from "../helper";
15
+ import { sendWarningLog } from '@pisell/utils';
15
16
 
16
17
  /**
17
18
  * @title: 循环查询 接口状态
@@ -111,14 +112,24 @@ export var useValidate = function useValidate(timeout) {
111
112
  (_controllerRef$curren = controllerRef.current) === null || _controllerRef$curren === void 0 || _controllerRef$curren.abort();
112
113
  }, []);
113
114
  var run = function run() {
115
+ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
116
+ params[_key] = arguments[_key];
117
+ }
114
118
  isTimeoutCloseRef.current = false;
115
119
  TimeoutRef.current && clearTimeout(TimeoutRef.current);
116
120
  // 开启计时
117
121
  TimeoutRef.current = setTimeout(function () {
118
122
  isTimeoutCloseRef.current = true;
123
+ sendWarningLog({
124
+ title: '支付状态查询超时',
125
+ content: [{
126
+ key: 'params',
127
+ value: JSON.stringify(params)
128
+ }]
129
+ });
119
130
  close();
120
131
  }, timeout);
121
- return checkApi.apply(void 0, arguments);
132
+ return checkApi.apply(void 0, params);
122
133
  };
123
134
  useEffect(function () {
124
135
  return function () {
@@ -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: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -298,7 +298,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
301
+ action?: "amount" | "pay" | "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?: "success" | "loading" | "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
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ContinueButton: () => JSX.Element;
4
3
  export default ContinueButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: () => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EmptyHolderModal: (props: any) => JSX.Element;
4
3
  export default EmptyHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Event: () => JSX.Element;
4
3
  export default Event;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: () => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Information: () => JSX.Element;
4
3
  export default Information;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OrderProductModal: (props: any) => JSX.Element;
4
3
  export default OrderProductModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resource: () => JSX.Element;
4
3
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectHolderModal: (props: any) => JSX.Element;
3
2
  export default SelectHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: () => JSX.Element;
3
2
  export default BookingOptions;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import { CustomerCardProps } from './CustomerCard';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface ProductCardConfig {
4
3
  showImg: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from '../serve';
3
2
  /**
4
3
  * 钱包卡片Hook的参数