@pisell/private-materials 6.2.35 → 6.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +5 -0
- package/es/components/booking/deposit/ClientItem/index.js +1 -1
- package/es/components/booking/deposit/DepositItem/index.js +1 -1
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.js +1 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/utils.d.ts +2 -0
- package/es/components/booking/info/clientVariant/utils.js +7 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +3 -2
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +2 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/editService/index.js +37 -29
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +4 -4
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.js +1 -1
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/utils.js +3 -3
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.js +7 -2
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +170 -89
- package/es/components/ticketBooking/components/timeBar/index.js +3 -3
- package/es/components/ticketBooking/utils/index.d.ts +3 -1
- package/es/components/ticketBooking/utils/index.js +18 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/pro/pisellNumberSelector/index.js +3 -3
- package/es/pro/pisellPhoneKeyboard/index.js +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +5 -0
- package/lib/components/booking/deposit/ClientItem/index.js +1 -1
- package/lib/components/booking/deposit/DepositItem/index.js +1 -1
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.js +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/utils.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/utils.js +13 -2
- package/lib/components/booking/info/clientVariant/vertical/index.js +7 -6
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +3 -3
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editService/index.js +22 -12
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +7 -8
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.js +1 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.js +1 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.js +7 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +6 -4
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +85 -12
- package/lib/components/ticketBooking/components/timeBar/index.js +89 -70
- package/lib/components/ticketBooking/utils/index.d.ts +3 -1
- package/lib/components/ticketBooking/utils/index.js +21 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/pro/pisellNumberSelector/index.js +3 -3
- package/lib/pro/pisellPhoneKeyboard/index.js +1 -1
- package/package.json +2 -2
@@ -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[]) =>
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -29,6 +29,7 @@ import "./index.less";
|
|
29
29
|
import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
|
30
30
|
import { getServiceAddons } from "./utils";
|
31
31
|
import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
|
32
|
+
import { getClientVariantClose } from "../../info/clientVariant/utils";
|
32
33
|
var ShopDiscountHooks = {
|
33
34
|
onInited: 'shopDiscount:onInited',
|
34
35
|
onDestroy: 'shopDiscount:onDestroy',
|
@@ -175,6 +176,10 @@ var VoucherCard = function VoucherCard(props) {
|
|
175
176
|
useEffect(function () {
|
176
177
|
if (!isBooking4Shop) return;
|
177
178
|
var onScanCustomerChange = function onScanCustomerChange(customer) {
|
179
|
+
var clientVariantClose = getClientVariantClose();
|
180
|
+
if (clientVariantClose) {
|
181
|
+
clientVariantClose();
|
182
|
+
}
|
178
183
|
selectCustomer(customer);
|
179
184
|
};
|
180
185
|
var onDiscountListChange = function onDiscountListChange(discount) {
|
@@ -2,7 +2,7 @@ import React, { useCallback } from "react";
|
|
2
2
|
import { Avatar } from "antd";
|
3
3
|
import { image, locales } from "@pisell/utils";
|
4
4
|
import classnames from 'classnames';
|
5
|
-
import User01 from "@pisell/icon/
|
5
|
+
import User01 from "@pisell/icon/es/User01";
|
6
6
|
import { isWalkIn as getIsWalkIn } from "../../utils";
|
7
7
|
import "./index.less";
|
8
8
|
var ClientItem = function ClientItem(props) {
|
@@ -3,7 +3,7 @@ import { Button, Dropdown } from 'antd';
|
|
3
3
|
import { DownOutlined } from '@ant-design/icons';
|
4
4
|
import { formatAmount, locales } from '@pisell/utils';
|
5
5
|
import ClientItem from "../ClientItem";
|
6
|
-
import Edit05 from '@pisell/icon/
|
6
|
+
import Edit05 from '@pisell/icon/es/Edit05';
|
7
7
|
import "./index.less";
|
8
8
|
var statusTagColor = {
|
9
9
|
unpaid: '#B2DDFF',
|
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
16
16
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
17
17
|
import { getProductTotalPrice } from "../utils";
|
18
|
-
import useEngineContext from "
|
18
|
+
import useEngineContext from "../../../hooks/useEngineContext";
|
19
19
|
import { locales } from "@pisell/utils";
|
20
20
|
import { PisellModal } from "@pisell/materials";
|
21
21
|
import { getProductPrice } from "../info/service/serve";
|
@@ -3,4 +3,11 @@ export var getWaiverTitle = function getWaiverTitle(waiverForm) {
|
|
3
3
|
return (waiverForm || []).map(function (item) {
|
4
4
|
return "".concat(item.form_title || '', ":").concat(item.is_filled ? locales.getText('pisell2.text.filled') : locales.getText('pisell2.text.not-filled'));
|
5
5
|
}).join(';');
|
6
|
+
};
|
7
|
+
var clientVariantClose;
|
8
|
+
export var setClientVariantClose = function setClientVariantClose(fn) {
|
9
|
+
clientVariantClose = fn;
|
10
|
+
};
|
11
|
+
export var getClientVariantClose = function getClientVariantClose() {
|
12
|
+
return clientVariantClose;
|
6
13
|
};
|
@@ -36,10 +36,10 @@ import { getAppointmentService, getPets, isDayBooking, isOpenDeletePet, updateSe
|
|
36
36
|
import { moveItemToFront } from "../../utils";
|
37
37
|
import "./index.less";
|
38
38
|
import useAddHolder, { useFormDataConfig } from "../../hooks/useAddHolder";
|
39
|
-
import { getWaiverTitle } from "../utils";
|
39
|
+
import { getWaiverTitle, setClientVariantClose } from "../utils";
|
40
40
|
import useGetHolderList from "../../hooks/useGetHolderList";
|
41
41
|
var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
|
42
|
-
var _context$appHelper, _context$appHelper$ge, _state$bookingConfig2, _state$bookingConfig4, _state$pet3, _state$pet4, _state$pet6, _state$pet8, _state$client$value3, _state$bookingConfig7, _state$pet9, _state$bookingConfig8, _state$service2, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11, _state$client$value12, _state$client$value13, _context$appHelper2, _context$appHelper2$i, _state$bookingConfig9, _state$client6;
|
42
|
+
var _context$appHelper, _context$appHelper$ge, _state$bookingConfig2, _state$bookingConfig4, _state$pet3, _state$pet4, _state$pet6, _state$pet8, _state$client$value3, _state$bookingConfig7, _state$pet9, _state$bookingConfig8, _state$service2, _modalRef$current3, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11, _state$client$value12, _state$client$value13, _context$appHelper2, _context$appHelper2$i, _state$bookingConfig9, _state$client6;
|
43
43
|
var globalState = props.globalState,
|
44
44
|
setGlobalState = props.setGlobalState;
|
45
45
|
var modalRef = useRef();
|
@@ -348,6 +348,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
348
348
|
setSearch: (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 ? void 0 : _modalRef$current2.setSearch
|
349
349
|
};
|
350
350
|
});
|
351
|
+
setClientVariantClose((_modalRef$current3 = modalRef.current) === null || _modalRef$current3 === void 0 ? void 0 : _modalRef$current3.close);
|
351
352
|
|
352
353
|
/**
|
353
354
|
* @title: 是否打开更改商品弹窗
|
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
248
248
|
* @Author: WangHan
|
249
249
|
* @Date: 2024-12-24 11:32
|
250
250
|
*/
|
251
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
251
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
@@ -584,7 +584,8 @@ export var getProductExtend = function getProductExtend(_ref11) {
|
|
584
584
|
state: state
|
585
585
|
});
|
586
586
|
if (getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration) === 'flexible') {
|
587
|
-
|
587
|
+
var _cacheItem$_data$time;
|
588
|
+
_cacheItem._extend.duration = (_cacheItem$_data$time = _cacheItem._data.timeObj) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time.durationSlicesBasedOnTime) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time[0]) === null || _cacheItem$_data$time === void 0 ? void 0 : _cacheItem$_data$time.value;
|
588
589
|
|
589
590
|
// 计算服务的开始和结束时间
|
590
591
|
var _getServiceTimes = getServiceTimes({
|
@@ -39,7 +39,7 @@ import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBo
|
|
39
39
|
import NoteModal from "../../../../../plus/noteModal";
|
40
40
|
var submitLock = false;
|
41
41
|
var Info = function Info(_, ref) {
|
42
|
-
var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$
|
42
|
+
var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI6, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI11, _state$bookingConfig5, _state$service$cacheI12, _state$service$cacheI13, _state$service9, _state$service$resour2, _state$service$cacheI14, _state$service$cacheI15;
|
43
43
|
var _Form$useForm = Form.useForm(),
|
44
44
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
45
45
|
form = _Form$useForm2[0];
|
@@ -224,7 +224,7 @@ var Info = function Info(_, ref) {
|
|
224
224
|
* @Date: 2024-01-09 14:04
|
225
225
|
*/
|
226
226
|
var onFinish = function onFinish(values) {
|
227
|
-
var _resourcesRef$current, _item$_extend;
|
227
|
+
var _resourcesRef$current, _item$_extend, _state$service$cacheI3;
|
228
228
|
var isSuccess = (_resourcesRef$current = resourcesRef.current) === null || _resourcesRef$current === void 0 ? void 0 : _resourcesRef$current.check();
|
229
229
|
if (isShowTimeAndResource && !isSuccess) {
|
230
230
|
return;
|
@@ -283,6 +283,13 @@ var Info = function Info(_, ref) {
|
|
283
283
|
deleteCacheParams();
|
284
284
|
console.log('_onFinish', _list);
|
285
285
|
form.resetFields();
|
286
|
+
if (!!((_state$service$cacheI3 = state.service.cacheItem) !== null && _state$service$cacheI3 !== void 0 && _state$service$cacheI3.new)) {
|
287
|
+
window.dispatchEvent(new CustomEvent('onAddNewService', {
|
288
|
+
detail: {
|
289
|
+
cacheItem: _objectSpread({}, state.service.cacheItem)
|
290
|
+
}
|
291
|
+
}));
|
292
|
+
}
|
286
293
|
dispatch({
|
287
294
|
type: 'setService',
|
288
295
|
payload: {
|
@@ -356,12 +363,12 @@ var Info = function Info(_, ref) {
|
|
356
363
|
* @Date: 2024-01-09 14:06
|
357
364
|
*/
|
358
365
|
var isReason = useMemo(function () {
|
359
|
-
var _state$service$
|
360
|
-
var oPrice = Number(((_state$service$
|
366
|
+
var _state$service$cacheI4;
|
367
|
+
var oPrice = Number(((_state$service$cacheI4 = state.service.cacheItem) === null || _state$service$cacheI4 === void 0 ? void 0 : _state$service$cacheI4._extend.origin_total) || 0);
|
361
368
|
var cPrice = Number(useTotal || 0);
|
362
369
|
// 原价 !== 现价
|
363
370
|
return cPrice !== oPrice;
|
364
|
-
}, [useTotal, (_state$service$
|
371
|
+
}, [useTotal, (_state$service$cacheI5 = state.service.cacheItem) === null || _state$service$cacheI5 === void 0 || (_state$service$cacheI5 = _state$service$cacheI5._extend) === null || _state$service$cacheI5 === void 0 ? void 0 : _state$service$cacheI5.origin_total]);
|
365
372
|
var getResources = function getResources() {
|
366
373
|
var res = formatResources({
|
367
374
|
cacheItem: getCurrentCacheItem(),
|
@@ -435,7 +442,7 @@ var Info = function Info(_, ref) {
|
|
435
442
|
*/
|
436
443
|
useEffect(function () {
|
437
444
|
getDiscount();
|
438
|
-
}, [useTotal, (_state$service$
|
445
|
+
}, [useTotal, (_state$service$cacheI6 = state.service.cacheItem) === null || _state$service$cacheI6 === void 0 || (_state$service$cacheI6 = _state$service$cacheI6._extend) === null || _state$service$cacheI6 === void 0 ? void 0 : _state$service$cacheI6.origin_total]);
|
439
446
|
var bundles = useMemo(function () {
|
440
447
|
var _state$service5;
|
441
448
|
return ((_state$service5 = state.service) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.cacheItem) === null || _state$service5 === void 0 || (_state$service5 = _state$service5._extend) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.other) === null || _state$service5 === void 0 ? void 0 : _state$service5.bundle) || [];
|
@@ -588,6 +595,22 @@ var Info = function Info(_, ref) {
|
|
588
595
|
}, [state.renderType, isNormalProduct]);
|
589
596
|
var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
|
590
597
|
var isNoSpecAndPackage = getIsNoSpecAndPackage(state.service.cacheItem);
|
598
|
+
var handleNoteConfirm = function handleNoteConfirm(noteValue) {
|
599
|
+
form.setFieldsValue({
|
600
|
+
note: noteValue
|
601
|
+
});
|
602
|
+
setNoteModalOpen(false);
|
603
|
+
};
|
604
|
+
var handleNoteDelete = function handleNoteDelete() {
|
605
|
+
form.setFieldsValue({
|
606
|
+
note: ''
|
607
|
+
});
|
608
|
+
setNoteModalOpen(false);
|
609
|
+
};
|
610
|
+
var handleNoteCancel = function handleNoteCancel() {
|
611
|
+
setNoteModalOpen(false);
|
612
|
+
};
|
613
|
+
console.log(isShowTimeAndResource, 'isShowTimeAndResource');
|
591
614
|
var productName = useMemo(function () {
|
592
615
|
var _state$service7;
|
593
616
|
return /*#__PURE__*/React.createElement(Col, {
|
@@ -615,7 +638,7 @@ var Info = function Info(_, ref) {
|
|
615
638
|
}))));
|
616
639
|
}, [(_state$service8 = state.service) === null || _state$service8 === void 0 || (_state$service8 = _state$service8.cacheItem) === null || _state$service8 === void 0 || (_state$service8 = _state$service8._extend) === null || _state$service8 === void 0 ? void 0 : _state$service8.product_name, bundles, state.amountSymbol, state.isBookingCreatePage]);
|
617
640
|
var price = useMemo(function () {
|
618
|
-
var _state$service$
|
641
|
+
var _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10;
|
619
642
|
return /*#__PURE__*/React.createElement(Col, {
|
620
643
|
span: 24
|
621
644
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
@@ -624,7 +647,7 @@ var Info = function Info(_, ref) {
|
|
624
647
|
rules: [{
|
625
648
|
required: true
|
626
649
|
}],
|
627
|
-
extra: useTotal !== ((_state$service$
|
650
|
+
extra: useTotal !== ((_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 || (_state$service$cacheI7 = _state$service$cacheI7._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total) && locales.getText('page.booking.text.price-extra')(formatAmount((_state$service$cacheI8 = state.service.cacheItem) === null || _state$service$cacheI8 === void 0 || (_state$service$cacheI8 = _state$service$cacheI8._extend) === null || _state$service$cacheI8 === void 0 ? void 0 : _state$service$cacheI8.origin_total, 2, state.amountSymbol), formatAmount(useTotal, 2, state.amountSymbol))
|
628
651
|
}, /*#__PURE__*/React.createElement(PisellAdjustPriceInputNumber, {
|
629
652
|
style: {
|
630
653
|
width: '100%'
|
@@ -634,10 +657,10 @@ var Info = function Info(_, ref) {
|
|
634
657
|
prefix: state.amountSymbol,
|
635
658
|
onChange: handleTotalChange,
|
636
659
|
disabled: state.channelDisabledEdit,
|
637
|
-
originValue: ((_state$service$
|
638
|
-
placeholder: ((_state$service$
|
660
|
+
originValue: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || 0,
|
661
|
+
placeholder: ((_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total) || '0'
|
639
662
|
})));
|
640
|
-
}, [useTotal, (_state$service$
|
663
|
+
}, [useTotal, (_state$service$cacheI11 = state.service.cacheItem) === null || _state$service$cacheI11 === void 0 || (_state$service$cacheI11 = _state$service$cacheI11._extend) === null || _state$service$cacheI11 === void 0 ? void 0 : _state$service$cacheI11.origin_total, state.amountSymbol, state.channelDisabledEdit]);
|
641
664
|
var reason = useMemo(function () {
|
642
665
|
return isReason ? /*#__PURE__*/React.createElement(Col, {
|
643
666
|
span: 24
|
@@ -701,7 +724,7 @@ var Info = function Info(_, ref) {
|
|
701
724
|
// useStartTime={useStartTime}
|
702
725
|
}));
|
703
726
|
// 只监听内部使用值
|
704
|
-
}, [state.renderType, (_state$service$
|
727
|
+
}, [state.renderType, (_state$service$cacheI12 = state.service.cacheItem) === null || _state$service$cacheI12 === void 0 || (_state$service$cacheI12 = _state$service$cacheI12._data) === null || _state$service$cacheI12 === void 0 ? void 0 : _state$service$cacheI12.resources, (_state$service$cacheI13 = state.service.cacheItem) === null || _state$service$cacheI13 === void 0 || (_state$service$cacheI13 = _state$service$cacheI13._data) === null || _state$service$cacheI13 === void 0 ? void 0 : _state$service$cacheI13.resourceMaps]);
|
705
728
|
var capacity = useMemo(function () {
|
706
729
|
return /*#__PURE__*/React.createElement(Form.Item, {
|
707
730
|
noStyle: true,
|
@@ -788,7 +811,7 @@ var Info = function Info(_, ref) {
|
|
788
811
|
}, locales.getText('pisell2.text.apply')));
|
789
812
|
}, [(_state$service$resour2 = state.service.resourcesOrigin) === null || _state$service$resour2 === void 0 ? void 0 : _state$service$resour2.length, isNormalProduct]);
|
790
813
|
console.log('render edit');
|
791
|
-
console.log(state.service.editModal && !((_state$service$
|
814
|
+
console.log(state.service.editModal && !((_state$service$cacheI14 = state.service.cacheItem) !== null && _state$service$cacheI14 !== void 0 && _state$service$cacheI14.autoClose), performance.now() - window.pp1, '打开商品1');
|
792
815
|
var _useState3 = useState(false),
|
793
816
|
_useState4 = _slicedToArray(_useState3, 2),
|
794
817
|
val = _useState4[0],
|
@@ -802,21 +825,6 @@ var Info = function Info(_, ref) {
|
|
802
825
|
setVal(false);
|
803
826
|
}
|
804
827
|
}, [isShowTimeAndResource]);
|
805
|
-
var handleNoteConfirm = function handleNoteConfirm(noteValue) {
|
806
|
-
form.setFieldsValue({
|
807
|
-
note: noteValue
|
808
|
-
});
|
809
|
-
setNoteModalOpen(false);
|
810
|
-
};
|
811
|
-
var handleNoteDelete = function handleNoteDelete() {
|
812
|
-
form.setFieldsValue({
|
813
|
-
note: ''
|
814
|
-
});
|
815
|
-
setNoteModalOpen(false);
|
816
|
-
};
|
817
|
-
var handleNoteCancel = function handleNoteCancel() {
|
818
|
-
setNoteModalOpen(false);
|
819
|
-
};
|
820
828
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
821
829
|
titleNoWrap: true
|
822
830
|
//通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
|
@@ -824,7 +832,7 @@ var Info = function Info(_, ref) {
|
|
824
832
|
zIndex: state.service.changeService ? 999 : 1000,
|
825
833
|
forceRender: true,
|
826
834
|
mask: state.drawerMask,
|
827
|
-
open: !isNoSpecAndPackage && state.service.editModal && !((_state$service$
|
835
|
+
open: !isNoSpecAndPackage && state.service.editModal && !((_state$service$cacheI15 = state.service.cacheItem) !== null && _state$service$cacheI15 !== void 0 && _state$service$cacheI15.autoClose),
|
828
836
|
title: locales.getText('pisell2.text.edit-service'),
|
829
837
|
onClose: function onClose() {
|
830
838
|
dispatch({
|
@@ -10,7 +10,6 @@ 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";
|
15
14
|
|
16
15
|
// 获取当前剩余量
|
@@ -338,7 +337,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
338
337
|
// 下一个商品的扩展参数
|
339
338
|
var _extend = {
|
340
339
|
// 时长: 当前商品时长 > 第一个时长
|
341
|
-
duration: findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
|
340
|
+
duration: 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)
|
342
341
|
};
|
343
342
|
|
344
343
|
// 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
|
@@ -352,7 +351,8 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
352
351
|
} else {
|
353
352
|
// 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
|
354
353
|
if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
|
355
|
-
|
354
|
+
var _timeObj$timeSlices;
|
355
|
+
_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;
|
356
356
|
} else {
|
357
357
|
_extend.start_time = lastServerEndDate.format("HH:mm");
|
358
358
|
}
|
@@ -414,7 +414,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
414
414
|
// 是否是无规格无套餐商品的非预约商品
|
415
415
|
export var getIsNoSpecAndPackage = function getIsNoSpecAndPackage(product) {
|
416
416
|
var _product$variant;
|
417
|
-
if (
|
417
|
+
if ((product === null || product === void 0 ? void 0 : product.extension_type) !== 'normal') {
|
418
418
|
return false;
|
419
419
|
}
|
420
420
|
// 编辑状态参数判断
|
@@ -60,7 +60,7 @@ var Duration = function Duration(props) {
|
|
60
60
|
});
|
61
61
|
}
|
62
62
|
return durationSlicesBasedOnTime;
|
63
|
-
}, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
|
63
|
+
}, [timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
|
64
64
|
useEffect(function () {
|
65
65
|
timeObjChange === null || timeObjChange === void 0 || timeObjChange(times);
|
66
66
|
}, [times]);
|
@@ -37,6 +37,6 @@ var StartTime = function StartTime(props) {
|
|
37
37
|
}, d[label]);
|
38
38
|
});
|
39
39
|
}, []);
|
40
|
-
return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj.timeSlices));
|
40
|
+
return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices));
|
41
41
|
};
|
42
42
|
export default StartTime;
|
@@ -670,7 +670,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
670
670
|
if (isSession) {
|
671
671
|
return getDays(cacheItem, 'minutes');
|
672
672
|
}
|
673
|
-
return findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
|
673
|
+
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);
|
674
674
|
};
|
675
675
|
|
676
676
|
// 获取上一个服务商品
|
@@ -694,7 +694,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
694
694
|
} else {
|
695
695
|
// 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
|
696
696
|
if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, 'day')) {
|
697
|
-
_extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
|
697
|
+
_extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices.length) - 1].value;
|
698
698
|
} else {
|
699
699
|
_extend.start_time = lastServerEndDate.format("HH:mm");
|
700
700
|
}
|
@@ -704,7 +704,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
704
704
|
// _extend.resource = 0;
|
705
705
|
|
706
706
|
var findNextSliceProps = {
|
707
|
-
timeSlices: timeObj.timeSlices,
|
707
|
+
timeSlices: timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices,
|
708
708
|
index: 0,
|
709
709
|
date: ''
|
710
710
|
};
|