@pisell/private-materials 6.6.4 → 6.6.6
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- 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/Services/index.js +25 -22
- package/es/components/appointmentBooking/components/Voucher/index.js +15 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/components/actionButtons/index.js +3 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +548 -84
- package/es/components/booking/components/footer/index.js +36 -33
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +166 -67
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +53 -15
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +5 -3
- package/es/components/booking/info2/service/addService/index.js +9 -9
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +27 -17
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +15 -2
- package/es/components/checkout/components/AmountSummary/index.less +4 -5
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/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/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/index.d.ts +2 -2
- package/es/components/index.js +2 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/index.js +7 -4
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{wallet/serve.js → systemSettings/registry/components/GroupModal.js} +145 -190
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -5
- package/es/components/ticketBooking/utils/index.d.ts +5 -0
- package/es/components/ticketBooking/utils/index.js +38 -17
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +173 -41
- package/es/components/walletList/locales.d.ts +9 -0
- package/es/components/walletList/locales.js +12 -3
- package/es/components/walletList/serve.d.ts +19 -0
- package/es/components/walletList/serve.js +94 -5
- package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/es/components/walletList/tempHolderSelector/index.js +196 -0
- package/es/components/walletList/tempHolderSelector/index.less +63 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +3 -2
- package/es/index.js +4 -3
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/walletEditor/WalletEditor.js +60 -2
- package/es/plus/walletEditor/locales.d.ts +9 -0
- package/es/plus/walletEditor/locales.js +12 -3
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.js +17 -5
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +226 -42
- package/es/plus/walletPassGallery/locales.d.ts +15 -0
- package/es/plus/walletPassGallery/locales.js +29 -5
- package/es/plus/walletPassGallery/serve.d.ts +15 -1
- package/es/plus/walletPassGallery/serve.js +59 -2
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/plus/walletPassGallery/utils.js +342 -0
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
- 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/Services/index.js +5 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +13 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/components/actionButtons/index.js +4 -2
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +293 -41
- package/lib/components/booking/components/footer/index.js +5 -2
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +111 -35
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +56 -16
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +4 -2
- package/lib/components/booking/info2/service/addService/index.js +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +30 -8
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/components/AmountSummary/index.less +4 -5
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/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/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/index.d.ts +2 -2
- package/lib/components/index.js +3 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/index.js +4 -1
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/{wallet → systemSettings/registry}/components/index.js +13 -10
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/{wallet/RechargeableCard/serve.js → systemSettings/registry/types.js} +3 -19
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +9 -7
- package/lib/components/ticketBooking/utils/index.d.ts +5 -0
- package/lib/components/ticketBooking/utils/index.js +22 -6
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +100 -4
- package/lib/components/walletList/locales.d.ts +9 -0
- package/lib/components/walletList/locales.js +12 -3
- package/lib/components/walletList/serve.d.ts +19 -0
- package/lib/components/walletList/serve.js +26 -3
- package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/lib/components/walletList/tempHolderSelector/index.js +166 -0
- package/lib/components/walletList/tempHolderSelector/index.less +63 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +5 -2
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/walletEditor/WalletEditor.js +53 -0
- package/lib/plus/walletEditor/locales.d.ts +9 -0
- package/lib/plus/walletEditor/locales.js +12 -3
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +157 -28
- package/lib/plus/walletPassGallery/locales.d.ts +15 -0
- package/lib/plus/walletPassGallery/locales.js +32 -5
- package/lib/plus/walletPassGallery/serve.d.ts +15 -1
- package/lib/plus/walletPassGallery/serve.js +17 -5
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/plus/walletPassGallery/utils.js +287 -0
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
- package/lowcode/settings-registry/meta.ts +29 -0
- package/package.json +4 -4
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/index.js +0 -1182
- package/es/components/wallet/Detail/index.less +0 -386
- package/es/components/wallet/Detail/locales.d.ts +0 -153
- package/es/components/wallet/Detail/locales.js +0 -170
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/model.js +0 -22
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/Detail/serve.js +0 -64
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DetailContext.js +0 -162
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/index.js +0 -218
- package/es/components/wallet/DiscountCard/index.less +0 -9
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/DiscountCard/model.js +0 -22
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/index.js +0 -169
- package/es/components/wallet/PointCard/index.less +0 -9
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/PointCard/model.js +0 -22
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.js +0 -463
- package/es/components/wallet/RechargeableCard/index.less +0 -108
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/model.js +0 -28
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/RechargeableCard/serve.js +0 -32
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/index.js +0 -131
- package/es/components/wallet/Voucher/index.less +0 -9
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/locales.js +0 -20
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/Voucher/model.js +0 -22
- package/es/components/wallet/carouselArrow.png +0 -0
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/FooterButtons/index.js +0 -81
- package/es/components/wallet/components/FooterButtons/index.less +0 -91
- package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/es/components/wallet/components/UsageRules/index.js +0 -147
- package/es/components/wallet/components/UsageRules/index.less +0 -157
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletBar/index.js +0 -19
- package/es/components/wallet/components/WalletBar/index.less +0 -36
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/WalletCard.js +0 -91
- package/es/components/wallet/components/index.d.ts +0 -3
- package/es/components/wallet/components/index.js +0 -4
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/es/components/wallet/hooks/useWalletCard.js +0 -147
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/index.js +0 -807
- package/es/components/wallet/index.less +0 -151
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/locales.js +0 -139
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/model.js +0 -86
- package/es/components/wallet/serve.d.ts +0 -150
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/wallet/utils/formatUtils.js +0 -73
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/index.js +0 -874
- package/lib/components/wallet/Detail/index.less +0 -386
- package/lib/components/wallet/Detail/locales.d.ts +0 -153
- package/lib/components/wallet/Detail/locales.js +0 -194
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/model.js +0 -43
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/Detail/serve.js +0 -44
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DetailContext.js +0 -118
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/index.js +0 -209
- package/lib/components/wallet/DiscountCard/index.less +0 -9
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/DiscountCard/model.js +0 -43
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/index.js +0 -190
- package/lib/components/wallet/PointCard/index.less +0 -9
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/PointCard/model.js +0 -43
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.js +0 -380
- package/lib/components/wallet/RechargeableCard/index.less +0 -108
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/model.js +0 -49
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/index.js +0 -146
- package/lib/components/wallet/Voucher/index.less +0 -9
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/locales.js +0 -44
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/Voucher/model.js +0 -43
- package/lib/components/wallet/carouselArrow.png +0 -0
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/FooterButtons/index.js +0 -109
- package/lib/components/wallet/components/FooterButtons/index.less +0 -91
- package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/lib/components/wallet/components/UsageRules/index.js +0 -113
- package/lib/components/wallet/components/UsageRules/index.less +0 -157
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletBar/index.js +0 -49
- package/lib/components/wallet/components/WalletBar/index.less +0 -36
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/WalletCard.js +0 -97
- package/lib/components/wallet/components/index.d.ts +0 -3
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/lib/components/wallet/hooks/useWalletCard.js +0 -111
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/index.js +0 -580
- package/lib/components/wallet/index.less +0 -151
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/locales.js +0 -163
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/model.js +0 -91
- package/lib/components/wallet/serve.d.ts +0 -150
- package/lib/components/wallet/serve.js +0 -85
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/wallet/utils/formatUtils.js +0 -73
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
/**
|
|
3
|
+
* 类型验证工具函数
|
|
4
|
+
* 用于验证默认值是否符合指定的字段类型
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 验证字符串类型
|
|
9
|
+
*/
|
|
10
|
+
var validateString = function validateString(value) {
|
|
11
|
+
if (value === null || value === undefined || value === '') {
|
|
12
|
+
return {
|
|
13
|
+
isValid: true
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if (typeof value === 'string') {
|
|
17
|
+
return {
|
|
18
|
+
isValid: true
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
isValid: false,
|
|
23
|
+
error: '默认值必须是字符串类型'
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 验证整数类型
|
|
29
|
+
*/
|
|
30
|
+
var validateInteger = function validateInteger(value) {
|
|
31
|
+
if (value === null || value === undefined || value === '') {
|
|
32
|
+
return {
|
|
33
|
+
isValid: true
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// 如果是数字,检查是否为整数
|
|
38
|
+
if (typeof value === 'number') {
|
|
39
|
+
if (!Number.isInteger(value)) {
|
|
40
|
+
return {
|
|
41
|
+
isValid: false,
|
|
42
|
+
error: '默认值必须是整数'
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
isValid: true
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 如果是字符串,尝试转换
|
|
51
|
+
if (typeof value === 'string') {
|
|
52
|
+
var trimmed = value.trim();
|
|
53
|
+
if (trimmed === '') {
|
|
54
|
+
return {
|
|
55
|
+
isValid: true
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
var num = Number(trimmed);
|
|
59
|
+
if (isNaN(num) || !Number.isInteger(num)) {
|
|
60
|
+
return {
|
|
61
|
+
isValid: false,
|
|
62
|
+
error: '默认值必须是有效的整数'
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
isValid: true
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
isValid: false,
|
|
71
|
+
error: '默认值必须是有效的整数'
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 验证浮点数类型
|
|
77
|
+
*/
|
|
78
|
+
var validateFloat = function validateFloat(value) {
|
|
79
|
+
if (value === null || value === undefined || value === '') {
|
|
80
|
+
return {
|
|
81
|
+
isValid: true
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 如果是数字,检查是否有效
|
|
86
|
+
if (typeof value === 'number') {
|
|
87
|
+
if (!isFinite(value)) {
|
|
88
|
+
return {
|
|
89
|
+
isValid: false,
|
|
90
|
+
error: '默认值必须是有效的数字'
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
isValid: true
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// 如果是字符串,尝试转换
|
|
99
|
+
if (typeof value === 'string') {
|
|
100
|
+
var trimmed = value.trim();
|
|
101
|
+
if (trimmed === '') {
|
|
102
|
+
return {
|
|
103
|
+
isValid: true
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
var num = Number(trimmed);
|
|
107
|
+
if (isNaN(num) || !isFinite(num)) {
|
|
108
|
+
return {
|
|
109
|
+
isValid: false,
|
|
110
|
+
error: '默认值必须是有效的数字'
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
isValid: true
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
isValid: false,
|
|
119
|
+
error: '默认值必须是有效的数字'
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 验证布尔类型
|
|
125
|
+
*/
|
|
126
|
+
var validateBoolean = function validateBoolean(value) {
|
|
127
|
+
if (value === null || value === undefined || value === '') {
|
|
128
|
+
return {
|
|
129
|
+
isValid: true
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// 如果是字符串,只接受 'true' 或 'false'
|
|
134
|
+
if (typeof value === 'string') {
|
|
135
|
+
var trimmed = value.trim().toLowerCase();
|
|
136
|
+
if (trimmed === '') {
|
|
137
|
+
return {
|
|
138
|
+
isValid: true
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
if (trimmed !== 'true' && trimmed !== 'false') {
|
|
142
|
+
return {
|
|
143
|
+
isValid: false,
|
|
144
|
+
error: '默认值必须是 true 或 false'
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
isValid: true
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// 如果是布尔类型
|
|
153
|
+
if (typeof value === 'boolean') {
|
|
154
|
+
return {
|
|
155
|
+
isValid: true
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
isValid: false,
|
|
160
|
+
error: '默认值必须是 true 或 false'
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* 验证数组类型(JSON对象/数组)
|
|
166
|
+
*/
|
|
167
|
+
var validateArray = function validateArray(value) {
|
|
168
|
+
if (value === null || value === undefined || value === '') {
|
|
169
|
+
return {
|
|
170
|
+
isValid: true
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// 如果是字符串,尝试解析为JSON
|
|
175
|
+
if (typeof value === 'string') {
|
|
176
|
+
var trimmed = value.trim();
|
|
177
|
+
if (trimmed === '') {
|
|
178
|
+
return {
|
|
179
|
+
isValid: true
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
try {
|
|
183
|
+
var parsed = JSON.parse(trimmed);
|
|
184
|
+
// 检查解析后的值是否为对象或数组
|
|
185
|
+
if (_typeof(parsed) !== 'object' || parsed === null) {
|
|
186
|
+
return {
|
|
187
|
+
isValid: false,
|
|
188
|
+
error: '默认值必须是有效的JSON对象或数组'
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
isValid: true
|
|
193
|
+
};
|
|
194
|
+
} catch (error) {
|
|
195
|
+
return {
|
|
196
|
+
isValid: false,
|
|
197
|
+
error: '默认值必须是有效的JSON对象或数组'
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// 如果是对象或数组
|
|
203
|
+
if (_typeof(value) === 'object' && value !== null) {
|
|
204
|
+
return {
|
|
205
|
+
isValid: true
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
isValid: false,
|
|
210
|
+
error: '默认值必须是有效的JSON对象或数组'
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* 根据字段类型验证默认值
|
|
216
|
+
*/
|
|
217
|
+
export var validateDefaultValue = function validateDefaultValue(fieldType, defaultValue) {
|
|
218
|
+
if (!fieldType) {
|
|
219
|
+
return {
|
|
220
|
+
isValid: false,
|
|
221
|
+
error: '字段类型不能为空'
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
switch (fieldType.toLowerCase()) {
|
|
225
|
+
case 'string':
|
|
226
|
+
return validateString(defaultValue);
|
|
227
|
+
case 'integer':
|
|
228
|
+
return validateInteger(defaultValue);
|
|
229
|
+
case 'float':
|
|
230
|
+
return validateFloat(defaultValue);
|
|
231
|
+
case 'boolean':
|
|
232
|
+
return validateBoolean(defaultValue);
|
|
233
|
+
case 'array':
|
|
234
|
+
return validateArray(defaultValue);
|
|
235
|
+
default:
|
|
236
|
+
return {
|
|
237
|
+
isValid: false,
|
|
238
|
+
error: "\u4E0D\u652F\u6301\u7684\u5B57\u6BB5\u7C7B\u578B: ".concat(fieldType)
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* 解析默认值为对应的类型
|
|
245
|
+
*/
|
|
246
|
+
export var parseDefaultValue = function parseDefaultValue(fieldType, defaultValue) {
|
|
247
|
+
if (defaultValue === null || defaultValue === undefined || defaultValue === '') {
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
switch (fieldType.toLowerCase()) {
|
|
251
|
+
case 'string':
|
|
252
|
+
return String(defaultValue);
|
|
253
|
+
case 'integer':
|
|
254
|
+
if (typeof defaultValue === 'string') {
|
|
255
|
+
var trimmed = defaultValue.trim();
|
|
256
|
+
if (trimmed === '') return null;
|
|
257
|
+
return parseInt(trimmed, 10);
|
|
258
|
+
}
|
|
259
|
+
return defaultValue;
|
|
260
|
+
case 'float':
|
|
261
|
+
if (typeof defaultValue === 'string') {
|
|
262
|
+
var _trimmed = defaultValue.trim();
|
|
263
|
+
if (_trimmed === '') return null;
|
|
264
|
+
return parseFloat(_trimmed);
|
|
265
|
+
}
|
|
266
|
+
return defaultValue;
|
|
267
|
+
case 'boolean':
|
|
268
|
+
if (typeof defaultValue === 'string') {
|
|
269
|
+
var _trimmed2 = defaultValue.trim().toLowerCase();
|
|
270
|
+
if (_trimmed2 === '') return null;
|
|
271
|
+
return _trimmed2 === 'true';
|
|
272
|
+
}
|
|
273
|
+
return Boolean(defaultValue);
|
|
274
|
+
case 'array':
|
|
275
|
+
if (typeof defaultValue === 'string') {
|
|
276
|
+
var _trimmed3 = defaultValue.trim();
|
|
277
|
+
if (_trimmed3 === '') return null;
|
|
278
|
+
return JSON.parse(_trimmed3);
|
|
279
|
+
}
|
|
280
|
+
return defaultValue;
|
|
281
|
+
default:
|
|
282
|
+
return defaultValue;
|
|
283
|
+
}
|
|
284
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 验证器工具函数
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 创建带前缀的应用标识符验证器
|
|
7
|
+
* 用于验证设置项的键格式
|
|
8
|
+
*/
|
|
9
|
+
export var createPrefixedAppIdentifierValidator = function createPrefixedAppIdentifierValidator(sectionCode) {
|
|
10
|
+
return function (_, value) {
|
|
11
|
+
if (!value) {
|
|
12
|
+
return Promise.resolve();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// 检查是否以section code开头
|
|
16
|
+
var expectedPrefix = "".concat(sectionCode, ".");
|
|
17
|
+
if (!value.startsWith(expectedPrefix)) {
|
|
18
|
+
return Promise.reject(new Error("\u952E\u5FC5\u987B\u4EE5 \"".concat(expectedPrefix, "\" \u5F00\u5934")));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// 检查剩余部分的格式
|
|
22
|
+
var remainingPart = value.substring(expectedPrefix.length);
|
|
23
|
+
if (!remainingPart) {
|
|
24
|
+
return Promise.reject(new Error('键不能只包含前缀'));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 验证格式:只能包含小写字母、数字、点、下划线
|
|
28
|
+
var validPattern = /^[a-z0-9._]+$/;
|
|
29
|
+
if (!validPattern.test(remainingPart)) {
|
|
30
|
+
return Promise.reject(new Error('键只能包含小写字母、数字、点、下划线'));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 不能以点或下划线开头或结尾
|
|
34
|
+
if (remainingPart.startsWith('.') || remainingPart.startsWith('_') || remainingPart.endsWith('.') || remainingPart.endsWith('_')) {
|
|
35
|
+
return Promise.reject(new Error('键不能以点或下划线开头或结尾'));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// 不能包含连续的点或下划线
|
|
39
|
+
if (remainingPart.includes('..') || remainingPart.includes('__') || remainingPart.includes('._') || remainingPart.includes('_.')) {
|
|
40
|
+
return Promise.reject(new Error('键不能包含连续的点或下划线'));
|
|
41
|
+
}
|
|
42
|
+
return Promise.resolve();
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -218,8 +218,8 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
218
218
|
// 处理添加服务的逻辑(提取为独立函数,方便跨日商品确认后调用)
|
|
219
219
|
var processAddService = useMemoizedFn( /*#__PURE__*/function () {
|
|
220
220
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, _detail, e, notShowToast, startDate, endDate) {
|
|
221
|
-
var _state$client3, _state$
|
|
222
|
-
var other, cacheItem, _total, _isEdit, _stateRef$current$ser, isMultiDay, getMultiDayCacheItem, res, _state$
|
|
221
|
+
var _state$bookingConfig3, _state$client3, _state$bookingConfig4;
|
|
222
|
+
var other, cacheItem, _total, _isEdit, _stateRef$current$ser, isMultiDay, getMultiDayCacheItem, res, _state$bookingConfig5, _addService2, _list, quantity, _context$appHelper$ut4, _context$appHelper$ut5, val, sendData, _window$openBookingEd, _window;
|
|
223
223
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
224
224
|
while (1) switch (_context2.prev = _context2.next) {
|
|
225
225
|
case 0:
|
|
@@ -235,7 +235,9 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
235
235
|
price: _detail.price,
|
|
236
236
|
product_name: item.title,
|
|
237
237
|
other: other,
|
|
238
|
-
end_date: endDate
|
|
238
|
+
end_date: endDate,
|
|
239
|
+
isFormSubject: (state === null || state === void 0 || (_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.config) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.basic) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.appointment_subject) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.type) === 'form',
|
|
240
|
+
isNormalProduct: isNormalProductByDurationSchedule(item)
|
|
239
241
|
},
|
|
240
242
|
new: 1
|
|
241
243
|
});
|
|
@@ -287,7 +289,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
287
289
|
return _ref2.apply(this, arguments);
|
|
288
290
|
};
|
|
289
291
|
}(); // 如果没有 holder 数据,且此时要求选择 holder,则弹出 holder 弹窗
|
|
290
|
-
if (!(!isNormalProductByDurationSchedule(cacheItem) && (!cacheItem._extend.holder_id || !cacheItem._extend.holder_id.length) && !isWalkIn((_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id) && (state === null || state === void 0 || (_state$
|
|
292
|
+
if (!(!isNormalProductByDurationSchedule(cacheItem) && (!cacheItem._extend.holder_id || !cacheItem._extend.holder_id.length) && !isWalkIn((_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id) && (state === null || state === void 0 || (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.config) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.basic) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.appointment_subject) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.show_hold_on_add_cart) !== 0)) {
|
|
291
293
|
_context2.next = 22;
|
|
292
294
|
break;
|
|
293
295
|
}
|
|
@@ -303,7 +305,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
303
305
|
_context2.next = 22;
|
|
304
306
|
break;
|
|
305
307
|
case 20:
|
|
306
|
-
if (!((state === null || state === void 0 || (_state$
|
|
308
|
+
if (!((state === null || state === void 0 || (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.config) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.basic) === null || _state$bookingConfig5 === void 0 ? void 0 : _state$bookingConfig5.subject_require) === 'require')) {
|
|
307
309
|
_context2.next = 22;
|
|
308
310
|
break;
|
|
309
311
|
}
|
|
@@ -79,6 +79,11 @@ export declare const rulesHooks: {
|
|
|
79
79
|
num: any;
|
|
80
80
|
quantity: any;
|
|
81
81
|
vouchersApplicable: any;
|
|
82
|
+
holder_id: any;
|
|
83
|
+
isNeedHolder: any;
|
|
84
|
+
startDate: any;
|
|
85
|
+
bundle: any;
|
|
86
|
+
options: any;
|
|
82
87
|
};
|
|
83
88
|
setProduct(product: Record<string, any>, values: {
|
|
84
89
|
total: number;
|
|
@@ -160,21 +160,30 @@ export var addService = function addService(list, addItem, state, isMultiDay) {
|
|
|
160
160
|
// 是否设置过 只追加到第一个中
|
|
161
161
|
var isSetCount = false;
|
|
162
162
|
value = list.map(function (item) {
|
|
163
|
+
var _item$_extend;
|
|
163
164
|
// 是否商品券折扣的商品
|
|
164
165
|
var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
|
|
165
166
|
return item.type === 'good_pass';
|
|
166
167
|
});
|
|
167
168
|
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
// 子商品是否有商品券折扣的商品
|
|
170
|
+
var bundleDiscountList = [];
|
|
171
|
+
((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).forEach(function (item) {
|
|
172
|
+
bundleDiscountList.push.apply(bundleDiscountList, _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []));
|
|
173
|
+
});
|
|
174
|
+
var isGoodPassBundleProduct = bundleDiscountList.some(function (item) {
|
|
175
|
+
return item.type === 'good_pass';
|
|
176
|
+
});
|
|
177
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
|
|
178
|
+
var _item$_extend2, _addItem$_extend, _item$_extend3;
|
|
170
179
|
isNotSame = false;
|
|
171
|
-
var quantity = ((item === null || item === void 0 || (_item$
|
|
180
|
+
var quantity = ((item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1);
|
|
172
181
|
count = quantity;
|
|
173
182
|
isSetCount = true;
|
|
174
183
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
175
184
|
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
176
185
|
quantity: quantity,
|
|
177
|
-
other: _objectSpread(_objectSpread({}, ((_item$
|
|
186
|
+
other: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), {}, {
|
|
178
187
|
quantity: quantity
|
|
179
188
|
})
|
|
180
189
|
})
|
|
@@ -255,11 +264,11 @@ export var getIsShowNumber = function getIsShowNumber(item, state) {
|
|
|
255
264
|
|
|
256
265
|
// 生成服务key
|
|
257
266
|
export var genServiceKey = function genServiceKey(item) {
|
|
258
|
-
var _item$
|
|
267
|
+
var _item$_extend4, _item$_extend5, _item$_extend6;
|
|
259
268
|
var product_id = item.product_id;
|
|
260
|
-
var durationKey = (_item$
|
|
261
|
-
var start_time = (_item$
|
|
262
|
-
var total = (_item$
|
|
269
|
+
var durationKey = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.duration;
|
|
270
|
+
var start_time = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.start_time;
|
|
271
|
+
var total = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.total;
|
|
263
272
|
var resourceKey = '';
|
|
264
273
|
Object.values(item._extend.resource || []).forEach(function (resources) {
|
|
265
274
|
resources.forEach(function (resource) {
|
|
@@ -271,15 +280,15 @@ export var genServiceKey = function genServiceKey(item) {
|
|
|
271
280
|
//
|
|
272
281
|
// 生成 holder key
|
|
273
282
|
export var genHolderKey = function genHolderKey(item) {
|
|
274
|
-
var _item$
|
|
283
|
+
var _item$_extend7;
|
|
275
284
|
var product_id = item.product_id;
|
|
276
285
|
var holder_id;
|
|
277
|
-
if (isArr((_item$
|
|
278
|
-
var _item$_extend7;
|
|
279
|
-
holder_id = (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.holder_id.join('-');
|
|
280
|
-
} else {
|
|
286
|
+
if (isArr((_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.holder_id)) {
|
|
281
287
|
var _item$_extend8;
|
|
282
|
-
holder_id = (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.holder_id;
|
|
288
|
+
holder_id = (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.holder_id.join('-');
|
|
289
|
+
} else {
|
|
290
|
+
var _item$_extend9;
|
|
291
|
+
holder_id = (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.holder_id;
|
|
283
292
|
}
|
|
284
293
|
return "".concat(product_id, "-").concat(holder_id);
|
|
285
294
|
};
|
|
@@ -378,17 +387,23 @@ export var getShopDiscountKey = function getShopDiscountKey(osKey) {
|
|
|
378
387
|
export var rulesHooks = {
|
|
379
388
|
// 获取商品关键信息
|
|
380
389
|
getProduct: function getProduct(product) {
|
|
390
|
+
var _product$_extend, _product$_extend2, _product$_extend3, _product$_extend4;
|
|
381
391
|
var detail = {
|
|
382
392
|
booking_id: product.booking_id,
|
|
383
393
|
id: product.id,
|
|
384
394
|
_id: product._id,
|
|
385
|
-
price: product.price,
|
|
395
|
+
price: product._extend.price,
|
|
386
396
|
total: product._extend.total,
|
|
387
397
|
discount_list: product.discount_list,
|
|
388
398
|
origin_total: product._extend.origin_total,
|
|
389
399
|
num: product._extend.quantity,
|
|
390
400
|
quantity: product._extend.quantity || 1,
|
|
391
|
-
vouchersApplicable: product.vouchersApplicable
|
|
401
|
+
vouchersApplicable: product.vouchersApplicable,
|
|
402
|
+
holder_id: (_product$_extend = product._extend) === null || _product$_extend === void 0 ? void 0 : _product$_extend.holder_id,
|
|
403
|
+
isNeedHolder: product._extend.isFormSubject && !product._extend.isNormalProduct,
|
|
404
|
+
startDate: (_product$_extend2 = product._extend) === null || _product$_extend2 === void 0 ? void 0 : _product$_extend2.startDate,
|
|
405
|
+
bundle: ((_product$_extend3 = product._extend) === null || _product$_extend3 === void 0 || (_product$_extend3 = _product$_extend3.other) === null || _product$_extend3 === void 0 ? void 0 : _product$_extend3.bundle) || [],
|
|
406
|
+
options: ((_product$_extend4 = product._extend) === null || _product$_extend4 === void 0 || (_product$_extend4 = _product$_extend4.other) === null || _product$_extend4 === void 0 ? void 0 : _product$_extend4.option) || []
|
|
392
407
|
};
|
|
393
408
|
return detail;
|
|
394
409
|
},
|
|
@@ -396,8 +411,14 @@ export var rulesHooks = {
|
|
|
396
411
|
var detail = _objectSpread(_objectSpread({}, product), {}, {
|
|
397
412
|
_id: values._id || product._id,
|
|
398
413
|
discount_list: values.discount_list,
|
|
399
|
-
_extend: _objectSpread(_objectSpread(_objectSpread({}, product._extend),
|
|
414
|
+
_extend: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, product._extend), {}, {
|
|
415
|
+
other: _objectSpread(_objectSpread({}, product._extend.other), 'bundle' in values ? {
|
|
416
|
+
bundle: values.bundle
|
|
417
|
+
} : {})
|
|
418
|
+
}, 'total' in values ? {
|
|
400
419
|
total: values.total
|
|
420
|
+
} : {}), 'main_product_selling_price' in values ? {
|
|
421
|
+
main_product_selling_price: values.main_product_selling_price
|
|
401
422
|
} : {}), 'quantity' in values ? {
|
|
402
423
|
quantity: values.quantity
|
|
403
424
|
} : {})
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
|
-
declare module 'react' {
|
|
4
|
-
interface HTMLAttributes<T> {
|
|
5
|
-
role?: string;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
namespace JSX {
|
|
10
|
-
interface IntrinsicElements {
|
|
11
|
-
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
14
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
|
15
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
|
|
16
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
|
17
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
|
18
|
-
role?: string;
|
|
19
|
-
};
|
|
20
|
-
img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
21
|
-
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
2
|
declare const WalletList: (props: any) => JSX.Element;
|
|
28
3
|
export default WalletList;
|