@pisell/private-materials 3.3.57 → 3.3.59

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 (83) 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/components/appointmentBooking/components/Content/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/index.d.ts +1 -0
  10. package/es/components/booking/components/footer/index.js +29 -14
  11. package/es/components/booking/components/voucher/index.d.ts +1 -0
  12. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  13. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  14. package/es/components/booking/info/date/index.d.ts +1 -0
  15. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  16. package/es/components/booking/info/index.d.ts +1 -0
  17. package/es/components/booking/info/notes/index.d.ts +1 -0
  18. package/es/components/booking/info/service/Lists.d.ts +1 -0
  19. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  20. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  21. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  22. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  23. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  24. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  25. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  26. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  27. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  28. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  29. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  30. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  31. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  32. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  33. package/es/components/eftposPay/hooks.d.ts +1 -1
  34. package/es/components/eftposPay/store/index.d.ts +3 -3
  35. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  36. package/es/components/eventBooking/index.d.ts +1 -0
  37. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  38. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  39. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  40. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  41. package/es/components/productExtension/index.d.ts +1 -0
  42. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  43. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  44. package/es/components/ticketBooking/index.d.ts +1 -0
  45. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  46. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  47. package/lib/components/appointmentBooking/index.d.ts +1 -0
  48. package/lib/components/booking/components/footer/index.js +13 -1
  49. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  50. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  51. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  52. package/lib/components/booking/info/date/index.d.ts +1 -0
  53. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  54. package/lib/components/booking/info/index.d.ts +1 -0
  55. package/lib/components/booking/info/notes/index.d.ts +1 -0
  56. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  57. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  58. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  59. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  60. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  61. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  62. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  63. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  64. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  65. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  66. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  67. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  68. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  69. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  70. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  71. package/lib/components/eftposPay/hooks.d.ts +1 -1
  72. package/lib/components/eftposPay/store/index.d.ts +3 -3
  73. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  74. package/lib/components/eventBooking/index.d.ts +1 -0
  75. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  76. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  77. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  78. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  79. package/lib/components/productExtension/index.d.ts +1 -0
  80. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  81. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  82. package/lib/components/ticketBooking/index.d.ts +1 -0
  83. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -36,7 +36,8 @@ import { checkHolderIsError, formatValues } from "./utils";
36
36
  import VoucherCard from "../voucher";
37
37
  import { SubTotal } from "../../../../index";
38
38
  import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
39
-
39
+ import { sendWarningLog } from '@pisell/utils';
40
+ import dayjs from 'dayjs';
40
41
  /**
41
42
  * @title: 底部
42
43
  * @description:
@@ -324,7 +325,8 @@ var Footer = function Footer(props) {
324
325
  case 5:
325
326
  _context2.next = 7;
326
327
  return handleSave({
327
- type: 'checkout'
328
+ type: 'checkout',
329
+ messageShow: !(isTerminal !== null && isTerminal !== void 0 && isTerminal())
328
330
  });
329
331
  case 7:
330
332
  res = _context2.sent;
@@ -469,7 +471,19 @@ var Footer = function Footer(props) {
469
471
  _context4.prev = 20;
470
472
  callbackData = null; // 格式化提交的参数
471
473
  values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // 区分是新增还是编辑
472
- api = state.bookingId ? editApi : createApi; // 活动预约新建时校验重复 -- 暂不处理
474
+ api = state.bookingId ? editApi : createApi; // 增加日志记录
475
+ sendWarningLog({
476
+ title: 'saveBooking',
477
+ content: [{
478
+ key: '下单前数据',
479
+ value: JSON.stringify(values)
480
+ }, {
481
+ key: '日期',
482
+ value: dayjs().format('YYYY-MM-DD HH:mm')
483
+ }]
484
+ });
485
+
486
+ // 活动预约新建时校验重复 -- 暂不处理
473
487
  // if (!state.bookingId && state.renderType === 'eventBooking') {
474
488
  // const { data } = await eventBookingCheck(values);
475
489
  // if (data.list.length) {
@@ -496,45 +510,46 @@ var Footer = function Footer(props) {
496
510
  // }
497
511
  // }
498
512
  // }
513
+
499
514
  // 如果有addons改动, 则先保存
500
515
  if (!addonsEdit) {
501
- _context4.next = 27;
516
+ _context4.next = 28;
502
517
  break;
503
518
  }
504
- _context4.next = 27;
519
+ _context4.next = 28;
505
520
  return handleSaveAddons();
506
- case 27:
521
+ case 28:
507
522
  if (!infoEdit) {
508
- _context4.next = 32;
523
+ _context4.next = 33;
509
524
  break;
510
525
  }
511
- _context4.next = 30;
526
+ _context4.next = 31;
512
527
  return api(values, state.bookingId);
513
- case 30:
528
+ case 31:
514
529
  callbackData = _context4.sent;
515
530
  if (messageShow) {
516
531
  message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
517
532
  }
518
- case 32:
533
+ case 33:
519
534
  // 回调关闭弹窗
520
535
  state === null || state === void 0 || state.callback(callbackData, type);
521
536
  _setLoading(false);
522
537
 
523
538
  // return数据 checkout时需要
524
539
  return _context4.abrupt("return", callbackData || values);
525
- case 37:
526
- _context4.prev = 37;
540
+ case 38:
541
+ _context4.prev = 38;
527
542
  _context4.t1 = _context4["catch"](20);
528
543
  console.log(_context4.t1);
529
544
  if ((_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.code) === 70101) {
530
545
  message.error(_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.message);
531
546
  }
532
547
  _setLoading(false);
533
- case 42:
548
+ case 43:
534
549
  case "end":
535
550
  return _context4.stop();
536
551
  }
537
- }, _callee4, null, [[20, 37]]);
552
+ }, _callee4, null, [[20, 38]]);
538
553
  }));
539
554
  return function handleSave(_x2) {
540
555
  return _ref5.apply(this, arguments);
@@ -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,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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  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 {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -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;
@@ -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" | "loading" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "fail" | "warn" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -303,12 +303,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
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?: "success" | "loading" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -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;
@@ -36,7 +36,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
36
36
  return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
37
37
  };
38
38
  var PaymentMethods = function PaymentMethods(props, ref) {
39
- var _context$appHelper;
39
+ var _context$appHelper, _interaction$utils, _interaction$utils$is;
40
40
  var MWCreditCardRef = useRef(null);
41
41
  var SuperPayAliPayH5Ref = useRef(null);
42
42
  var StripePayRef = useRef(null);
@@ -119,10 +119,11 @@ var PaymentMethods = function PaymentMethods(props, ref) {
119
119
  return _ref2.apply(this, arguments);
120
120
  };
121
121
  }();
122
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
122
123
  useEffect(function () {
123
- var _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
124
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils));
125
- if (interaction !== null && interaction !== void 0 && (_interaction$utils2 = interaction.utils) !== null && _interaction$utils2 !== void 0 && (_interaction$utils2$i = _interaction$utils2.isAppEnv) !== null && _interaction$utils2$i !== void 0 && _interaction$utils2$i.call(_interaction$utils2)) {
124
+ var _interaction$utils2, _interaction$utils2$i, _interaction$utils3, _interaction$utils3$i;
125
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAppEnv) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2));
126
+ if (interaction !== null && interaction !== void 0 && (_interaction$utils3 = interaction.utils) !== null && _interaction$utils3 !== void 0 && (_interaction$utils3$i = _interaction$utils3.isAppEnv) !== null && _interaction$utils3$i !== void 0 && _interaction$utils3$i.call(_interaction$utils3)) {
126
127
  interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
127
128
  console.log('paymentResult', strResult);
128
129
  if (!isJson(strResult)) return;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TabProduct: (props: any) => JSX.Element;
2
3
  export default TabProduct;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddServiceProps {
3
4
  onEdit?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -51,6 +51,8 @@ var import_utils3 = require("./utils");
51
51
  var import_voucher = __toESM(require("../voucher"));
52
52
  var import__ = require("../../../../index");
53
53
  var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
54
+ var import_utils4 = require("@pisell/utils");
55
+ var import_dayjs = __toESM(require("dayjs"));
54
56
  var Footer = (props) => {
55
57
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
56
58
  const { state, buttons, dispatch, source } = props;
@@ -222,7 +224,10 @@ var Footer = (props) => {
222
224
  const isHasDayProducts = handleDaySubmit();
223
225
  if (isHasDayProducts) return;
224
226
  }
225
- const res = await handleSave({ type: "checkout" });
227
+ const res = await handleSave({
228
+ type: "checkout",
229
+ messageShow: !(isTerminal == null ? void 0 : isTerminal())
230
+ });
226
231
  goCheckout((res == null ? void 0 : res.order_id) || state.bookingId);
227
232
  return;
228
233
  }
@@ -288,6 +293,13 @@ var Footer = (props) => {
288
293
  let callbackData = null;
289
294
  let values = (0, import_utils3.formatValues)({ ...state, ...saveOtherValue });
290
295
  const api = state.bookingId ? editApi : createApi;
296
+ (0, import_utils4.sendWarningLog)({
297
+ title: "saveBooking",
298
+ content: [
299
+ { key: "下单前数据", value: JSON.stringify(values) },
300
+ { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") }
301
+ ]
302
+ });
291
303
  if (addonsEdit) {
292
304
  await handleSaveAddons();
293
305
  }
@@ -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,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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  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 {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -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;
@@ -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" | "loading" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "fail" | "warn" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -303,12 +303,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
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?: "success" | "loading" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -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;