@pisell/private-materials 6.2.19 → 6.2.20
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Checkout/utils.d.ts +1 -0
- package/es/components/Sales/Checkout/utils.js +3 -2
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.js +3 -0
- package/es/components/booking/info/service/editService/index.js +15 -10
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +14 -11
- package/lib/components/Sales/Checkout/utils.d.ts +1 -0
- package/lib/components/Sales/Checkout/utils.js +3 -2
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.js +31 -0
- package/lib/components/booking/info/service/editService/index.js +7 -1
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/service/editService/index.js +5 -2
- package/package.json +3 -3
- package/es/components/Sales/Cart/utils.d.ts +0 -63
- package/es/components/Sales/Checkout/index.d.ts +0 -37
- package/es/components/Sales/Checkout/serve.d.ts +0 -15
- package/es/components/Sales/Customer/index.d.ts +0 -25
- package/es/components/Sales/Event/Detail.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -49
- package/es/components/Sales/Summary/index.d.ts +0 -35
- package/es/components/Sales/Summary/serve.d.ts +0 -1
- package/es/components/Sales/Summary/utils.d.ts +0 -51
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/hooks/useClearCart.d.ts +0 -2
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
- package/es/components/booking/info/index.d.ts +0 -4
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/utils.d.ts +0 -247
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/es/components/booking/locales.d.ts +0 -828
- package/es/components/booking/materiels/duration/index.d.ts +0 -13
- package/es/components/booking/model.d.ts +0 -108
- package/es/components/eftposPay/const.d.ts +0 -184
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/manufacturer.d.ts +0 -7
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -246
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -289
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/index.d.ts +0 -26
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/components/ticketBooking/locales.d.ts +0 -174
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/walletList/index.d.ts +0 -28
- package/es/utils/index.d.ts +0 -23
- package/lib/components/Sales/Cart/utils.d.ts +0 -63
- package/lib/components/Sales/Checkout/index.d.ts +0 -37
- package/lib/components/Sales/Checkout/serve.d.ts +0 -15
- package/lib/components/Sales/Customer/index.d.ts +0 -25
- package/lib/components/Sales/Event/Detail.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -49
- package/lib/components/Sales/Summary/index.d.ts +0 -35
- package/lib/components/Sales/Summary/serve.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +0 -51
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
- package/lib/components/booking/info/index.d.ts +0 -4
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/utils.d.ts +0 -247
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/lib/components/booking/locales.d.ts +0 -828
- package/lib/components/booking/materiels/duration/index.d.ts +0 -13
- package/lib/components/booking/model.d.ts +0 -108
- package/lib/components/eftposPay/const.d.ts +0 -184
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/manufacturer.d.ts +0 -7
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -246
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -289
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/index.d.ts +0 -26
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/components/ticketBooking/locales.d.ts +0 -174
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/utils/index.d.ts +0 -23
@@ -1,51 +0,0 @@
|
|
1
|
-
import Decimal from 'decimal.js';
|
2
|
-
interface CartItem {
|
3
|
-
price: number | string;
|
4
|
-
quantity?: number;
|
5
|
-
[k: string]: any;
|
6
|
-
}
|
7
|
-
interface PriceDetail {
|
8
|
-
subtotal: string;
|
9
|
-
total: string;
|
10
|
-
taxTitle?: string;
|
11
|
-
totalTaxFee?: string;
|
12
|
-
isPriceIncludeTax?: 0 | 1;
|
13
|
-
deposit?: {
|
14
|
-
total: string;
|
15
|
-
protocols: any[];
|
16
|
-
hasDeposit: boolean;
|
17
|
-
};
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* 计算商品小计(不含其他费用)
|
21
|
-
* @param items - 购物车商品数组
|
22
|
-
* @returns 商品总价字符串,保留2位小数
|
23
|
-
*/
|
24
|
-
export declare const calculateSubtotal: (items: CartItem[]) => string;
|
25
|
-
/**
|
26
|
-
* @title: 单个商品的税费
|
27
|
-
* @description:
|
28
|
-
* 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
|
29
|
-
* $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
|
30
|
-
* @return {*}
|
31
|
-
* @Author: xiangfeng.xue
|
32
|
-
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
34
|
-
/**
|
35
|
-
* 计算所有价格明细
|
36
|
-
* @param items - 购物车商品数组
|
37
|
-
* @param options - 其他费用配置
|
38
|
-
* @returns 价格明细对象
|
39
|
-
*/
|
40
|
-
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
41
|
-
/**
|
42
|
-
* @title: 计算定金
|
43
|
-
* @param items - 购物车商品数组
|
44
|
-
* @returns 定金字符串,保留2位小数
|
45
|
-
*/
|
46
|
-
export declare const calculateDeposit: (items: CartItem[]) => {
|
47
|
-
total: string;
|
48
|
-
protocols: any[];
|
49
|
-
hasDeposit: never;
|
50
|
-
} | undefined;
|
51
|
-
export {};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
interface CheckLoginParams {
|
2
|
-
isLogin: boolean;
|
3
|
-
openLoginModal: (params: {
|
4
|
-
callback: (status: string) => void;
|
5
|
-
}) => void;
|
6
|
-
isFormSubject: boolean;
|
7
|
-
utils: any;
|
8
|
-
accountLists: any[];
|
9
|
-
appointmentBooking: any;
|
10
|
-
getHolders: () => void;
|
11
|
-
}
|
12
|
-
export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
|
13
|
-
interface CheckHolderParams {
|
14
|
-
isFormSubject: boolean;
|
15
|
-
checkAccount: (type: string) => boolean;
|
16
|
-
carts: any[];
|
17
|
-
}
|
18
|
-
export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
|
19
|
-
interface CheckResourceParams {
|
20
|
-
carts: any[];
|
21
|
-
resources: any[];
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* @title: 检测资源数据
|
25
|
-
* @description:
|
26
|
-
* @param {CheckResourceParams} param1
|
27
|
-
* @return {*}
|
28
|
-
* @Author: WangHan
|
29
|
-
* @Date: 2025-04-29 18:02
|
30
|
-
*/
|
31
|
-
export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
|
32
|
-
interface CheckResourceParams {
|
33
|
-
carts: any[];
|
34
|
-
}
|
35
|
-
export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
|
36
|
-
interface AddHolderParams {
|
37
|
-
res: any;
|
38
|
-
bookingSubject: any;
|
39
|
-
accountLists: any[];
|
40
|
-
cartItem: any;
|
41
|
-
getHolders: () => void;
|
42
|
-
appointmentBooking: any;
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* @title: 添加holder
|
46
|
-
* @description:
|
47
|
-
* @param {any} res
|
48
|
-
* @param {any} bookingSubject
|
49
|
-
* @param {any} accountLists
|
50
|
-
* @param {any} e
|
51
|
-
* @return {*}
|
52
|
-
* @Author: WangHan
|
53
|
-
* @Date: 2025-05-10 18:25
|
54
|
-
*/
|
55
|
-
export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
|
56
|
-
export {};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import './index.less';
|
2
|
-
export declare const DepositContent: (props: {
|
3
|
-
isAgreeDepositPolicy: boolean;
|
4
|
-
setIsAgreeDepositPolicy: (value: boolean) => void;
|
5
|
-
deposit: any;
|
6
|
-
depositProtocolRequest?: any;
|
7
|
-
}) => JSX.Element;
|
8
|
-
declare const Deposit: () => JSX.Element;
|
9
|
-
export default Deposit;
|
@@ -1,106 +0,0 @@
|
|
1
|
-
export declare const useAppointmentBooking: () => any;
|
2
|
-
export declare const useShopDiscount: () => any;
|
3
|
-
export declare const contextUtils: () => any;
|
4
|
-
/**
|
5
|
-
* @title: 监听步骤发生变化
|
6
|
-
* @description:
|
7
|
-
* @return {*}
|
8
|
-
* @Author: WangHan
|
9
|
-
* @Date: 2025-04-15 11:11
|
10
|
-
*/
|
11
|
-
export declare const useAppointmentBookingStep: () => {
|
12
|
-
getStepIndex: (type: string, skipNumber?: number) => any;
|
13
|
-
stepList: any;
|
14
|
-
removeStep: (key: string) => any;
|
15
|
-
addStep: (props: any, stepKey?: string) => any;
|
16
|
-
updateStep: (key: string, step: any) => void;
|
17
|
-
nextStep: () => any;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* @title: 获取商品数据
|
21
|
-
* @description:
|
22
|
-
* @return {*}
|
23
|
-
* @Author: WangHan
|
24
|
-
* @Date: 2025-04-15 11:12
|
25
|
-
*/
|
26
|
-
export declare const useAppointmentBookingProduct: () => {
|
27
|
-
checkProductType: (productId: number) => Promise<any>;
|
28
|
-
getProducts: () => Promise<any>;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* @title: 更新购物车数据
|
32
|
-
* @description:
|
33
|
-
* @return {*}
|
34
|
-
* @Author: WangHan
|
35
|
-
* @Date: 2025-04-15 11:12
|
36
|
-
*/
|
37
|
-
export declare const useAppointmentBookingCart: () => void;
|
38
|
-
/**
|
39
|
-
* @title: 获取登录状态
|
40
|
-
* @description:
|
41
|
-
* @return {*}
|
42
|
-
* @Author: WangHan
|
43
|
-
* @Date: 2025-04-15 11:14
|
44
|
-
*/
|
45
|
-
export declare const useAppointmentBookingLogin: () => {
|
46
|
-
isLogin: boolean;
|
47
|
-
openLoginModal: (params: {
|
48
|
-
callback: any;
|
49
|
-
}) => void;
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
* @title: 获取账户
|
53
|
-
* @description:
|
54
|
-
* @return {*}
|
55
|
-
* @Author: WangHan
|
56
|
-
* @Date: 2025-04-15 11:15
|
57
|
-
*/
|
58
|
-
export declare const useAppointmentBookingAccount: () => {
|
59
|
-
accountLists: any;
|
60
|
-
getHolders: () => Promise<any>;
|
61
|
-
form_id: any;
|
62
|
-
addAccount: (val: any, type?: string) => Promise<any>;
|
63
|
-
checkAccount: (type: any) => any;
|
64
|
-
};
|
65
|
-
/**
|
66
|
-
* @title: 获取资源数据
|
67
|
-
* @description:
|
68
|
-
* @return {*}
|
69
|
-
* @Author: WangHan
|
70
|
-
* @Date: 2025-04-15 11:29
|
71
|
-
*/
|
72
|
-
export declare const useAppointmentBookingResource: () => {
|
73
|
-
getResourceTimeSlot: (index?: number) => Promise<void>;
|
74
|
-
getResourceList: () => {
|
75
|
-
resources: any;
|
76
|
-
resourceCodes: any;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
/**
|
80
|
-
* @title: 是否跳过资源选择步骤
|
81
|
-
* @description:
|
82
|
-
* @return {*}
|
83
|
-
* @Author: WangHan
|
84
|
-
* @Date: 2025-04-21 11:47
|
85
|
-
*/
|
86
|
-
export declare const useIsSkipResourceStep: () => {
|
87
|
-
checkSkipResourceStep: () => Promise<boolean>;
|
88
|
-
};
|
89
|
-
/**
|
90
|
-
* @title: 获取预约配置
|
91
|
-
* @description:
|
92
|
-
* @return {*}
|
93
|
-
* @Author: WangHan
|
94
|
-
* @Date: 2025-04-24 18:15
|
95
|
-
*/
|
96
|
-
export declare const useAppointmentBookingSetting: () => {
|
97
|
-
isDateSelectedFirst: boolean;
|
98
|
-
isFormSubject: boolean;
|
99
|
-
isRetailTemplate: any;
|
100
|
-
customPageId: any;
|
101
|
-
channel: any;
|
102
|
-
bookingSubject: any;
|
103
|
-
setOtherData: (key: string, val: any) => any;
|
104
|
-
getOtherData: (key: string) => any;
|
105
|
-
formName: any;
|
106
|
-
};
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
interface CustomSelectProps {
|
4
|
-
options: any[];
|
5
|
-
onValueChange: (value: any[]) => void;
|
6
|
-
value: any[];
|
7
|
-
rowKey: string;
|
8
|
-
previewItemRender?: (item: any) => React.ReactNode;
|
9
|
-
previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
|
10
|
-
addButtonRender?: () => React.ReactNode;
|
11
|
-
optionRender: (item: any) => React.ReactNode;
|
12
|
-
addButtonProps?: any;
|
13
|
-
drawerProps?: any;
|
14
|
-
createItemText?: string;
|
15
|
-
loading?: boolean;
|
16
|
-
previewItemClassName?: string;
|
17
|
-
optionClassName?: string;
|
18
|
-
mode?: 'single' | 'multiple' | 'form';
|
19
|
-
filterItem?: (item: any, search: string) => boolean;
|
20
|
-
isPreview?: boolean;
|
21
|
-
name?: string;
|
22
|
-
handleCreateItem?: () => void;
|
23
|
-
handleViewItem?: (item: any) => void;
|
24
|
-
searchChange?: (e: string) => void;
|
25
|
-
loadMore?: any;
|
26
|
-
virtualListHeight?: number;
|
27
|
-
disabled?: boolean;
|
28
|
-
searchValue?: string;
|
29
|
-
onVirtualListScroll?: any;
|
30
|
-
modalOpen?: boolean;
|
31
|
-
closeCallback?: () => any;
|
32
|
-
autoFocus?: boolean;
|
33
|
-
showDropDown?: boolean;
|
34
|
-
handleOpenModal?: () => void;
|
35
|
-
handleDayChange?: (value: any) => void;
|
36
|
-
}
|
37
|
-
declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
|
38
|
-
export default _default;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) => any;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { EditServiceRef } from "../service/editService";
|
3
|
-
declare const useInfoHolder: (state: any, dispatch: any) => {
|
4
|
-
detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
|
5
|
-
handleEdit: (cacheItem: any, type?: string) => void;
|
6
|
-
dispatchService: (type: string, payload: any) => void;
|
7
|
-
handleAction: (dataSource: any) => void;
|
8
|
-
showAddTimeModal: boolean;
|
9
|
-
};
|
10
|
-
export default useInfoHolder;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
|
2
|
-
renderMode?: any;
|
3
|
-
onEdit?: any;
|
4
|
-
state?: any;
|
5
|
-
dispatch?: any;
|
6
|
-
}) => {
|
7
|
-
createBookingData: ({ product }: any) => Promise<any>;
|
8
|
-
editBookingData: ({ changeValues }: {
|
9
|
-
changeValues: any;
|
10
|
-
}) => Promise<any>;
|
11
|
-
createBooking: ({ booking }: {
|
12
|
-
booking: any;
|
13
|
-
}) => Promise<void>;
|
14
|
-
editBooking: ({ booking }: {
|
15
|
-
booking: any;
|
16
|
-
}) => Promise<void>;
|
17
|
-
goEditPanel: ({ booking }: {
|
18
|
-
booking: any;
|
19
|
-
}) => void;
|
20
|
-
};
|
@@ -1,247 +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
|
-
/**
|
62
|
-
* @title: 格式化商品数据
|
63
|
-
* @description:
|
64
|
-
* @param {any} lists
|
65
|
-
* @return {*}
|
66
|
-
* @Author: WangHan
|
67
|
-
* @Date: 2024-11-29 17:36
|
68
|
-
*/
|
69
|
-
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
|
70
|
-
_origin: any;
|
71
|
-
id: any;
|
72
|
-
_id: any;
|
73
|
-
name: any;
|
74
|
-
price: any;
|
75
|
-
total: number;
|
76
|
-
origin_total: number;
|
77
|
-
num: any;
|
78
|
-
image: any;
|
79
|
-
isShowNote: boolean;
|
80
|
-
note: any;
|
81
|
-
like_status: any;
|
82
|
-
bundle: any;
|
83
|
-
options: any;
|
84
|
-
errorMessage: string;
|
85
|
-
product_option_string: any;
|
86
|
-
discount_reason: any;
|
87
|
-
resource_id: any;
|
88
|
-
relation_form_name: any;
|
89
|
-
holder_title: any;
|
90
|
-
start_date: any;
|
91
|
-
end_date: any;
|
92
|
-
holder_id: any;
|
93
|
-
isNormalProduct: boolean;
|
94
|
-
locale: any;
|
95
|
-
symbol: any;
|
96
|
-
relation_products: any;
|
97
|
-
items: any[];
|
98
|
-
}[];
|
99
|
-
/**
|
100
|
-
* @title: 禁用日期
|
101
|
-
* @description:
|
102
|
-
* @param {any} current
|
103
|
-
* @param {string} position
|
104
|
-
* @param {any} startDate
|
105
|
-
* @return {*}
|
106
|
-
* @Author: WangHan
|
107
|
-
* @Date: 2024-12-03 17:51
|
108
|
-
*/
|
109
|
-
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
110
|
-
/**
|
111
|
-
* @title: 是否是跨日预约
|
112
|
-
* @description:
|
113
|
-
* @param {any} state
|
114
|
-
* @return {*}
|
115
|
-
* @Author: WangHan
|
116
|
-
* @Date: 2024-12-04 09:49
|
117
|
-
*/
|
118
|
-
export declare const isDayBooking: (state: any) => boolean;
|
119
|
-
export declare const isDaysBooking: (state: any) => boolean;
|
120
|
-
export declare const isEventBooking: (state: any) => boolean;
|
121
|
-
export declare const isAppointmentProduct: (item: any) => boolean;
|
122
|
-
/**
|
123
|
-
* @title: 是否是terminal上的跨日预约
|
124
|
-
* @description:
|
125
|
-
* @param {any} state
|
126
|
-
* @return {*}
|
127
|
-
* @Author: WangHan
|
128
|
-
* @Date: 2024-12-04 15:31
|
129
|
-
*/
|
130
|
-
export declare const isTerminalDayBooking: (state: any) => any;
|
131
|
-
export declare const formatDayDate: (_extend: any) => any;
|
132
|
-
/**
|
133
|
-
* @title: 根据营业日时间格式化时间
|
134
|
-
* @description:
|
135
|
-
* @param {any} state
|
136
|
-
* @return {*}
|
137
|
-
* @Author: WangHan
|
138
|
-
* @Date: 2024-12-04 12:07
|
139
|
-
*/
|
140
|
-
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
141
|
-
startDateTime: dayjs.Dayjs;
|
142
|
-
endDateTime: dayjs.Dayjs;
|
143
|
-
};
|
144
|
-
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
145
|
-
value: dayjs.Dayjs;
|
146
|
-
end_date: dayjs.Dayjs;
|
147
|
-
};
|
148
|
-
/**
|
149
|
-
* @title: 初始化日期
|
150
|
-
* @description:
|
151
|
-
* @return {*}
|
152
|
-
* @Author: WangHan
|
153
|
-
* @Date: 2024-12-06 17:24
|
154
|
-
*/
|
155
|
-
export declare const initDate: () => {
|
156
|
-
value: dayjs.Dayjs;
|
157
|
-
end_date: dayjs.Dayjs;
|
158
|
-
};
|
159
|
-
/**
|
160
|
-
* @title: 是否有预约商品
|
161
|
-
* @description:
|
162
|
-
* @return {*}
|
163
|
-
* @Author: WangHan
|
164
|
-
* @Date: 2024-12-12 15:47
|
165
|
-
*/
|
166
|
-
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
167
|
-
/**
|
168
|
-
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
169
|
-
* @description:
|
170
|
-
* @param {any} lists
|
171
|
-
* @return {*}
|
172
|
-
* @Author: WangHan
|
173
|
-
* @Date: 2024-12-13 16:44
|
174
|
-
*/
|
175
|
-
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
176
|
-
/**
|
177
|
-
* @title: 格式化表单数据
|
178
|
-
* @description:
|
179
|
-
* @param {any} state
|
180
|
-
* @return {*}
|
181
|
-
* @Author: WangHan
|
182
|
-
* @Date: 2024-12-30 22:19
|
183
|
-
*/
|
184
|
-
export declare const getPets: (state: any) => any;
|
185
|
-
/**
|
186
|
-
* @title: 得出预约商品
|
187
|
-
* @description:
|
188
|
-
* @param {any} state
|
189
|
-
* @return {*}
|
190
|
-
* @Author: WangHan
|
191
|
-
* @Date: 2024-12-30 22:26
|
192
|
-
*/
|
193
|
-
export declare const getAppointmentService: (state: any) => any;
|
194
|
-
/**
|
195
|
-
* @title: 判断是否打开删除宠物弹窗
|
196
|
-
* @description:
|
197
|
-
* @param {any} state
|
198
|
-
* @param {any} newVal
|
199
|
-
* @return {*}
|
200
|
-
* @Author: WangHan
|
201
|
-
* @Date: 2024-12-16 16:12
|
202
|
-
*/
|
203
|
-
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
204
|
-
ids: any;
|
205
|
-
lists: any;
|
206
|
-
};
|
207
|
-
/**
|
208
|
-
* @title: 当前选中的表单id
|
209
|
-
* @description:
|
210
|
-
* @param {any} state
|
211
|
-
* @return {*}
|
212
|
-
* @Author: WangHan
|
213
|
-
* @Date: 2024-12-17 14:40
|
214
|
-
*/
|
215
|
-
export declare const holderId: (state: any) => number;
|
216
|
-
/**
|
217
|
-
* @title: 更新套餐的价格
|
218
|
-
* @description:
|
219
|
-
* @param {any} currentValue
|
220
|
-
* @param {any} newBundleData
|
221
|
-
* @return {*}
|
222
|
-
* @Author: WangHan
|
223
|
-
* @Date: 2024-12-31 15:16
|
224
|
-
*/
|
225
|
-
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
226
|
-
/**
|
227
|
-
* @title: 更新预约商品报价单
|
228
|
-
* @description:
|
229
|
-
* @param {any} state
|
230
|
-
* @param {any} cacheItem
|
231
|
-
* @return {*}
|
232
|
-
* @Author: WangHan
|
233
|
-
* @Date: 2024-12-25 16:41
|
234
|
-
*/
|
235
|
-
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
236
|
-
multiDayPrices: any;
|
237
|
-
price: number;
|
238
|
-
}>;
|
239
|
-
/**
|
240
|
-
* @title: 更新普通商品报价单价格
|
241
|
-
* @description:
|
242
|
-
* @param {any} state
|
243
|
-
* @return {*}
|
244
|
-
* @Author: WangHan
|
245
|
-
* @Date: 2024-12-24 11:32
|
246
|
-
*/
|
247
|
-
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|