@pisell/private-materials 6.8.28 → 6.8.30
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.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- 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.d.ts +37 -0
- package/es/components/booking/components/footer/index.js +43 -44
- package/es/components/booking/components/footer/utils.js +2 -2
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
- 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/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +219 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +4 -4
- package/es/components/booking/info2/service/editService/index.js +3 -3
- package/es/components/booking/info2/service/editService/utils.js +6 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/es/components/booking/locales.d.ts +951 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/utils/confirmHolderModal.js +3 -4
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/booking/utils.js +7 -1
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/es/components/eftposPay/const.d.ts +190 -0
- package/es/components/eftposPay/device.d.ts +25 -0
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/hooks.d.ts +15 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/store/utils.d.ts +13 -0
- package/es/components/pay/toB/types/index.d.ts +72 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +32 -0
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- 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/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/es/components/ticketBooking/utils/index.d.ts +101 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/locales.d.ts +105 -0
- package/es/plus/clinetSearch/types.d.ts +61 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/skuDetailModal/index.js +17 -2
- package/es/pro/skuDetailModal/index.less +1 -1
- package/es/test/setup.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- 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.d.ts +37 -0
- package/lib/components/booking/components/footer/index.js +9 -12
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
- 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/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +219 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +4 -4
- package/lib/components/booking/info2/service/editService/index.js +4 -4
- package/lib/components/booking/info2/service/editService/utils.js +4 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/lib/components/booking/locales.d.ts +951 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/utils/confirmHolderModal.js +0 -1
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/booking/utils.js +5 -1
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/lib/components/eftposPay/const.d.ts +190 -0
- package/lib/components/eftposPay/device.d.ts +25 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/hooks.d.ts +15 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/store/utils.d.ts +13 -0
- package/lib/components/pay/toB/types/index.d.ts +72 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +32 -0
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- 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/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/lib/components/ticketBooking/utils/index.d.ts +101 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/locales.d.ts +105 -0
- package/lib/plus/clinetSearch/types.d.ts +61 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/skuDetailModal/index.js +13 -2
- package/lib/pro/skuDetailModal/index.less +1 -1
- package/lib/test/setup.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/checkout/plugin.d.ts +0 -2
- package/lib/components/checkout/plugin.d.ts +0 -2
|
@@ -150,20 +150,19 @@ export var ConfirmHolderModal = function ConfirmHolderModal() {
|
|
|
150
150
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
151
151
|
while (1) switch (_context.prev = _context.next) {
|
|
152
152
|
case 0:
|
|
153
|
-
debugger;
|
|
154
153
|
// 调用 selectHolderModal 选择 holder
|
|
155
154
|
holderConfig = (state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.holder) || {};
|
|
156
155
|
currentMaxSelectedCount = (holderConfig === null || holderConfig === void 0 ? void 0 : holderConfig.maxSelectedCount) || (currentItem === null || currentItem === void 0 || (_currentItem$cacheIte = currentItem.cacheItem) === null || _currentItem$cacheIte === void 0 || (_currentItem$cacheIte = _currentItem$cacheIte._extend) === null || _currentItem$cacheIte === void 0 ? void 0 : _currentItem$cacheIte.quantity) || 1; // 获取当前商品的 holder_id 作为初始值
|
|
157
156
|
currentHolderId = currentItem === null || currentItem === void 0 || (_currentItem$_extend = currentItem._extend) === null || _currentItem$_extend === void 0 ? void 0 : _currentItem$_extend.holder_id;
|
|
158
157
|
initialValue = currentHolderId ? Array.isArray(currentHolderId) ? currentHolderId : [currentHolderId] : undefined;
|
|
159
|
-
_context.next =
|
|
158
|
+
_context.next = 6;
|
|
160
159
|
return selectHolderModal({
|
|
161
160
|
state: state,
|
|
162
161
|
dispatch: dispatch,
|
|
163
162
|
initialValue: initialValue,
|
|
164
163
|
maxSelectedCount: currentMaxSelectedCount
|
|
165
164
|
});
|
|
166
|
-
case
|
|
165
|
+
case 6:
|
|
167
166
|
result = _context.sent;
|
|
168
167
|
if (result && result.length > 0) {
|
|
169
168
|
console.log(currentItem, result);
|
|
@@ -242,7 +241,7 @@ export var ConfirmHolderModal = function ConfirmHolderModal() {
|
|
|
242
241
|
}
|
|
243
242
|
});
|
|
244
243
|
}
|
|
245
|
-
case
|
|
244
|
+
case 8:
|
|
246
245
|
case "end":
|
|
247
246
|
return _context.stop();
|
|
248
247
|
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 高阶函数结果缓存(Memoization)
|
|
4
|
+
*/
|
|
5
|
+
export declare function memoize<T extends (...args: any[]) => any>(fn: T): T;
|
|
6
|
+
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
7
|
+
declare class Request {
|
|
8
|
+
private request;
|
|
9
|
+
constructor();
|
|
10
|
+
setRequest(val: any): void;
|
|
11
|
+
getRequest(): {
|
|
12
|
+
get: RType;
|
|
13
|
+
post: RType;
|
|
14
|
+
put: RType;
|
|
15
|
+
remove: RType;
|
|
16
|
+
custom: RType;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const request: Request;
|
|
20
|
+
/**
|
|
21
|
+
* @title: 格式化持续时长用于展示
|
|
22
|
+
* @description:
|
|
23
|
+
* @param {number} service_times
|
|
24
|
+
* @return {*}
|
|
25
|
+
* @Author: zhiwei.Wang
|
|
26
|
+
* @Date: 2024-04-26 14:00
|
|
27
|
+
*/
|
|
28
|
+
export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
|
|
29
|
+
/**
|
|
30
|
+
* @title: 格式化跨日预约的时长用于展示
|
|
31
|
+
* @description:
|
|
32
|
+
* @param {number} days
|
|
33
|
+
* @param {number} minutes
|
|
34
|
+
* @return {*}
|
|
35
|
+
*/
|
|
36
|
+
export declare const getDiscountTimeByDayMinutes: (days: number, minutes: number) => string;
|
|
37
|
+
/**
|
|
38
|
+
* @title: 时间切片(带缓存版本)
|
|
39
|
+
* @description: 使用 memoize 高阶函数包裹 sliceDayIntoFiveMinutes,相同参数时直接返回缓存结果
|
|
40
|
+
*/
|
|
41
|
+
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
|
|
42
|
+
timeSlices: {
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
46
|
+
durationSlicesBasedOnTime: {
|
|
47
|
+
label: string;
|
|
48
|
+
value: number;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
export declare const getNowTime: () => string;
|
|
52
|
+
export declare const isNowTime: (time: string) => boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
|
55
|
+
* @description:
|
|
56
|
+
* @param {string} start_time
|
|
57
|
+
* @return {*}
|
|
58
|
+
* @Author: zhiwei.Wang
|
|
59
|
+
* @Date: 2024-04-26 14:03
|
|
60
|
+
*/
|
|
61
|
+
export declare const getServeStartTime: (start_time: string) => string;
|
|
62
|
+
/**
|
|
63
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
64
|
+
* @description:
|
|
65
|
+
* @param {any} item
|
|
66
|
+
* @param {any} currentDate
|
|
67
|
+
* @return {*}
|
|
68
|
+
* @Author: zhiwei.Wang
|
|
69
|
+
* @Date: 2024-04-26 14:04
|
|
70
|
+
*/
|
|
71
|
+
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
72
|
+
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
73
|
+
timeSlices: any[];
|
|
74
|
+
index?: number | undefined;
|
|
75
|
+
date?: string | undefined;
|
|
76
|
+
}) => any;
|
|
77
|
+
export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
|
|
78
|
+
export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
|
|
79
|
+
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
|
|
80
|
+
/**
|
|
81
|
+
* @title: 查找是否有可用的time
|
|
82
|
+
* @description:
|
|
83
|
+
* @param {any} resourceItem
|
|
84
|
+
* @return {*}
|
|
85
|
+
* @Author: zhiwei.Wang
|
|
86
|
+
* @Date: 2024-01-09 13:57
|
|
87
|
+
*/
|
|
88
|
+
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
89
|
+
/**
|
|
90
|
+
* @title: 获取店铺的营业结束时间
|
|
91
|
+
* @description:
|
|
92
|
+
* @return {*}
|
|
93
|
+
* @Author: zhiwei.Wang
|
|
94
|
+
* @Date: 2024-02-23 10:00
|
|
95
|
+
*/
|
|
96
|
+
export declare const getShopOpeningHours: () => string;
|
|
97
|
+
/**
|
|
98
|
+
* @title: 对灵活时长进行处理
|
|
99
|
+
* @description:
|
|
100
|
+
* @return {*}
|
|
101
|
+
* @Author: zhiwei.Wang
|
|
102
|
+
* @Date: 2024-02-23 10:00
|
|
103
|
+
*/
|
|
104
|
+
export declare const flexibleObj: {
|
|
105
|
+
create: (num: number) => any;
|
|
106
|
+
getValue: (str: string | number) => number;
|
|
107
|
+
isFlexible: (str: string | number) => boolean;
|
|
108
|
+
add: (current: number | string, duration: number) => any;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* @title: 获取结束时间
|
|
112
|
+
* @description: 取 endDate | 店铺营业时间 最小的那一个
|
|
113
|
+
* @param {any} startDate
|
|
114
|
+
* @param {string} duration
|
|
115
|
+
* @param {any} endDate
|
|
116
|
+
* @return {*}
|
|
117
|
+
* @Author: zhiwei.Wang
|
|
118
|
+
* @Date: 2024-02-23 10:01
|
|
119
|
+
*/
|
|
120
|
+
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
|
121
|
+
export declare const getServiceTimes: (service: any) => {
|
|
122
|
+
startDate: dayjs.Dayjs;
|
|
123
|
+
endDate: any;
|
|
124
|
+
};
|
|
125
|
+
export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
|
|
126
|
+
label: any;
|
|
127
|
+
type: string;
|
|
128
|
+
}[];
|
|
129
|
+
/**
|
|
130
|
+
* @title: 格式化资源, 添加自定义参数
|
|
131
|
+
* @description:
|
|
132
|
+
* @param {any} resourceItem
|
|
133
|
+
* @return {*}
|
|
134
|
+
* @Author: zhiwei.Wang
|
|
135
|
+
* @Date: 2024-01-09 13:40
|
|
136
|
+
*/
|
|
137
|
+
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
138
|
+
export declare const getLastServer: (list: any) => any;
|
|
139
|
+
export declare const getCacheParams: () => any;
|
|
140
|
+
export declare const deleteCacheParams: () => void;
|
|
141
|
+
/**
|
|
142
|
+
* @title: 获取跨日预约的时长
|
|
143
|
+
* @description:
|
|
144
|
+
* @param {any} cacheItem
|
|
145
|
+
* @return {*}
|
|
146
|
+
* @Author: WangHan
|
|
147
|
+
* @Date: 2024-12-01 22:43
|
|
148
|
+
*/
|
|
149
|
+
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
150
|
+
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
151
|
+
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
152
|
+
export declare const getIsOnlySession: (item: any) => boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @title: 创建一个服务商品
|
|
155
|
+
* @description:
|
|
156
|
+
* @param {any} state
|
|
157
|
+
* @param {any} item
|
|
158
|
+
* @return {*}
|
|
159
|
+
* @Author: zhiwei.Wang
|
|
160
|
+
* @Date: 2024-01-26 14:09
|
|
161
|
+
*/
|
|
162
|
+
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
|
163
|
+
export declare const getMainPrice: (item: any, price?: number) => number;
|
|
164
|
+
export declare const getProductTotalPrice: (item: any) => number;
|
|
165
|
+
/**
|
|
166
|
+
* @title: 判断 duration
|
|
167
|
+
* @description: 用于处理不同格式的duration
|
|
168
|
+
* @param {number} duration
|
|
169
|
+
* @return {*}
|
|
170
|
+
* @Author: zhiwei.Wang
|
|
171
|
+
* @Date: 2024-02-23 10:02
|
|
172
|
+
*/
|
|
173
|
+
export declare const getDuration: (duration: number | {
|
|
174
|
+
type: string;
|
|
175
|
+
value: number;
|
|
176
|
+
}) => number | {
|
|
177
|
+
type: string;
|
|
178
|
+
value: number;
|
|
179
|
+
} | "flexible";
|
|
180
|
+
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
181
|
+
export declare const getIsEdit: (state: any) => boolean;
|
|
182
|
+
export {};
|
|
@@ -827,9 +827,15 @@ export var getMainPrice = function getMainPrice(item, price) {
|
|
|
827
827
|
|
|
828
828
|
// 商品价格: (商品价格 + (套餐价格 + 单规格价格 * 单规格数量) * 套餐数量 + 单规格价格 * 单规格数量) * 商品数量
|
|
829
829
|
export var getProductTotalPrice = function getProductTotalPrice(item) {
|
|
830
|
-
var _item$_extend2;
|
|
830
|
+
var _item$_extend2, _item$_extend3;
|
|
831
831
|
var price = new Decimal(item._extend.price || 0);
|
|
832
832
|
var other = (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other;
|
|
833
|
+
// 如果有 priceOverride,则强制使用 priceOverride,不受规则约束
|
|
834
|
+
if ((_item$_extend3 = item._extend) !== null && _item$_extend3 !== void 0 && _item$_extend3.priceOverride) {
|
|
835
|
+
var _item$_extend4;
|
|
836
|
+
price = new Decimal(((_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.priceOverride) || 0);
|
|
837
|
+
return price.toNumber();
|
|
838
|
+
}
|
|
833
839
|
|
|
834
840
|
// 多规格
|
|
835
841
|
if (other !== null && other !== void 0 && other.product_variant_id) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface SummaryItem {
|
|
4
|
+
key: string;
|
|
5
|
+
value: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
tax?: any;
|
|
9
|
+
}
|
|
10
|
+
declare type SubTotalKey = 'deposit' | 'total' | 'sub_total' | 'tax' | 'delivery_fee' | 'discount' | 'point_deduction' | 'member_deduction' | 'expect_amount';
|
|
11
|
+
interface PaymentItem {
|
|
12
|
+
uuid: string;
|
|
13
|
+
amount: number;
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
status: string;
|
|
17
|
+
voucher_id?: string;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
interface PaymentDetailModalProps {
|
|
21
|
+
amountSymbol?: string;
|
|
22
|
+
orderInfo?: any;
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
summaryData?: SummaryItem[];
|
|
25
|
+
labelMaps?: Record<SubTotalKey, string>;
|
|
26
|
+
paymentItems?: PaymentItem[];
|
|
27
|
+
customAmount?: string;
|
|
28
|
+
voidPayment?: (paymentItem: PaymentItem) => void;
|
|
29
|
+
cartData?: any;
|
|
30
|
+
walletPassData?: {
|
|
31
|
+
selectedWallet?: any[];
|
|
32
|
+
availableDiscountList?: any[];
|
|
33
|
+
selectedDiscountList?: number[];
|
|
34
|
+
};
|
|
35
|
+
clientInfo?: any;
|
|
36
|
+
}
|
|
37
|
+
declare function PaymentDetailModal({ amountSymbol, orderInfo, cartData, onClose, summaryData, labelMaps, paymentItems, customAmount, voidPayment, walletPassData, clientInfo, }: PaymentDetailModalProps): JSX.Element;
|
|
38
|
+
export default PaymentDetailModal;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { CurrentOrderInfo } from '../../types';
|
|
2
|
+
export interface PisellWalletPassCardProps {
|
|
3
|
+
id: number;
|
|
4
|
+
/** 卡片样式 */
|
|
5
|
+
type: 'default' | 'mini';
|
|
6
|
+
/** 商品名称 */
|
|
7
|
+
name: string;
|
|
8
|
+
/** 二维码 */
|
|
9
|
+
qrCode: string;
|
|
10
|
+
/** 共享店铺名称 */
|
|
11
|
+
storeName: string;
|
|
12
|
+
/** 余额 */
|
|
13
|
+
balance?: number;
|
|
14
|
+
/** 识别码编号 */
|
|
15
|
+
code: string;
|
|
16
|
+
/** 有效期 */
|
|
17
|
+
validDate: string;
|
|
18
|
+
/** 使用金额 */
|
|
19
|
+
redeem?: number;
|
|
20
|
+
/** 是否禁用 */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** 禁用原因 */
|
|
23
|
+
disabledReason?: string;
|
|
24
|
+
/** 是否展示禁用原因 */
|
|
25
|
+
showDisabledReason?: boolean;
|
|
26
|
+
/** 封面图 */
|
|
27
|
+
cover?: string;
|
|
28
|
+
/** 余额标题文案 */
|
|
29
|
+
balanceTitle?: string;
|
|
30
|
+
/** 使用金额标题文案 */
|
|
31
|
+
redeemTitle?: string;
|
|
32
|
+
/** 是否选中 */
|
|
33
|
+
active?: boolean;
|
|
34
|
+
/** 是否展示商品名称 */
|
|
35
|
+
showName?: boolean;
|
|
36
|
+
/** 是否展示共享店铺名称 */
|
|
37
|
+
showStoreName?: boolean;
|
|
38
|
+
/** 是否展示使用金额 */
|
|
39
|
+
showRedeem?: boolean;
|
|
40
|
+
/** 是否展示余额 */
|
|
41
|
+
showBalance?: boolean;
|
|
42
|
+
/** 是否展示识别码编号 */
|
|
43
|
+
showCode?: boolean;
|
|
44
|
+
/** 是否展示有效期 */
|
|
45
|
+
showValidDate?: boolean;
|
|
46
|
+
/** 是否展示右上角详情按钮 */
|
|
47
|
+
showDetail?: boolean;
|
|
48
|
+
/** 是否展示qrCode */
|
|
49
|
+
showQrCode?: boolean;
|
|
50
|
+
/** 是否展示封面 */
|
|
51
|
+
showCover?: boolean;
|
|
52
|
+
/** 是否展示余额货币符号 */
|
|
53
|
+
showBalanceSymbol?: boolean;
|
|
54
|
+
/** 展示操作按钮 */
|
|
55
|
+
showActions?: boolean;
|
|
56
|
+
/** 操作按钮配置 */
|
|
57
|
+
actions?: {
|
|
58
|
+
/** 按钮展示方式 */
|
|
59
|
+
layout: 'expanded' | 'collapsed';
|
|
60
|
+
/** detail 按钮配置 */
|
|
61
|
+
detail?: {
|
|
62
|
+
visible: boolean;
|
|
63
|
+
iconColor: string;
|
|
64
|
+
};
|
|
65
|
+
/** edit按钮配置 */
|
|
66
|
+
edit?: {
|
|
67
|
+
visible: boolean;
|
|
68
|
+
iconColor: string;
|
|
69
|
+
dialogTitle: string;
|
|
70
|
+
enableDialog: boolean;
|
|
71
|
+
fields: {
|
|
72
|
+
name: string;
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
78
|
+
beforeEdit?: (value: any) => Promise<any> | boolean | void;
|
|
79
|
+
/** 编辑弹窗点击提交 */
|
|
80
|
+
onConfirmEdit?: (value: any) => void;
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}
|
|
83
|
+
export interface WalletPassModuleProps {
|
|
84
|
+
orderInfo?: CurrentOrderInfo;
|
|
85
|
+
onSelectChange?: (select: {
|
|
86
|
+
voucher_id: number;
|
|
87
|
+
amount: number;
|
|
88
|
+
}[]) => void;
|
|
89
|
+
paymentItems?: PaymentItem[];
|
|
90
|
+
customAmount?: string;
|
|
91
|
+
clientId?: number;
|
|
92
|
+
}
|
|
93
|
+
export interface WalletPassHeaderProps {
|
|
94
|
+
customerName: string;
|
|
95
|
+
selectedCount: number;
|
|
96
|
+
expiredCount: number;
|
|
97
|
+
isCardMode: boolean;
|
|
98
|
+
onExpiredClick: () => void;
|
|
99
|
+
onBestSaving: () => void;
|
|
100
|
+
onClearAll: () => void;
|
|
101
|
+
onToggleDisplayMode: () => void;
|
|
102
|
+
}
|
|
103
|
+
export interface WalletPassCardDisplayProps {
|
|
104
|
+
isCardMode: boolean;
|
|
105
|
+
cardData: PisellWalletPassCardProps[];
|
|
106
|
+
selectedWalletIds: number[];
|
|
107
|
+
onSelectWallet: (selectedIds: number[]) => void;
|
|
108
|
+
onDetail: (record: any, index: number) => void;
|
|
109
|
+
onConfirmEditAmount: (value: number, index: number, data: any) => void;
|
|
110
|
+
onBeforeEditAmount: (value: any, index: number, data: any) => Promise<any> | boolean | void;
|
|
111
|
+
}
|
|
112
|
+
export interface WalletPassTextModeProps {
|
|
113
|
+
cardData: any[];
|
|
114
|
+
selectedWalletIds: number[];
|
|
115
|
+
}
|
|
116
|
+
export interface WalletModalProps {
|
|
117
|
+
visible: boolean;
|
|
118
|
+
walletData: any[];
|
|
119
|
+
onClose: () => void;
|
|
120
|
+
title?: string;
|
|
121
|
+
emptyText?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface WalletPassModuleRef {
|
|
124
|
+
handleSearchIdentificationCode: (value: string) => void;
|
|
125
|
+
getWalletPassData: (select: {
|
|
126
|
+
voucher_id: number;
|
|
127
|
+
amount: number;
|
|
128
|
+
code?: string;
|
|
129
|
+
}[]) => {
|
|
130
|
+
selectedWallet?: any[];
|
|
131
|
+
availableDiscountList?: any[];
|
|
132
|
+
selectedDiscountList?: number[];
|
|
133
|
+
};
|
|
134
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CurrentOrderInfo {
|
|
3
|
+
/** 订单UUID */
|
|
4
|
+
uuid?: string;
|
|
5
|
+
/** 订单ID */
|
|
6
|
+
orderId?: string;
|
|
7
|
+
/** 订单状态 */
|
|
8
|
+
status?: string;
|
|
9
|
+
/** 当前步骤 */
|
|
10
|
+
step?: string;
|
|
11
|
+
/** 订单总金额 */
|
|
12
|
+
totalAmount?: string;
|
|
13
|
+
/** 待付金额 */
|
|
14
|
+
remainingAmount?: string;
|
|
15
|
+
/** 支付状态 */
|
|
16
|
+
paymentStatus?: string;
|
|
17
|
+
/** 是否为定金订单 */
|
|
18
|
+
isDeposit?: boolean;
|
|
19
|
+
/** 定金金额 */
|
|
20
|
+
depositAmount?: string;
|
|
21
|
+
/** 订单类型 */
|
|
22
|
+
orderType?: 'virtual' | 'appointment_booking';
|
|
23
|
+
/** 平台类型 */
|
|
24
|
+
platform?: 'pc' | 'h5';
|
|
25
|
+
/** 创建时间 */
|
|
26
|
+
createdAt?: string;
|
|
27
|
+
/** 商品数量 */
|
|
28
|
+
itemCount?: number;
|
|
29
|
+
/** 是否有本地订单数据 */
|
|
30
|
+
hasLocalOrderData?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface PaymentData {
|
|
33
|
+
orderId?: string | number;
|
|
34
|
+
totalAmount?: number;
|
|
35
|
+
currency?: string;
|
|
36
|
+
customerId?: string | number;
|
|
37
|
+
customerName?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
items?: PaymentItem[];
|
|
40
|
+
}
|
|
41
|
+
export interface PaymentItem {
|
|
42
|
+
id: string | number;
|
|
43
|
+
name: string;
|
|
44
|
+
quantity: number;
|
|
45
|
+
price: number;
|
|
46
|
+
total: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ModuleConfig {
|
|
49
|
+
showWalletPass?: boolean;
|
|
50
|
+
showCashPayment?: boolean;
|
|
51
|
+
showAdditionalModule?: boolean;
|
|
52
|
+
showPaymentOptions?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface StatusConfig {
|
|
55
|
+
leftStatus?: string;
|
|
56
|
+
rightStatus?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface PaymentResult {
|
|
59
|
+
type: 'cash' | 'walletpass' | 'etfpos' | 'custom' | 'mx51';
|
|
60
|
+
amount?: number;
|
|
61
|
+
status: 'success' | 'failed' | 'cancelled' | 'pending';
|
|
62
|
+
orderId?: string | number;
|
|
63
|
+
transactionId?: string;
|
|
64
|
+
message?: string;
|
|
65
|
+
timestamp?: number;
|
|
66
|
+
roundingAmount?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface CheckoutCallbacks {
|
|
69
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
70
|
+
onPaymentCancel?: () => void;
|
|
71
|
+
onStatusChange?: (status: string) => void;
|
|
72
|
+
}
|
|
73
|
+
export interface CheckoutProps {
|
|
74
|
+
paymentData?: PaymentData;
|
|
75
|
+
moduleConfig?: ModuleConfig;
|
|
76
|
+
statusConfig?: StatusConfig;
|
|
77
|
+
cashAmountButtons?: number[];
|
|
78
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
79
|
+
onPaymentCancel?: () => void;
|
|
80
|
+
onStatusChange?: (status: string) => void;
|
|
81
|
+
}
|
|
82
|
+
export interface StatusSectionProps {
|
|
83
|
+
config?: StatusConfig;
|
|
84
|
+
onStatusChange?: (status: string) => void;
|
|
85
|
+
}
|
|
86
|
+
export interface AmountSummaryProps {
|
|
87
|
+
orderInfo?: CurrentOrderInfo;
|
|
88
|
+
open_deposit?: boolean;
|
|
89
|
+
customAmount?: string;
|
|
90
|
+
onAmountChange?: (amount: string) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface WalletPassModuleProps {
|
|
93
|
+
orderInfo?: CurrentOrderInfo;
|
|
94
|
+
}
|
|
95
|
+
export interface CashPaymentModuleProps {
|
|
96
|
+
orderInfo?: CurrentOrderInfo;
|
|
97
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
98
|
+
amountButtons?: number[];
|
|
99
|
+
}
|
|
100
|
+
export interface PaymentOptionsModuleProps {
|
|
101
|
+
orderInfo?: CurrentOrderInfo;
|
|
102
|
+
onClick?: (method: PaymentMethod) => void;
|
|
103
|
+
}
|
|
104
|
+
export interface AdditionalModuleProps {
|
|
105
|
+
orderInfo?: CurrentOrderInfo;
|
|
106
|
+
customAmount?: string;
|
|
107
|
+
handleButtonClick: (key: string) => void;
|
|
108
|
+
hasOrderNote?: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface PaymentMethod {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
nameEn?: string;
|
|
114
|
+
surcharge: string;
|
|
115
|
+
surchargeAmount?: number;
|
|
116
|
+
icon?: string;
|
|
117
|
+
iconComponent?: React.ReactNode;
|
|
118
|
+
color?: string;
|
|
119
|
+
enabled?: boolean;
|
|
120
|
+
code: string;
|
|
121
|
+
type: string;
|
|
122
|
+
fixed?: number;
|
|
123
|
+
percentage?: number;
|
|
124
|
+
totalAmount?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface PaymentMethodSelection {
|
|
127
|
+
method: PaymentMethod;
|
|
128
|
+
amount: number;
|
|
129
|
+
totalWithSurcharge: number;
|
|
130
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PosProps, RouteType } from './const';
|
|
2
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
3
|
+
action: RouteType;
|
|
4
|
+
device_number: string | number;
|
|
5
|
+
api: ReturnType<PosProps['getApi']>;
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
channel?: string | undefined;
|
|
8
|
+
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default App;
|