@pisell/private-materials 6.5.26 → 6.6.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 +2 -2
- package/build/lowcode/preview.js +146 -165
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/actionButtons/index.js +34 -20
- package/es/components/booking/components/customSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.js +25 -8
- package/es/components/booking/components/footer/index.js +66 -33
- package/es/components/booking/components/footer/utils.d.ts +7 -0
- package/es/components/booking/components/footer/utils.js +126 -99
- package/es/components/booking/components/voucher/index.js +25 -9
- package/es/components/booking/dashboard/serve.js +1 -6
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.js +2 -12
- package/es/components/booking/hooks/useQuotation.js +69 -21
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/client/serve.js +2 -11
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/pet/serve.js +1 -6
- package/es/components/booking/info/service/Lists.d.ts +1 -1
- package/es/components/booking/info/service/Lists.js +10 -4
- package/es/components/booking/info/service/addTimeModal/serve.js +1 -11
- package/es/components/booking/info/service/serve.d.ts +14 -0
- package/es/components/booking/info/service/serve.js +25 -18
- package/es/components/booking/info/service2/Group/utils.js +2 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -33
- package/es/components/booking/info/service2/utils.js +92 -56
- package/es/components/booking/info/utils.js +5 -0
- package/es/components/booking/info2/cartClientCard/index.js +49 -9
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/serve.js +1 -6
- package/es/components/booking/info2/service/addService/index.js +146 -89
- package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/es/components/booking/info2/service/addService/utils.js +83 -14
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
- package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/es/components/booking/info2/service/editService/index.js +313 -57
- package/es/components/booking/info2/utilsByBooking.js +19 -14
- package/es/components/booking/locales.d.ts +36 -0
- package/es/components/booking/locales.js +48 -3
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/es/components/booking/utils/confirmHolderModal.js +318 -0
- package/es/components/booking/utils/confirmHolderModal.less +40 -0
- package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/es/components/booking/utils/selectHolderModal.js +407 -0
- package/es/components/booking/utils.d.ts +16 -7
- package/es/components/booking/utils.js +26 -37
- package/es/components/checkout/PaymentModal.js +61 -30
- package/es/components/checkout/components/CashPaymentModule/index.js +1 -7
- package/es/components/checkout/components/ScrollableList/index.js +0 -1
- package/es/components/checkout/locales.d.ts +3 -0
- package/es/components/checkout/locales.js +3 -0
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/list/List.js +3 -0
- package/es/components/pay/toB/components/MX51/index.js +14 -44
- package/es/components/pay/toB/types/index.d.ts +0 -12
- package/es/components/pay/toB/types/index.js +0 -4
- package/es/components/shoppingCart/components/Cart/Product.js +6 -3
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +119 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +419 -794
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
- package/es/components/ticketBooking/components/ticketBooking/index.js +32 -61
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +1 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +122 -170
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.js +0 -2
- package/es/components/ticketBooking/serve.js +17 -119
- package/es/components/ticketBooking/utils/index.d.ts +7 -1
- package/es/components/ticketBooking/utils/index.js +44 -28
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/es/plus/productSelect/ProductCard/index.js +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
- package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
- package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/es/plus/selectHolder/components/HolderList/index.js +43 -0
- package/es/plus/selectHolder/index.d.ts +7 -0
- package/es/plus/selectHolder/index.js +273 -0
- package/es/plus/selectHolder/index.less +137 -0
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/locales.js +29 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/types.js +1 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/selectHolder/utils.js +16 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +357 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/es/pro/multiDayTimeSelect/index.js +1 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/multiDayTimeSelect/types.js +1 -0
- package/es/pro/skuDetailModal/types.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +6 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/actionButtons/index.js +11 -2
- package/lib/components/booking/components/customSelect/index.js +1 -1
- package/lib/components/booking/components/footer/amount.js +23 -6
- package/lib/components/booking/components/footer/index.js +26 -5
- package/lib/components/booking/components/footer/utils.d.ts +7 -0
- package/lib/components/booking/components/footer/utils.js +120 -82
- package/lib/components/booking/components/voucher/index.js +10 -1
- package/lib/components/booking/dashboard/serve.js +1 -6
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.js +2 -12
- package/lib/components/booking/hooks/useQuotation.js +45 -13
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/client/serve.js +2 -13
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/pet/serve.js +1 -6
- package/lib/components/booking/info/service/Lists.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.js +5 -3
- package/lib/components/booking/info/service/addTimeModal/serve.js +1 -7
- package/lib/components/booking/info/service/serve.d.ts +14 -0
- package/lib/components/booking/info/service/serve.js +8 -17
- package/lib/components/booking/info/service2/Group/utils.js +2 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -33
- package/lib/components/booking/info/service2/utils.js +38 -29
- package/lib/components/booking/info/utils.js +4 -0
- package/lib/components/booking/info2/cartClientCard/index.js +34 -5
- package/lib/components/booking/info2/index.js +11 -5
- package/lib/components/booking/info2/serve.js +1 -6
- package/lib/components/booking/info2/service/addService/index.js +22 -3
- package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/lib/components/booking/info2/service/addService/utils.js +48 -11
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
- package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/lib/components/booking/info2/service/editService/index.js +254 -32
- package/lib/components/booking/info2/utilsByBooking.js +26 -19
- package/lib/components/booking/locales.d.ts +36 -0
- package/lib/components/booking/locales.js +42 -3
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/lib/components/booking/utils/confirmHolderModal.js +253 -0
- package/lib/components/booking/utils/confirmHolderModal.less +40 -0
- package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/lib/components/booking/utils/selectHolderModal.js +319 -0
- package/lib/components/booking/utils.d.ts +16 -7
- package/lib/components/booking/utils.js +18 -21
- package/lib/components/checkout/PaymentModal.js +41 -18
- package/lib/components/checkout/components/CashPaymentModule/index.js +1 -7
- package/lib/components/checkout/components/ScrollableList/index.js +0 -1
- package/lib/components/checkout/locales.d.ts +3 -0
- package/lib/components/checkout/locales.js +3 -0
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/list/List.js +3 -0
- package/lib/components/pay/toB/components/MX51/index.js +12 -37
- package/lib/components/pay/toB/types/index.d.ts +0 -12
- package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +279 -313
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +5 -3
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
- package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -49
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +1 -3
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +69 -98
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.js +0 -2
- package/lib/components/ticketBooking/serve.js +15 -117
- package/lib/components/ticketBooking/utils/index.d.ts +7 -1
- package/lib/components/ticketBooking/utils/index.js +29 -23
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/lib/plus/productSelect/ProductCard/index.js +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.js +30 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
- package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/lib/plus/selectHolder/components/HolderList/index.js +63 -0
- package/lib/plus/selectHolder/index.d.ts +7 -0
- package/lib/plus/selectHolder/index.js +223 -0
- package/lib/plus/selectHolder/index.less +137 -0
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/plus/selectHolder/locales.js +47 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/types.js +17 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/selectHolder/utils.js +34 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +304 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/lib/{hooks/printer.js → pro/multiDayTimeSelect/index.js} +6 -31
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/multiDayTimeSelect/types.js +17 -0
- package/lib/pro/skuDetailModal/types.d.ts +1 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/event-select-holder/meta.ts +2 -2
- package/lowcode/select-holder/meta.ts +220 -0
- package/lowcode/select-holder/snippets.ts +41 -0
- package/package.json +13 -11
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/printer.js +0 -35
- package/lib/hooks/printer.d.ts +0 -4
|
@@ -10,8 +10,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
11
|
import { locales } from "@pisell/utils";
|
|
12
12
|
import { getCacheParams, getServeStartTime, getLastServer, flexibleObj, getServiceTimes, findNextDuration, getDays, isSessionProduct } from "../utils";
|
|
13
|
-
import { isNormalProductByDurationSchedule } from "../info/service2/utils";
|
|
14
13
|
import { isOption } from "../../ticketBooking/components/addServiceVariant/utils";
|
|
14
|
+
import { isMultiDayProduct } from "./service/addService/utils";
|
|
15
15
|
|
|
16
16
|
// 获取当前剩余量
|
|
17
17
|
var getUseableEventCount = function getUseableEventCount(eventList, current) {
|
|
@@ -321,7 +321,7 @@ export var getAppointmentTimingPreference = function getAppointmentTimingPrefere
|
|
|
321
321
|
* @Date: 2024-01-26 14:09
|
|
322
322
|
*/
|
|
323
323
|
export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTime(state, cacheItem, timeObj) {
|
|
324
|
-
var _state$service$value, _cacheItem$
|
|
324
|
+
var _state$service$value, _cacheItem$_extend2;
|
|
325
325
|
// 自定义商品不需要时间相关处理,直接返回基础扩展参数
|
|
326
326
|
if (cacheItem !== null && cacheItem !== void 0 && cacheItem.isCustomItem) {
|
|
327
327
|
return {
|
|
@@ -332,13 +332,20 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
332
332
|
|
|
333
333
|
// 获取上一个服务商品(过滤掉自定义商品)
|
|
334
334
|
var lastServer = getLastServer((_state$service$value = state.service.value) === null || _state$service$value === void 0 ? void 0 : _state$service$value.filter(function (item) {
|
|
335
|
-
return !item.isCustomItem
|
|
335
|
+
return !item.isCustomItem;
|
|
336
336
|
}));
|
|
337
|
+
var getDuration = function getDuration(cacheItem) {
|
|
338
|
+
var _cacheItem$duration;
|
|
339
|
+
if (isMultiDayProduct(cacheItem)) {
|
|
340
|
+
return getDays(cacheItem, 'days');
|
|
341
|
+
}
|
|
342
|
+
return findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
|
|
343
|
+
};
|
|
337
344
|
|
|
338
345
|
// 下一个商品的扩展参数
|
|
339
346
|
var _extend = {
|
|
340
347
|
// 时长: 当前商品时长 > 第一个时长
|
|
341
|
-
duration:
|
|
348
|
+
duration: getDuration(cacheItem)
|
|
342
349
|
};
|
|
343
350
|
|
|
344
351
|
// 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
|
|
@@ -355,7 +362,8 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
355
362
|
var _timeObj$timeSlices;
|
|
356
363
|
_extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 || (_timeObj$timeSlices = timeObj.timeSlices) === null || _timeObj$timeSlices === void 0 ? void 0 : _timeObj$timeSlices.length) - 1].value;
|
|
357
364
|
} else {
|
|
358
|
-
|
|
365
|
+
var _ref2;
|
|
366
|
+
_extend.start_time = (_ref2 = lastServerEndDate || dayjs()) === null || _ref2 === void 0 ? void 0 : _ref2.format("HH:mm");
|
|
359
367
|
}
|
|
360
368
|
}
|
|
361
369
|
} else {
|
|
@@ -391,23 +399,20 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
391
399
|
_extend = _objectSpread(_objectSpread({}, _extend), cacheItem._extend);
|
|
392
400
|
|
|
393
401
|
// 计算服务的开始和结束时间
|
|
394
|
-
var _getServiceTimes2 = getServiceTimes({
|
|
402
|
+
var _getServiceTimes2 = getServiceTimes(_objectSpread(_objectSpread({}, cacheItem), {}, {
|
|
395
403
|
_extend: _extend
|
|
396
|
-
}),
|
|
404
|
+
})),
|
|
397
405
|
startDate = _getServiceTimes2.startDate,
|
|
398
406
|
endDate = _getServiceTimes2.endDate;
|
|
399
407
|
_extend.startDate = startDate;
|
|
400
408
|
_extend.endDate = endDate;
|
|
401
409
|
var session = cacheItem === null || cacheItem === void 0 || (_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 || (_cacheItem$_extend2 = _cacheItem$_extend2.other) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.session;
|
|
402
410
|
if (isSessionProduct(cacheItem) && session) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
_extend.start_date = startAt;
|
|
406
|
-
_extend.startDate = startAt;
|
|
411
|
+
_extend.start_date = session.start_at;
|
|
412
|
+
_extend.startDate = session.start_at;
|
|
407
413
|
_extend.start_time = session.start_time;
|
|
408
|
-
_extend.end_date =
|
|
409
|
-
_extend.endDate =
|
|
410
|
-
_extend.end_time = session.end_time;
|
|
414
|
+
_extend.end_date = session.end_at;
|
|
415
|
+
_extend.endDate = session.end_at;
|
|
411
416
|
_extend.duration = getDays({
|
|
412
417
|
_extend: _extend
|
|
413
418
|
}, 'minutes');
|
|
@@ -44,6 +44,9 @@ declare const _default: {
|
|
|
44
44
|
'pisell2.text.order-notes': string;
|
|
45
45
|
'pisell2.text.add-order-notes': string;
|
|
46
46
|
'pisell2.text.add-internal-notes': string;
|
|
47
|
+
'pisell2.text.holder-unassigned': (count: number) => string;
|
|
48
|
+
'pisell2.text.press-card-assign-holder': string;
|
|
49
|
+
'pisell2.text.skip-for-now': string;
|
|
47
50
|
'pisell2.text.add-notes': string;
|
|
48
51
|
'pisell2.text.notes': string;
|
|
49
52
|
'pisell2.text.new-appointment': string;
|
|
@@ -198,6 +201,7 @@ declare const _default: {
|
|
|
198
201
|
'page.booking.text.refund': string;
|
|
199
202
|
'page.booking.text.confirm': string;
|
|
200
203
|
'page.booking.text.go-back': string;
|
|
204
|
+
'page.booking.text.undo': string;
|
|
201
205
|
'page.booking.text.cancel-booking': string;
|
|
202
206
|
'page.booking.text.cancel-booking.msg': string;
|
|
203
207
|
'page.booking.text.disabled-tickets': string;
|
|
@@ -207,6 +211,7 @@ declare const _default: {
|
|
|
207
211
|
'page.booking.text.please-choose-an-option-2': string;
|
|
208
212
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
209
213
|
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
214
|
+
'page.booking.text.holder.length-error': string;
|
|
210
215
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
211
216
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
212
217
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -228,6 +233,8 @@ declare const _default: {
|
|
|
228
233
|
'pisell2.booking.info.text.clear': string;
|
|
229
234
|
'pisell2.booking.info.text.clear-cart': string;
|
|
230
235
|
'pisell2.booking.info.text.clear-all': string;
|
|
236
|
+
'pisell2.booking.info.text.add-holder': string;
|
|
237
|
+
'pisell2.booking.info.text.select-holder-title': string;
|
|
231
238
|
'pisell2.booking.info.text.create-new': string;
|
|
232
239
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
233
240
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -243,6 +250,7 @@ declare const _default: {
|
|
|
243
250
|
'pisell2.text.missing.reservation.content': string;
|
|
244
251
|
'pisell2.text.confirm': string;
|
|
245
252
|
'pisell2.text.cancel': string;
|
|
253
|
+
'pisell2.text.close-confirm-message': string;
|
|
246
254
|
'pisell2.action-buttons.clear': string;
|
|
247
255
|
'pisell2.action-buttons.manuel-order': string;
|
|
248
256
|
'pisell2.action-buttons.customise-item': string;
|
|
@@ -302,6 +310,10 @@ declare const _default: {
|
|
|
302
310
|
'pisell2.text.quotation.product.change.describe': string;
|
|
303
311
|
'pisell2.booking.notes.placeholder': string;
|
|
304
312
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
313
|
+
'pisell2.booking.text.contact-info.title': string;
|
|
314
|
+
'pisell2.booking.text.search-placeholder': string;
|
|
315
|
+
'pisell-select-holder-please-select': string;
|
|
316
|
+
'pisell-select-holder-selected': string;
|
|
305
317
|
};
|
|
306
318
|
'zh-CN': {
|
|
307
319
|
'pisell2.text.refunded-amount': string;
|
|
@@ -353,6 +365,9 @@ declare const _default: {
|
|
|
353
365
|
'pisell2.text.order-notes': string;
|
|
354
366
|
'pisell2.text.add-order-notes': string;
|
|
355
367
|
'pisell2.text.add-internal-notes': string;
|
|
368
|
+
'pisell2.text.holder-unassigned': (count: number) => string;
|
|
369
|
+
'pisell2.text.press-card-assign-holder': string;
|
|
370
|
+
'pisell2.text.skip-for-now': string;
|
|
356
371
|
'pisell2.text.add-notes': string;
|
|
357
372
|
'pisell2.text.notes': string;
|
|
358
373
|
'pisell2.text.new-appointment': string;
|
|
@@ -502,6 +517,7 @@ declare const _default: {
|
|
|
502
517
|
'page.booking.text.refund': string;
|
|
503
518
|
'page.booking.text.confirm': string;
|
|
504
519
|
'page.booking.text.go-back': string;
|
|
520
|
+
'page.booking.text.undo': string;
|
|
505
521
|
'page.booking.text.cancel-booking': string;
|
|
506
522
|
'page.booking.text.cancel-booking.msg': string;
|
|
507
523
|
'page.booking.text.disabled-tickets': string;
|
|
@@ -511,6 +527,7 @@ declare const _default: {
|
|
|
511
527
|
'page.booking.text.please-choose-an-option-2': string;
|
|
512
528
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
513
529
|
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
530
|
+
'page.booking.text.holder.length-error': string;
|
|
514
531
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
515
532
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
516
533
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -532,6 +549,8 @@ declare const _default: {
|
|
|
532
549
|
'pisell2.booking.info.text.clear': string;
|
|
533
550
|
'pisell2.booking.info.text.clear-cart': string;
|
|
534
551
|
'pisell2.booking.info.text.clear-all': string;
|
|
552
|
+
'pisell2.booking.info.text.add-holder': string;
|
|
553
|
+
'pisell2.booking.info.text.select-holder-title': string;
|
|
535
554
|
'pisell2.booking.info.text.create-new': string;
|
|
536
555
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
537
556
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -547,6 +566,7 @@ declare const _default: {
|
|
|
547
566
|
'pisell2.text.missing.reservation.content': string;
|
|
548
567
|
'pisell2.text.confirm': string;
|
|
549
568
|
'pisell2.text.cancel': string;
|
|
569
|
+
'pisell2.text.close-confirm-message': string;
|
|
550
570
|
'pisell2.action-buttons.clear': string;
|
|
551
571
|
'pisell2.action-buttons.manuel-order': string;
|
|
552
572
|
'pisell2.action-buttons.customise-item': string;
|
|
@@ -606,6 +626,10 @@ declare const _default: {
|
|
|
606
626
|
'pisell2.text.quotation.product.change.describe': string;
|
|
607
627
|
'pisell2.booking.notes.placeholder': string;
|
|
608
628
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
629
|
+
'pisell2.booking.text.contact-info.title': string;
|
|
630
|
+
'pisell2.booking.text.search-placeholder': string;
|
|
631
|
+
'pisell-select-holder-please-select': string;
|
|
632
|
+
'pisell-select-holder-selected': string;
|
|
609
633
|
};
|
|
610
634
|
'zh-HK': {
|
|
611
635
|
'pisell2.text.refunded-amount': string;
|
|
@@ -657,6 +681,9 @@ declare const _default: {
|
|
|
657
681
|
'pisell2.text.order-notes': string;
|
|
658
682
|
'pisell2.text.add-order-notes': string;
|
|
659
683
|
'pisell2.text.add-internal-notes': string;
|
|
684
|
+
'pisell2.text.holder-unassigned': (count: number) => string;
|
|
685
|
+
'pisell2.text.press-card-assign-holder': string;
|
|
686
|
+
'pisell2.text.skip-for-now': string;
|
|
660
687
|
'pisell2.text.add-notes': string;
|
|
661
688
|
'pisell2.text.notes': string;
|
|
662
689
|
'pisell2.text.new-appointment': string;
|
|
@@ -806,6 +833,7 @@ declare const _default: {
|
|
|
806
833
|
'page.booking.text.refund': string;
|
|
807
834
|
'page.booking.text.confirm': string;
|
|
808
835
|
'page.booking.text.go-back': string;
|
|
836
|
+
'page.booking.text.undo': string;
|
|
809
837
|
'page.booking.text.cancel-booking': string;
|
|
810
838
|
'page.booking.text.cancel-booking.msg': string;
|
|
811
839
|
'page.booking.text.disabled-tickets': string;
|
|
@@ -815,6 +843,7 @@ declare const _default: {
|
|
|
815
843
|
'page.booking.text.please-choose-an-option-2': string;
|
|
816
844
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
817
845
|
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
846
|
+
'page.booking.text.holder.length-error': string;
|
|
818
847
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
819
848
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
820
849
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -836,6 +865,8 @@ declare const _default: {
|
|
|
836
865
|
'pisell2.booking.info.text.clear': string;
|
|
837
866
|
'pisell2.booking.info.text.clear-cart': string;
|
|
838
867
|
'pisell2.booking.info.text.clear-all': string;
|
|
868
|
+
'pisell2.booking.info.text.add-holder': string;
|
|
869
|
+
'pisell2.booking.info.text.select-holder-title': string;
|
|
839
870
|
'pisell2.booking.info.text.create-new': string;
|
|
840
871
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
841
872
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -851,6 +882,7 @@ declare const _default: {
|
|
|
851
882
|
'pisell2.text.missing.reservation.content': string;
|
|
852
883
|
'pisell2.text.confirm': string;
|
|
853
884
|
'pisell2.text.cancel': string;
|
|
885
|
+
'pisell2.text.close-confirm-message': string;
|
|
854
886
|
'pisell2.action-buttons.clear': string;
|
|
855
887
|
'pisell2.action-buttons.manuel-order': string;
|
|
856
888
|
'pisell2.action-buttons.customise-item': string;
|
|
@@ -910,6 +942,10 @@ declare const _default: {
|
|
|
910
942
|
'pisell2.text.quotation.product.change.describe': string;
|
|
911
943
|
'pisell2.booking.notes.placeholder': string;
|
|
912
944
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
945
|
+
'pisell2.booking.text.contact-info.title': string;
|
|
946
|
+
'pisell2.booking.text.search-placeholder': string;
|
|
947
|
+
'pisell-select-holder-please-select': string;
|
|
948
|
+
'pisell-select-holder-selected': string;
|
|
913
949
|
};
|
|
914
950
|
};
|
|
915
951
|
export default _default;
|
|
@@ -45,6 +45,11 @@ export default {
|
|
|
45
45
|
'pisell2.text.order-notes': 'Order notes',
|
|
46
46
|
'pisell2.text.add-order-notes': 'Add Order Note',
|
|
47
47
|
'pisell2.text.add-internal-notes': 'Add Internal note',
|
|
48
|
+
'pisell2.text.holder-unassigned': function pisell2TextHolderUnassigned(count) {
|
|
49
|
+
return "".concat(count, " Holder(s) Unassigned");
|
|
50
|
+
},
|
|
51
|
+
'pisell2.text.press-card-assign-holder': 'Please Press Each Card to Assign Holder',
|
|
52
|
+
'pisell2.text.skip-for-now': 'Skip for Now',
|
|
48
53
|
'pisell2.text.add-notes': 'Add Notes',
|
|
49
54
|
'pisell2.text.notes': 'Notes',
|
|
50
55
|
'pisell2.text.new-appointment': 'New appointment',
|
|
@@ -229,6 +234,7 @@ export default {
|
|
|
229
234
|
'page.booking.text.refund': 'Refund',
|
|
230
235
|
'page.booking.text.confirm': 'Confirm',
|
|
231
236
|
'page.booking.text.go-back': 'Go back',
|
|
237
|
+
'page.booking.text.undo': 'Undo',
|
|
232
238
|
'page.booking.text.cancel-booking': "Cancel Booking",
|
|
233
239
|
'page.booking.text.cancel-booking.msg': "The action is irreversible. Please proceed with caution. ",
|
|
234
240
|
'page.booking.text.disabled-tickets': "All tickets will be disabled.",
|
|
@@ -242,6 +248,7 @@ export default {
|
|
|
242
248
|
return "Select at least ".concat(x, " ").concat(y);
|
|
243
249
|
},
|
|
244
250
|
'page.booking.text.resource.check-auto-allocation-tip': "When checked, content will be automatically filled in without manual selection",
|
|
251
|
+
'page.booking.text.holder.length-error': 'Please select enough holder(s)',
|
|
245
252
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
246
253
|
return "Original price of the item:".concat(origin, ",Current price of the item:").concat(current);
|
|
247
254
|
},
|
|
@@ -265,6 +272,8 @@ export default {
|
|
|
265
272
|
'pisell2.booking.info.text.clear': "Clear",
|
|
266
273
|
'pisell2.booking.info.text.clear-cart': "Clear cart",
|
|
267
274
|
'pisell2.booking.info.text.clear-all': "Clear all",
|
|
275
|
+
'pisell2.booking.info.text.add-holder': "Select",
|
|
276
|
+
'pisell2.booking.info.text.select-holder-title': "Who would you like to book this event for?",
|
|
268
277
|
'pisell2.booking.info.text.create-new': "Create new",
|
|
269
278
|
'pisell2.booking.info.text.form-agreement-yes': "Yes",
|
|
270
279
|
'pisell2.booking.info.text.form-agreement-no': "No",
|
|
@@ -282,6 +291,7 @@ export default {
|
|
|
282
291
|
'pisell2.text.missing.reservation.content': 'You have not selected a reservation type, Please select one before proceeding.',
|
|
283
292
|
'pisell2.text.confirm': 'Confirm',
|
|
284
293
|
'pisell2.text.cancel': 'Cancel',
|
|
294
|
+
'pisell2.text.close-confirm-message': 'Closing will discard all changes. Are you sure you want to close?',
|
|
285
295
|
// Action Buttons
|
|
286
296
|
'pisell2.action-buttons.clear': 'Clear',
|
|
287
297
|
'pisell2.action-buttons.manuel-order': "Manual\nOrder\xA0$",
|
|
@@ -354,7 +364,12 @@ export default {
|
|
|
354
364
|
'pisell2.text.quotation.product.change.describe': "Product updates available: Please refresh the following items to load the latest data.",
|
|
355
365
|
// Notes
|
|
356
366
|
'pisell2.booking.notes.placeholder': 'Enter a note...',
|
|
357
|
-
'pisell2.text.form.link.to.another.record.more': 'View More'
|
|
367
|
+
'pisell2.text.form.link.to.another.record.more': 'View More',
|
|
368
|
+
// 联系信息
|
|
369
|
+
'pisell2.booking.text.contact-info.title': 'Contact info',
|
|
370
|
+
'pisell2.booking.text.search-placeholder': 'Search Customers / Contacts',
|
|
371
|
+
'pisell-select-holder-please-select': 'Please Select',
|
|
372
|
+
'pisell-select-holder-selected': 'Selected: '
|
|
358
373
|
},
|
|
359
374
|
'zh-CN': {
|
|
360
375
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -406,6 +421,11 @@ export default {
|
|
|
406
421
|
'pisell2.text.order-notes': '订单备注',
|
|
407
422
|
'pisell2.text.add-order-notes': '添加订单备注',
|
|
408
423
|
'pisell2.text.add-internal-notes': '添加内部备注',
|
|
424
|
+
'pisell2.text.holder-unassigned': function pisell2TextHolderUnassigned(count) {
|
|
425
|
+
return "".concat(count, " \u4E2A\u9884\u7EA6\u4E3B\u4F53\u672A\u5206\u914D");
|
|
426
|
+
},
|
|
427
|
+
'pisell2.text.press-card-assign-holder': '请点击每个卡片来分配预约主体',
|
|
428
|
+
'pisell2.text.skip-for-now': '稍后处理',
|
|
409
429
|
'pisell2.text.add-notes': '添加备注',
|
|
410
430
|
'pisell2.text.notes': '备注',
|
|
411
431
|
'pisell2.text.new-appointment': '新预约',
|
|
@@ -590,6 +610,7 @@ export default {
|
|
|
590
610
|
'page.booking.text.refund': '退款',
|
|
591
611
|
'page.booking.text.confirm': '确认',
|
|
592
612
|
'page.booking.text.go-back': '返回',
|
|
613
|
+
'page.booking.text.undo': '撤销',
|
|
593
614
|
'page.booking.text.cancel-booking': "取消预约",
|
|
594
615
|
'page.booking.text.cancel-booking.msg': "该操作不可撤销,请谨慎操作。",
|
|
595
616
|
'page.booking.text.disabled-tickets': "所有票单将被禁用。",
|
|
@@ -603,6 +624,7 @@ export default {
|
|
|
603
624
|
return "\u81F3\u5C11\u9009\u62E9".concat(x, "\u9879").concat(y);
|
|
604
625
|
},
|
|
605
626
|
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9009\u540E\u5C06\u81EA\u52A8\u586B\u5165\u5185\u5BB9\uFF0C\u65E0\u9700\u624B\u52A8\u9009\u62E9",
|
|
627
|
+
'page.booking.text.holder.length-error': '请选择足够的持有者',
|
|
606
628
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
607
629
|
return "\u5546\u54C1\u539F\u4EF7:".concat(origin, ",\u5546\u54C1\u73B0\u4EF7:").concat(current);
|
|
608
630
|
},
|
|
@@ -626,6 +648,8 @@ export default {
|
|
|
626
648
|
'pisell2.booking.info.text.clear': "清空",
|
|
627
649
|
'pisell2.booking.info.text.clear-cart': "清空购物车",
|
|
628
650
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
651
|
+
'pisell2.booking.info.text.add-holder': "请选择",
|
|
652
|
+
'pisell2.booking.info.text.select-holder-title': '您想为谁预订这个活动?',
|
|
629
653
|
'pisell2.booking.info.text.create-new': "新建",
|
|
630
654
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
631
655
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -643,6 +667,7 @@ export default {
|
|
|
643
667
|
'pisell2.text.missing.reservation.content': '您尚未选择预约类型,请在继续操作前选择。',
|
|
644
668
|
'pisell2.text.confirm': '确定',
|
|
645
669
|
'pisell2.text.cancel': '取消',
|
|
670
|
+
'pisell2.text.close-confirm-message': '关闭后,已填写或操作的内容将不会保存,确定要关闭吗?',
|
|
646
671
|
// Action Buttons
|
|
647
672
|
'pisell2.action-buttons.clear': '清空',
|
|
648
673
|
'pisell2.action-buttons.manuel-order': "\u624B\u52A8\n\u8BA2\u5355\xA0$",
|
|
@@ -715,7 +740,12 @@ export default {
|
|
|
715
740
|
'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
|
716
741
|
// Notes
|
|
717
742
|
'pisell2.booking.notes.placeholder': '输入备注...',
|
|
718
|
-
'pisell2.text.form.link.to.another.record.more': '查看更多'
|
|
743
|
+
'pisell2.text.form.link.to.another.record.more': '查看更多',
|
|
744
|
+
// 联系信息
|
|
745
|
+
'pisell2.booking.text.contact-info.title': '联系信息',
|
|
746
|
+
'pisell2.booking.text.search-placeholder': '搜索客户/联系信息',
|
|
747
|
+
'pisell-select-holder-please-select': '请选择',
|
|
748
|
+
'pisell-select-holder-selected': '已选择:'
|
|
719
749
|
},
|
|
720
750
|
'zh-HK': {
|
|
721
751
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -767,6 +797,11 @@ export default {
|
|
|
767
797
|
'pisell2.text.order-notes': '訂單備注',
|
|
768
798
|
'pisell2.text.add-order-notes': '添加訂單備注',
|
|
769
799
|
'pisell2.text.add-internal-notes': '添加內部備注',
|
|
800
|
+
'pisell2.text.holder-unassigned': function pisell2TextHolderUnassigned(count) {
|
|
801
|
+
return "".concat(count, " \u500B\u9810\u7D04\u4E3B\u9AD4\u672A\u5206\u914D");
|
|
802
|
+
},
|
|
803
|
+
'pisell2.text.press-card-assign-holder': '請點擊每個卡片來分配預約主體',
|
|
804
|
+
'pisell2.text.skip-for-now': '稍後處理',
|
|
770
805
|
'pisell2.text.add-notes': '添加備注',
|
|
771
806
|
'pisell2.text.notes': '備注',
|
|
772
807
|
'pisell2.text.new-appointment': '新預約',
|
|
@@ -951,6 +986,7 @@ export default {
|
|
|
951
986
|
'page.booking.text.refund': '退款',
|
|
952
987
|
'page.booking.text.confirm': '確認',
|
|
953
988
|
'page.booking.text.go-back': '返回',
|
|
989
|
+
'page.booking.text.undo': '撤销',
|
|
954
990
|
'page.booking.text.cancel-booking': '取消預約',
|
|
955
991
|
'page.booking.text.cancel-booking.msg': '該操作不可撤銷,請謹慎操作。',
|
|
956
992
|
'page.booking.text.disabled-tickets': '所有票單將被禁用。',
|
|
@@ -964,6 +1000,7 @@ export default {
|
|
|
964
1000
|
return "\u81F3\u5C11\u9078\u64C7".concat(x, "\u9805").concat(y);
|
|
965
1001
|
},
|
|
966
1002
|
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9078\u5F8C\u5C07\u81EA\u52D5\u586B\u5165\u5167\u5BB9\uFF0C\u7121\u9700\u624B\u52D5\u9078\u64C7",
|
|
1003
|
+
'page.booking.text.holder.length-error': '請選擇足夠的持有者',
|
|
967
1004
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
968
1005
|
return "\u5546\u54C1\u539F\u50F9:".concat(origin, ",\u5546\u54C1\u73FE\u50F9:").concat(current);
|
|
969
1006
|
},
|
|
@@ -987,6 +1024,8 @@ export default {
|
|
|
987
1024
|
'pisell2.booking.info.text.clear': "清空",
|
|
988
1025
|
'pisell2.booking.info.text.clear-cart': "清空購物車",
|
|
989
1026
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
1027
|
+
'pisell2.booking.info.text.add-holder': "请选择",
|
|
1028
|
+
'pisell2.booking.info.text.select-holder-title': "您想为谁预订这个活动?",
|
|
990
1029
|
'pisell2.booking.info.text.create-new': "新建",
|
|
991
1030
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
992
1031
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -1004,6 +1043,7 @@ export default {
|
|
|
1004
1043
|
'pisell2.text.missing.reservation.content': '您尚未選擇預約類型,請在繼續操作前選擇。',
|
|
1005
1044
|
'pisell2.text.confirm': '確定',
|
|
1006
1045
|
'pisell2.text.cancel': '取消',
|
|
1046
|
+
'pisell2.text.close-confirm-message': '關閉後,已填寫或操作的內容將不會保存,確定要關閉嗎?',
|
|
1007
1047
|
// Action Buttons
|
|
1008
1048
|
'pisell2.action-buttons.clear': '清空',
|
|
1009
1049
|
'pisell2.action-buttons.manuel-order': "\u624B\u52D5\n\u8A02\u55AE\xA0$",
|
|
@@ -1076,6 +1116,11 @@ export default {
|
|
|
1076
1116
|
'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
|
1077
1117
|
// Notes
|
|
1078
1118
|
'pisell2.booking.notes.placeholder': '輸入備註...',
|
|
1079
|
-
'pisell2.text.form.link.to.another.record.more': '查看更多'
|
|
1119
|
+
'pisell2.text.form.link.to.another.record.more': '查看更多',
|
|
1120
|
+
// 联系信息
|
|
1121
|
+
'pisell2.booking.text.contact-info.title': '聯繫信息',
|
|
1122
|
+
'pisell2.booking.text.search-placeholder': '搜索客戶/聯系信息',
|
|
1123
|
+
'pisell-select-holder-please-select': '請選擇',
|
|
1124
|
+
'pisell-select-holder-selected': '已選擇:'
|
|
1080
1125
|
}
|
|
1081
1126
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './confirmHolderModal.less';
|
|
3
|
+
/**
|
|
4
|
+
* 确认 Holder 弹窗组件(直接返回 PisellContainer,不使用 createPortal)
|
|
5
|
+
*/
|
|
6
|
+
export declare const ConfirmHolderModal: React.FC;
|
|
7
|
+
/**
|
|
8
|
+
* 通过 await 调用的确认 Holder 弹窗
|
|
9
|
+
* @param state 状态对象
|
|
10
|
+
* @param dispatch dispatch 函数
|
|
11
|
+
* @returns Promise,resolve 时返回 void(无论点击哪个按钮都会继续执行)
|
|
12
|
+
*/
|
|
13
|
+
export declare function showConfirmHolderModal(state: any, dispatch: any): Promise<void>;
|