@pisell/private-materials 6.2.30 → 6.3.1
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 -9
- package/build/lowcode/preview.js +13 -13
- 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/Sales/Cart/index.js +0 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/index.js +1 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +3 -15
- package/es/components/booking/components/footer/index.js +42 -113
- package/es/components/booking/components/footer/index.less +2 -3
- package/es/components/booking/components/footer/utils.js +23 -51
- package/es/components/booking/components/tabPane/index.js +5 -72
- package/es/components/booking/components/tabPane/index.less +1 -75
- package/es/components/booking/components/voucher/index.js +12 -26
- package/es/components/booking/components/voucher/index.less +1 -1
- package/es/components/booking/dashboard/index.d.ts +1 -1
- package/es/components/booking/dashboard/index.js +3 -10
- package/es/components/booking/forms/forms.js +1 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useQuotation.js +8 -18
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +12 -13
- package/es/components/booking/info/index.less +3 -19
- package/es/components/booking/info/main.js +15 -14
- package/es/components/booking/info/pet/index.less +1 -1
- package/es/components/booking/info/service/Lists.js +2 -5
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/index.less +1 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.js +2 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -4
- package/es/components/booking/info/service2/utils.js +2 -21
- package/es/components/booking/info2/index.js +18 -40
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +1 -2
- package/es/components/booking/info2/service/editService/index.js +4 -4
- package/es/components/booking/info2/service/index.js +6 -11
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -1
- package/es/components/booking/info2/utilsByBooking.js +3 -27
- package/es/components/booking/locales.d.ts +0 -78
- package/es/components/booking/locales.js +4 -106
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +1 -1
- package/es/components/booking/notes/addNote/index.js +32 -52
- package/es/components/booking/notes/addNote/index.less +0 -53
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/listComponent/index.js +5 -5
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/productGroup/index.js +4 -20
- package/es/components/productSelect/components/productGroup/index.less +0 -17
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +7 -46
- package/es/components/shoppingCart/components/Cart/index.less +1 -15
- package/es/components/shoppingCart/type.d.ts +0 -1
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +291 -158
- package/es/components/ticketBooking/components/ticketBooking/index.js +34 -214
- package/es/components/ticketBooking/components/ticketBooking/index.less +1 -29
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +15 -19
- package/es/components/ticketBooking/index.js +3 -21
- package/es/components/ticketBooking/index.less +1 -1
- package/es/components/ticketBooking/locales.d.ts +3 -9
- package/es/components/ticketBooking/locales.js +3 -9
- package/es/components/ticketBooking/serve.js +11 -11
- package/es/components/ticketBooking/utils/index.d.ts +4 -39
- package/es/components/ticketBooking/utils/index.js +28 -109
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +0 -4
- package/es/index.js +1 -5
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Cart/index.js +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/index.js +1 -4
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +3 -5
- package/lib/components/booking/components/footer/index.js +23 -96
- package/lib/components/booking/components/footer/index.less +2 -3
- package/lib/components/booking/components/footer/utils.js +12 -37
- package/lib/components/booking/components/tabPane/index.js +4 -57
- package/lib/components/booking/components/tabPane/index.less +1 -75
- package/lib/components/booking/components/voucher/index.js +11 -23
- package/lib/components/booking/components/voucher/index.less +1 -1
- package/lib/components/booking/dashboard/index.d.ts +1 -1
- package/lib/components/booking/dashboard/index.js +2 -7
- package/lib/components/booking/forms/forms.js +1 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -4
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -12
- package/lib/components/booking/info/index.less +3 -19
- package/lib/components/booking/info/main.js +5 -12
- package/lib/components/booking/info/pet/index.less +1 -1
- package/lib/components/booking/info/service/Lists.js +2 -6
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/index.less +1 -1
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -4
- package/lib/components/booking/info/service2/utils.js +2 -23
- package/lib/components/booking/info2/index.js +9 -30
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -3
- package/lib/components/booking/info2/service/index.js +6 -6
- package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -1
- package/lib/components/booking/info2/utilsByBooking.js +4 -24
- package/lib/components/booking/locales.d.ts +0 -78
- package/lib/components/booking/locales.js +4 -100
- package/lib/components/booking/notes/addNote/index.d.ts +1 -1
- package/lib/components/booking/notes/addNote/index.js +23 -41
- package/lib/components/booking/notes/addNote/index.less +0 -53
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/productSelect/components/productGroup/index.js +3 -16
- package/lib/components/productSelect/components/productGroup/index.less +0 -17
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +9 -45
- package/lib/components/shoppingCart/components/Cart/index.less +1 -15
- package/lib/components/shoppingCart/type.d.ts +0 -1
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +185 -45
- package/lib/components/ticketBooking/components/ticketBooking/index.js +81 -233
- package/lib/components/ticketBooking/components/ticketBooking/index.less +1 -29
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +8 -15
- package/lib/components/ticketBooking/index.js +4 -31
- package/lib/components/ticketBooking/index.less +1 -1
- package/lib/components/ticketBooking/locales.d.ts +3 -9
- package/lib/components/ticketBooking/locales.js +3 -9
- package/lib/components/ticketBooking/serve.js +11 -11
- package/lib/components/ticketBooking/utils/index.d.ts +4 -39
- package/lib/components/ticketBooking/utils/index.js +30 -69
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -12
- package/lib/utils/index.d.ts +1 -1
- package/package.json +25 -25
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/actionButtons/index.js +0 -486
- package/es/components/booking/components/actionButtons/index.less +0 -215
- package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
- package/es/components/booking/components/clearCartModal/index.js +0 -50
- package/es/components/booking/components/clearCartModal/index.less +0 -109
- package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
- package/es/components/booking/components/customiseItemModal/index.js +0 -298
- package/es/components/booking/components/customiseItemModal/index.less +0 -606
- package/es/components/booking/components/voucherModal/index.d.ts +0 -19
- package/es/components/booking/components/voucherModal/index.js +0 -47
- package/es/components/booking/components/voucherModal/index.less +0 -23
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/booking/info2/cartClientCard/index.js +0 -343
- package/es/components/booking/info2/cartClientCard/index.less +0 -6
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/es/components/booking/info2/cartClientCard/locales.js +0 -26
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
- package/es/components/booking/info2/cartClientCard/types.js +0 -1
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/utils.js +0 -7
- package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/es/components/booking/info2/service/editNormalService/index.js +0 -67
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +0 -191
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -33
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -213
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -79
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +0 -25
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +0 -74
- package/es/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -71
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/es/components/ticketBooking/components/floatButtons/index.js +0 -19
- package/es/components/ticketBooking/components/floatButtons/index.less +0 -17
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -5
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/index.js +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -247
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +0 -52
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -30
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -29
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -49
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -20
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useToast.js +0 -9
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/hooks/useTranslationOriginal.js +0 -10
- package/es/plus/clientCard/index.d.ts +0 -7
- package/es/plus/clientCard/index.js +0 -452
- package/es/plus/clientCard/index.less +0 -536
- package/es/plus/clientCard/line/index.d.ts +0 -9
- package/es/plus/clientCard/line/index.js +0 -157
- package/es/plus/clientCard/line/index.less +0 -142
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/locales.js +0 -17
- package/es/plus/clientCard/types.d.ts +0 -126
- package/es/plus/clientCard/types.js +0 -1
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clientCard/utils.js +0 -59
- package/es/plus/clientName/index.d.ts +0 -4
- package/es/plus/clientName/index.js +0 -18
- package/es/plus/clientName/index.less +0 -10
- package/es/plus/clientName/type.d.ts +0 -13
- package/es/plus/clientName/type.js +0 -1
- package/es/plus/clientName/utils.d.ts +0 -2
- package/es/plus/clientName/utils.js +0 -18
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
- package/es/plus/clinetSearch/Add/index.d.ts +0 -18
- package/es/plus/clinetSearch/Add/index.js +0 -212
- package/es/plus/clinetSearch/Add/index.less +0 -30
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/plus/clinetSearch/index.js +0 -214
- package/es/plus/clinetSearch/index.less +0 -91
- package/es/plus/clinetSearch/locales.d.ts +0 -102
- package/es/plus/clinetSearch/locales.js +0 -101
- package/es/plus/clinetSearch/serve.d.ts +0 -1
- package/es/plus/clinetSearch/serve.js +0 -31
- package/es/plus/clinetSearch/types.d.ts +0 -49
- package/es/plus/clinetSearch/types.js +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -7
- package/es/plus/noteModal/AddTempModal.js +0 -64
- package/es/plus/noteModal/index.d.ts +0 -4
- package/es/plus/noteModal/index.js +0 -199
- package/es/plus/noteModal/index.less +0 -168
- package/es/plus/noteModal/locales.d.ts +0 -33
- package/es/plus/noteModal/locales.js +0 -32
- package/es/plus/noteModal/types.d.ts +0 -17
- package/es/plus/noteModal/types.js +0 -1
- package/es/pro/comprehensiveSearch/camera.svg +0 -4
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -9
- package/es/pro/comprehensiveSearch/index.js +0 -342
- package/es/pro/comprehensiveSearch/index.less +0 -323
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
- package/es/pro/comprehensiveSearch/locales.js +0 -17
- package/es/pro/comprehensiveSearch/types.d.ts +0 -31
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/numberKeyboard/index.d.ts +0 -28
- package/es/pro/numberKeyboard/index.js +0 -155
- package/es/pro/numberKeyboard/index.less +0 -25
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/numberKeyboard/locales.js +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/es/pro/pisellNumberSelector/index.d.ts +0 -26
- package/es/pro/pisellNumberSelector/index.js +0 -250
- package/es/pro/pisellNumberSelector/index.less +0 -193
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/index.js +0 -211
- package/es/pro/pisellPhoneKeyboard/index.less +0 -157
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/locales.js +0 -11
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardModal/index.js +0 -1
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardModal/types.js +0 -1
- package/es/pro/pisellPriceRadio/index.d.ts +0 -26
- package/es/pro/pisellPriceRadio/index.js +0 -113
- package/es/pro/pisellPriceRadio/index.less +0 -158
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/es/pro/skuDetailModal/index.js +0 -352
- package/es/pro/skuDetailModal/index.less +0 -236
- package/es/pro/skuDetailModal/locales.d.ts +0 -48
- package/es/pro/skuDetailModal/locales.js +0 -47
- package/es/pro/skuDetailModal/types.d.ts +0 -347
- package/es/pro/skuDetailModal/types.js +0 -1
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/actionButtons/index.js +0 -386
- package/lib/components/booking/components/actionButtons/index.less +0 -215
- package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
- package/lib/components/booking/components/clearCartModal/index.js +0 -80
- package/lib/components/booking/components/clearCartModal/index.less +0 -109
- package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
- package/lib/components/booking/components/customiseItemModal/index.js +0 -285
- package/lib/components/booking/components/customiseItemModal/index.less +0 -606
- package/lib/components/booking/components/voucherModal/index.d.ts +0 -19
- package/lib/components/booking/components/voucherModal/index.js +0 -83
- package/lib/components/booking/components/voucherModal/index.less +0 -23
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/booking/info2/cartClientCard/index.js +0 -298
- package/lib/components/booking/info2/cartClientCard/index.less +0 -6
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/lib/components/booking/info2/cartClientCard/locales.js +0 -50
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
- package/lib/components/booking/info2/cartClientCard/types.js +0 -17
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/utils.js +0 -37
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editNormalService/index.js +0 -100
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +0 -174
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -75
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -210
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -105
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +0 -57
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +0 -113
- package/lib/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -84
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/floatButtons/index.js +0 -52
- package/lib/components/ticketBooking/components/floatButtons/index.less +0 -17
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -33
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/index.js +0 -27
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -147
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -47
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -64
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -65
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -83
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -44
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useToast.js +0 -42
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/hooks/useTranslationOriginal.js +0 -42
- package/lib/plus/clientCard/index.d.ts +0 -7
- package/lib/plus/clientCard/index.js +0 -442
- package/lib/plus/clientCard/index.less +0 -536
- package/lib/plus/clientCard/line/index.d.ts +0 -9
- package/lib/plus/clientCard/line/index.js +0 -153
- package/lib/plus/clientCard/line/index.less +0 -142
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/locales.js +0 -41
- package/lib/plus/clientCard/types.d.ts +0 -126
- package/lib/plus/clientCard/types.js +0 -17
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clientCard/utils.js +0 -75
- package/lib/plus/clientName/index.d.ts +0 -4
- package/lib/plus/clientName/index.js +0 -53
- package/lib/plus/clientName/index.less +0 -10
- package/lib/plus/clientName/type.d.ts +0 -13
- package/lib/plus/clientName/type.js +0 -17
- package/lib/plus/clientName/utils.d.ts +0 -2
- package/lib/plus/clientName/utils.js +0 -43
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
- package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/index.js +0 -243
- package/lib/plus/clinetSearch/Add/index.less +0 -30
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/plus/clinetSearch/index.js +0 -205
- package/lib/plus/clinetSearch/index.less +0 -91
- package/lib/plus/clinetSearch/locales.d.ts +0 -102
- package/lib/plus/clinetSearch/locales.js +0 -125
- package/lib/plus/clinetSearch/serve.d.ts +0 -1
- package/lib/plus/clinetSearch/serve.js +0 -33
- package/lib/plus/clinetSearch/types.d.ts +0 -49
- package/lib/plus/clinetSearch/types.js +0 -17
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
- package/lib/plus/noteModal/AddTempModal.js +0 -95
- package/lib/plus/noteModal/index.d.ts +0 -4
- package/lib/plus/noteModal/index.js +0 -199
- package/lib/plus/noteModal/index.less +0 -168
- package/lib/plus/noteModal/locales.d.ts +0 -33
- package/lib/plus/noteModal/locales.js +0 -56
- package/lib/plus/noteModal/types.d.ts +0 -17
- package/lib/plus/noteModal/types.js +0 -17
- package/lib/pro/comprehensiveSearch/camera.svg +0 -4
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/index.js +0 -259
- package/lib/pro/comprehensiveSearch/index.less +0 -323
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
- package/lib/pro/comprehensiveSearch/locales.js +0 -41
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/numberKeyboard/index.d.ts +0 -28
- package/lib/pro/numberKeyboard/index.js +0 -182
- package/lib/pro/numberKeyboard/index.less +0 -25
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/numberKeyboard/locales.js +0 -35
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
- package/lib/pro/pisellNumberSelector/index.js +0 -270
- package/lib/pro/pisellNumberSelector/index.less +0 -193
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/index.js +0 -220
- package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/locales.js +0 -35
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardModal/index.js +0 -35
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardModal/types.js +0 -17
- package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
- package/lib/pro/pisellPriceRadio/index.js +0 -130
- package/lib/pro/pisellPriceRadio/index.less +0 -158
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/pro/skuDetailModal/index.js +0 -311
- package/lib/pro/skuDetailModal/index.less +0 -236
- package/lib/pro/skuDetailModal/locales.d.ts +0 -48
- package/lib/pro/skuDetailModal/locales.js +0 -71
- package/lib/pro/skuDetailModal/types.d.ts +0 -347
- package/lib/pro/skuDetailModal/types.js +0 -17
- package/lowcode/client-card/fragments/cardStyle.ts +0 -63
- package/lowcode/client-card/fragments/nameStyle.ts +0 -34
- package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
- package/lowcode/client-card/fragments/tagConfig.ts +0 -88
- package/lowcode/client-card/meta.ts +0 -337
- package/lowcode/comprehensive-search/meta.ts +0 -261
@@ -1,63 +1,15 @@
|
|
1
|
-
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
-
import React, { useMemo } from "react";
|
1
|
+
import React from "react";
|
8
2
|
import AuthWrap from "../authWrap";
|
9
3
|
import { Skeleton } from "antd";
|
10
4
|
import "./index.less";
|
11
5
|
import classNames from "classnames";
|
12
|
-
import useEngineContext from "../../../../hooks/useEngineContext";
|
13
|
-
import VoucherCard from "../voucher";
|
14
|
-
import ActionButtons from "../actionButtons";
|
15
6
|
var TabPane = function TabPane(_ref) {
|
16
|
-
var _context$appHelper, _businessUtils$getApp, _businessUtils$getApp2, _state$service, _state$addons, _state$client;
|
17
7
|
var children = _ref.children,
|
18
8
|
header = _ref.header,
|
19
9
|
footer = _ref.footer,
|
20
10
|
style = _ref.style,
|
21
11
|
loading = _ref.loading,
|
22
|
-
bodyClassName = _ref.bodyClassName
|
23
|
-
state = _ref.state,
|
24
|
-
dispatch = _ref.dispatch,
|
25
|
-
source = _ref.source;
|
26
|
-
var context = useEngineContext();
|
27
|
-
var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
28
|
-
businessUtils = _ref2.businessUtils;
|
29
|
-
|
30
|
-
// 是否安装商品券应用
|
31
|
-
var hasGoodPassApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp = businessUtils.getAppByModal) !== null && _businessUtils$getApp !== void 0 && _businessUtils$getApp.call(businessUtils, 'goodpass'));
|
32
|
-
var hasDiscountCardApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp2 = businessUtils.getAppByModal) !== null && _businessUtils$getApp2 !== void 0 && _businessUtils$getApp2.call(businessUtils, 'discountcard'));
|
33
|
-
|
34
|
-
// 支付退款状态
|
35
|
-
var paymentRefundedStatus = useMemo(function () {
|
36
|
-
var _state$bookingDetail;
|
37
|
-
return ['partially_refunded', 'refunded'].includes(state === null || state === void 0 || (_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.payment_status);
|
38
|
-
}, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
|
39
|
-
|
40
|
-
// 是否显示 voucher 模块的基础条件
|
41
|
-
var voucherBaseCondition = (hasGoodPassApp || hasDiscountCardApp) && ['addons', 'info'].includes(source) && !paymentRefundedStatus;
|
42
|
-
|
43
|
-
// 票务预订显示独立的 voucher 模块
|
44
|
-
var shouldShowTerminalVoucher = voucherBaseCondition && (state === null || state === void 0 ? void 0 : state.isBookingTicket2);
|
45
|
-
|
46
|
-
// 非票务预订显示在 footer 中的 voucher 模块
|
47
|
-
var shouldShowFooterVoucher = voucherBaseCondition && !(state !== null && state !== void 0 && state.isBookingTicket2);
|
48
|
-
|
49
|
-
// 处理订单备注变更
|
50
|
-
var addNote = function addNote(noteValue) {
|
51
|
-
if (dispatch) {
|
52
|
-
dispatch({
|
53
|
-
type: 'setNotes',
|
54
|
-
payload: {
|
55
|
-
orderNote: noteValue,
|
56
|
-
edit: true
|
57
|
-
}
|
58
|
-
});
|
59
|
-
}
|
60
|
-
};
|
12
|
+
bodyClassName = _ref.bodyClassName;
|
61
13
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
62
14
|
className: "pisell-lowcode__booking-tab-pane-wrap",
|
63
15
|
style: style
|
@@ -73,30 +25,11 @@ var TabPane = function TabPane(_ref) {
|
|
73
25
|
style: {
|
74
26
|
padding: 20
|
75
27
|
}
|
76
|
-
}, children)),
|
77
|
-
|
78
|
-
}, /*#__PURE__*/React.createElement(ActionButtons, {
|
79
|
-
state: state,
|
80
|
-
dispatch: dispatch
|
81
|
-
})), /*#__PURE__*/React.createElement(AuthWrap, {
|
82
|
-
show: !!footer || shouldShowFooterVoucher,
|
28
|
+
}, children)), /*#__PURE__*/React.createElement(AuthWrap, {
|
29
|
+
show: !!footer,
|
83
30
|
trueRender: /*#__PURE__*/React.createElement("div", {
|
84
31
|
className: "pisell-lowcode__booking-tab-pane-footer"
|
85
|
-
},
|
86
|
-
state: _objectSpread(_objectSpread({}, state), {}, {
|
87
|
-
service: _objectSpread(_objectSpread({}, state.service || {}), {}, {
|
88
|
-
value: ((_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value) || []
|
89
|
-
}),
|
90
|
-
addons: _objectSpread(_objectSpread({}, state.addons || {}), {}, {
|
91
|
-
value: ((_state$addons = state.addons) === null || _state$addons === void 0 ? void 0 : _state$addons.value) || []
|
92
|
-
}),
|
93
|
-
client: _objectSpread(_objectSpread({}, state.client || {}), {}, {
|
94
|
-
value: ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value) || {}
|
95
|
-
})
|
96
|
-
}),
|
97
|
-
dispatch: dispatch,
|
98
|
-
source: source
|
99
|
-
}), footer)
|
32
|
+
}, footer)
|
100
33
|
})));
|
101
34
|
};
|
102
35
|
export default TabPane;
|
@@ -5,6 +5,7 @@
|
|
5
5
|
position: relative;
|
6
6
|
display: flex;
|
7
7
|
flex-direction: column;
|
8
|
+
|
8
9
|
}
|
9
10
|
|
10
11
|
.pisell-lowcode__booking-tab-pane-title {
|
@@ -29,8 +30,6 @@
|
|
29
30
|
flex: 1;
|
30
31
|
overflow: auto;
|
31
32
|
padding: 0 32px;
|
32
|
-
// 为 voucher-section 预留空间
|
33
|
-
padding-bottom: 120px;
|
34
33
|
|
35
34
|
.pisell-lowcode__booking-tab-pane-label {
|
36
35
|
font-size: 16px;
|
@@ -46,79 +45,6 @@
|
|
46
45
|
}
|
47
46
|
}
|
48
47
|
|
49
|
-
// Voucher 和功能按钮区域
|
50
|
-
.pisell-lowcode__booking-tab-pane-voucher-section {
|
51
|
-
display: flex;
|
52
|
-
flex-direction: column;
|
53
|
-
padding: 10px;
|
54
|
-
position: relative;
|
55
|
-
z-index: 3;
|
56
|
-
background-color: #1b1b1b;
|
57
|
-
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
|
58
|
-
|
59
|
-
.pisell-lowcode__booking-footer-voucher-container {
|
60
|
-
background: var(--base-white, #FFF);
|
61
|
-
padding: 4px;
|
62
|
-
border-radius: 8px;
|
63
|
-
}
|
64
|
-
|
65
|
-
// ActionButtons 在 voucher-section 中的样式
|
66
|
-
.pisell-lowcode__action-buttons {
|
67
|
-
margin-top: 8px;
|
68
|
-
// 确保按钮可见
|
69
|
-
.action-button {
|
70
|
-
// 重要:确保文字颜色在深色背景下可见
|
71
|
-
color: white !important;
|
72
|
-
|
73
|
-
&:hover:not(:disabled) {
|
74
|
-
color: white !important;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
// 订单备注区域
|
81
|
-
.pisell-lowcode__booking-tab-pane-notes-section {
|
82
|
-
background-color: #1b1b1b;
|
83
|
-
position: relative;
|
84
|
-
z-index: 3;
|
85
|
-
|
86
|
-
.pisell-lowcode__booking-notes {
|
87
|
-
background: var(--base-white, #FFF);
|
88
|
-
padding: 12px;
|
89
|
-
width: 100%;
|
90
|
-
|
91
|
-
.pisell-lowcode__booking-notes-label {
|
92
|
-
font-weight: 500;
|
93
|
-
color: #333;
|
94
|
-
margin-bottom: 8px;
|
95
|
-
}
|
96
|
-
|
97
|
-
.pisell-lowcode__booking-notes-input {
|
98
|
-
.pisell-lowcode-input {
|
99
|
-
height: 44px !important;
|
100
|
-
min-height: 44px !important;
|
101
|
-
border-radius: 6px;
|
102
|
-
font-size: 16px;
|
103
|
-
line-height: 36px;
|
104
|
-
}
|
105
|
-
|
106
|
-
// 备用选择器,以防万一
|
107
|
-
textarea.pisell-lowcode-input {
|
108
|
-
height: 44px !important;
|
109
|
-
min-height: 44px !important;
|
110
|
-
border-radius: 6px;
|
111
|
-
resize: none;
|
112
|
-
}
|
113
|
-
|
114
|
-
// 去掉外层包装容器的边框
|
115
|
-
.pisell-lowcode-input-textarea-affix-wrapper {
|
116
|
-
border-width: 1px;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
121
|
-
|
122
48
|
.pisell-lowcode__booking-tab-pane-footer {
|
123
49
|
position: sticky;
|
124
50
|
bottom: 0;
|
@@ -28,7 +28,6 @@ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
|
|
28
28
|
import "./index.less";
|
29
29
|
import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
|
30
30
|
import { getServiceAddons } from "./utils";
|
31
|
-
import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
|
32
31
|
var ShopDiscountHooks = {
|
33
32
|
onInited: 'shopDiscount:onInited',
|
34
33
|
onDestroy: 'shopDiscount:onDestroy',
|
@@ -45,10 +44,8 @@ var VoucherCard = function VoucherCard(props) {
|
|
45
44
|
var context = useEngineContext();
|
46
45
|
var state = props.state,
|
47
46
|
dispatch = props.dispatch,
|
48
|
-
source = props.source
|
49
|
-
|
50
|
-
isInModal = _props$isInModal === void 0 ? false : _props$isInModal;
|
51
|
-
var _useState = useState(isInModal ? true : false),
|
47
|
+
source = props.source;
|
48
|
+
var _useState = useState(false),
|
52
49
|
_useState2 = _slicedToArray(_useState, 2),
|
53
50
|
showDetail = _useState2[0],
|
54
51
|
setShowDetail = _useState2[1];
|
@@ -68,21 +65,6 @@ var VoucherCard = function VoucherCard(props) {
|
|
68
65
|
var shopDiscount = pisellos.getModule('shopDiscount');
|
69
66
|
services = state.service;
|
70
67
|
|
71
|
-
// 将选中的客户数据传递给状态管理
|
72
|
-
var changeCustomerToGlobalState = useMemoizedFn(function (value) {
|
73
|
-
dispatch({
|
74
|
-
type: 'setClient',
|
75
|
-
payload: {
|
76
|
-
value: value,
|
77
|
-
edit: true
|
78
|
-
}
|
79
|
-
});
|
80
|
-
});
|
81
|
-
var _useCustomer = useCustomer({
|
82
|
-
changeCustomerToGlobalState: changeCustomerToGlobalState
|
83
|
-
}),
|
84
|
-
selectCustomer = _useCustomer.selectCustomer;
|
85
|
-
|
86
68
|
// 设置client
|
87
69
|
useDebounceEffect(function () {
|
88
70
|
if (isBooking4Shop) {
|
@@ -108,8 +90,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
108
90
|
price: value.price,
|
109
91
|
total: value === null || value === void 0 || (_value$_extend = value._extend) === null || _value$_extend === void 0 ? void 0 : _value$_extend.total,
|
110
92
|
discount_list: value.discount_list,
|
111
|
-
origin_total: value === null || value === void 0 || (_value$_extend2 = value._extend) === null || _value$_extend2 === void 0 ? void 0 : _value$_extend2.origin_total
|
112
|
-
quantity: value._extend.quantity
|
93
|
+
origin_total: value === null || value === void 0 || (_value$_extend2 = value._extend) === null || _value$_extend2 === void 0 ? void 0 : _value$_extend2.origin_total
|
113
94
|
};
|
114
95
|
});
|
115
96
|
return val;
|
@@ -175,7 +156,13 @@ var VoucherCard = function VoucherCard(props) {
|
|
175
156
|
useEffect(function () {
|
176
157
|
if (!isBooking4Shop) return;
|
177
158
|
var onScanCustomerChange = function onScanCustomerChange(customer) {
|
178
|
-
|
159
|
+
// 更新客户
|
160
|
+
dispatch({
|
161
|
+
type: 'setClient',
|
162
|
+
payload: {
|
163
|
+
value: customer
|
164
|
+
}
|
165
|
+
});
|
179
166
|
};
|
180
167
|
var onDiscountListChange = function onDiscountListChange(discount) {
|
181
168
|
setDisCountList(discount);
|
@@ -270,7 +257,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
270
257
|
className: "voucher-title"
|
271
258
|
}, /*#__PURE__*/React.createElement("span", {
|
272
259
|
className: "voucher-title-left"
|
273
|
-
}, locales.getText('pisell2.text.goodpass')),
|
260
|
+
}, locales.getText('pisell2.text.goodpass')), /*#__PURE__*/React.createElement("span", {
|
274
261
|
className: "voucher-title-right",
|
275
262
|
onClick: function onClick() {
|
276
263
|
console.log('showDetail: ', showDetail);
|
@@ -282,13 +269,12 @@ var VoucherCard = function VoucherCard(props) {
|
|
282
269
|
})
|
283
270
|
}))), /*#__PURE__*/React.createElement("div", {
|
284
271
|
className: classNames('voucher-detail', {
|
285
|
-
show: showDetail
|
272
|
+
show: showDetail
|
286
273
|
})
|
287
274
|
}, (availableData === null || availableData === void 0 ? void 0 : availableData.length) > 0 ? /*#__PURE__*/React.createElement(PisellGoodPassCard, {
|
288
275
|
style: {
|
289
276
|
width: '100%'
|
290
277
|
},
|
291
|
-
isInModal: isInModal || false,
|
292
278
|
dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
|
293
279
|
mixedSort: mixedSort,
|
294
280
|
onChange: function onChange(val) {
|
@@ -16,5 +16,5 @@ export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivEleme
|
|
16
16
|
departed: string | number;
|
17
17
|
}, dataList: string[]) => void;
|
18
18
|
}
|
19
|
-
declare const BookingDashboard:
|
19
|
+
declare const BookingDashboard: (props: BookingDashboardProps) => JSX.Element;
|
20
20
|
export default BookingDashboard;
|
@@ -21,7 +21,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
23
23
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
24
|
-
import React, {
|
24
|
+
import React, { useEffect, useState } from 'react';
|
25
25
|
import { PisellStatisticList } from '@pisell/materials';
|
26
26
|
import { isArr, locales } from '@pisell/utils';
|
27
27
|
import dayjs from 'dayjs';
|
@@ -52,7 +52,7 @@ var formatCapacityToChildrenData = function formatCapacityToChildrenData(data) {
|
|
52
52
|
});
|
53
53
|
};
|
54
54
|
locales.init(localeTexts, getLocale());
|
55
|
-
var BookingDashboard =
|
55
|
+
var BookingDashboard = function BookingDashboard(props) {
|
56
56
|
var _props$otherParams = props.otherParams,
|
57
57
|
otherParams = _props$otherParams === void 0 ? {} : _props$otherParams,
|
58
58
|
backgroundColors = props.backgroundColors,
|
@@ -292,18 +292,11 @@ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
292
292
|
clearInterval(timer);
|
293
293
|
};
|
294
294
|
}, [JSON.stringify(otherParams), refreshKey]);
|
295
|
-
useImperativeHandle(ref, function () {
|
296
|
-
return {
|
297
|
-
refresh: function refresh() {
|
298
|
-
getData();
|
299
|
-
}
|
300
|
-
};
|
301
|
-
});
|
302
295
|
return /*#__PURE__*/React.createElement(PisellStatisticList, _extends({}, others, {
|
303
296
|
data: data,
|
304
297
|
backgroundColors: backgroundColors,
|
305
298
|
labelColor: labelColor,
|
306
299
|
valueColor: valueColor
|
307
300
|
}));
|
308
|
-
}
|
301
|
+
};
|
309
302
|
export default BookingDashboard;
|
@@ -168,7 +168,7 @@ var Forms = Provider(function (props) {
|
|
168
168
|
return /*#__PURE__*/React.createElement("div", {
|
169
169
|
className: "pisell-lowcode__booking-field-wrap",
|
170
170
|
style: {
|
171
|
-
padding: hideTitle ? 0 : '0'
|
171
|
+
padding: hideTitle ? 0 : '12px 0 0'
|
172
172
|
},
|
173
173
|
key: d.form_id
|
174
174
|
}, hideTitle ? null : /*#__PURE__*/React.createElement("div", {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
function _typeof(
|
2
|
-
function ownKeys(
|
3
|
-
function _objectSpread(
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
-
function _toPropertyKey(
|
6
|
-
function _toPrimitive(
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
7
7
|
import { miniRedux } from "@pisell/utils";
|
8
8
|
var defaultState = {};
|
9
9
|
var _miniRedux = miniRedux({
|
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
16
16
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
17
17
|
import { getProductTotalPrice } from "../utils";
|
18
|
-
import useEngineContext from "
|
18
|
+
import useEngineContext from "../../../hooks/useEngineContext";
|
19
19
|
import { locales } from "@pisell/utils";
|
20
20
|
import { PisellModal } from "@pisell/materials";
|
21
21
|
import { getProductPrice } from "../info/service/serve";
|
@@ -139,7 +139,7 @@ var useQuotation = function useQuotation(state, dispatch) {
|
|
139
139
|
cartValueRef.current = state.service.value;
|
140
140
|
var getCartQuotation = /*#__PURE__*/function () {
|
141
141
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
142
|
-
var
|
142
|
+
var data;
|
143
143
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
144
144
|
while (1) switch (_context.prev = _context.next) {
|
145
145
|
case 0:
|
@@ -149,28 +149,18 @@ var useQuotation = function useQuotation(state, dispatch) {
|
|
149
149
|
}
|
150
150
|
return _context.abrupt("return");
|
151
151
|
case 2:
|
152
|
-
|
153
|
-
return !item.isCustomItem;
|
154
|
-
}) // 过滤掉自定义商品
|
155
|
-
.map(function (item) {
|
156
|
-
return item.product_id;
|
157
|
-
});
|
158
|
-
if (ids.length) {
|
159
|
-
_context.next = 5;
|
160
|
-
break;
|
161
|
-
}
|
162
|
-
return _context.abrupt("return");
|
163
|
-
case 5:
|
164
|
-
_context.next = 7;
|
152
|
+
_context.next = 4;
|
165
153
|
return getProductPrice({
|
166
|
-
ids:
|
154
|
+
ids: cartValueRef.current.map(function (item) {
|
155
|
+
return item.product_id;
|
156
|
+
}),
|
167
157
|
schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date,
|
168
158
|
customer_id: params === null || params === void 0 ? void 0 : params.customer_id
|
169
159
|
});
|
170
|
-
case
|
160
|
+
case 4:
|
171
161
|
data = _context.sent;
|
172
162
|
return _context.abrupt("return", data);
|
173
|
-
case
|
163
|
+
case 6:
|
174
164
|
case "end":
|
175
165
|
return _context.stop();
|
176
166
|
}
|
@@ -5,6 +5,5 @@ declare const useInfoHolder: (state: any, dispatch: any) => {
|
|
5
5
|
dispatchService: (type: string, payload: any) => void;
|
6
6
|
handleAction: (dataSource: any) => void;
|
7
7
|
showAddTimeModal: boolean;
|
8
|
-
editNormalServiceRef: import("react").MutableRefObject<any>;
|
9
8
|
};
|
10
9
|
export default useInfoHolder;
|
@@ -10,11 +10,9 @@ import useHolderConfig from "./useHolderConfig";
|
|
10
10
|
import { isOpenAddTime } from "../utils";
|
11
11
|
import useGetHolderList from "./useGetHolderList";
|
12
12
|
import { getProductExtend } from "../../info2/service/addService/utils";
|
13
|
-
import { getIsNoSpecAndPackage } from "../../info2/utilsByBooking";
|
14
13
|
var useInfoHolder = function useInfoHolder(state, dispatch) {
|
15
14
|
var _state$client, _state$bookingConfig2;
|
16
15
|
var detailRef = useRef();
|
17
|
-
var editNormalServiceRef = useRef(null);
|
18
16
|
var _useHolderConfig = useHolderConfig(state),
|
19
17
|
holder = _useHolderConfig.holder,
|
20
18
|
isFormSubject = _useHolderConfig.isFormSubject,
|
@@ -32,17 +30,19 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
|
|
32
30
|
};
|
33
31
|
}, [state === null || state === void 0 || (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.config) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.information_tab]);
|
34
32
|
var showAddTimeModal = useMemo(function () {
|
35
|
-
return isOpenAddTime(state);
|
33
|
+
return isOpenAddTime(state) && !state.isBookingTicket2;
|
36
34
|
}, [state, appointment_card.quick_time]);
|
37
35
|
var handleEdit = useMemoizedFn(function (cacheItem, type) {
|
38
|
-
var
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
var _detailRef$current, _detailRef$current$in;
|
37
|
+
// console.timeEnd('handleChange');
|
38
|
+
console.time('handleEdit');
|
39
|
+
console.log(performance.now() - window.pp1, '打开商品4');
|
40
|
+
(_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
|
41
|
+
// setTimeout(() => {
|
42
|
+
// console.log(performance.now() - window.pp1, '打开商品5');
|
43
|
+
// console.timeEnd('handleEdit')
|
44
|
+
// detailRef.current?.init?.(cacheItem, false, type === 'edit_product');
|
45
|
+
// }, );
|
46
46
|
});
|
47
47
|
var dispatchService = function dispatchService(type, payload) {
|
48
48
|
dispatch({
|
@@ -70,8 +70,7 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
|
|
70
70
|
handleEdit: handleEdit,
|
71
71
|
dispatchService: dispatchService,
|
72
72
|
handleAction: handleAction,
|
73
|
-
showAddTimeModal: showAddTimeModal
|
74
|
-
editNormalServiceRef: editNormalServiceRef
|
73
|
+
showAddTimeModal: showAddTimeModal
|
75
74
|
};
|
76
75
|
};
|
77
76
|
export default useInfoHolder;
|
@@ -4,22 +4,6 @@
|
|
4
4
|
.booking-info {
|
5
5
|
padding-bottom: 16px;
|
6
6
|
|
7
|
-
.booking-info-client-line {
|
8
|
-
display: flex;
|
9
|
-
flex-direction: row;
|
10
|
-
gap: 10px;
|
11
|
-
|
12
|
-
.booking-info-client-line-code {
|
13
|
-
display: flex;
|
14
|
-
align-items: center;
|
15
|
-
justify-content: center;
|
16
|
-
width: 64px;
|
17
|
-
height: 64px;
|
18
|
-
border-radius: 8px;
|
19
|
-
background: #5d3f9f;
|
20
|
-
cursor: pointer;
|
21
|
-
}
|
22
|
-
}
|
23
7
|
}
|
24
8
|
|
25
9
|
// &::before {
|
@@ -38,11 +22,11 @@
|
|
38
22
|
}
|
39
23
|
}
|
40
24
|
.create-booking-page-info-wrap-create {
|
41
|
-
background: var(--Success-50, #
|
25
|
+
background: var(--Success-50, #ECFDF3);
|
42
26
|
}
|
43
27
|
.create-booking-page-info-wrap {
|
44
28
|
position: initial !important;
|
45
|
-
padding: 0
|
29
|
+
padding: 0 16px !important;
|
46
30
|
.booking-info-create-new {
|
47
31
|
margin-top: 10px;
|
48
32
|
color: var(--Base-Black, #000);
|
@@ -50,4 +34,4 @@
|
|
50
34
|
font-weight: 600;
|
51
35
|
line-height: 32px;
|
52
36
|
}
|
53
|
-
}
|
37
|
+
}
|
@@ -9,6 +9,7 @@ import React, { useContext, useEffect, useMemo } from 'react';
|
|
9
9
|
import Footer from "../components/footer";
|
10
10
|
import TabPane from "../components/tabPane";
|
11
11
|
import localeTexts from "../locales";
|
12
|
+
import AddNote from "../notes/addNote";
|
12
13
|
import Client from "./client";
|
13
14
|
import DateCom from "./date";
|
14
15
|
import Header from "./header";
|
@@ -36,7 +37,7 @@ var defaultModules = {
|
|
36
37
|
};
|
37
38
|
locales.init(localeTexts, getLocale());
|
38
39
|
var Info = Provider(function (props) {
|
39
|
-
var _modal$state2, _modal$
|
40
|
+
var _modal$state2, _modal$state5, _context$appHelper4, _modal$state6;
|
40
41
|
var style = props.style,
|
41
42
|
globalState = props.globalState,
|
42
43
|
_props$modules = props.modules,
|
@@ -108,6 +109,7 @@ var Info = Provider(function (props) {
|
|
108
109
|
});
|
109
110
|
}, [globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, modal.state, modal.dispatch, globalState === null || globalState === void 0 ? void 0 : globalState.renderType]);
|
110
111
|
var notes = useMemo(function () {
|
112
|
+
var _modal$state4;
|
111
113
|
if (!modules.note) {
|
112
114
|
return null;
|
113
115
|
}
|
@@ -117,15 +119,17 @@ var Info = Provider(function (props) {
|
|
117
119
|
|
118
120
|
// 跨日预约一直显示备注
|
119
121
|
if (isDayBooking(globalState)) {
|
120
|
-
|
121
|
-
|
122
|
-
null
|
123
|
-
|
122
|
+
var _modal$state3;
|
123
|
+
return /*#__PURE__*/React.createElement(AddNote, {
|
124
|
+
value: (_modal$state3 = modal.state) === null || _modal$state3 === void 0 || (_modal$state3 = _modal$state3.notes) === null || _modal$state3 === void 0 ? void 0 : _modal$state3.orderNote,
|
125
|
+
onChange: addNote
|
126
|
+
});
|
124
127
|
}
|
125
|
-
return globalState !== null && globalState !== void 0 && globalState.bookingId ? globalState.renderType === 'eventBooking' || globalState.isBookingCreatePage ? /*#__PURE__*/React.createElement(Notes, null) : null :
|
126
|
-
|
127
|
-
|
128
|
-
|
128
|
+
return globalState !== null && globalState !== void 0 && globalState.bookingId ? globalState.renderType === 'eventBooking' || globalState.isBookingCreatePage ? /*#__PURE__*/React.createElement(Notes, null) : null : /*#__PURE__*/React.createElement(AddNote, {
|
129
|
+
value: (_modal$state4 = modal.state) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.notes) === null || _modal$state4 === void 0 ? void 0 : _modal$state4.orderNote,
|
130
|
+
onChange: addNote
|
131
|
+
});
|
132
|
+
}, [modules.note, globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, globalState.render, (_modal$state5 = modal.state) === null || _modal$state5 === void 0 || (_modal$state5 = _modal$state5.notes) === null || _modal$state5 === void 0 ? void 0 : _modal$state5.orderNote]);
|
129
133
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, {
|
130
134
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
131
135
|
height: context !== null && context !== void 0 && (_context$appHelper4 = context.appHelper) !== null && _context$appHelper4 !== void 0 && (_context$appHelper4 = _context$appHelper4.utils) !== null && _context$appHelper4 !== void 0 && _context$appHelper4.isMobile ? '100%' : '100vh'
|
@@ -136,13 +140,10 @@ var Info = Provider(function (props) {
|
|
136
140
|
dispatch: modal.dispatch,
|
137
141
|
source: "info"
|
138
142
|
}),
|
139
|
-
bodyClassName: classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode && !isTerminalDayBooking(modal.state)))
|
140
|
-
state: modal.state,
|
141
|
-
dispatch: modal.dispatch,
|
142
|
-
source: "info"
|
143
|
+
bodyClassName: classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode && !isTerminalDayBooking(modal.state)))
|
143
144
|
}, /*#__PURE__*/React.createElement("div", {
|
144
145
|
className: "booking-info"
|
145
|
-
}, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$
|
146
|
+
}, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state6 = modal.state) !== null && _modal$state6 !== void 0 && _modal$state6.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
|
146
147
|
loading: globalState.loading,
|
147
148
|
round: true,
|
148
149
|
active: true,
|
@@ -81,7 +81,6 @@ var Lists = function Lists(_ref) {
|
|
81
81
|
* @Date: 2024-12-09 16:07
|
82
82
|
*/
|
83
83
|
var productParams = useMemo(function () {
|
84
|
-
var _state$bookingConfig;
|
85
84
|
return {
|
86
85
|
hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
|
87
86
|
isShowNote: isEventBooking(state),
|
@@ -93,10 +92,9 @@ var Lists = function Lists(_ref) {
|
|
93
92
|
isShowChangeHolder: isShowChangeHolder,
|
94
93
|
isShowChangeResource: true,
|
95
94
|
isShowAddHolderButton: true,
|
96
|
-
isShowEditProduct: !state.isBookingCreatePage
|
97
|
-
productCardStyleConfig: (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.cart_settings_tab
|
95
|
+
isShowEditProduct: !state.isBookingCreatePage
|
98
96
|
};
|
99
|
-
}, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage
|
97
|
+
}, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage]);
|
100
98
|
var products = useMemo(function () {
|
101
99
|
var _state$service;
|
102
100
|
console.time('products');
|
@@ -111,7 +109,6 @@ var Lists = function Lists(_ref) {
|
|
111
109
|
state: state
|
112
110
|
}
|
113
111
|
}, /*#__PURE__*/React.createElement(ShoppingCart, {
|
114
|
-
scenario: state.isBookingTicket2 ? 'booking2' : undefined,
|
115
112
|
isParallelResource: isParallelResource,
|
116
113
|
onAction: onAction,
|
117
114
|
onChange: handleChange,
|