@pisell/private-materials 6.4.80 → 6.4.82
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.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/addons/index.js +3 -3
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +48 -34
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +55 -36
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +3 -1
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- 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/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +16 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/components/AmountSummary/index.less +4 -5
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- 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/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/index.d.ts +24 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/locales.d.ts +301 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/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/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/es/plus/saasCreateOrganization/index.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/addons/index.js +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +29 -15
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +21 -4
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +4 -2
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- 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/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +12 -3
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/components/AmountSummary/index.less +4 -5
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- 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/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/index.d.ts +24 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/locales.d.ts +301 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/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/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
- package/package.json +3 -3
|
@@ -22,7 +22,6 @@ import { useControllableValue } from 'ahooks';
|
|
|
22
22
|
import { merge, omit } from 'lodash';
|
|
23
23
|
//@ts-ignore
|
|
24
24
|
import { locales } from '@pisell/utils';
|
|
25
|
-
import { VirtualInput } from '@pisell/materials';
|
|
26
25
|
import Shortcuts from "../shortcuts";
|
|
27
26
|
import CashKeyboardSimple from "./CashKeyboardSimple";
|
|
28
27
|
import { setKeyboardTheme } from "../../utils";
|
|
@@ -30,6 +29,7 @@ import "./index.less";
|
|
|
30
29
|
import Decimal from 'decimal.js';
|
|
31
30
|
import { AutoResizeText } from '@pisell/materials';
|
|
32
31
|
import { formatAmountWithOptions } from '@pisell/utils';
|
|
32
|
+
import { Iconfont } from '@pisell/materials';
|
|
33
33
|
var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
34
34
|
var _mergedDisplayField$b, _mergedDisplayField$c, _mergedDisplayField$c2;
|
|
35
35
|
var amountSymbol = props.amountSymbol,
|
|
@@ -251,47 +251,52 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
251
251
|
showCurrencySymbol: true
|
|
252
252
|
}))))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
|
|
253
253
|
style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
|
|
254
|
-
padding: '
|
|
254
|
+
padding: '0px 16px',
|
|
255
255
|
borderRadius: '8px',
|
|
256
256
|
backgroundColor: 'white',
|
|
257
257
|
boxShadow: 'inset 0 2px 4px rgba(16, 24, 40, 0.08), inset 0 -2px 4px rgba(16, 24, 40, 0.08), inset 2px 0 4px rgba(16, 24, 40, 0.08), inset -2px 0 4px rgba(16, 24, 40, 0.08)',
|
|
258
258
|
overflow: 'hidden',
|
|
259
259
|
maxWidth: 188,
|
|
260
260
|
cursor: 'pointer',
|
|
261
|
-
border: '1px solid #7f56da'
|
|
261
|
+
border: '1px solid #7f56da',
|
|
262
|
+
borderBottom: '1px solid #7f56da'
|
|
262
263
|
}),
|
|
263
264
|
onClick: function onClick() {
|
|
264
265
|
setIsShowModal(true);
|
|
265
266
|
}
|
|
266
|
-
}, /*#__PURE__*/React.createElement(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
267
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
268
|
+
className: "pisell-cash-keyboard-intact-container-top",
|
|
269
|
+
style: _objectSpread(_objectSpread({}, getGridStyle(0)), {}, {
|
|
270
|
+
overflow: 'hidden',
|
|
271
|
+
padding: '5px 0'
|
|
272
|
+
})
|
|
273
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
274
|
+
className: "pisell-cash-keyboard-intact-container-top-label"
|
|
275
|
+
}, mergedDisplayField.cashReceived.label), /*#__PURE__*/React.createElement("div", {
|
|
276
|
+
className: "pisell-cash-keyboard-intact-container-top-value"
|
|
277
|
+
}, /*#__PURE__*/React.createElement(AutoResizeText, {
|
|
278
|
+
minFontSizePx: 10,
|
|
279
|
+
maxFontSizePx: 18,
|
|
280
|
+
fontSizePrecisionPx: 0.5,
|
|
281
|
+
style: {
|
|
282
|
+
color: '#7f56da',
|
|
283
|
+
textDecoration: 'underline',
|
|
284
|
+
textUnderlineOffset: '3px'
|
|
285
|
+
}
|
|
286
|
+
}, internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
|
|
287
|
+
value: internalValue,
|
|
288
|
+
hideDecimalForWholeNumbers: false,
|
|
289
|
+
precision: 2,
|
|
290
|
+
showCurrencySymbol: true
|
|
291
|
+
}) : ''), /*#__PURE__*/React.createElement(Iconfont, {
|
|
292
|
+
type: "pisell2-edit-05",
|
|
287
293
|
style: {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
width: '100%'
|
|
294
|
+
color: '#7f56da',
|
|
295
|
+
fontSize: '18px',
|
|
296
|
+
marginLeft: '4px',
|
|
297
|
+
marginTop: '4px'
|
|
293
298
|
}
|
|
294
|
-
})), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
|
|
299
|
+
})))), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
|
|
295
300
|
className: "pisell-cash-keyboard-intact-container-top",
|
|
296
301
|
style: _objectSpread(_objectSpread({}, getGridStyle(2)), {}, {
|
|
297
302
|
overflow: 'hidden'
|
|
@@ -72,7 +72,7 @@ var formatProducts = (values) => {
|
|
|
72
72
|
"product_option_item": (0, import_utils.formatProductOption)((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.option),
|
|
73
73
|
"product_variant_id": ((_i = (_h = item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.product_variant_id) || 0,
|
|
74
74
|
"source_product_price": (0, import_utils.getSourceProductPrice)(item),
|
|
75
|
-
"main_product_selling_price": item
|
|
75
|
+
"main_product_selling_price": (0, import_utils.getMainProductSellingPrice)(item) ?? (0, import_utils.formatProductPrice)(item),
|
|
76
76
|
"calculated_original_price": (0, import_utils.formatOriginalPrice)(item),
|
|
77
77
|
"calculated_selling_price": (0, import_utils.formatSellingPrice)(item),
|
|
78
78
|
"tax_fee": item._extend.tax_fee
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -374,18 +374,14 @@ var getDiscountAmount = (discounts) => {
|
|
|
374
374
|
}, new import_decimal.default(0)).toNumber();
|
|
375
375
|
};
|
|
376
376
|
var getMainProductTotal = (item) => {
|
|
377
|
-
var _a, _b, _c, _d;
|
|
378
|
-
let total = new import_decimal.default(item._extend.main_product_selling_price
|
|
379
|
-
if (
|
|
380
|
-
|
|
381
|
-
total = total.minus(discountAmount);
|
|
382
|
-
}
|
|
383
|
-
if (((_a = item._extend.other) == null ? void 0 : _a.option) && Array.isArray((_b = item._extend.other) == null ? void 0 : _b.option)) {
|
|
384
|
-
total = total.add((_c = item._extend.other) == null ? void 0 : _c.option.reduce((t, option) => {
|
|
377
|
+
var _a, _b, _c, _d, _e, _f;
|
|
378
|
+
let total = new import_decimal.default(((_a = item._extend) == null ? void 0 : _a.main_product_selling_price) ?? ((_b = item == null ? void 0 : item.metadata) == null ? void 0 : _b.main_product_selling_price) ?? item._extend.price ?? 0);
|
|
379
|
+
if (((_c = item._extend.other) == null ? void 0 : _c.option) && Array.isArray((_d = item._extend.other) == null ? void 0 : _d.option)) {
|
|
380
|
+
total = total.add((_e = item._extend.other) == null ? void 0 : _e.option.reduce((t, option) => {
|
|
385
381
|
return t.add(new import_decimal.default(option.price || 0).mul(option.num || 1));
|
|
386
382
|
}, new import_decimal.default(0)));
|
|
387
383
|
}
|
|
388
|
-
for (let bundleItem of ((
|
|
384
|
+
for (let bundleItem of ((_f = item._extend.other) == null ? void 0 : _f.bundle) || []) {
|
|
389
385
|
if (getBundleItemIsMarkupOrDiscountPrice(bundleItem)) {
|
|
390
386
|
const discountAmount = getDiscountAmount(bundleItem.discount_list);
|
|
391
387
|
const bundleItemPrice = new import_decimal.default(bundleItem.bundle_selling_price ?? bundleItem.price ?? 0);
|
|
@@ -572,8 +568,12 @@ var getSurcharge = (state, options) => {
|
|
|
572
568
|
}
|
|
573
569
|
}, 0);
|
|
574
570
|
let fixedTotal = new import_decimal.default(0);
|
|
571
|
+
let productTotalSurcharge = new import_decimal.default(0);
|
|
575
572
|
if (matchedItems.length > 0) {
|
|
576
573
|
let configTotal = new import_decimal.default(0);
|
|
574
|
+
if (fixed && new import_decimal.default(fixed).gt(0)) {
|
|
575
|
+
configTotal = configTotal.plus(fixed);
|
|
576
|
+
}
|
|
577
577
|
if (percentage && new import_decimal.default(percentage).gt(0) || fixed) {
|
|
578
578
|
const percentageRate = new import_decimal.default(percentage);
|
|
579
579
|
for (let [index, item] of matchedItems.entries()) {
|
|
@@ -582,6 +582,7 @@ var getSurcharge = (state, options) => {
|
|
|
582
582
|
const itemQuantity = new import_decimal.default(item.isMain ? item.quantity || 1 : item.quantity * item.mainQuantity || 1);
|
|
583
583
|
const addTimeTotal = new import_decimal.default(item.addTimeTotal || 0);
|
|
584
584
|
const itemTotalSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
|
|
585
|
+
configTotal = configTotal.plus(itemTotalSurcharge);
|
|
585
586
|
const itemSurcharge = itemPrice.times(percentageRate);
|
|
586
587
|
const fixedSurcharge = new import_decimal.default(1).div(productCount).times(fixed).times(100).floor().div(100).toFixed(2);
|
|
587
588
|
const quantity = item.isMain ? item.quantity : item.quantity * item.mainQuantity;
|
|
@@ -589,6 +590,7 @@ var getSurcharge = (state, options) => {
|
|
|
589
590
|
if (isLast && fixedTotal.gt(0)) {
|
|
590
591
|
const remaining = new import_decimal.default(fixed).minus(fixedTotal).toNumber();
|
|
591
592
|
if (remaining > 0) {
|
|
593
|
+
productTotalSurcharge = productTotalSurcharge.plus(remaining);
|
|
592
594
|
if (item.isMain) {
|
|
593
595
|
item.item._extend.surcharge_rounding_remainder = remaining;
|
|
594
596
|
} else {
|
|
@@ -599,20 +601,32 @@ var getSurcharge = (state, options) => {
|
|
|
599
601
|
if (open_product !== 0) {
|
|
600
602
|
if (item.isMain) {
|
|
601
603
|
const originSurchargeFee = new import_decimal.default(item.item._extend.surcharge_fee || 0);
|
|
602
|
-
|
|
604
|
+
const surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
|
|
605
|
+
productTotalSurcharge = productTotalSurcharge.plus(new import_decimal.default(surchargeFee).times(itemQuantity).toNumber());
|
|
606
|
+
item.item._extend.surcharge_fee = surchargeFee;
|
|
603
607
|
item.item._extend.relation_surcharge_ids = [...((_d = item.item._extend) == null ? void 0 : _d.relation_surcharge_ids) || [], id];
|
|
604
608
|
} else {
|
|
605
609
|
const originSurchargeFee = new import_decimal.default(item.item.surcharge_fee || 0);
|
|
606
|
-
|
|
610
|
+
const surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
|
|
611
|
+
productTotalSurcharge = productTotalSurcharge.plus(new import_decimal.default(surchargeFee).times(itemQuantity).toNumber());
|
|
612
|
+
item.item.surcharge_fee = surchargeFee;
|
|
607
613
|
item.item.relation_surcharge_ids = [...((_e = item.item) == null ? void 0 : _e.relation_surcharge_ids) || [], id];
|
|
608
614
|
}
|
|
609
615
|
}
|
|
610
|
-
|
|
616
|
+
if (isLast && configTotal.minus(productTotalSurcharge).gt(0)) {
|
|
617
|
+
const configTotalRounded = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
|
|
618
|
+
if (item.isMain) {
|
|
619
|
+
let newRoundingRemainder = new import_decimal.default(item.item._extend.surcharge_rounding_remainder || 0);
|
|
620
|
+
newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
|
|
621
|
+
item.item._extend.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
|
|
622
|
+
} else {
|
|
623
|
+
let newRoundingRemainder = new import_decimal.default(item.item.surcharge_rounding_remainder || 0);
|
|
624
|
+
newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
|
|
625
|
+
item.item.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
|
|
626
|
+
}
|
|
627
|
+
}
|
|
611
628
|
}
|
|
612
629
|
}
|
|
613
|
-
if (fixed && new import_decimal.default(fixed).gt(0)) {
|
|
614
|
-
configTotal = configTotal.plus(fixed);
|
|
615
|
-
}
|
|
616
630
|
finalAmount = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP).toNumber();
|
|
617
631
|
}
|
|
618
632
|
const name = surchargeConfig.name || {};
|
|
@@ -55,5 +55,6 @@ export declare const formatOriginalPrice: (item: any) => number;
|
|
|
55
55
|
*/
|
|
56
56
|
export declare const formatSellingPrice: (item: any) => number;
|
|
57
57
|
export declare const getSourceProductPrice: (item: any) => number;
|
|
58
|
+
export declare const getMainProductSellingPrice: (item: any) => number | undefined;
|
|
58
59
|
export declare const formatValues: (state: any) => any;
|
|
59
60
|
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -39,6 +39,7 @@ __export(utils_exports, {
|
|
|
39
39
|
formatSellingPrice: () => formatSellingPrice,
|
|
40
40
|
formatValues: () => formatValues,
|
|
41
41
|
getBundleDiscountList: () => getBundleDiscountList,
|
|
42
|
+
getMainProductSellingPrice: () => getMainProductSellingPrice,
|
|
42
43
|
getSourceProductPrice: () => getSourceProductPrice
|
|
43
44
|
});
|
|
44
45
|
module.exports = __toCommonJS(utils_exports);
|
|
@@ -128,8 +129,8 @@ var formatProductBundle = (bundle) => {
|
|
|
128
129
|
"custom_price": (d == null ? void 0 : d.custom_price) || Math.abs(new import_decimal.default((d == null ? void 0 : d.original_price) || (d == null ? void 0 : d.product_price)).sub(option_price).toNumber()).toFixed(2),
|
|
129
130
|
"custom_price_type": d == null ? void 0 : d.price_type,
|
|
130
131
|
"option": option,
|
|
131
|
-
"bundle_selling_price": d == null ? void 0 : d.price,
|
|
132
|
-
"bundle_sum_price":
|
|
132
|
+
"bundle_selling_price": Math.abs(d == null ? void 0 : d.price),
|
|
133
|
+
// "bundle_sum_price": d?.original_price || d?.original_total,
|
|
133
134
|
"metadata": {
|
|
134
135
|
custom_product_bundle_map_id: d._id,
|
|
135
136
|
// 子商品单数量附加费
|
|
@@ -240,7 +241,7 @@ var formatHolders = (state, item, values) => {
|
|
|
240
241
|
var formatProductPrice = (item) => {
|
|
241
242
|
var _a, _b, _c, _d;
|
|
242
243
|
const other = (_a = item._extend) == null ? void 0 : _a.other;
|
|
243
|
-
let price = Number((_b = item._extend) == null ? void 0 : _b.price);
|
|
244
|
+
let price = Number((item == null ? void 0 : item.price) ?? ((_b = item == null ? void 0 : item._extend) == null ? void 0 : _b.price));
|
|
244
245
|
if ((other == null ? void 0 : other.product_variant_id) > 0 && ((_c = item == null ? void 0 : item.variant) == null ? void 0 : _c.length) > 0) {
|
|
245
246
|
const variant = item.variant.find(
|
|
246
247
|
(d) => d.id === (other == null ? void 0 : other.product_variant_id)
|
|
@@ -315,6 +316,21 @@ var getSourceProductPrice = (item) => {
|
|
|
315
316
|
}
|
|
316
317
|
return price;
|
|
317
318
|
};
|
|
319
|
+
var getMainProductSellingPrice = (item) => {
|
|
320
|
+
var _a, _b, _c, _d, _e, _f;
|
|
321
|
+
if (!(0, import_utils5.isNumber)((_a = item._extend) == null ? void 0 : _a.main_product_selling_price) && !(0, import_utils5.isString)((_b = item._extend) == null ? void 0 : _b.main_product_selling_price)) {
|
|
322
|
+
return void 0;
|
|
323
|
+
}
|
|
324
|
+
let optionPrice = new import_decimal.default(0);
|
|
325
|
+
if (((_c = item._extend.other) == null ? void 0 : _c.option) && Array.isArray((_d = item._extend.other) == null ? void 0 : _d.option)) {
|
|
326
|
+
optionPrice = (_e = item._extend.other) == null ? void 0 : _e.option.reduce((accumulator, currentValue) => {
|
|
327
|
+
const currentPrice = new import_decimal.default(currentValue.price || 0);
|
|
328
|
+
const currentNum = new import_decimal.default(currentValue.num || 0);
|
|
329
|
+
return accumulator.add(currentPrice.mul(currentNum));
|
|
330
|
+
}, optionPrice);
|
|
331
|
+
}
|
|
332
|
+
return new import_decimal.default((_f = item._extend) == null ? void 0 : _f.main_product_selling_price).add(optionPrice).toNumber();
|
|
333
|
+
};
|
|
318
334
|
var formatProducts = (item, quantity) => {
|
|
319
335
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
320
336
|
const total = Number(item._extend.total);
|
|
@@ -340,7 +356,7 @@ var formatProducts = (item, quantity) => {
|
|
|
340
356
|
"name": item.name,
|
|
341
357
|
"num": quantity || item._extend.quantity,
|
|
342
358
|
"price": formatProductPrice(item),
|
|
343
|
-
"main_product_selling_price": item
|
|
359
|
+
"main_product_selling_price": getMainProductSellingPrice(item) ?? formatProductPrice(item),
|
|
344
360
|
"source_product_price": getSourceProductPrice(item),
|
|
345
361
|
"product_id": (item == null ? void 0 : item.product_id) || item.product_id === 0 ? item.product_id : item.id,
|
|
346
362
|
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
@@ -671,5 +687,6 @@ var checkHolderIsError = (state) => {
|
|
|
671
687
|
formatSellingPrice,
|
|
672
688
|
formatValues,
|
|
673
689
|
getBundleDiscountList,
|
|
690
|
+
getMainProductSellingPrice,
|
|
674
691
|
getSourceProductPrice
|
|
675
692
|
});
|
|
@@ -60,6 +60,8 @@ var VoucherCard = (props) => {
|
|
|
60
60
|
const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
|
|
61
61
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
62
62
|
const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
|
|
63
|
+
const stateRef = (0, import_react.useRef)(state);
|
|
64
|
+
stateRef.current = state;
|
|
63
65
|
services = state.service;
|
|
64
66
|
const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
65
67
|
dispatch({
|
|
@@ -161,8 +163,8 @@ var VoucherCard = (props) => {
|
|
|
161
163
|
}
|
|
162
164
|
if (isBooking4Shop) {
|
|
163
165
|
const val = shopDiscount.calcDiscount([
|
|
164
|
-
...
|
|
165
|
-
...
|
|
166
|
+
...stateRef.current.service.value,
|
|
167
|
+
...stateRef.current.addons.value
|
|
166
168
|
]);
|
|
167
169
|
console.log("input: ", state.service.value);
|
|
168
170
|
console.log("output: ", val);
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SendModalValues } from './index';
|
|
2
3
|
declare const useSendModal: (bookingId?: number) => {
|
|
3
4
|
open: boolean;
|
|
4
5
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
6
|
handleOpen: () => void;
|
|
6
7
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
8
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
9
|
};
|
|
9
10
|
export default useSendModal;
|
|
@@ -95,10 +95,11 @@ var setNewCartValue = (cartValue, newProducts) => {
|
|
|
95
95
|
}
|
|
96
96
|
const selectBundleInfo = item._extend.other.bundle.find((item2) => item2.id === bundle.id);
|
|
97
97
|
const optionPrice = calculateTotalPrice((selectBundleInfo == null ? void 0 : selectBundleInfo.option) || []);
|
|
98
|
+
const isEditDiscount = item.booking_id && (bundle.discount_list || []).length;
|
|
98
99
|
return {
|
|
99
100
|
...bundle,
|
|
100
101
|
base_price: bundleItemMap[bundle.id].base_price,
|
|
101
|
-
price: new import_decimal.default(bundleItemMap[bundle.id].price || 0).add(optionPrice).toNumber()
|
|
102
|
+
price: isEditDiscount ? bundle.price : new import_decimal.default(bundleItemMap[bundle.id].price || 0).add(optionPrice).toNumber()
|
|
102
103
|
// product_price: bundleItemMap[item.id].product_price,
|
|
103
104
|
};
|
|
104
105
|
});
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -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>;
|
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_ahooks = require("ahooks");
|
|
37
37
|
var import_skuDetailModal = __toESM(require("../../../../../pro/skuDetailModal"));
|
|
38
38
|
var import_model = require("../../../info/model");
|
|
39
|
+
var import_utils = require("../editService/utils");
|
|
39
40
|
var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
|
|
40
41
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
41
42
|
const modalRef = (0, import_react.useRef)(null);
|
|
@@ -62,7 +63,12 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
|
|
|
62
63
|
const handleConfirm = (0, import_ahooks.useMemoizedFn)((data) => {
|
|
63
64
|
var _a, _b;
|
|
64
65
|
const newProducts = (_b = ((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value) || []) == null ? void 0 : _b.map((item) => {
|
|
66
|
+
var _a2, _b2;
|
|
65
67
|
if (item._id == data._id) {
|
|
68
|
+
data = (0, import_utils.setProductPrice)(data, {
|
|
69
|
+
newTotal: (_a2 = data._extend) == null ? void 0 : _a2.total,
|
|
70
|
+
origin_total: (_b2 = data._extend) == null ? void 0 : _b2.origin_total
|
|
71
|
+
});
|
|
66
72
|
return data;
|
|
67
73
|
}
|
|
68
74
|
return item;
|