@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
@@ -508,7 +508,6 @@ export var CartProvider = function CartProvider(_ref) {
|
|
508
508
|
var productId = (_item$_originData = item._originData) === null || _item$_originData === void 0 || (_item$_originData = _item$_originData.product) === null || _item$_originData === void 0 ? void 0 : _item$_originData.product_id;
|
509
509
|
var relationId = (_item$_originData2 = item._originData) === null || _item$_originData2 === void 0 ? void 0 : _item$_originData2.relation_id;
|
510
510
|
var eventUniqueIdentifier = (_item$_originData3 = item._originData) === null || _item$_originData3 === void 0 ? void 0 : _item$_originData3.event_unique_identifier;
|
511
|
-
debugger;
|
512
511
|
// 根据检测项过滤检测结果
|
513
512
|
return list.find(function (res) {
|
514
513
|
var _res$details;
|
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
30
30
|
* @return {*}
|
31
31
|
* @Author: xiangfeng.xue
|
32
32
|
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00"
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -552,10 +552,7 @@ var Addons = Provider(function (props) {
|
|
552
552
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TabPane, {
|
553
553
|
loading: loading,
|
554
554
|
header: locales.getText('pisell2.text.addons'),
|
555
|
-
footer: footer
|
556
|
-
state: state,
|
557
|
-
dispatch: dispatch,
|
558
|
-
source: "addons"
|
555
|
+
footer: footer
|
559
556
|
}, !state.bookingId ? /*#__PURE__*/React.createElement(EmptyBooking, null) : /*#__PURE__*/React.createElement(React.Fragment, null, state.addons.value.length ? /*#__PURE__*/React.createElement("div", {
|
560
557
|
className: "",
|
561
558
|
style: {
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
5
|
-
function _iterableToArrayLimit(
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
7
|
import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
|
8
8
|
import classNames from "classnames";
|
@@ -13,10 +13,6 @@ import "./index.less";
|
|
13
13
|
|
14
14
|
// tabs 子组件定义
|
15
15
|
|
16
|
-
// 定义主键类型
|
17
|
-
|
18
|
-
// Tabs 可传递的参数
|
19
|
-
|
20
16
|
var Tabs = function Tabs(_ref, ref) {
|
21
17
|
var renderTab = _ref.renderTab,
|
22
18
|
rowKey = _ref.rowKey,
|
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
|
|
29
29
|
onChange: function onChange(e) {
|
30
30
|
var _resetProps$onChange;
|
31
31
|
e.persist();
|
32
|
-
(_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0
|
32
|
+
(_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
|
33
33
|
}
|
34
34
|
}), _options);
|
35
35
|
};
|
@@ -18,7 +18,7 @@ export var getRelationDetailsTotal = function getRelationDetailsTotal(relation_d
|
|
18
18
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
19
19
|
var item = _step.value;
|
20
20
|
var number = item.product_quantity || item.num;
|
21
|
-
var price = item.
|
21
|
+
var price = item.payment_price || item.price;
|
22
22
|
total += Number(price) * Number(number);
|
23
23
|
}
|
24
24
|
} catch (err) {
|
@@ -286,8 +286,7 @@ var getTotalRefundAmount = function getTotalRefundAmount(state) {
|
|
286
286
|
};
|
287
287
|
var getShopDiscount = function getShopDiscount(state) {
|
288
288
|
var _state$bookingDetail8;
|
289
|
-
|
290
|
-
return Number(state.shop_discount) || Number((_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.shop_discount) || 0;
|
289
|
+
return Number((_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.shop_discount) || 0;
|
291
290
|
};
|
292
291
|
var getRoundingAmount = function getRoundingAmount(state) {
|
293
292
|
var _state$bookingDetail9;
|
@@ -344,16 +343,6 @@ export var getSumTotal = function getSumTotal(state, isEdit) {
|
|
344
343
|
isEdit: isEdit
|
345
344
|
});
|
346
345
|
|
347
|
-
// 订单原价(不包含整单折扣的价格)
|
348
|
-
var originExpectAmount = getExpectAmount({
|
349
|
-
price: price,
|
350
|
-
tax: tax,
|
351
|
-
shopDiscount: 0,
|
352
|
-
otherAmount: otherAmount,
|
353
|
-
state: state,
|
354
|
-
isEdit: isEdit
|
355
|
-
});
|
356
|
-
|
357
346
|
// 总支付金额 总计
|
358
347
|
var sumTotalAmount = getSumTotalAmount({
|
359
348
|
expectAmount: expectAmount,
|
@@ -384,7 +373,6 @@ export var getSumTotal = function getSumTotal(state, isEdit) {
|
|
384
373
|
orderPaidAmount: orderPaidAmount,
|
385
374
|
totalRefundAmount: totalRefundAmount,
|
386
375
|
dueAmount: dueAmount,
|
387
|
-
roundingAmount: roundingAmount
|
388
|
-
originExpectAmount: originExpectAmount
|
376
|
+
roundingAmount: roundingAmount
|
389
377
|
};
|
390
378
|
};
|
@@ -33,12 +33,11 @@ import { getSumTotal, is_price_include_tax } from "./amount";
|
|
33
33
|
import "./index.less";
|
34
34
|
import { createEventBooking, editEventBooking } from "./serve";
|
35
35
|
import { checkHolderIsError, formatValues } from "./utils";
|
36
|
-
import
|
36
|
+
import VoucherCard from "../voucher";
|
37
37
|
import { SubTotal } from "../../../../index";
|
38
38
|
import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
|
39
39
|
import { sendWarningLog } from '@pisell/utils';
|
40
40
|
import dayjs from 'dayjs';
|
41
|
-
import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
|
42
41
|
/**
|
43
42
|
* @title: 底部
|
44
43
|
* @description:
|
@@ -48,7 +47,7 @@ import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager
|
|
48
47
|
* @Date: 2024-01-30 16:51
|
49
48
|
*/
|
50
49
|
var Footer = function Footer(props) {
|
51
|
-
var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _state$bookingDetail8, _state$addons4, _state$bookingDetail16, _state$bookingDetail17
|
50
|
+
var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _businessUtils$getApp, _businessUtils$getApp2, _state$bookingDetail8, _state$addons4, _state$bookingDetail16, _state$bookingDetail17;
|
52
51
|
var state = props.state,
|
53
52
|
buttons = props.buttons,
|
54
53
|
dispatch = props.dispatch,
|
@@ -68,20 +67,13 @@ var Footer = function Footer(props) {
|
|
68
67
|
_useState6 = _slicedToArray(_useState5, 2),
|
69
68
|
checkoutLoading = _useState6[0],
|
70
69
|
setCheckoutLoading = _useState6[1];
|
71
|
-
// note modal state
|
72
70
|
var _useState7 = useState(false),
|
73
71
|
_useState8 = _slicedToArray(_useState7, 2),
|
74
|
-
|
75
|
-
|
76
|
-
var _useState9 = useState(false),
|
77
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
78
|
-
isShowPaymentLink = _useState10[0],
|
79
|
-
setIsShowPaymentLink = _useState10[1];
|
72
|
+
isShowPaymentLink = _useState8[0],
|
73
|
+
setIsShowPaymentLink = _useState8[1];
|
80
74
|
var isBooking4Shop = useIsBooking4Shop(state);
|
81
75
|
var appointmentProductRef = useRef(null);
|
82
76
|
var context = useEngineContext();
|
83
|
-
var _useScanManager = useScanManager(),
|
84
|
-
disableAllScanListeners = _useScanManager.disableAllScanListeners;
|
85
77
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
86
78
|
isTerminal = _context$appHelper$ut.isTerminal,
|
87
79
|
interaction = _context$appHelper$ut.interaction,
|
@@ -245,9 +237,11 @@ var Footer = function Footer(props) {
|
|
245
237
|
|
246
238
|
return false;
|
247
239
|
}, [state, params]);
|
248
|
-
|
249
|
-
|
250
|
-
|
240
|
+
|
241
|
+
// 是否安装商品券应用
|
242
|
+
var hasGoodPassApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp = businessUtils.getAppByModal) !== null && _businessUtils$getApp !== void 0 && _businessUtils$getApp.call(businessUtils, 'goodpass'));
|
243
|
+
var hasDiscountCardApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp2 = businessUtils.getAppByModal) !== null && _businessUtils$getApp2 !== void 0 && _businessUtils$getApp2.call(businessUtils, 'discountcard'));
|
244
|
+
console.log('has goodpass app:', hasGoodPassApp);
|
251
245
|
|
252
246
|
/**
|
253
247
|
* @title: 跳转到 checkout页面
|
@@ -258,7 +252,7 @@ var Footer = function Footer(props) {
|
|
258
252
|
* @Date: 2024-01-30 16:53
|
259
253
|
*/
|
260
254
|
var goCheckout = /*#__PURE__*/function () {
|
261
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(order_id
|
255
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(order_id) {
|
262
256
|
var _interaction$utils, _interaction$utils$po;
|
263
257
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
264
258
|
while (1) switch (_context.prev = _context.next) {
|
@@ -270,21 +264,18 @@ var Footer = function Footer(props) {
|
|
270
264
|
return _context.abrupt("return");
|
271
265
|
case 2:
|
272
266
|
if (!(isTerminal !== null && isTerminal !== void 0 && isTerminal())) {
|
273
|
-
_context.next =
|
267
|
+
_context.next = 4;
|
274
268
|
break;
|
275
269
|
}
|
276
|
-
disableAllScanListeners();
|
277
270
|
return _context.abrupt("return", interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
|
278
271
|
module: 'booking',
|
279
272
|
key: 'booking_checkout',
|
280
273
|
data: {
|
281
274
|
order_id: order_id,
|
282
|
-
callbackType: 'pisell2'
|
283
|
-
// 是新创建订单传递newOrder terminal内会执行弃单逻辑 编辑订单时不走弃单逻辑
|
284
|
-
newOrder: isNewOrder
|
275
|
+
callbackType: 'pisell2'
|
285
276
|
}
|
286
277
|
}));
|
287
|
-
case
|
278
|
+
case 4:
|
288
279
|
state.action({
|
289
280
|
type: 'pisell1.handlePayment',
|
290
281
|
data: {
|
@@ -294,13 +285,13 @@ var Footer = function Footer(props) {
|
|
294
285
|
state === null || state === void 0 || state.callback();
|
295
286
|
}
|
296
287
|
});
|
297
|
-
case
|
288
|
+
case 5:
|
298
289
|
case "end":
|
299
290
|
return _context.stop();
|
300
291
|
}
|
301
292
|
}, _callee);
|
302
293
|
}));
|
303
|
-
return function goCheckout(_x
|
294
|
+
return function goCheckout(_x) {
|
304
295
|
return _ref.apply(this, arguments);
|
305
296
|
};
|
306
297
|
}();
|
@@ -314,38 +305,37 @@ var Footer = function Footer(props) {
|
|
314
305
|
*/
|
315
306
|
var handleCheckout = /*#__PURE__*/function () {
|
316
307
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
317
|
-
var
|
308
|
+
var isHasDayProducts, res;
|
318
309
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
319
310
|
while (1) switch (_context2.prev = _context2.next) {
|
320
311
|
case 0:
|
321
|
-
isNewOrder = !state.bookingId; // 如果有编辑内容, 则先保存
|
322
312
|
if (!isEdit) {
|
323
|
-
_context2.next =
|
313
|
+
_context2.next = 10;
|
324
314
|
break;
|
325
315
|
}
|
326
316
|
if (!isDayBooking(state)) {
|
327
|
-
_context2.next =
|
317
|
+
_context2.next = 5;
|
328
318
|
break;
|
329
319
|
}
|
330
320
|
isHasDayProducts = handleDaySubmit();
|
331
321
|
if (!isHasDayProducts) {
|
332
|
-
_context2.next =
|
322
|
+
_context2.next = 5;
|
333
323
|
break;
|
334
324
|
}
|
335
325
|
return _context2.abrupt("return");
|
336
|
-
case
|
337
|
-
_context2.next =
|
326
|
+
case 5:
|
327
|
+
_context2.next = 7;
|
338
328
|
return handleSave({
|
339
329
|
type: 'checkout',
|
340
330
|
messageShow: !(isTerminal !== null && isTerminal !== void 0 && isTerminal())
|
341
331
|
});
|
342
|
-
case
|
332
|
+
case 7:
|
343
333
|
res = _context2.sent;
|
344
|
-
goCheckout((res === null || res === void 0 ? void 0 : res.order_id) || state.bookingId
|
334
|
+
goCheckout((res === null || res === void 0 ? void 0 : res.order_id) || state.bookingId);
|
345
335
|
return _context2.abrupt("return");
|
336
|
+
case 10:
|
337
|
+
return _context2.abrupt("return", goCheckout(state.bookingId));
|
346
338
|
case 11:
|
347
|
-
return _context2.abrupt("return", goCheckout(state.bookingId, isNewOrder));
|
348
|
-
case 12:
|
349
339
|
case "end":
|
350
340
|
return _context2.stop();
|
351
341
|
}
|
@@ -481,7 +471,7 @@ var Footer = function Footer(props) {
|
|
481
471
|
case 20:
|
482
472
|
_context4.prev = 20;
|
483
473
|
callbackData = null; // 格式化提交的参数
|
484
|
-
values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)
|
474
|
+
values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // 区分是新增还是编辑
|
485
475
|
api = state.bookingId ? editApi : createApi; // 增加日志记录
|
486
476
|
sendWarningLog({
|
487
477
|
title: 'saveBooking',
|
@@ -562,7 +552,7 @@ var Footer = function Footer(props) {
|
|
562
552
|
}
|
563
553
|
}, _callee4, null, [[20, 38]]);
|
564
554
|
}));
|
565
|
-
return function handleSave(
|
555
|
+
return function handleSave(_x2) {
|
566
556
|
return _ref5.apply(this, arguments);
|
567
557
|
};
|
568
558
|
}();
|
@@ -602,7 +592,7 @@ var Footer = function Footer(props) {
|
|
602
592
|
}
|
603
593
|
}, _callee5);
|
604
594
|
}));
|
605
|
-
return function onSelect(
|
595
|
+
return function onSelect(_x3) {
|
606
596
|
return _ref6.apply(this, arguments);
|
607
597
|
};
|
608
598
|
}();
|
@@ -677,7 +667,7 @@ var Footer = function Footer(props) {
|
|
677
667
|
onClick: function onClick() {
|
678
668
|
handleCheckout();
|
679
669
|
},
|
680
|
-
disabled: isDisabled
|
670
|
+
disabled: isDisabled
|
681
671
|
}, locales.getText('pisell2.text.checkout')));
|
682
672
|
}, [isEdit, checkoutLoading, isDisabled, state, source]);
|
683
673
|
var handleMenuClick = /*#__PURE__*/function () {
|
@@ -733,7 +723,7 @@ var Footer = function Footer(props) {
|
|
733
723
|
}
|
734
724
|
}, _callee6);
|
735
725
|
}));
|
736
|
-
return function handleMenuClick(
|
726
|
+
return function handleMenuClick(_x4) {
|
737
727
|
return _ref7.apply(this, arguments);
|
738
728
|
};
|
739
729
|
}();
|
@@ -839,38 +829,6 @@ var Footer = function Footer(props) {
|
|
839
829
|
loading: loading
|
840
830
|
}, locales.getText('pisell2.text.save')));
|
841
831
|
}, [loading, isDisabled, isEdit, infoEdit, addonsEdit, state]);
|
842
|
-
var handleNote = function handleNote() {
|
843
|
-
setNoteModalOpen(true);
|
844
|
-
};
|
845
|
-
|
846
|
-
// 备注弹窗确认回调
|
847
|
-
var handleNoteConfirm = function handleNoteConfirm(noteValue) {
|
848
|
-
dispatch({
|
849
|
-
type: 'setNotes',
|
850
|
-
payload: {
|
851
|
-
orderNote: noteValue,
|
852
|
-
edit: true
|
853
|
-
}
|
854
|
-
});
|
855
|
-
setNoteModalOpen(false);
|
856
|
-
};
|
857
|
-
|
858
|
-
// 备注弹窗删除回调
|
859
|
-
var handleNoteDelete = function handleNoteDelete() {
|
860
|
-
dispatch({
|
861
|
-
type: 'setNotes',
|
862
|
-
payload: {
|
863
|
-
orderNote: '',
|
864
|
-
edit: true
|
865
|
-
}
|
866
|
-
});
|
867
|
-
setNoteModalOpen(false);
|
868
|
-
};
|
869
|
-
|
870
|
-
// 备注弹窗取消回调
|
871
|
-
var handleNoteCancel = function handleNoteCancel() {
|
872
|
-
setNoteModalOpen(false);
|
873
|
-
};
|
874
832
|
|
875
833
|
/**
|
876
834
|
* @title: 完成按钮
|
@@ -946,19 +904,6 @@ var Footer = function Footer(props) {
|
|
946
904
|
// style={{ backgroundColor: '#f04438', color: '#fff' }}
|
947
905
|
}, locales.getText('pisell2.booking.info.text.clear-all')));
|
948
906
|
}, []);
|
949
|
-
var noteButton = useMemo(function () {
|
950
|
-
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
951
|
-
theme: {
|
952
|
-
token: {
|
953
|
-
colorPrimary: '#0d7fa9'
|
954
|
-
}
|
955
|
-
}
|
956
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
957
|
-
className: "pisell-lowcode__booking-footer-buttons-item",
|
958
|
-
type: "primary",
|
959
|
-
onClick: handleNote
|
960
|
-
}, locales.getText('pisell2.ticket-booking.note')));
|
961
|
-
}, []);
|
962
907
|
var buttonMap = {
|
963
908
|
checkout: checkoutButton,
|
964
909
|
save: saveButton,
|
@@ -966,8 +911,7 @@ var Footer = function Footer(props) {
|
|
966
911
|
refund: refundButton,
|
967
912
|
paymentLink: paymentLinkButton,
|
968
913
|
rebook: rebookButton,
|
969
|
-
clearAll: clearAllButton
|
970
|
-
note: noteButton
|
914
|
+
clearAll: clearAllButton
|
971
915
|
};
|
972
916
|
var isShowClearAll = useMemo(function () {
|
973
917
|
// 目前新建状态时展示清除全部按钮
|
@@ -1041,16 +985,12 @@ var Footer = function Footer(props) {
|
|
1041
985
|
// info
|
1042
986
|
if (source === 'info') {
|
1043
987
|
var _arr2 = [];
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
// }
|
988
|
+
if (isShowClearAll) {
|
989
|
+
_arr2.push(buttonMap.clearAll);
|
990
|
+
}
|
1048
991
|
// if (state.bookingId && isShowPaymentLink) {
|
1049
992
|
// arr.push(buttonMap.paymentLink);
|
1050
993
|
// }
|
1051
|
-
if (state.isBookingTicket2) {
|
1052
|
-
_arr2.push(buttonMap.note);
|
1053
|
-
}
|
1054
994
|
// 有未支付金额 展示checkout
|
1055
995
|
if (isCheckout) {
|
1056
996
|
// 有未支付金额 展示checkout
|
@@ -1314,24 +1254,16 @@ var Footer = function Footer(props) {
|
|
1314
1254
|
title: state === null || state === void 0 || (_state$bookingDetail15 = state.bookingDetail) === null || _state$bookingDetail15 === void 0 ? void 0 : _state$bookingDetail15.tax_title
|
1315
1255
|
}
|
1316
1256
|
},
|
1317
|
-
//
|
1257
|
+
// 订单折扣
|
1318
1258
|
{
|
1319
1259
|
hidden: !state.bookingId,
|
1320
1260
|
key: 'discount',
|
1321
1261
|
value: total.shopDiscount
|
1322
1262
|
},
|
1323
|
-
// 手动折扣
|
1324
|
-
{
|
1325
|
-
hidden: !state.shop_discount || !!state.bookingId,
|
1326
|
-
key: 'shop_discount',
|
1327
|
-
value: Number(state.shop_discount) || 0,
|
1328
|
-
label: locales.getText('pisell2.text.manual-price-adjustment')
|
1329
|
-
},
|
1330
1263
|
// 总计
|
1331
1264
|
{
|
1332
|
-
key: '
|
1333
|
-
value: total.expectAmount
|
1334
|
-
label: locales.getText('pisell2.subtotal.total')
|
1265
|
+
key: 'total',
|
1266
|
+
value: total.expectAmount
|
1335
1267
|
},
|
1336
1268
|
// 舍入金额
|
1337
1269
|
{
|
@@ -1377,7 +1309,11 @@ var Footer = function Footer(props) {
|
|
1377
1309
|
round: true,
|
1378
1310
|
loading: showFooter,
|
1379
1311
|
active: true
|
1380
|
-
}, /*#__PURE__*/React.createElement(
|
1312
|
+
}, (hasGoodPassApp || hasDiscountCardApp) && ['addons', 'info'].includes(source) && !paymentRefundedStatus ? /*#__PURE__*/React.createElement(VoucherCard, {
|
1313
|
+
state: state,
|
1314
|
+
dispatch: dispatch,
|
1315
|
+
source: source
|
1316
|
+
}) : null, /*#__PURE__*/React.createElement("div", {
|
1381
1317
|
className: "pisell-lowcode__booking-footer-total"
|
1382
1318
|
}, /*#__PURE__*/React.createElement("span", {
|
1383
1319
|
className: "pisell-lowcode__booking-footer-left"
|
@@ -1441,13 +1377,6 @@ var Footer = function Footer(props) {
|
|
1441
1377
|
className: "pisell-lowcode__booking-footer-buttons-item"
|
1442
1378
|
}, actionMap.orderDetail.label)) : null, contextHolder, /*#__PURE__*/React.createElement(AppointmentProductModal, {
|
1443
1379
|
ref: appointmentProductRef
|
1444
|
-
}), noteModalOpen && /*#__PURE__*/React.createElement(NoteModal, {
|
1445
|
-
open: noteModalOpen,
|
1446
|
-
title: locales.getText('pisell2.text.add-order-notes'),
|
1447
|
-
value: ((_state$notes2 = state.notes) === null || _state$notes2 === void 0 ? void 0 : _state$notes2.orderNote) || '',
|
1448
|
-
onConfirm: handleNoteConfirm,
|
1449
|
-
onDelete: handleNoteDelete,
|
1450
|
-
onCancel: handleNoteCancel
|
1451
1380
|
}));
|
1452
1381
|
};
|
1453
1382
|
export default Footer;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.pisell-lowcode__booking-footer-total {
|
2
2
|
width: 100%;
|
3
|
-
padding-bottom:
|
3
|
+
padding-bottom: 16px;
|
4
4
|
display: flex;
|
5
5
|
align-items: flex-start;
|
6
6
|
justify-content: space-between;
|
@@ -15,8 +15,7 @@
|
|
15
15
|
display: flex;
|
16
16
|
flex-direction: column;
|
17
17
|
|
18
|
-
.pisell-lowcode__booking-footer-left-total {
|
19
|
-
}
|
18
|
+
.pisell-lowcode__booking-footer-left-total {}
|
20
19
|
|
21
20
|
.pisell-lowcode__booking-footer-left-arrears {
|
22
21
|
font-size: 14px;
|
@@ -10,7 +10,7 @@ import { isWalkIn } from "../../utils";
|
|
10
10
|
import { getSumCapacity } from "../../info2/utilsByBooking";
|
11
11
|
import { getDays } from "../../utils";
|
12
12
|
import { appointmentTypes } from "../../info/service2/status";
|
13
|
-
import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule
|
13
|
+
import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule } from "../../info/service2/utils";
|
14
14
|
import { isArr, locales, sendWarningLog } from '@pisell/utils';
|
15
15
|
import { PisellToast } from "@pisell/materials";
|
16
16
|
var formatNote = function formatNote(data) {
|
@@ -125,7 +125,7 @@ var formatRelationDetails = function formatRelationDetails(list) {
|
|
125
125
|
return (list || []).map(function (item) {
|
126
126
|
return {
|
127
127
|
num: item.product_quantity,
|
128
|
-
price: item.
|
128
|
+
price: item.payment_price || 0,
|
129
129
|
product_id: item.product_id,
|
130
130
|
is_charge_tax: item.is_charge_tax,
|
131
131
|
order_detail_id: item.order_detail_id
|
@@ -311,7 +311,7 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
|
|
311
311
|
* @Date: 2024-12-07 14:21
|
312
312
|
*/
|
313
313
|
var formatProducts = function formatProducts(item, quantity) {
|
314
|
-
var _item$_extend15, _item$_extend16, _item$_extend17
|
314
|
+
var _item$_extend15, _item$_extend16, _item$_extend17;
|
315
315
|
var total = Number(item._extend.total);
|
316
316
|
var origin_total = Number(item._extend.origin_total);
|
317
317
|
var discount_amount = origin_total - total;
|
@@ -324,27 +324,23 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
324
324
|
var notManualDiscount = discount_list.filter(function (item) {
|
325
325
|
return item.type !== 'product';
|
326
326
|
});
|
327
|
-
if (item.isCustomItem) {
|
328
|
-
item.product_id = 0;
|
329
|
-
}
|
330
327
|
return {
|
331
|
-
"name": item.name,
|
332
328
|
"num": quantity || item._extend.quantity,
|
333
329
|
"price": formatProductPrice(item),
|
334
330
|
"source_product_price": getSourceProductPrice(item),
|
335
|
-
"product_id": item
|
331
|
+
"product_id": (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
|
336
332
|
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
337
333
|
"product_discount_reason": item._extend.discount_reason || '',
|
338
334
|
"is_charge_tax": item.is_charge_tax,
|
339
|
-
"note": (
|
335
|
+
"note": (item === null || item === void 0 ? void 0 : item.note) || '',
|
340
336
|
"discountway": item._extend.discountway || "num",
|
341
337
|
"discount_per": item._extend.discount_per,
|
342
338
|
"discount_type": item._extend.discount_type || discount_type,
|
343
339
|
"order_detail_id": item._extend.order_detail_id || 0,
|
344
|
-
"product_bundle": formatProductBundle((_item$
|
340
|
+
"product_bundle": formatProductBundle((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 || (_item$_extend15 = _item$_extend15.other) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.bundle),
|
345
341
|
"bundle_edit": item._extend.bundle_edit,
|
346
|
-
"product_option_item": formatProductOption((_item$
|
347
|
-
"product_variant_id": ((_item$
|
342
|
+
"product_option_item": formatProductOption((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 || (_item$_extend16 = _item$_extend16.other) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.option),
|
343
|
+
"product_variant_id": ((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.product_variant_id) || 0,
|
348
344
|
"discount_list": notManualDiscount,
|
349
345
|
metadata: formatMetaData(item)
|
350
346
|
};
|
@@ -364,8 +360,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
|
|
364
360
|
|
365
361
|
// 过滤出卡片中的普通商品
|
366
362
|
var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
|
367
|
-
var _item$
|
368
|
-
var holderId = (_item$
|
363
|
+
var _item$_extend18;
|
364
|
+
var holderId = (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.holder_id;
|
369
365
|
var bookingHolderId = booking_item._extend.holder_id;
|
370
366
|
var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
|
371
367
|
return holderId && holderId === bookingHolderId && !isDayBookingProduct;
|
@@ -391,15 +387,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
|
|
391
387
|
|
392
388
|
// 找出预约商品
|
393
389
|
list = list.filter(function (item) {
|
394
|
-
var _item$
|
395
|
-
return ((_item$
|
390
|
+
var _item$_extend19;
|
391
|
+
return ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.holder_id) && !isNormalProductByDurationSchedule(item);
|
396
392
|
});
|
397
393
|
|
398
394
|
// 对预约商品列表根据holder_id进行分组
|
399
395
|
var groupMap = new Map();
|
400
396
|
list.forEach(function (item) {
|
401
|
-
var _item$
|
402
|
-
var key = (_item$
|
397
|
+
var _item$_extend20;
|
398
|
+
var key = (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.holder_id; // 分组键
|
403
399
|
if (!groupMap.has(key)) {
|
404
400
|
groupMap.set(key, []);
|
405
401
|
}
|
@@ -459,13 +455,6 @@ var formatBookings = function formatBookings(data, values) {
|
|
459
455
|
var eventOtherParams = data.eventOtherParams;
|
460
456
|
var bookings = [];
|
461
457
|
list.forEach(function (item) {
|
462
|
-
// 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
|
463
|
-
if (item.isCustomItem) {
|
464
|
-
bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
|
465
|
-
product_id: 0 // 确保后端接收到的 product_id 为 0
|
466
|
-
}));
|
467
|
-
return;
|
468
|
-
}
|
469
458
|
var start_date = item._extend.startDate.format('YYYY-MM-DD');
|
470
459
|
var end_date = item._extend.endDate.format('YYYY-MM-DD');
|
471
460
|
var end_time = item._extend.endDate.format("HH:mm");
|
@@ -479,9 +468,9 @@ var formatBookings = function formatBookings(data, values) {
|
|
479
468
|
|
480
469
|
// 跨日预约下的普通商品
|
481
470
|
if (isDay) {
|
482
|
-
var _item$
|
483
|
-
var startDate = ((_item$
|
484
|
-
var endDate = ((_item$
|
471
|
+
var _item$_extend21, _item$_extend22, _item$_extend23, _item$_extend24;
|
472
|
+
var startDate = ((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.startDate) || ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.start_date);
|
473
|
+
var endDate = ((_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.endDate) || ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.end_date);
|
485
474
|
var _formatDayTime = formatDayTime({
|
486
475
|
startDate: startDate,
|
487
476
|
endDate: endDate
|
@@ -523,8 +512,7 @@ var formatBookings = function formatBookings(data, values) {
|
|
523
512
|
cacheItem: item
|
524
513
|
}) : item._extend.number || 1,
|
525
514
|
"resources": formatResource(item),
|
526
|
-
"metadata": formatMetaData(item)
|
527
|
-
"note": item._extend.note
|
515
|
+
"metadata": formatMetaData(item)
|
528
516
|
}, eventOtherParams || {}), dayParams);
|
529
517
|
if (isDay) {
|
530
518
|
bookings.push(booking);
|
@@ -634,11 +622,9 @@ export var formatValues = function formatValues(state) {
|
|
634
622
|
// 备注
|
635
623
|
values.shop_note = formatNote(state);
|
636
624
|
}
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
values.shop_discount = state.shop_discount;
|
641
|
-
values.shop_discount_reason = '';
|
625
|
+
if (state.bookingId) {
|
626
|
+
values.shop_discount = state.bookingDetail.shop_discount;
|
627
|
+
values.shop_discount_reason = state.bookingDetail.shop_discount_reason;
|
642
628
|
}
|
643
629
|
if (state.contacts) {
|
644
630
|
var _state$contacts;
|
@@ -687,35 +673,21 @@ export var formatValues = function formatValues(state) {
|
|
687
673
|
// 检测预约主体是否为空
|
688
674
|
export var checkHolderIsError = function checkHolderIsError(state) {
|
689
675
|
var _state$client;
|
690
|
-
var errorRowKey = "";
|
691
676
|
var holderError = state.service.value.some(function (item) {
|
692
|
-
var _item$
|
677
|
+
var _item$_extend25;
|
693
678
|
// 普通商品不需要检测holder
|
694
679
|
if (isNormalProductByDurationSchedule(item)) {
|
695
680
|
return false;
|
696
681
|
}
|
697
682
|
if (item._extend.quantity === 1 && !item._extend.holder_id) {
|
698
|
-
var _item$_extend26;
|
699
|
-
errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 || (_item$_extend26 = _item$_extend26.other) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.rowKey);
|
700
683
|
return true;
|
701
684
|
}
|
702
|
-
if (item._extend.quantity > 1 && ((_item$
|
703
|
-
var _item$_extend28;
|
704
|
-
errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 || (_item$_extend28 = _item$_extend28.other) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.rowKey);
|
685
|
+
if (item._extend.quantity > 1 && ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 || (_item$_extend25 = _item$_extend25.holder_id) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.length) !== item._extend.quantity) {
|
705
686
|
return true;
|
706
687
|
}
|
707
688
|
return false;
|
708
689
|
});
|
709
690
|
var clientId = (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id;
|
710
|
-
if (holderError) {
|
711
|
-
var dom = document.getElementById(errorRowKey);
|
712
|
-
if (dom) {
|
713
|
-
dom.scrollIntoView({
|
714
|
-
behavior: 'smooth',
|
715
|
-
block: 'start'
|
716
|
-
});
|
717
|
-
}
|
718
|
-
}
|
719
691
|
if (holderError && (!clientId || clientId === 0 || clientId === 1)) {
|
720
692
|
PisellToast({
|
721
693
|
content: locales.getText('pisell2.text.please-select-the-customer-first')
|