@pisell/private-materials 6.8.12 → 6.8.14

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 (131) 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/components/booking/info2/service/editNormalService/index.js +2 -1
  8. package/es/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
  9. package/lib/components/booking/info2/service/editNormalService/index.js +2 -1
  10. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
  11. package/package.json +4 -4
  12. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  13. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  14. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  15. package/es/components/booking/components/footer/index.d.ts +0 -11
  16. package/es/components/booking/components/footer/utils.d.ts +0 -67
  17. package/es/components/booking/components/voucher/index.d.ts +0 -3
  18. package/es/components/booking/dashboard/serve.d.ts +0 -1
  19. package/es/components/booking/forms/serve.d.ts +0 -18
  20. package/es/components/booking/info/client/serve.d.ts +0 -2
  21. package/es/components/booking/info/pet/serve.d.ts +0 -1
  22. package/es/components/booking/info/service/Lists.d.ts +0 -3
  23. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  24. package/es/components/booking/info/service/serve.d.ts +0 -34
  25. package/es/components/booking/info/service2/utils.d.ts +0 -219
  26. package/es/components/booking/info2/serve.d.ts +0 -6
  27. package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
  28. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  29. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  30. package/es/components/booking/utils.d.ts +0 -182
  31. package/es/components/checkout/PaymentModal.d.ts +0 -39
  32. package/es/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  33. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  34. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  35. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  36. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  37. package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
  38. package/es/components/checkout/plugin.d.ts +0 -2
  39. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  40. package/es/components/list/List.d.ts +0 -5
  41. package/es/components/list/hooks/useListState.d.ts +0 -45
  42. package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
  43. package/es/components/pay/toB/types/index.d.ts +0 -72
  44. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  45. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  46. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  47. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  48. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  49. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -11
  50. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  51. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  52. package/es/components/ticketBooking/index.d.ts +0 -15
  53. package/es/components/ticketBooking/serve.d.ts +0 -288
  54. package/es/components/ticketBooking/utils/index.d.ts +0 -101
  55. package/es/index.d.ts +0 -80
  56. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  57. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  58. package/es/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  59. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  60. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  61. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  62. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  63. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  64. package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  65. package/es/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  66. package/es/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  67. package/es/plus/webPosLogin/index.d.ts +0 -12
  68. package/es/plus/webPosLogin/locales.d.ts +0 -49
  69. package/es/plus/webPosLogin/service.d.ts +0 -44
  70. package/es/plus/webPosLogin/types.d.ts +0 -286
  71. package/es/pro/Login2.0/Login2.d.ts +0 -61
  72. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  73. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  74. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  75. package/lib/components/booking/components/footer/index.d.ts +0 -11
  76. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  77. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  78. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  79. package/lib/components/booking/forms/serve.d.ts +0 -18
  80. package/lib/components/booking/info/client/serve.d.ts +0 -2
  81. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  82. package/lib/components/booking/info/service/Lists.d.ts +0 -3
  83. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  84. package/lib/components/booking/info/service/serve.d.ts +0 -34
  85. package/lib/components/booking/info/service2/utils.d.ts +0 -219
  86. package/lib/components/booking/info2/serve.d.ts +0 -6
  87. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
  88. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  89. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  90. package/lib/components/booking/utils.d.ts +0 -182
  91. package/lib/components/checkout/PaymentModal.d.ts +0 -39
  92. package/lib/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  93. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  94. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  95. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  96. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  97. package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
  98. package/lib/components/checkout/plugin.d.ts +0 -2
  99. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  100. package/lib/components/list/List.d.ts +0 -5
  101. package/lib/components/list/hooks/useListState.d.ts +0 -45
  102. package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
  103. package/lib/components/pay/toB/types/index.d.ts +0 -72
  104. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  105. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  106. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
  107. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  108. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  109. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -11
  110. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  111. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  112. package/lib/components/ticketBooking/index.d.ts +0 -15
  113. package/lib/components/ticketBooking/serve.d.ts +0 -288
  114. package/lib/components/ticketBooking/utils/index.d.ts +0 -101
  115. package/lib/index.d.ts +0 -80
  116. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  117. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  118. package/lib/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  119. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  120. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  121. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  122. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  123. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  124. package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  125. package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  126. package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  127. package/lib/plus/webPosLogin/index.d.ts +0 -12
  128. package/lib/plus/webPosLogin/locales.d.ts +0 -49
  129. package/lib/plus/webPosLogin/service.d.ts +0 -44
  130. package/lib/plus/webPosLogin/types.d.ts +0 -286
  131. package/lib/pro/Login2.0/Login2.d.ts +0 -61
@@ -100,11 +100,12 @@ var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
100
100
  }
101
101
  var newProducts = (_ref3 = (state === null || state === void 0 || (_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.value) || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item) {
102
102
  if (item._id == data._id) {
103
- var _data$_extend, _data$_extend2;
103
+ var _data$_extend, _data$_extend2, _data$_extend3;
104
104
  data = setProductPrice(data, {
105
105
  newTotal: (_data$_extend = data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.total,
106
106
  origin_total: (_data$_extend2 = data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.origin_total
107
107
  });
108
+ data.note = (_data$_extend3 = data._extend) === null || _data$_extend3 === void 0 ? void 0 : _data$_extend3.note;
108
109
  return data;
109
110
  }
110
111
  return item;
@@ -36,6 +36,7 @@ import { createCacheItem, genValues, isBundle, isOption, setHandleSetService } f
36
36
  import { useToast } from '@pisell/materials';
37
37
  import { useIsActive } from "../../context/IsActiveContext";
38
38
  import { SelectHolderModal } from "../../../booking/utils/selectHolderModal";
39
+ import { getOpenNormalServiceHandler } from "../../../booking/info2/service/openNormalService";
39
40
  var productListLayout = {
40
41
  grid: true,
41
42
  config: '12:12'
@@ -624,29 +625,45 @@ var AddSerivce = function AddSerivce(props) {
624
625
  var isSession = isSessionProduct(item);
625
626
  var isOnlySession = getIsOnlySession(item);
626
627
  var isEject = getIsEject(item, type);
627
- state.action({
628
- type: 'pisell1.handleOpenProductModal',
629
- data: {
630
- id: item.id,
631
- date: state.date.value.format('YYYY-MM-DD'),
632
- productDetail: item,
633
- showConfig: {
634
- option: true,
635
- session: isSession,
636
- variant: true,
637
- package: true,
638
- number: getIsShowNumber(item, state)
628
+ if (isNormalProductByDurationSchedule(item) || !isSession && isEject) {
629
+ var openNormalService = getOpenNormalServiceHandler();
630
+ if (openNormalService) {
631
+ openNormalService({
632
+ mode: 'create',
633
+ productId: item.id,
634
+ date: state.date.value.format('YYYY-MM-DD'),
635
+ isEject: isEject ? 1 : 0,
636
+ onClose: function onClose() {
637
+ setCurrentProduct(null);
638
+ },
639
+ callback: createProductModalCallback(item)
640
+ });
641
+ }
642
+ } else {
643
+ state.action({
644
+ type: 'pisell1.handleOpenProductModal',
645
+ data: {
646
+ id: item.id,
647
+ date: state.date.value.format('YYYY-MM-DD'),
648
+ productDetail: item,
649
+ showConfig: {
650
+ option: true,
651
+ session: isSession,
652
+ variant: true,
653
+ package: true,
654
+ number: getIsShowNumber(item, state)
655
+ },
656
+ isOnlySession: isOnlySession,
657
+ is_eject: isEject ? 1 : 0,
658
+ customer_id: customerId,
659
+ isOS: isSession
639
660
  },
640
- isOnlySession: isOnlySession,
641
- is_eject: isEject ? 1 : 0,
642
- customer_id: customerId,
643
- isOS: isSession
644
- },
645
- onCancel: function onCancel() {
646
- setCurrentProduct(null);
647
- },
648
- callback: createProductModalCallback(item)
649
- });
661
+ onCancel: function onCancel() {
662
+ setCurrentProduct(null);
663
+ },
664
+ callback: createProductModalCallback(item)
665
+ });
666
+ }
650
667
  });
651
668
 
652
669
  // 处理产品选择
@@ -114,12 +114,13 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
114
114
  return;
115
115
  }
116
116
  const newProducts = (_e = ((_d = state == null ? void 0 : state.service) == null ? void 0 : _d.value) || []) == null ? void 0 : _e.map((item) => {
117
- var _a2, _b2;
117
+ var _a2, _b2, _c2;
118
118
  if (item._id == data._id) {
119
119
  data = (0, import_utils.setProductPrice)(data, {
120
120
  newTotal: (_a2 = data._extend) == null ? void 0 : _a2.total,
121
121
  origin_total: (_b2 = data._extend) == null ? void 0 : _b2.origin_total
122
122
  });
123
+ data.note = (_c2 = data._extend) == null ? void 0 : _c2.note;
123
124
  return data;
124
125
  }
125
126
  return item;
@@ -51,6 +51,7 @@ var import_utils7 = require("./utils");
51
51
  var import_materials = require("@pisell/materials");
52
52
  var import_IsActiveContext = require("../../context/IsActiveContext");
53
53
  var import_selectHolderModal = require("../../../booking/utils/selectHolderModal");
54
+ var import_openNormalService = require("../../../booking/info2/service/openNormalService");
54
55
  var productListLayout = {
55
56
  grid: true,
56
57
  config: "12:12"
@@ -488,29 +489,45 @@ var AddSerivce = (props) => {
488
489
  const isSession = (0, import_utils2.isSessionProduct)(item);
489
490
  const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
490
491
  const isEject = (0, import_utils2.getIsEject)(item, type);
491
- state.action({
492
- type: "pisell1.handleOpenProductModal",
493
- data: {
494
- id: item.id,
495
- date: state.date.value.format("YYYY-MM-DD"),
496
- productDetail: item,
497
- showConfig: {
498
- option: true,
499
- session: isSession,
500
- variant: true,
501
- package: true,
502
- number: (0, import_utils6.getIsShowNumber)(item, state)
492
+ if ((0, import_utils4.isNormalProductByDurationSchedule)(item) || !isSession && isEject) {
493
+ const openNormalService = (0, import_openNormalService.getOpenNormalServiceHandler)();
494
+ if (openNormalService) {
495
+ openNormalService({
496
+ mode: "create",
497
+ productId: item.id,
498
+ date: state.date.value.format("YYYY-MM-DD"),
499
+ isEject: isEject ? 1 : 0,
500
+ onClose: () => {
501
+ setCurrentProduct(null);
502
+ },
503
+ callback: createProductModalCallback(item)
504
+ });
505
+ }
506
+ } else {
507
+ state.action({
508
+ type: "pisell1.handleOpenProductModal",
509
+ data: {
510
+ id: item.id,
511
+ date: state.date.value.format("YYYY-MM-DD"),
512
+ productDetail: item,
513
+ showConfig: {
514
+ option: true,
515
+ session: isSession,
516
+ variant: true,
517
+ package: true,
518
+ number: (0, import_utils6.getIsShowNumber)(item, state)
519
+ },
520
+ isOnlySession,
521
+ is_eject: isEject ? 1 : 0,
522
+ customer_id: customerId,
523
+ isOS: isSession
503
524
  },
504
- isOnlySession,
505
- is_eject: isEject ? 1 : 0,
506
- customer_id: customerId,
507
- isOS: isSession
508
- },
509
- onCancel: () => {
510
- setCurrentProduct(null);
511
- },
512
- callback: createProductModalCallback(item)
513
- });
525
+ onCancel: () => {
526
+ setCurrentProduct(null);
527
+ },
528
+ callback: createProductModalCallback(item)
529
+ });
530
+ }
514
531
  });
515
532
  const handleSelectProduct = (0, import_ahooks.useMemoizedFn)(
516
533
  async (item, type = "select") => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.12",
3
+ "version": "6.8.14",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,10 +76,10 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
- "@pisell/icon": "0.0.11",
80
- "@pisell/materials": "6.8.4",
81
79
  "@pisell/utils": "3.0.2",
82
- "@pisell/date-picker": "3.0.7"
80
+ "@pisell/materials": "6.8.4",
81
+ "@pisell/date-picker": "3.0.7",
82
+ "@pisell/icon": "0.0.11"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default Services;
@@ -1,4 +0,0 @@
1
- import '../../../booking/components/voucher/index.less';
2
- import './index.less';
3
- declare const VoucherCard: (props: any) => JSX.Element;
4
- export default VoucherCard;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ActionButtonsProps {
4
- /** booking 状态对象,包含 service、addons 等数据 */
5
- state: {
6
- service?: {
7
- value?: any[];
8
- };
9
- addons?: {
10
- value?: any[];
11
- };
12
- disabledEdit?: boolean;
13
- channelDisabledEdit?: boolean;
14
- shop_discount?: string;
15
- bookingDetail?: {
16
- [key: string]: any;
17
- };
18
- [key: string]: any;
19
- };
20
- /** dispatch 函数,用于触发状态更新 */
21
- dispatch: (action: {
22
- type: string;
23
- payload?: any;
24
- }) => void;
25
- /** 是否禁用所有按钮 */
26
- disabled?: boolean;
27
- /** 数据源,传递给 VoucherCard */
28
- source?: any;
29
- }
30
- declare const ActionButtons: React.FC<ActionButtonsProps>;
31
- export default ActionButtons;
@@ -1,11 +0,0 @@
1
- import './index.less';
2
- /**
3
- * @title: 底部
4
- * @description:
5
- * @param {any} props
6
- * @return {*}
7
- * @Author: zhiwei.Wang
8
- * @Date: 2024-01-30 16:51
9
- */
10
- declare const Footer: (props: any) => JSX.Element;
11
- export default Footer;
@@ -1,67 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- /**
20
- * 获取子商品折扣信息
21
- * @param item
22
- */
23
- export declare const getBundleDiscountList: (bundle: any[]) => any[];
24
- export interface ResourceItem {
25
- [key: string]: any;
26
- }
27
- /**
28
- * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
29
- * @description:
30
- * @param {object} resource
31
- * @return {*}
32
- * @Author: jinglin.tan
33
- */
34
- export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
35
- export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
36
- /**
37
- * @title: 格式化商品单价
38
- * @description:
39
- * @param {any} item
40
- * @return {*}
41
- * @Author: WangHan
42
- * @Date: 2024-12-23 12:05
43
- */
44
- export declare const formatProductPrice: (item: any) => number;
45
- /**
46
- * checkout2.0: 单个数量商品总价(原价),包含所有套餐子商品金额、报价单等等
47
- * @param item
48
- * @returns
49
- */
50
- export declare const formatOriginalPrice: (item: any) => number;
51
- /**
52
- * checkout2.0: 商品维度折扣后价格, original_price - 商品折扣金额(商品手动折扣等等)
53
- * @param item
54
- * @returns
55
- */
56
- export declare const formatSellingPrice: (item: any) => number;
57
- export declare const getSourceProductPrice: (item: any) => number;
58
- export declare const getMainProductSellingPrice: (item: any) => number | undefined;
59
- /**
60
- * @title: 是否包含跨日预约商品
61
- * @description:
62
- * @param {any} data
63
- * @return {*}
64
- */
65
- export declare const getHasMultiDayProduct: (data: any) => any;
66
- export declare const formatValues: (state: any) => any;
67
- export declare const checkHolderIsError: (state: any) => any;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const VoucherCard: (props: any) => JSX.Element | null;
3
- export default VoucherCard;
@@ -1 +0,0 @@
1
- export declare const getBookingList: (params: any) => Promise<any>;
@@ -1,18 +0,0 @@
1
- /**
2
- * 获取表单数据
3
- */
4
- export declare const getFormData: (params: {
5
- form_id: number;
6
- form_record_ids: number[];
7
- num: number;
8
- skip: number;
9
- }) => Promise<any>;
10
- /**
11
- * 发送表单填写提醒
12
- */
13
- export declare const sendFormReminder: (params: {
14
- email?: string;
15
- phone?: string;
16
- order_id: number;
17
- country_calling_code?: string;
18
- }) => Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare const getFranchiseeCustomerInfo: (params: any) => Promise<any>;
2
- export declare const getFranchiseeCustomerList: (params: any) => Promise<any>;
@@ -1 +0,0 @@
1
- export declare const getFormDetail: (id: number) => Promise<any>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Lists: ({ onEdit, onChange, onAction, isParallelResource, isShowDelete, isShowAmountFooter }: any) => JSX.Element;
3
- export default Lists;
@@ -1,5 +0,0 @@
1
- export declare const getAddTimeProducts: (params: any, config: any) => Promise<any>;
2
- export declare const saveAddTimeProduct: ({ orderId, params }: {
3
- orderId: number | string;
4
- params: any;
5
- }) => Promise<any>;
@@ -1,34 +0,0 @@
1
- export declare const getProductDetail: (id: string, params: any) => Promise<any>;
2
- /**
3
- * @title: 跨日预约获取预约商品报价单
4
- * @description:
5
- * @param {string} id
6
- * @param {any} params
7
- * @return {*}
8
- * @Author: WangHan
9
- * @Date: 2024-12-23 17:06
10
- */
11
- export declare const postMultiDay: (id: string, params: any) => Promise<any>;
12
- /**
13
- * 批量查询指定商品的最新价格
14
- * @param params
15
- */
16
- export declare const getProductPrice: (params: {
17
- ids: number[];
18
- customer_id: number;
19
- schedule_date: string;
20
- }) => Promise<any>;
21
- declare type MultiDayProductPriceParams = {
22
- customer_id: number;
23
- data: {
24
- product_id: number;
25
- schedule_date: string;
26
- }[];
27
- };
28
- /**
29
- * 获取普通商品和跨日预约的价格
30
- * @param params
31
- * @returns
32
- */
33
- export declare const getNormalAndMultiDayProductPrice: (params: MultiDayProductPriceParams) => Promise<any>;
34
- export {};
@@ -1,219 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
- /**
4
- * @title: 获取资源名称
5
- * @description:
6
- * @param {any} id
7
- * @param {any} state
8
- * @return {*}
9
- * @Author: WangHan
10
- * @Date: 2024-11-29 18:02
11
- */
12
- export declare const getResourceItem: (id: any, state: any) => any;
13
- /**
14
- * @title: 错误提示
15
- * @description:
16
- * @param {any} service
17
- * @param {any} resourceItem
18
- * @return {*}
19
- * @Author: WangHan
20
- * @Date: 2024-11-29 18:41
21
- */
22
- export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
- /**
24
- * @title: 格式化主体列表
25
- * @description:
26
- * @param {any} lists
27
- * @param {boolean} isOpenGroup
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-04 11:27
31
- */
32
- export declare const formatHolderLists: (lists: any) => any;
33
- export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
- /**
35
- * @title: 是否是预约商品
36
- * @description:
37
- * @return {*}
38
- * @Author: WangHan
39
- * @Date: 2024-12-06 11:24
40
- */
41
- export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
- export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
43
- /**
44
- * @title: 更新商品数据
45
- * @description:
46
- * @param {any} state
47
- * @param currentItem
48
- * @param {string} type
49
- * @param {any} other
50
- * @param actions
51
- * @return {*}
52
- * @Author: WangHan
53
- * @Date: 2025-01-03 15:00
54
- */
55
- export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
- export declare const formItems: (items: any[]) => any[];
57
- export declare const getIsSubjectRequire: (state: any) => boolean;
58
- export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
- export declare const isAllNormalProduct: (items: any[]) => boolean;
60
- export declare const isAllNormalProductByState: (state: any) => boolean;
61
- export declare const genRowKey: (key: string) => string;
62
- /**
63
- * @title: 格式化商品数据
64
- * @description:
65
- * @param {any} lists
66
- * @return {*}
67
- * @Author: WangHan
68
- * @Date: 2024-11-29 17:36
69
- */
70
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => any[];
71
- /**
72
- * @title: 禁用日期
73
- * @description:
74
- * @param {any} current
75
- * @param {string} position
76
- * @param {any} startDate
77
- * @return {*}
78
- * @Author: WangHan
79
- * @Date: 2024-12-03 17:51
80
- */
81
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
82
- /**
83
- * @title: 是否是跨日预约
84
- * @description:
85
- * @param {any} state
86
- * @return {*}
87
- * @Author: WangHan
88
- * @Date: 2024-12-04 09:49
89
- */
90
- export declare const isDayBooking: (state: any) => boolean;
91
- export declare const isDaysBooking: (state: any) => boolean;
92
- export declare const isEventBooking: (state: any) => boolean;
93
- export declare const isAppointmentProduct: (item: any) => boolean;
94
- /**
95
- * @title: 是否是terminal上的跨日预约
96
- * @description:
97
- * @param {any} state
98
- * @return {*}
99
- * @Author: WangHan
100
- * @Date: 2024-12-04 15:31
101
- */
102
- export declare const isTerminalDayBooking: (state: any) => any;
103
- export declare const formatDayDate: (_extend: any) => any;
104
- /**
105
- * @title: 根据营业日时间格式化时间
106
- * @description:
107
- * @param {any} state
108
- * @return {*}
109
- * @Author: WangHan
110
- * @Date: 2024-12-04 12:07
111
- */
112
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
113
- startDateTime: dayjs.Dayjs;
114
- endDateTime: dayjs.Dayjs;
115
- };
116
- export declare const formatDateTime: (start_date: any, end_date: any) => {
117
- value: dayjs.Dayjs;
118
- end_date: dayjs.Dayjs;
119
- };
120
- /**
121
- * @title: 初始化日期
122
- * @description:
123
- * @return {*}
124
- * @Author: WangHan
125
- * @Date: 2024-12-06 17:24
126
- */
127
- export declare const initDate: () => {
128
- value: dayjs.Dayjs;
129
- end_date: dayjs.Dayjs;
130
- };
131
- /**
132
- * @title: 是否有预约商品
133
- * @description:
134
- * @return {*}
135
- * @Author: WangHan
136
- * @Date: 2024-12-12 15:47
137
- */
138
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
139
- /**
140
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
141
- * @description:
142
- * @param {any} lists
143
- * @return {*}
144
- * @Author: WangHan
145
- * @Date: 2024-12-13 16:44
146
- */
147
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
148
- /**
149
- * @title: 格式化表单数据
150
- * @description:
151
- * @param {any} state
152
- * @return {*}
153
- * @Author: WangHan
154
- * @Date: 2024-12-30 22:19
155
- */
156
- export declare const getPets: (state: any) => any;
157
- /**
158
- * @title: 得出预约商品
159
- * @description:
160
- * @param {any} state
161
- * @return {*}
162
- * @Author: WangHan
163
- * @Date: 2024-12-30 22:26
164
- */
165
- export declare const getAppointmentService: (state: any) => any;
166
- /**
167
- * @title: 判断是否打开删除宠物弹窗
168
- * @description:
169
- * @param {any} state
170
- * @param {any} newVal
171
- * @return {*}
172
- * @Author: WangHan
173
- * @Date: 2024-12-16 16:12
174
- */
175
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
176
- ids: any;
177
- lists: any;
178
- };
179
- /**
180
- * @title: 当前选中的表单id
181
- * @description:
182
- * @param {any} state
183
- * @return {*}
184
- * @Author: WangHan
185
- * @Date: 2024-12-17 14:40
186
- */
187
- export declare const holderId: (state: any) => number;
188
- /**
189
- * @title: 更新套餐的价格
190
- * @description:
191
- * @param {any} currentValue
192
- * @param {any} newBundleData
193
- * @return {*}
194
- * @Author: WangHan
195
- * @Date: 2024-12-31 15:16
196
- */
197
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
198
- /**
199
- * @title: 更新预约商品报价单
200
- * @description:
201
- * @param {any} state
202
- * @param {any} cacheItem
203
- * @return {*}
204
- * @Author: WangHan
205
- * @Date: 2024-12-25 16:41
206
- */
207
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
208
- multiDayPrices: any;
209
- price: number;
210
- }>;
211
- /**
212
- * @title: 更新普通商品报价单价格
213
- * @description:
214
- * @param {any} state
215
- * @return {*}
216
- * @Author: WangHan
217
- * @Date: 2024-12-24 11:32
218
- */
219
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,6 +0,0 @@
1
- export declare const getResourceList: (params: any, bookingId?: number[]) => Promise<{
2
- list: any[];
3
- listMap: any;
4
- }>;
5
- export declare const createBookings: (params: any) => Promise<any>;
6
- export declare const editBookings: (params: any, id?: number) => Promise<any>;