@pisell/private-materials 3.3.56 → 3.3.58

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 (196) 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/render/default/view.js +5 -5
  7. package/build/lowcode/view.js +5 -5
  8. package/es/components/Sales/Summary/utils.d.ts +1 -1
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  12. package/es/components/booking/addons/model.d.ts +1 -10
  13. package/es/components/booking/addons/model.js +5 -5
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  16. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  17. package/es/components/booking/components/browserSelect/index.js +1 -1
  18. package/es/components/booking/components/footer/index.js +1 -1
  19. package/es/components/booking/components/voucher/index.d.ts +1 -0
  20. package/es/components/booking/forms/footer.d.ts +0 -1
  21. package/es/components/booking/forms/model.d.ts +1 -10
  22. package/es/components/booking/forms/model.js +5 -5
  23. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  24. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  25. package/es/components/booking/info/date/index.d.ts +1 -0
  26. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  27. package/es/components/booking/info/model.d.ts +1 -10
  28. package/es/components/booking/info/notes/index.d.ts +1 -0
  29. package/es/components/booking/info/service/Lists.d.ts +1 -0
  30. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  31. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  32. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  33. package/es/components/booking/info/service/like/index.js +1 -1
  34. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  35. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  36. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  37. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  38. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  39. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  40. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  42. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  43. package/es/components/booking/materiels/startTime/index.js +1 -1
  44. package/es/components/booking/model.d.ts +1 -9
  45. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  46. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  47. package/es/components/booking/notes/model.d.ts +1 -10
  48. package/es/components/booking/notes/model.js +5 -5
  49. package/es/components/booking/payments/model.d.ts +1 -10
  50. package/es/components/booking/payments/model.js +5 -5
  51. package/es/components/eftposPay/amount.d.ts +1 -1
  52. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  53. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  54. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  55. package/es/components/eftposPay/device.d.ts +1 -1
  56. package/es/components/eftposPay/hooks.d.ts +2 -2
  57. package/es/components/eftposPay/index.d.ts +0 -1
  58. package/es/components/eftposPay/pay.d.ts +0 -1
  59. package/es/components/eftposPay/store/index.d.ts +5 -5
  60. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  61. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  65. package/es/components/eventBooking/index.d.ts +1 -0
  66. package/es/components/listComponent/index.js +5 -5
  67. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  68. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  69. package/es/components/pay/toC/model.d.ts +1 -9
  70. package/es/components/productExtension/card/index.js +3 -3
  71. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  72. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  73. package/es/components/productExtension/fields/Forms/index.js +12 -12
  74. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  75. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  76. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  77. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  78. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  79. package/es/components/productExtension/index.d.ts +1 -0
  80. package/es/components/productExtension/server.js +2 -2
  81. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  82. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  83. package/es/components/ruleSetting/index.d.ts +0 -1
  84. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  85. package/es/components/schedules/calendar/index.js +4 -4
  86. package/es/components/schedules/calendar/serve.js +2 -2
  87. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  88. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  89. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  90. package/es/components/schedules/components/ResourceList/index.js +1 -1
  91. package/es/components/schedules/components/Search/index.js +5 -5
  92. package/es/components/schedules/model.d.ts +1 -9
  93. package/es/components/schedules/model.js +5 -5
  94. package/es/components/schedules/openHours/index.js +1 -1
  95. package/es/components/schedules/openHours/serve.js +2 -2
  96. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  97. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  98. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  99. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  100. package/es/components/schedules/products/serve.js +2 -2
  101. package/es/components/schedules/products/utils.js +5 -5
  102. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  103. package/es/components/schedules/resources/detail/index.js +10 -10
  104. package/es/components/schedules/resources/list/index.js +2 -2
  105. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  106. package/es/components/schedules/resources/serve.js +2 -2
  107. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  108. package/es/components/schedules/utils.js +4 -4
  109. package/es/components/selectModal/index.js +2 -2
  110. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  111. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  112. package/es/components/ticketBooking/components/ticketBooking/index.js +15 -8
  113. package/es/components/ticketBooking/index.d.ts +1 -0
  114. package/es/components/ticketBooking/serve.d.ts +5 -0
  115. package/es/components/ticketBooking/serve.js +27 -0
  116. package/es/components/wallet/Detail/model.d.ts +1 -13
  117. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  118. package/es/components/wallet/PointCard/model.d.ts +1 -13
  119. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  120. package/es/components/wallet/Voucher/model.d.ts +1 -13
  121. package/es/components/wallet/model.d.ts +1 -9
  122. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  123. package/es/hooks/useComponents.js +1 -1
  124. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  125. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  126. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  127. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  128. package/lib/components/booking/addons/model.d.ts +1 -10
  129. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  130. package/lib/components/booking/components/footer/index.js +1 -1
  131. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  132. package/lib/components/booking/forms/footer.d.ts +0 -1
  133. package/lib/components/booking/forms/model.d.ts +1 -10
  134. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  135. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  136. package/lib/components/booking/info/date/index.d.ts +1 -0
  137. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  138. package/lib/components/booking/info/model.d.ts +1 -10
  139. package/lib/components/booking/info/notes/index.d.ts +1 -0
  140. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  141. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  142. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  143. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  144. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  145. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  146. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  147. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  148. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  149. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  150. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  151. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  152. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  153. package/lib/components/booking/model.d.ts +1 -9
  154. package/lib/components/booking/notes/model.d.ts +1 -10
  155. package/lib/components/booking/payments/model.d.ts +1 -10
  156. package/lib/components/eftposPay/amount.d.ts +1 -1
  157. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  158. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  159. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  160. package/lib/components/eftposPay/device.d.ts +1 -1
  161. package/lib/components/eftposPay/hooks.d.ts +2 -2
  162. package/lib/components/eftposPay/index.d.ts +0 -1
  163. package/lib/components/eftposPay/pay.d.ts +0 -1
  164. package/lib/components/eftposPay/store/index.d.ts +5 -5
  165. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  166. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  167. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  169. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  170. package/lib/components/eventBooking/index.d.ts +1 -0
  171. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  172. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  173. package/lib/components/pay/toC/model.d.ts +1 -9
  174. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  175. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  176. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  177. package/lib/components/productExtension/index.d.ts +1 -0
  178. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  179. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  180. package/lib/components/ruleSetting/index.d.ts +0 -1
  181. package/lib/components/schedules/model.d.ts +1 -9
  182. package/lib/components/schedules/utils.js +1 -1
  183. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  184. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  185. package/lib/components/ticketBooking/components/ticketBooking/index.js +14 -7
  186. package/lib/components/ticketBooking/index.d.ts +1 -0
  187. package/lib/components/ticketBooking/serve.d.ts +5 -0
  188. package/lib/components/ticketBooking/serve.js +8 -2
  189. package/lib/components/wallet/Detail/model.d.ts +1 -13
  190. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  191. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  192. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  193. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  194. package/lib/components/wallet/model.d.ts +1 -9
  195. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  196. package/package.json +3 -3
@@ -20,7 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  import React, { useEffect, useRef } from 'react';
21
21
  import { locales } from '@pisell/utils';
22
22
  import { message } from 'antd';
23
- import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices } from "../../serve";
23
+ import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices, voidAppointment } from "../../serve";
24
24
  import * as apis from "../../serve";
25
25
  import dayjs from 'dayjs';
26
26
  import useEngineContext from "../../../../hooks/useEngineContext";
@@ -52,7 +52,7 @@ var TicketBooking = function TicketBooking() {
52
52
  var _timerRef = useRef();
53
53
  var _callbackFnRef = useRef();
54
54
  useEffect(function () {
55
- var _interaction$utils, _store$getState, _interaction$utils2;
55
+ var _interaction$utils, _store$getState, _interaction$utils2, _interaction$utils3;
56
56
  _persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
57
57
  if (lowcodeRef) {
58
58
  lowcodeRef.onReady(_this);
@@ -80,10 +80,14 @@ var TicketBooking = function TicketBooking() {
80
80
  _setShopOpeningHours();
81
81
  _setIntervalTime(true);
82
82
  interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'refreshBookingDetail', function (type, orderId) {
83
- console.log(type, orderId, 'type, orderId');
84
- if (state.bookingId) {
85
- _getBookingDetail();
86
- }
83
+ // console.log(type, orderId, 'type, orderId');
84
+ // 支付成功后清空状态
85
+ _initFn(function () {});
86
+ });
87
+
88
+ // 作废预约
89
+ interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || _interaction$utils3.mountFunction('booking', 'voidBooking', function (orderId) {
90
+ voidAppointment(orderId);
87
91
  });
88
92
  return function () {
89
93
  off === null || off === void 0 || off();
@@ -696,8 +700,11 @@ var TicketBooking = function TicketBooking() {
696
700
  };
697
701
 
698
702
  // 新建完成之后的回调
699
- var _callback = function _callback(data) {
700
- console.log('callbackcallback');
703
+ var _callback = function _callback(data, type) {
704
+ // 结账时
705
+ if (isTerminal() && type === 'checkout') {
706
+ return;
707
+ }
701
708
  setState({
702
709
  createCount: state.createCount + 1
703
710
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -280,3 +280,8 @@ export declare const getOrderInfoByCode: (params: any) => Promise<any>;
280
280
  * @Date: 2025-04-24 16:28
281
281
  */
282
282
  export declare const getClientsEs: (params: any) => Promise<any>;
283
+ /**
284
+ * 作废2.0预约订单
285
+ * @param order_id
286
+ */
287
+ export declare const voidAppointment: (order_id: number) => Promise<any>;
@@ -960,4 +960,31 @@ export var getClientsEs = /*#__PURE__*/function () {
960
960
  return function getClientsEs(_x42) {
961
961
  return _ref30.apply(this, arguments);
962
962
  };
963
+ }();
964
+
965
+ /**
966
+ * 作废2.0预约订单
967
+ * @param order_id
968
+ */
969
+ export var voidAppointment = /*#__PURE__*/function () {
970
+ var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(order_id) {
971
+ var _yield$request$getReq30, data;
972
+ return _regeneratorRuntime().wrap(function _callee31$(_context31) {
973
+ while (1) switch (_context31.prev = _context31.next) {
974
+ case 0:
975
+ _context31.next = 2;
976
+ return request.getRequest().put(prefix + "/order/void/appointment/".concat(order_id), {});
977
+ case 2:
978
+ _yield$request$getReq30 = _context31.sent;
979
+ data = _yield$request$getReq30.data;
980
+ return _context31.abrupt("return", data);
981
+ case 5:
982
+ case "end":
983
+ return _context31.stop();
984
+ }
985
+ }, _callee31);
986
+ }));
987
+ return function voidAppointment(_x43) {
988
+ return _ref31.apply(this, arguments);
989
+ };
963
990
  }();
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
8
8
  var _utils$getComponents;
9
9
  var _ref = appHelper || {},
10
10
  utils = _ref.utils;
11
- return (utils === null || utils === void 0 ? void 0 : (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
11
+ return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
12
12
  }, [components]);
13
13
  return Cpt;
14
14
  };
@@ -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 CartItem: ({ onNext }: any) => JSX.Element;
4
3
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -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,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -301,7 +301,7 @@ var Footer = (props) => {
301
301
  );
302
302
  }
303
303
  }
304
- state == null ? void 0 : state.callback(callbackData);
304
+ state == null ? void 0 : state.callback(callbackData, type);
305
305
  _setLoading(false);
306
306
  return callbackData || values;
307
307
  } catch (err) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const VoucherCard: (props: any) => JSX.Element | null;
3
4
  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 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import '../../../info/service/addService/index.less';
3
4
  interface AddServiceProps {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -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 { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "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>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -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
  /**
@@ -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: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;