@pisell/private-materials 6.4.46 → 6.4.47
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 +146 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +3 -3
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +0 -1
- package/es/components/booking/components/footer/index.js +22 -13
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/checkout/PaymentModal.js +60 -22
- package/es/components/checkout/components/AdditionalModule/index.less +1 -1
- package/es/components/checkout/components/AmountSummary/index.js +18 -14
- package/es/components/checkout/components/AmountSummary/index.less +13 -0
- package/es/components/checkout/components/CashPaymentModule/index.js +4 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +48 -44
- package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -6
- package/es/components/checkout/components/PaymentResultToast/index.js +38 -8
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.js +6 -5
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +9 -4
- package/es/components/checkout/locales.d.ts +3 -0
- package/es/components/checkout/locales.js +4 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/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/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/es/components/pay/toB/components/Card/index.d.ts +0 -1
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.js +3 -1
- package/es/components/ticketBooking/components/menuBar/index.less +7 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -15
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +55 -32
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +3 -3
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +0 -1
- package/lib/components/booking/components/footer/index.js +8 -1
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/checkout/PaymentModal.js +48 -18
- package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
- package/lib/components/checkout/components/AmountSummary/index.js +7 -11
- package/lib/components/checkout/components/AmountSummary/index.less +13 -0
- package/lib/components/checkout/components/CashPaymentModule/index.js +3 -1
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +47 -56
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -6
- package/lib/components/checkout/components/PaymentResultToast/index.js +26 -1
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.js +5 -4
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +9 -6
- package/lib/components/checkout/locales.d.ts +3 -0
- package/lib/components/checkout/locales.js +4 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/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/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
- package/lib/components/ticketBooking/components/menuBar/index.less +7 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +66 -38
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +51 -32
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +3 -3
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/package.json +12 -12
@@ -267,22 +267,23 @@ function AmountSummary(_ref2) {
|
|
267
267
|
|
268
268
|
// 计算键盘输入的最小值和最大值
|
269
269
|
var getKeyboardLimits = function getKeyboardLimits() {
|
270
|
-
|
270
|
+
// const walletTotal = getWalletTotalAmount();
|
271
271
|
// const orderDue = getBalanceDueAmount();
|
272
272
|
|
273
273
|
// 使用 Decimal.js 进行精确计算,避免浮点数精度问题
|
274
|
-
|
274
|
+
// const walletTotalDecimal = new Decimal(walletTotal);
|
275
275
|
var orderDueDecimal = new Decimal(Number(balanceDueAmount || 0));
|
276
276
|
var minDecimal = new Decimal(0.01);
|
277
277
|
|
278
278
|
// 计算 orderDue - walletTotal
|
279
|
-
|
279
|
+
// const diffDecimal = orderDueDecimal.minus(walletTotalDecimal);
|
280
280
|
|
281
281
|
// 取最大值:max(0.01, orderDue - walletTotal)
|
282
|
-
|
282
|
+
// const maxAmountDecimal = Decimal.max(minDecimal, diffDecimal);
|
283
|
+
|
283
284
|
return {
|
284
285
|
min: minDecimal.toNumber(),
|
285
|
-
max:
|
286
|
+
max: orderDueDecimal.toNumber()
|
286
287
|
};
|
287
288
|
};
|
288
289
|
|
@@ -310,12 +311,6 @@ function AmountSummary(_ref2) {
|
|
310
311
|
Toast.fail(getText('pisell2.amount-summary.amount-cannot-be-zero', 'The amount cannot be 0'));
|
311
312
|
return;
|
312
313
|
}
|
313
|
-
|
314
|
-
// 兜底策略:如果是空字符串、NaN或0,默认使用待支付金额
|
315
|
-
if (!inputStr || numericValue <= 0) {
|
316
|
-
numericValue = getOrderDueAmount();
|
317
|
-
}
|
318
|
-
|
319
314
|
// 确保输入值在允许范围内
|
320
315
|
var minDecimal = new Decimal(limits.min);
|
321
316
|
var maxDecimal = new Decimal(limits.max);
|
@@ -630,6 +625,10 @@ function AmountSummary(_ref2) {
|
|
630
625
|
return _depositPaidAmount < new Decimal(totalAmount).toNumber();
|
631
626
|
}
|
632
627
|
}, [paymentItems, paymentType, totalAmount]);
|
628
|
+
var showCancelSplitPayment = useMemo(function () {
|
629
|
+
// 如果 balanceDueAmount 和 balanceDueAmount 不一样,则展示取消拆分支付按钮
|
630
|
+
return balanceDueAmount !== customAmount;
|
631
|
+
}, [customAmount, balanceDueAmount]);
|
633
632
|
var handleChangeDepositAmount = function handleChangeDepositAmount(value) {
|
634
633
|
console.log('handleChangeDepositAmount', value);
|
635
634
|
checkoutModule === null || checkoutModule === void 0 || checkoutModule.setDepositAmountAsync(value);
|
@@ -684,7 +683,7 @@ function AmountSummary(_ref2) {
|
|
684
683
|
shouldShowConfirmMode() ? renderConfirmMode() : /*#__PURE__*/React.createElement("div", {
|
685
684
|
className: classNames('balance-due-info')
|
686
685
|
}, paymentType === 'deposit' ? /*#__PURE__*/React.createElement(PisellPriceKeyboardPopover, {
|
687
|
-
value:
|
686
|
+
value: balanceDueAmount || '0'
|
688
687
|
// onChange={handleKeyboardChange}
|
689
688
|
,
|
690
689
|
onConfirm: handleChangeDepositAmount,
|
@@ -744,7 +743,12 @@ function AmountSummary(_ref2) {
|
|
744
743
|
hideDecimalForWholeNumbers: false,
|
745
744
|
useThousandsSeparator: true,
|
746
745
|
showCurrencySymbol: true
|
747
|
-
})))), !shouldShowConfirmMode() && /*#__PURE__*/React.createElement(
|
746
|
+
})))), !shouldShowConfirmMode() && (showCancelSplitPayment ? /*#__PURE__*/React.createElement(Button, {
|
747
|
+
className: classNames('cancel-split-payment-button'),
|
748
|
+
onClick: function onClick() {
|
749
|
+
return onAmountChange === null || onAmountChange === void 0 ? void 0 : onAmountChange(balanceDueAmount);
|
750
|
+
}
|
751
|
+
}, getText('split.cancel') || '取消部\n分支付') : /*#__PURE__*/React.createElement(Popover, {
|
748
752
|
content: /*#__PURE__*/React.createElement("div", {
|
749
753
|
onClick: function onClick(e) {
|
750
754
|
return e.stopPropagation();
|
@@ -786,7 +790,7 @@ function AmountSummary(_ref2) {
|
|
786
790
|
destroyTooltipOnHide: true
|
787
791
|
}, /*#__PURE__*/React.createElement(Button, {
|
788
792
|
className: classNames('split-payment-button')
|
789
|
-
}, getText('split.payment') || '拆分支付'))
|
793
|
+
}, getText('split.payment') || '拆分支付')))
|
790
794
|
// <PisellPriceKeyboardPopover
|
791
795
|
// value={(() => {
|
792
796
|
// try {
|
@@ -476,6 +476,7 @@
|
|
476
476
|
}
|
477
477
|
|
478
478
|
.split-payment-button {
|
479
|
+
width: 80px;
|
479
480
|
padding: 0 8px;
|
480
481
|
background: #079455;
|
481
482
|
color: white;
|
@@ -485,4 +486,16 @@
|
|
485
486
|
white-space: pre-line; // 让换行符(\n)生效
|
486
487
|
text-align: left; // 确保文本居中对齐
|
487
488
|
min-width: 68px;
|
489
|
+
}
|
490
|
+
.cancel-split-payment-button {
|
491
|
+
width: 80px;
|
492
|
+
padding: 0 8px;
|
493
|
+
background: #DF5342;
|
494
|
+
color: white;
|
495
|
+
font-size: 14px;
|
496
|
+
border: 1px solid #C3B2E7;
|
497
|
+
height: 80px;
|
498
|
+
white-space: pre-line; // 让换行符(\n)生效
|
499
|
+
text-align: left; // 确保文本居中对齐
|
500
|
+
min-width: 68px;
|
488
501
|
}
|
@@ -81,9 +81,11 @@ export function CashPaymentModule(_ref) {
|
|
81
81
|
}
|
82
82
|
};
|
83
83
|
|
84
|
-
// 使用防抖,
|
84
|
+
// 使用防抖,500毫秒内不重复执行
|
85
85
|
var _useDebounceFn = useDebounceFn(handleCashPayInternal, {
|
86
|
-
wait: 500
|
86
|
+
wait: 500,
|
87
|
+
leading: true,
|
88
|
+
trailing: false
|
87
89
|
}),
|
88
90
|
handleCashPay = _useDebounceFn.run;
|
89
91
|
|
@@ -14,7 +14,7 @@ import React, { useState } from 'react';
|
|
14
14
|
import classnames from 'classnames';
|
15
15
|
import { formatAmount } from '@pisell/utils';
|
16
16
|
import { Iconfont } from '@pisell/materials';
|
17
|
-
import { Button
|
17
|
+
import { Button } from 'antd';
|
18
18
|
import { PaymentKeyboard } from "../../../../pro/priceKeyboard";
|
19
19
|
import "./index.less";
|
20
20
|
|
@@ -52,6 +52,7 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
52
52
|
|
53
53
|
// 处理右侧按钮点击事件
|
54
54
|
var handleRightButtonClick = function handleRightButtonClick(e) {
|
55
|
+
if (!isEftpos) return;
|
55
56
|
e.preventDefault();
|
56
57
|
// e.stopPropagation(); // 防止事件冒泡到外层按钮
|
57
58
|
if (disabled || !onClick) {
|
@@ -111,6 +112,10 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
111
112
|
|
112
113
|
// 判断是否为EFTPOS支付方式
|
113
114
|
var isEftpos = method.code === 'EFTPOS' || method.type === 'eftpos';
|
115
|
+
var showKeyboard = function showKeyboard() {
|
116
|
+
if (isEftpos) return;
|
117
|
+
setIsKeyboardVisible(true);
|
118
|
+
};
|
114
119
|
|
115
120
|
// 渲染左侧内容
|
116
121
|
var renderLeftContent = function renderLeftContent() {
|
@@ -128,7 +133,7 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
128
133
|
className: classnames('payment-options-module-payment-info-inner-surcharge')
|
129
134
|
}, !!(method !== null && method !== void 0 && method.is_surcharge) && calculateSurcharge(method) !== 0 && /*#__PURE__*/React.createElement("div", {
|
130
135
|
className: classnames('payment-options-module-surcharge-text')
|
131
|
-
}, (getText === null || getText === void 0 ? void 0 : getText('pisell2.payment-options.surcharge-label', 'Surcharge')) || 'Surcharge', ":", formatAmount(calculateSurcharge(method), 2, amountSymbol)),
|
136
|
+
}, (getText === null || getText === void 0 ? void 0 : getText('pisell2.payment-options.surcharge-label', 'Surcharge')) || 'Surcharge', ":", formatAmount(calculateSurcharge(method), 2, amountSymbol)), false && /*#__PURE__*/React.createElement("div", {
|
132
137
|
className: classnames('payment-options-module-surcharge-text'),
|
133
138
|
style: {
|
134
139
|
cursor: 'pointer'
|
@@ -146,49 +151,10 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
146
151
|
'payment-options-module-pointer': !disabled,
|
147
152
|
'payment-options-module-disabled': disabled
|
148
153
|
}),
|
154
|
+
onClick: showKeyboard,
|
149
155
|
type: "button",
|
150
156
|
disabled: disabled
|
151
|
-
},
|
152
|
-
content: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PaymentKeyboard, {
|
153
|
-
paymentOriginalValue: String(customAmount || 0),
|
154
|
-
paymentDefaultValue: String(customAmount || 0),
|
155
|
-
enableExceedMaxAmount: !isEftpos,
|
156
|
-
payment: {
|
157
|
-
enable: true
|
158
|
-
},
|
159
|
-
surcharge: {
|
160
|
-
enable: !!(method !== null && method !== void 0 && method.is_surcharge) && calculateSurcharge(method) !== 0
|
161
|
-
},
|
162
|
-
surchargeDefaultValue: {
|
163
|
-
percent: method.percentage ? String(Number(method.percentage) * 100) : '',
|
164
|
-
fixed: method.fixed ? String(method.fixed) : ''
|
165
|
-
},
|
166
|
-
selectType: "light",
|
167
|
-
onChange: function onChange(value) {
|
168
|
-
console.log(value);
|
169
|
-
},
|
170
|
-
onPay: function onPay(args) {
|
171
|
-
console.log(args);
|
172
|
-
// 处理支付逻辑
|
173
|
-
setIsKeyboardVisible(false);
|
174
|
-
if (onClick) {
|
175
|
-
var _args$surcharge, _args$surcharge2;
|
176
|
-
onClick(_objectSpread(_objectSpread({}, method), {}, {
|
177
|
-
fixed: Number(((_args$surcharge = args.surcharge) === null || _args$surcharge === void 0 ? void 0 : _args$surcharge.fixed) || 0),
|
178
|
-
percentage: (_args$surcharge2 = args.surcharge) !== null && _args$surcharge2 !== void 0 && _args$surcharge2.percent ? Number(args.surcharge.percent) / 100 : 0,
|
179
|
-
totalAmount: String(formatAmount(args.amount, 2))
|
180
|
-
}));
|
181
|
-
}
|
182
|
-
}
|
183
|
-
})),
|
184
|
-
trigger: "click",
|
185
|
-
open: isKeyboardVisible,
|
186
|
-
onOpenChange: setIsKeyboardVisible,
|
187
|
-
placement: "bottom",
|
188
|
-
overlayClassName: "payment-keyboard-popover",
|
189
|
-
arrow: true,
|
190
|
-
destroyTooltipOnHide: true
|
191
|
-
}, /*#__PURE__*/React.createElement("div", null, renderLeftContent())) : renderLeftContent(), /*#__PURE__*/React.createElement("div", {
|
157
|
+
}, renderLeftContent(), /*#__PURE__*/React.createElement("div", {
|
192
158
|
className: classnames('payment-options-module-payment-method-right'),
|
193
159
|
onClick: handleRightButtonClick
|
194
160
|
},
|
@@ -205,6 +171,44 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
205
171
|
fontSize: '30px',
|
206
172
|
color: disabled ? '#D0D5DD' : '#7F56DA'
|
207
173
|
}
|
208
|
-
}))))
|
174
|
+
})))), /*#__PURE__*/React.createElement(PaymentKeyboard, {
|
175
|
+
containerProps: {
|
176
|
+
renderType: 'modal',
|
177
|
+
open: isKeyboardVisible,
|
178
|
+
onCancel: function onCancel() {
|
179
|
+
return setIsKeyboardVisible(false);
|
180
|
+
}
|
181
|
+
},
|
182
|
+
paymentOriginalValue: String(customAmount || 0),
|
183
|
+
paymentDefaultValue: String(customAmount || 0),
|
184
|
+
enableExceedMaxAmount: !isEftpos,
|
185
|
+
payment: {
|
186
|
+
enable: true
|
187
|
+
},
|
188
|
+
surcharge: {
|
189
|
+
enable: !!(method !== null && method !== void 0 && method.is_surcharge) && calculateSurcharge(method) !== 0
|
190
|
+
},
|
191
|
+
surchargeDefaultValue: {
|
192
|
+
percent: method.percentage ? String(Number(method.percentage) * 100) : '',
|
193
|
+
fixed: method.fixed ? String(method.fixed) : ''
|
194
|
+
},
|
195
|
+
selectType: "dark",
|
196
|
+
onChange: function onChange(value) {
|
197
|
+
console.log(value);
|
198
|
+
},
|
199
|
+
onPay: function onPay(args) {
|
200
|
+
console.log(args);
|
201
|
+
// 处理支付逻辑
|
202
|
+
setIsKeyboardVisible(false);
|
203
|
+
if (onClick) {
|
204
|
+
var _args$surcharge, _args$surcharge2;
|
205
|
+
onClick(_objectSpread(_objectSpread({}, method), {}, {
|
206
|
+
fixed: Number(((_args$surcharge = args.surcharge) === null || _args$surcharge === void 0 ? void 0 : _args$surcharge.fixed) || 0),
|
207
|
+
percentage: (_args$surcharge2 = args.surcharge) !== null && _args$surcharge2 !== void 0 && _args$surcharge2.percent ? Number(args.surcharge.percent) / 100 : 0,
|
208
|
+
totalAmount: String(formatAmount(args.amount, 2))
|
209
|
+
}));
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}));
|
209
213
|
};
|
210
214
|
export default PaymentMethodItem;
|
@@ -61,7 +61,9 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
|
|
61
61
|
maskClosable = _props$maskClosable === void 0 ? false : _props$maskClosable,
|
62
62
|
_props$closable = props.closable,
|
63
63
|
closable = _props$closable === void 0 ? true : _props$closable,
|
64
|
-
zIndex = props.zIndex
|
64
|
+
zIndex = props.zIndex,
|
65
|
+
_props$clickOutsideTo = props.clickOutsideToClose,
|
66
|
+
clickOutsideToClose = _props$clickOutsideTo === void 0 ? true : _props$clickOutsideTo;
|
65
67
|
|
66
68
|
// 倒计时相关状态
|
67
69
|
var _useState = useState(false),
|
@@ -70,6 +72,11 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
|
|
70
72
|
setIsAnimating = _useState2[1];
|
71
73
|
var countdownTimeoutRef = useRef(null);
|
72
74
|
|
75
|
+
// 弹窗内容引用,用于 click outside 检测
|
76
|
+
var modalContentRef = useRef(null);
|
77
|
+
// Modal 根容器引用
|
78
|
+
var modalRef = useRef(null);
|
79
|
+
|
73
80
|
// 使用ref保存回调函数,避免依赖变化导致倒计时重置
|
74
81
|
var onCloseRef = useRef(onClose);
|
75
82
|
var onCountdownCompleteRef = useRef(onCountdownComplete);
|
@@ -130,18 +137,40 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
|
|
130
137
|
return clearCountdown;
|
131
138
|
}, [clearCountdown]);
|
132
139
|
|
140
|
+
// Click outside 检测
|
141
|
+
useEffect(function () {
|
142
|
+
if (!clickOutsideToClose || !visible) {
|
143
|
+
return;
|
144
|
+
}
|
145
|
+
var handleClickOutside = function handleClickOutside(event) {
|
146
|
+
var target = event.target;
|
147
|
+
var modalContent = modalContentRef.current;
|
148
|
+
if (!modalContent) {
|
149
|
+
return;
|
150
|
+
}
|
151
|
+
|
152
|
+
// 检查点击的目标元素是否在弹窗内容之外
|
153
|
+
if (!modalContent.contains(target)) {
|
154
|
+
var _onCloseRef$current2;
|
155
|
+
// 点击在弹窗外部,关闭弹窗
|
156
|
+
clearCountdown(); // 取消倒计时
|
157
|
+
(_onCloseRef$current2 = onCloseRef.current) === null || _onCloseRef$current2 === void 0 || _onCloseRef$current2.call(onCloseRef);
|
158
|
+
}
|
159
|
+
};
|
160
|
+
document.addEventListener('mousedown', handleClickOutside);
|
161
|
+
// 清理函数
|
162
|
+
return function () {
|
163
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
164
|
+
};
|
165
|
+
}, [clickOutsideToClose, visible, clearCountdown]);
|
166
|
+
|
133
167
|
// 处理关闭操作(关闭按钮点击时也取消倒计时)
|
134
168
|
var handleClose = useCallback(function () {
|
135
|
-
var _onCloseRef$
|
169
|
+
var _onCloseRef$current3;
|
136
170
|
clearCountdown(); // 取消倒计时
|
137
|
-
(_onCloseRef$
|
171
|
+
(_onCloseRef$current3 = onCloseRef.current) === null || _onCloseRef$current3 === void 0 || _onCloseRef$current3.call(onCloseRef);
|
138
172
|
}, [clearCountdown]);
|
139
173
|
|
140
|
-
// 注释掉点击处理,现在完全由CSS的pointer-events控制穿透
|
141
|
-
// const handleContentClick: React.MouseEventHandler<HTMLDivElement> = useCallback((e) => {
|
142
|
-
// // 由CSS的pointer-events控制点击穿透,不需要JavaScript处理
|
143
|
-
// }, []);
|
144
|
-
|
145
174
|
// 渲染标题(合并原副标题内容)
|
146
175
|
var renderTitle = function renderTitle() {
|
147
176
|
if (!subtitle) {
|
@@ -275,6 +304,7 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
|
|
275
304
|
,
|
276
305
|
getContainer: false
|
277
306
|
}, /*#__PURE__*/React.createElement("div", {
|
307
|
+
ref: modalContentRef,
|
278
308
|
className: getClassName('content', statusClassName),
|
279
309
|
style: {
|
280
310
|
position: 'relative',
|
@@ -63,7 +63,7 @@ export var formatDiscountWalletData = function formatDiscountWalletData(data) {
|
|
63
63
|
var _item$product2;
|
64
64
|
var name = "";
|
65
65
|
var storeName = "";
|
66
|
-
if (item.tag === 'product_discount_card') {
|
66
|
+
if (item.tag === 'product_discount_card' || item.tag === 'discount_card') {
|
67
67
|
var _item$metadata;
|
68
68
|
if ((item === null || item === void 0 || (_item$metadata = item.metadata) === null || _item$metadata === void 0 ? void 0 : _item$metadata.discount_card_type) === "fixed_amount") {
|
69
69
|
var amountValue = item !== null && item !== void 0 && item.savedAmount ? item === null || item === void 0 ? void 0 : item.savedAmount : item.par_value;
|
@@ -72,9 +72,9 @@ export var formatDiscountWalletData = function formatDiscountWalletData(data) {
|
|
72
72
|
showCurrencySymbol: true
|
73
73
|
}));
|
74
74
|
} else {
|
75
|
-
name = locales.getText('pisell2.checkout.discount.percentage.off')(item.par_value);
|
75
|
+
name = locales.getText('pisell2.checkout.discount.percentage.off')(item.par_value || item.discount.percent);
|
76
76
|
}
|
77
|
-
storeName = item.product_name;
|
77
|
+
storeName = item.product_name || item.format_title.auto;
|
78
78
|
} else if (item.tag === 'good_pass') {
|
79
79
|
var _locales$getText;
|
80
80
|
name = item.product_name;
|
@@ -86,9 +86,10 @@ export var formatDiscountWalletData = function formatDiscountWalletData(data) {
|
|
86
86
|
name = item.product_name;
|
87
87
|
}
|
88
88
|
|
89
|
-
// 如果处理完最后还没有 name,并且是 isEditMode,则 name 为 item.
|
89
|
+
// 如果处理完最后还没有 name,并且是 isEditMode,则 name 为 item.amount
|
90
90
|
if (!name && item.isEditMode) {
|
91
|
-
name = item.
|
91
|
+
name = item.amount;
|
92
|
+
storeName = item.format_title.auto;
|
92
93
|
}
|
93
94
|
return _objectSpread(_objectSpread({}, item), {}, {
|
94
95
|
id: item.id,
|
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
|
|
17
17
|
cardData: any;
|
18
18
|
handleSelectWallet: (value: number[]) => void;
|
19
19
|
selectedWalletIds: any[];
|
20
|
-
expiredWalletIds: any;
|
20
|
+
expiredWalletIds: any[];
|
21
21
|
expiredWalletData: any;
|
22
22
|
disabledWalletData: any[];
|
23
23
|
clearAllSelectedWallet: () => void;
|
@@ -708,11 +708,16 @@ export var useWalletPass = function useWalletPass(props) {
|
|
708
708
|
}))) {
|
709
709
|
Toast === null || Toast === void 0 || Toast.info(locales.getText('wallet-pass-module-already-best-combination'));
|
710
710
|
} else {
|
711
|
-
|
712
|
-
|
711
|
+
var _select2 = searchIdentificationCodeList.filter(function (item) {
|
712
|
+
return item.unified_available_status;
|
713
|
+
});
|
714
|
+
setWalletSelect(_select2);
|
715
|
+
handleFetchUserIdentificationCodes(_select2.map(function (item) {
|
713
716
|
return item.id;
|
714
|
-
}),
|
715
|
-
|
717
|
+
}), _select2);
|
718
|
+
if (_select2.length) {
|
719
|
+
Toast === null || Toast === void 0 || Toast.success(locales.getText('wallet-pass-module-best-combination-selected'));
|
720
|
+
}
|
716
721
|
}
|
717
722
|
}
|
718
723
|
return;
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
25
25
|
'partial.paid': string;
|
26
26
|
'deposit.partial.paid': string;
|
27
27
|
'split.payment': string;
|
28
|
+
'split.cancel': string;
|
28
29
|
cash: string;
|
29
30
|
rounding: string;
|
30
31
|
'cash.payment': string;
|
@@ -191,6 +192,7 @@ declare const _default: {
|
|
191
192
|
'partial.paid': string;
|
192
193
|
'deposit.partial.paid': string;
|
193
194
|
'split.payment': string;
|
195
|
+
'split.cancel': string;
|
194
196
|
cash: string;
|
195
197
|
rounding: string;
|
196
198
|
'cash.payment': string;
|
@@ -357,6 +359,7 @@ declare const _default: {
|
|
357
359
|
'partial.paid': string;
|
358
360
|
'deposit.partial.paid': string;
|
359
361
|
'split.payment': string;
|
362
|
+
'split.cancel': string;
|
360
363
|
cash: string;
|
361
364
|
rounding: string;
|
362
365
|
'cash.payment': string;
|
@@ -29,6 +29,7 @@ export default {
|
|
29
29
|
'partial.paid': 'Partial Paid',
|
30
30
|
'deposit.partial.paid': 'Deposit Paid',
|
31
31
|
'split.payment': 'Pay\nPartially',
|
32
|
+
'split.cancel': 'Cancel\nPartial',
|
32
33
|
// Cash Payment
|
33
34
|
'cash': 'Cash',
|
34
35
|
'rounding': 'Rounding',
|
@@ -82,7 +83,7 @@ export default {
|
|
82
83
|
return "".concat(count, " Expired");
|
83
84
|
},
|
84
85
|
'wallet-pass-module-best-saving': 'Select Best',
|
85
|
-
'wallet-pass-module-clear-all': 'Clear
|
86
|
+
'wallet-pass-module-clear-all': 'Clear Selection',
|
86
87
|
'wallet-pass-module-expired-modal-title': function walletPassModuleExpiredModalTitle(count) {
|
87
88
|
return "".concat(count, " Expired Vouchers");
|
88
89
|
},
|
@@ -242,6 +243,7 @@ export default {
|
|
242
243
|
'partial.paid': '部分支付',
|
243
244
|
'deposit.partial.paid': '定金部分支付',
|
244
245
|
'split.payment': '部分付款',
|
246
|
+
'split.cancel': '取消\n部分支付',
|
245
247
|
// Cash Payment
|
246
248
|
'cash': '现金',
|
247
249
|
'rounding': '舍入',
|
@@ -458,6 +460,7 @@ export default {
|
|
458
460
|
'partial.paid': '部分支付',
|
459
461
|
'deposit.partial.paid': '定金部分支付',
|
460
462
|
'split.payment': '部分付款',
|
463
|
+
'split.cancel': '取消\n部分支付',
|
461
464
|
// Cash Payment
|
462
465
|
'cash': '現金',
|
463
466
|
'rounding': '捨入',
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
9
9
|
*/
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
11
11
|
className?: string | undefined;
|
12
|
-
onChange?: ((status: "
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
13
13
|
[keys: string]: unknown;
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
15
15
|
onClose: () => void;
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
12
12
|
api: PayProps['api'];
|
13
13
|
className?: string | undefined;
|
14
|
-
onChange?: ((status: "
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
15
15
|
[keys: string]: unknown;
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
17
17
|
onClose: () => void;
|
@@ -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<"loading" | "
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "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: "loading" | "
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
295
|
name?: string | undefined;
|
296
296
|
symbol?: string | undefined;
|
297
297
|
amount?: string | number | undefined;
|
298
|
-
mode?: "
|
298
|
+
mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
300
|
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
301
|
-
action?: "
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "loading" | "
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|