@pisell/private-materials 6.3.4 → 6.3.6

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 (145) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/businessModel/SalesModel/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  10. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  11. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  12. package/es/components/booking/editBookingModal/index.js +3 -4
  13. package/es/components/booking/forms/table/index.d.ts +0 -1
  14. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  15. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  16. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  17. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  18. package/es/components/booking/info/index.d.ts +0 -1
  19. package/es/components/booking/info/service/Lists.d.ts +0 -1
  20. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  21. package/es/components/booking/info/service/like/index.d.ts +0 -1
  22. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  23. package/es/components/booking/info/utils.js +1 -1
  24. package/es/components/booking/info2/service/addService/utils.js +1 -1
  25. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  26. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  27. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  28. package/es/components/eftpos/form/index.d.ts +0 -1
  29. package/es/components/eftpos/group/index.d.ts +0 -1
  30. package/es/components/eftpos/hooks.d.ts +0 -1
  31. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  32. package/es/components/eftpos/icon/device.d.ts +0 -1
  33. package/es/components/eftpos/receipt/index.d.ts +0 -1
  34. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  35. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  36. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  37. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  38. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  39. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  40. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  41. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  45. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  51. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  52. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  53. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  55. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  56. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  57. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  58. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  59. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  60. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  61. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  62. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  63. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  64. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  65. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  66. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  67. package/es/components/schedules/products/index.d.ts +0 -1
  68. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  69. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  70. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  71. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  72. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  73. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
  74. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  75. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  76. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  77. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  78. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  79. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  80. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  81. package/lib/components/booking/editBookingModal/index.js +3 -4
  82. package/lib/components/booking/forms/table/index.d.ts +0 -1
  83. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  84. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  85. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  86. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  87. package/lib/components/booking/info/index.d.ts +0 -1
  88. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  89. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  90. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  91. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  92. package/lib/components/booking/info/utils.js +2 -1
  93. package/lib/components/booking/info2/service/addService/utils.js +1 -1
  94. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  95. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  96. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  97. package/lib/components/eftpos/form/index.d.ts +0 -1
  98. package/lib/components/eftpos/group/index.d.ts +0 -1
  99. package/lib/components/eftpos/hooks.d.ts +0 -1
  100. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  101. package/lib/components/eftpos/icon/device.d.ts +0 -1
  102. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  103. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  104. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  105. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  106. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  107. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  108. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  109. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  110. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  111. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  112. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  113. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  114. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  115. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  116. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  117. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  118. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  119. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  120. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  121. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  122. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  123. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  124. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  125. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  126. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  127. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  128. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  129. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  130. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  131. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  132. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  133. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  134. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  135. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  136. package/lib/components/schedules/products/index.d.ts +0 -1
  137. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  138. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  139. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  140. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  141. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  142. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
  143. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  144. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  145. 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;
@@ -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
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -62,6 +62,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
62
62
  return {
63
63
  open: function open(params) {
64
64
  console.log('change', params);
65
+ form.resetFields();
65
66
  setParams(params);
66
67
  setOpen(true);
67
68
  }
@@ -173,9 +174,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
173
174
  });
174
175
  }, [data]);
175
176
  var updateResource = function updateResource(resource) {
176
- form.setFieldsValue({
177
- resource: resource
178
- });
177
+ form.setFieldValue('resource', resource);
179
178
  };
180
179
  var originCacheItem = useMemo(function () {
181
180
  if (!data) {
@@ -224,9 +223,9 @@ var EditBookingModal = function EditBookingModal(props, ref) {
224
223
  });
225
224
  }, [data, useToDate, useResource]);
226
225
  var initState = function initState() {
227
- form.resetFields();
228
226
  setData(null);
229
227
  setOpen(false);
228
+ form.resetFields();
230
229
  };
231
230
  var onCancel = function onCancel() {
232
231
  initState();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -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 Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -95,7 +95,7 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType, business
95
95
  if (renderType === 'eventBooking') {
96
96
  return false;
97
97
  }
98
- var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413];
98
+ var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413, 8943];
99
99
 
100
100
  // 固定的shopId 或者安装 Resource Kit 应用,则认为是booking4Shop
101
101
  return booking4Shops.includes(shopId) || (businessUtils === null || businessUtils === void 0 ? void 0 : businessUtils.getAppByModal('resourcekit'));
@@ -278,7 +278,7 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
278
278
  var _loop2 = function _loop2() {
279
279
  var item = _step.value;
280
280
  var renderList = item.renderList.filter(function (d) {
281
- return d.is_default == 1 || d.id === resourceId;
281
+ return d.id === resourceId;
282
282
  });
283
283
  var defaultOriginalResource = [];
284
284
  if (renderList.length === 0) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -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 Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -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
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -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 type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
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 Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -218,6 +218,9 @@ var TicketBooking = function TicketBooking() {
218
218
  // console.log(type, orderId, 'type, orderId');
219
219
  // 支付成功后清空状态
220
220
  _initFn(function () {});
221
+ setState({
222
+ createCount: state.createCount + 1
223
+ });
221
224
  });
222
225
 
223
226
  // 作废预约
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -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;
@@ -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;
@@ -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
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -60,6 +60,7 @@ var EditBookingModal = (props, ref) => {
60
60
  return {
61
61
  open: (params2) => {
62
62
  console.log("change", params2);
63
+ form.resetFields();
63
64
  setParams(params2);
64
65
  setOpen(true);
65
66
  }
@@ -159,9 +160,7 @@ var EditBookingModal = (props, ref) => {
159
160
  });
160
161
  }, [data]);
161
162
  const updateResource = (resource) => {
162
- form.setFieldsValue({
163
- resource
164
- });
163
+ form.setFieldValue("resource", resource);
165
164
  };
166
165
  const originCacheItem = (0, import_react.useMemo)(() => {
167
166
  if (!data) {
@@ -211,9 +210,9 @@ var EditBookingModal = (props, ref) => {
211
210
  };
212
211
  }, [data, useToDate, useResource]);
213
212
  const initState = () => {
214
- form.resetFields();
215
213
  setData(null);
216
214
  setOpen(false);
215
+ form.resetFields();
217
216
  };
218
217
  const onCancel = () => {
219
218
  initState();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -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 Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -145,7 +145,8 @@ var isBooking4Shop = (shopId, renderType, businessUtils) => {
145
145
  8824,
146
146
  8913,
147
147
  8918,
148
- 6413
148
+ 6413,
149
+ 8943
149
150
  ];
150
151
  return booking4Shops.includes(shopId) || (businessUtils == null ? void 0 : businessUtils.getAppByModal("resourcekit"));
151
152
  };
@@ -233,7 +233,7 @@ var setDefaultResource = ({ cacheItem, resources }) => {
233
233
  let resourceId = Number(serviceParams == null ? void 0 : serviceParams.resource_id);
234
234
  for (let item of resources) {
235
235
  const renderList = item.renderList.filter(
236
- (d) => d.is_default == 1 || d.id === resourceId
236
+ (d) => d.id === resourceId
237
237
  );
238
238
  let defaultOriginalResource = [];
239
239
  if (renderList.length === 0) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;