@pisell/private-materials 6.3.111 → 6.3.113
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.js +4 -4
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/utils.js +4 -4
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +36 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +76 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +165 -142
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +65 -31
- package/es/components/pay/toC/model.d.ts +10 -1
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +42 -15
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -7
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +24 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +38 -2
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -100
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +52 -19
- package/lib/components/pay/toC/model.d.ts +10 -1
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +6 -2
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -7
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/package.json +4 -4
|
@@ -56,6 +56,12 @@ export declare type WalletPassDataType = {
|
|
|
56
56
|
metadata?: {
|
|
57
57
|
validity_type: string;
|
|
58
58
|
};
|
|
59
|
+
/** 前端计算 可用最大金额 */
|
|
60
|
+
_available_max_amount?: number;
|
|
61
|
+
/** 前端计算 统一可用状态 */
|
|
62
|
+
_unified_available_status?: 0 | 1;
|
|
63
|
+
/** 前端计算 禁用原因 */
|
|
64
|
+
reason?: string;
|
|
59
65
|
};
|
|
60
66
|
declare type Shop = {
|
|
61
67
|
id: number;
|
|
@@ -53,8 +53,8 @@ var formatMachineCodeServer2CardList = (data, selectId = []) => {
|
|
|
53
53
|
showDetail: false,
|
|
54
54
|
showQrCode: false,
|
|
55
55
|
code: item.code,
|
|
56
|
-
disabled: !item.unified_available_status,
|
|
57
|
-
disabledReason: (_b = item.unified_messages) == null ? void 0 : _b.title,
|
|
56
|
+
disabled: (0, import_utils.isNumber)(item._unified_available_status) ? !item._unified_available_status : !item.unified_available_status,
|
|
57
|
+
disabledReason: (0, import_utils.isNumber)(item._unified_available_status) ? item.reason : (_b = item.unified_messages) == null ? void 0 : _b.title,
|
|
58
58
|
cover: (_c = item.product) == null ? void 0 : _c.cover,
|
|
59
59
|
qrCode: item.code,
|
|
60
60
|
validDate: voucherTime(item),
|
|
@@ -166,7 +166,9 @@ var WalletPassBlock = (props, ref) => {
|
|
|
166
166
|
ref: walletPassRef,
|
|
167
167
|
walletSetting,
|
|
168
168
|
onWalletPassChange,
|
|
169
|
-
walletPass: payGroup == null ? void 0 : payGroup.walletPass
|
|
169
|
+
walletPass: payGroup == null ? void 0 : payGroup.walletPass,
|
|
170
|
+
orderDetail: payGroup == null ? void 0 : payGroup.orderDetail,
|
|
171
|
+
total_amount: payGroup == null ? void 0 : payGroup.total_amount
|
|
170
172
|
}
|
|
171
173
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
172
174
|
import_WalletAvailable.default,
|
|
@@ -49,6 +49,7 @@ var import_usePaymentLogger = __toESM(require("../../../hooks/usePaymentLogger")
|
|
|
49
49
|
var import_utils2 = require("../../../utils");
|
|
50
50
|
var import_payGroup = require("./payGroup");
|
|
51
51
|
var import_locales = __toESM(require("./locales"));
|
|
52
|
+
var import_serve2 = require("./PaymentMethods/WalletPass/serve");
|
|
52
53
|
var import_utils3 = require("./utils");
|
|
53
54
|
var import_status = require("./status");
|
|
54
55
|
var import_index = require("./index.less");
|
|
@@ -169,7 +170,7 @@ var ToCPay = (props, ref) => {
|
|
|
169
170
|
}
|
|
170
171
|
};
|
|
171
172
|
const _getPaymentsAndWalletPass = async (order) => {
|
|
172
|
-
var _a2, _b2;
|
|
173
|
+
var _a2, _b2, _c2;
|
|
173
174
|
paymentLogger.addLog({
|
|
174
175
|
key: "获取支付列表开始",
|
|
175
176
|
value: {
|
|
@@ -177,11 +178,22 @@ var ToCPay = (props, ref) => {
|
|
|
177
178
|
}
|
|
178
179
|
});
|
|
179
180
|
try {
|
|
180
|
-
const data = await
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
const [data, allList, orderBasicDetail] = await Promise.all([
|
|
182
|
+
(0, import_serve.getPaymentsAndWalletPass)({
|
|
183
|
+
order_id: order.order_id,
|
|
184
|
+
total_amount: order.amount,
|
|
185
|
+
sale_channel: order.sale_channel || "online-store"
|
|
186
|
+
}),
|
|
187
|
+
(0, import_serve2.getMachineCodeList)({
|
|
188
|
+
order_id: order.order_id,
|
|
189
|
+
available: 2,
|
|
190
|
+
prepare_payments: [],
|
|
191
|
+
filter_prepare_wallet_pass: 1,
|
|
192
|
+
sale_channel: ((_a2 = order._order) == null ? void 0 : _a2.sale_channel) || "online-store",
|
|
193
|
+
other_exact_codes: []
|
|
194
|
+
}),
|
|
195
|
+
(0, import_serve.getOrderBasicDetail)(order.order_id)
|
|
196
|
+
]);
|
|
185
197
|
const {
|
|
186
198
|
remain_amount = 0,
|
|
187
199
|
wallet_pass_recommend_list,
|
|
@@ -189,39 +201,60 @@ var ToCPay = (props, ref) => {
|
|
|
189
201
|
payment_list,
|
|
190
202
|
walletPass
|
|
191
203
|
} = data || {};
|
|
204
|
+
const products = (orderBasicDetail.detail || []).map((item) => {
|
|
205
|
+
var _a3;
|
|
206
|
+
return {
|
|
207
|
+
...item,
|
|
208
|
+
is_price_include_tax: orderBasicDetail.is_price_include_tax,
|
|
209
|
+
product_bundle: (_a3 = item.product_bundle || []) == null ? void 0 : _a3.map((bundle) => {
|
|
210
|
+
return {
|
|
211
|
+
...bundle,
|
|
212
|
+
is_price_include_tax: orderBasicDetail.is_price_include_tax
|
|
213
|
+
};
|
|
214
|
+
})
|
|
215
|
+
};
|
|
216
|
+
});
|
|
217
|
+
const res = utils.walletPassEvaluator.getRecommendedVouchers({
|
|
218
|
+
orderTotalAmount: Math.min(orderBasicDetail.product_unpaid_total_pay_amount, order.amount),
|
|
219
|
+
products,
|
|
220
|
+
vouchers: allList || []
|
|
221
|
+
});
|
|
222
|
+
const { recommended, transformList, noApplicableVoucher, recommendedAmount } = res;
|
|
192
223
|
paymentLogger.addLog({
|
|
193
224
|
key: "支付数据获取",
|
|
194
225
|
value: ""
|
|
195
226
|
});
|
|
196
|
-
const
|
|
197
|
-
(item) => {
|
|
198
|
-
return {
|
|
199
|
-
...item,
|
|
200
|
-
customer_id: customer_id || item.customer_id
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
);
|
|
227
|
+
const waitAmount2 = new import_decimal.Decimal((order == null ? void 0 : order.amount) || 0).minus(new import_decimal.Decimal(recommendedAmount)).toNumber();
|
|
204
228
|
dispatch({
|
|
205
229
|
type: "setPayGroup",
|
|
206
230
|
payload: {
|
|
207
231
|
// ...state.payGroup,
|
|
208
232
|
order_id: order == null ? void 0 : order.order_id,
|
|
209
233
|
// total_amount: order?.amount,
|
|
234
|
+
orderDetail: orderBasicDetail,
|
|
210
235
|
// 原订单信息
|
|
211
236
|
_order: order,
|
|
212
237
|
payment_group_id: order == null ? void 0 : order.payment_group_id,
|
|
213
238
|
// 支付方式没有walletPass时walletPass设置null
|
|
214
239
|
walletPass: walletPass ? {
|
|
215
|
-
...(
|
|
240
|
+
...(_b2 = state.payGroup) == null ? void 0 : _b2.walletPass,
|
|
216
241
|
...walletPass,
|
|
217
|
-
|
|
218
|
-
cards:
|
|
242
|
+
// 推荐钱包
|
|
243
|
+
cards: recommended,
|
|
244
|
+
// 推荐金额
|
|
245
|
+
amount: recommendedAmount,
|
|
246
|
+
// 不可用钱包
|
|
247
|
+
noApplicableVoucher,
|
|
248
|
+
// 转换列表
|
|
249
|
+
transformList
|
|
250
|
+
// amount: wallet_pass_amount,
|
|
251
|
+
// cards: wallet_pass_recommend_list,
|
|
219
252
|
} : null,
|
|
220
253
|
total_amount: order == null ? void 0 : order.amount,
|
|
221
|
-
wait_amount:
|
|
254
|
+
wait_amount: Math.max(0, waitAmount2)
|
|
222
255
|
}
|
|
223
256
|
});
|
|
224
|
-
await ((
|
|
257
|
+
await ((_c2 = paymentListRef.current) == null ? void 0 : _c2.init(payment_list, remain_amount || 0));
|
|
225
258
|
setTimeout(() => {
|
|
226
259
|
setLoading(false);
|
|
227
260
|
}, 100);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -28,5 +29,13 @@ export interface PayGroup {
|
|
|
28
29
|
pay_number?: string;
|
|
29
30
|
_order: any;
|
|
30
31
|
front_order_uuid?: string;
|
|
32
|
+
orderDetail: any;
|
|
31
33
|
}
|
|
32
|
-
export declare const Provider: any, Context:
|
|
34
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
35
|
+
state: FormState;
|
|
36
|
+
} & {
|
|
37
|
+
dispatch: (params: {
|
|
38
|
+
type: string;
|
|
39
|
+
payload: any;
|
|
40
|
+
}) => void;
|
|
41
|
+
}>;
|
|
@@ -62,6 +62,23 @@ export declare const getWalletNameAndPopupStatus: (values: {
|
|
|
62
62
|
* @description: 获取支付结果
|
|
63
63
|
*/
|
|
64
64
|
export declare const getPaymentResult: (values: any) => Promise<any>;
|
|
65
|
+
declare type OrderBasicDetail = {
|
|
66
|
+
id: number;
|
|
67
|
+
status: string;
|
|
68
|
+
payment_status: string;
|
|
69
|
+
order_time: string;
|
|
70
|
+
detail: any[];
|
|
71
|
+
product_unpaid_total_pay_amount: number;
|
|
72
|
+
product_paid_total_pay_amount: number;
|
|
73
|
+
is_price_include_tax: 1 | 0;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* @title: 查询订单基础信息和订单商品信息
|
|
77
|
+
* @description: 查询订单基础信息和订单商品信息
|
|
78
|
+
* @param {string} order_id
|
|
79
|
+
* @return {*}
|
|
80
|
+
*/
|
|
81
|
+
export declare const getOrderBasicDetail: (order_id: string) => Promise<OrderBasicDetail>;
|
|
65
82
|
/**
|
|
66
83
|
* @title: 检测订单是否有正在处理中的交易
|
|
67
84
|
* @param {object} values - { order_id: string }
|
|
@@ -72,3 +89,4 @@ export declare const checkPendingPayment: (values: {
|
|
|
72
89
|
}) => Promise<{
|
|
73
90
|
has_pending: boolean;
|
|
74
91
|
}>;
|
|
92
|
+
export {};
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
checkPendingPayment: () => checkPendingPayment,
|
|
23
|
+
getOrderBasicDetail: () => getOrderBasicDetail,
|
|
23
24
|
getPaymentInit: () => getPaymentInit,
|
|
24
25
|
getPaymentList: () => getPaymentList,
|
|
25
26
|
getPaymentResult: () => getPaymentResult,
|
|
@@ -78,6 +79,10 @@ var getWalletNameAndPopupStatus = async (values) => {
|
|
|
78
79
|
return data;
|
|
79
80
|
};
|
|
80
81
|
var getPaymentResult = (values) => import_utils.request.getRequest().get(`/h5/pay/order/payment/result`, values);
|
|
82
|
+
var getOrderBasicDetail = async (order_id) => {
|
|
83
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/order/order/${order_id}/basic-detail`, {});
|
|
84
|
+
return data;
|
|
85
|
+
};
|
|
81
86
|
var checkPendingPayment = async (values) => {
|
|
82
87
|
var _a;
|
|
83
88
|
const { data } = await import_utils.request.getRequest().post(`/h5/pay/payment/check`, values);
|
|
@@ -89,6 +94,7 @@ var checkPendingPayment = async (values) => {
|
|
|
89
94
|
// Annotate the CommonJS export names for ESM import in node:
|
|
90
95
|
0 && (module.exports = {
|
|
91
96
|
checkPendingPayment,
|
|
97
|
+
getOrderBasicDetail,
|
|
92
98
|
getPaymentInit,
|
|
93
99
|
getPaymentList,
|
|
94
100
|
getPaymentResult,
|
|
@@ -22,7 +22,7 @@ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
|
22
22
|
order_id: string;
|
|
23
23
|
payment_group_id: number;
|
|
24
24
|
payments: {
|
|
25
|
-
amount: string;
|
|
25
|
+
amount: string | number;
|
|
26
26
|
wallet_pass_use_value: any;
|
|
27
27
|
voucher_id: any;
|
|
28
28
|
tag: any;
|
|
@@ -48,7 +48,7 @@ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
|
48
48
|
*/
|
|
49
49
|
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
50
50
|
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
51
|
-
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
51
|
+
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number;
|
|
52
52
|
export declare const clientPayment: (params: {
|
|
53
53
|
order_id: number;
|
|
54
54
|
type: "aliPay" | "wxPay" | 'google_pay';
|
|
@@ -43,8 +43,9 @@ __export(utils_exports, {
|
|
|
43
43
|
module.exports = __toCommonJS(utils_exports);
|
|
44
44
|
var import_decimal = require("decimal.js");
|
|
45
45
|
var import_status = require("./status");
|
|
46
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
47
46
|
var import_utils = require("@pisell/utils");
|
|
47
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
48
|
+
var import_utils2 = require("@pisell/utils");
|
|
48
49
|
var calcWalletPassListAmount = (list) => {
|
|
49
50
|
return list.reduce((pre, cur) => pre.add(new import_decimal.Decimal(String(getAvailableMaxAmount(cur) || 0))), new import_decimal.Decimal("0")).toNumber();
|
|
50
51
|
};
|
|
@@ -97,6 +98,9 @@ var formatFranchiseeRoute = (url, history) => {
|
|
|
97
98
|
return url;
|
|
98
99
|
};
|
|
99
100
|
var getAvailableMaxAmount = (data) => {
|
|
101
|
+
if ((0, import_utils.isNumber)(data._available_max_amount)) {
|
|
102
|
+
return data._available_max_amount;
|
|
103
|
+
}
|
|
100
104
|
return data.tag !== "point_card" ? data.available_max_amount : data == null ? void 0 : data.recommended_usage_amount;
|
|
101
105
|
};
|
|
102
106
|
var clientPayment = (params) => {
|
|
@@ -113,7 +117,7 @@ var clientPayment = (params) => {
|
|
|
113
117
|
});
|
|
114
118
|
};
|
|
115
119
|
var getUniqueIdempotencyToken = () => {
|
|
116
|
-
return `${(0, import_dayjs.default)().format("YYYYMMDDHHmmssSSS")}-${(0,
|
|
120
|
+
return `${(0, import_dayjs.default)().format("YYYYMMDDHHmmssSSS")}-${(0, import_utils2.getUniqueId)()}`;
|
|
117
121
|
};
|
|
118
122
|
// Annotate the CommonJS export names for ESM import in node:
|
|
119
123
|
0 && (module.exports = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const getBookingStatusMap: () => Record<string, string>;
|
|
3
2
|
export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
|
|
4
3
|
export declare const getBookingPlatformMap: () => Record<string, string>;
|
|
@@ -20,7 +19,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
20
19
|
}[];
|
|
21
20
|
minInputNumberProps?: undefined;
|
|
22
21
|
maxInputNumberProps?: undefined;
|
|
23
|
-
|
|
22
|
+
component?: undefined;
|
|
24
23
|
isSearchServer?: undefined;
|
|
25
24
|
showSearch?: undefined;
|
|
26
25
|
showTime?: undefined;
|
|
@@ -46,7 +45,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
46
45
|
mode?: undefined;
|
|
47
46
|
maxTagCount?: undefined;
|
|
48
47
|
options?: undefined;
|
|
49
|
-
|
|
48
|
+
component?: undefined;
|
|
50
49
|
isSearchServer?: undefined;
|
|
51
50
|
showSearch?: undefined;
|
|
52
51
|
showTime?: undefined;
|
|
@@ -91,7 +90,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
91
90
|
options: () => Promise<any>;
|
|
92
91
|
minInputNumberProps?: undefined;
|
|
93
92
|
maxInputNumberProps?: undefined;
|
|
94
|
-
|
|
93
|
+
component?: undefined;
|
|
95
94
|
isSearchServer?: undefined;
|
|
96
95
|
showSearch?: undefined;
|
|
97
96
|
showTime?: undefined;
|
|
@@ -111,7 +110,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
111
110
|
options?: undefined;
|
|
112
111
|
minInputNumberProps?: undefined;
|
|
113
112
|
maxInputNumberProps?: undefined;
|
|
114
|
-
|
|
113
|
+
component?: undefined;
|
|
115
114
|
isSearchServer?: undefined;
|
|
116
115
|
showSearch?: undefined;
|
|
117
116
|
showTime?: undefined;
|
|
@@ -133,7 +132,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
133
132
|
maxTagCount?: undefined;
|
|
134
133
|
minInputNumberProps?: undefined;
|
|
135
134
|
maxInputNumberProps?: undefined;
|
|
136
|
-
|
|
135
|
+
component?: undefined;
|
|
137
136
|
showTime?: undefined;
|
|
138
137
|
};
|
|
139
138
|
sort?: undefined;
|
|
@@ -152,7 +151,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
152
151
|
options?: undefined;
|
|
153
152
|
minInputNumberProps?: undefined;
|
|
154
153
|
maxInputNumberProps?: undefined;
|
|
155
|
-
|
|
154
|
+
component?: undefined;
|
|
156
155
|
isSearchServer?: undefined;
|
|
157
156
|
showSearch?: undefined;
|
|
158
157
|
};
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -3,7 +3,7 @@ import { ItemLayout, ItemProps, PresetConfig, SelectorProps, SelectorVariant } f
|
|
|
3
3
|
import './selector.less';
|
|
4
4
|
export declare const SelectorContext: React.Context<{
|
|
5
5
|
disabled?: boolean | undefined;
|
|
6
|
-
mode?: "
|
|
6
|
+
mode?: "multiple" | "single" | undefined;
|
|
7
7
|
itemLayout?: ItemLayout | undefined;
|
|
8
8
|
valueType?: "object" | "primitive" | undefined;
|
|
9
9
|
variant?: SelectorVariant | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.113",
|
|
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/
|
|
80
|
-
"@pisell/materials": "6.3.
|
|
79
|
+
"@pisell/utils": "3.0.5",
|
|
80
|
+
"@pisell/materials": "6.3.29",
|
|
81
81
|
"@pisell/icon": "0.0.11",
|
|
82
|
-
"@pisell/
|
|
82
|
+
"@pisell/date-picker": "3.0.8"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|