@pisell/private-materials 6.3.86 → 6.3.88
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/es/components/eftpos/PairModal/hooks.js +67 -0
- package/es/components/eftpos/PairModal/index.d.ts +11 -0
- package/es/components/{ecocup/components/AddCustomerModal → eftpos/PairModal}/index.js +189 -159
- package/es/components/eftpos/PairModal/index.less +70 -0
- package/es/components/eftpos/assets/mx51SCI.svg +15 -0
- package/es/components/eftpos/const.d.ts +3 -1
- package/es/components/eftpos/const.js +2 -0
- package/es/components/eftpos/device.d.ts +3 -1
- package/es/components/eftpos/device.js +5 -3
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +7 -0
- package/es/components/eftpos/hooks.js +20 -0
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.js +118 -14
- package/es/components/eftpos/index.less +26 -1
- package/es/components/eftpos/locales.d.ts +24 -0
- package/es/components/eftpos/locales.js +91 -7
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +70 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +96 -0
- package/es/components/eftposPay/aggregatePayment/types.js +61 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1127 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- 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/header/titlebar.d.ts +0 -1
- 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/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +2 -0
- package/es/components/eftposPay/hooks.d.ts +2 -1
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/linkly/index.js +1 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/mx51/Action.d.ts +6 -0
- package/es/components/eftposPay/mx51/Action.js +91 -0
- package/es/components/eftposPay/mx51/const.d.ts +5 -0
- package/es/components/eftposPay/mx51/const.js +69 -0
- package/es/components/eftposPay/mx51/index.d.ts +6 -0
- package/es/components/eftposPay/mx51/index.js +362 -0
- package/es/components/eftposPay/mx51/types.d.ts +136 -0
- package/es/components/eftposPay/mx51/types.js +29 -0
- package/es/components/eftposPay/mx51/utils.d.ts +10 -0
- package/es/components/eftposPay/mx51/utils.js +120 -0
- package/es/components/eftposPay/pay.js +7 -2
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/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/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/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/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/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/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/index.d.ts +1 -5
- package/es/index.js +1 -5
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +4 -8
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/NumericStepper/index.d.ts +3 -28
- package/es/pro/NumericStepper/index.js +107 -175
- package/es/pro/NumericStepper/index.less +143 -295
- package/es/pro/Selector/Selector.js +26 -33
- package/es/pro/Selector/components/Card/index.js +3 -2
- package/es/pro/Selector/components/Card/index.less +4 -11
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/es/pro/Selector/components/Indicator/index.js +1 -2
- package/es/pro/Selector/components/Indicator/index.less +1 -4
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +6 -60
- package/es/pro/Selector/selector.less +64 -0
- package/es/pro/Selector/types.d.ts +0 -40
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/lib/components/eftpos/PairModal/hooks.js +70 -0
- package/lib/components/eftpos/PairModal/index.d.ts +11 -0
- package/lib/components/eftpos/PairModal/index.js +197 -0
- package/lib/components/eftpos/PairModal/index.less +70 -0
- package/lib/components/eftpos/assets/mx51SCI.svg +15 -0
- package/lib/components/eftpos/const.d.ts +3 -1
- package/lib/components/eftpos/const.js +2 -0
- package/lib/components/eftpos/device.d.ts +3 -1
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +7 -0
- package/lib/components/eftpos/hooks.js +19 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.js +73 -7
- package/lib/components/eftpos/index.less +26 -1
- package/lib/components/eftpos/locales.d.ts +24 -0
- package/lib/components/eftpos/locales.js +88 -4
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/{ecocup/customerList/hooks → eftposPay/aggregatePayment}/index.js +10 -10
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +96 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +746 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- 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/header/titlebar.d.ts +0 -1
- 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/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -1
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/linkly/index.js +1 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
- package/lib/components/eftposPay/mx51/Action.js +127 -0
- package/lib/components/eftposPay/mx51/const.d.ts +5 -0
- package/lib/components/eftposPay/mx51/const.js +85 -0
- package/lib/components/eftposPay/mx51/index.d.ts +6 -0
- package/lib/components/eftposPay/mx51/index.js +330 -0
- package/lib/components/eftposPay/mx51/types.d.ts +136 -0
- package/lib/components/{ecocup/cupList/hooks/index.js → eftposPay/mx51/types.js} +17 -17
- package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
- package/lib/components/eftposPay/mx51/utils.js +114 -0
- package/lib/components/eftposPay/pay.js +4 -2
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/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/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/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/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/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/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/index.d.ts +1 -5
- package/lib/index.js +1 -13
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +3 -7
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/NumericStepper/index.d.ts +3 -28
- package/lib/pro/NumericStepper/index.js +88 -176
- package/lib/pro/NumericStepper/index.less +143 -295
- package/lib/pro/Selector/Selector.js +16 -27
- package/lib/pro/Selector/components/Card/index.js +1 -9
- package/lib/pro/Selector/components/Card/index.less +4 -11
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +1 -4
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
- package/lib/pro/Selector/selector.less +64 -0
- package/lib/pro/Selector/types.d.ts +0 -40
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/package.json +6 -6
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/es/components/ecocup/components/CustomerCard/index.js +0 -34
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/es/components/ecocup/components/PageHeader/index.js +0 -37
- package/es/components/ecocup/components/PageHeader/index.less +0 -19
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/es/components/ecocup/components/SearchBar/index.js +0 -218
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/cupList/const.js +0 -306
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -172
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
- package/es/components/ecocup/cupList/index.d.ts +0 -6
- package/es/components/ecocup/cupList/index.js +0 -220
- package/es/components/ecocup/cupList/index.less +0 -113
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -27
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -103
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/hooks.js +0 -151
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/ecocup/locales.js +0 -372
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -861
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -5
- package/es/plus/orderList/components/HandleActions.js +0 -24
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -7
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -6
- package/es/plus/orderList/components/Toolbar.js +0 -57
- package/es/plus/orderList/config.d.ts +0 -154
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -9
- package/es/plus/orderList/index.js +0 -128
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -372
- package/es/plus/orderList/locales.js +0 -459
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/es/pro/comprehensiveSearch/components/index.js +0 -2
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -140
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -14
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -7
- package/es/pro/comprehensiveSearch/index.js +0 -207
- package/es/pro/comprehensiveSearch/index.less +0 -196
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/locales.js +0 -14
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -24
- package/es/pro/keyboards/locales.js +0 -35
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/lib/components/ecocup/components/PageHeader/index.js +0 -59
- package/lib/components/ecocup/components/PageHeader/index.less +0 -19
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/lib/components/ecocup/components/SearchBar/index.js +0 -213
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/cupList/const.js +0 -326
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
- package/lib/components/ecocup/cupList/index.d.ts +0 -6
- package/lib/components/ecocup/cupList/index.js +0 -208
- package/lib/components/ecocup/cupList/index.less +0 -113
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -58
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -126
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/hooks.js +0 -155
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/ecocup/locales.js +0 -389
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -584
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -7
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -154
- package/lib/plus/orderList/config.js +0 -764
- package/lib/plus/orderList/index.d.ts +0 -9
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -372
- package/lib/plus/orderList/locales.js +0 -471
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/lib/pro/comprehensiveSearch/components/index.js +0 -42
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -153
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -38
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
- package/lib/pro/comprehensiveSearch/index.js +0 -190
- package/lib/pro/comprehensiveSearch/index.less +0 -196
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/locales.js +0 -38
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -24
- package/lib/pro/keyboards/locales.js +0 -47
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lowcode/eco-cup-list/meta.ts +0 -63
- package/lowcode/eco-customer-list/meta.ts +0 -63
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/ecocup/components/AddCustomerModal/index.tsx
|
|
30
|
-
var AddCustomerModal_exports = {};
|
|
31
|
-
__export(AddCustomerModal_exports, {
|
|
32
|
-
default: () => AddCustomerModal_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(AddCustomerModal_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_antd = require("antd");
|
|
39
|
-
var import_index = require("./index.less");
|
|
40
|
-
var import_hooks = require("../../hooks");
|
|
41
|
-
var AddCustomerModal = (props) => {
|
|
42
|
-
const { visible, onCancel, onOk } = props;
|
|
43
|
-
const [form] = import_antd.Form.useForm();
|
|
44
|
-
const { post } = (0, import_hooks.useRequest)();
|
|
45
|
-
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
46
|
-
const { goalShopId } = (0, import_hooks.useGetGoalShopInfo)();
|
|
47
|
-
const _onCancel = () => {
|
|
48
|
-
if (loading) return;
|
|
49
|
-
onCancel == null ? void 0 : onCancel();
|
|
50
|
-
form.resetFields();
|
|
51
|
-
};
|
|
52
|
-
const _onOk = async () => {
|
|
53
|
-
if (loading) return;
|
|
54
|
-
try {
|
|
55
|
-
const values = await form.validateFields();
|
|
56
|
-
const result = await addCustomer(values);
|
|
57
|
-
if (!result) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
onOk == null ? void 0 : onOk(values);
|
|
61
|
-
form.resetFields();
|
|
62
|
-
} catch (error) {
|
|
63
|
-
console.error(error);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const addCustomer = async (values) => {
|
|
67
|
-
const { first_name, last_name, phone, email, membership } = values;
|
|
68
|
-
try {
|
|
69
|
-
setLoading(true);
|
|
70
|
-
const res = await post("/shop/wallet/eco/customer", {
|
|
71
|
-
goal_shop_id: goalShopId,
|
|
72
|
-
customer: {
|
|
73
|
-
first_name,
|
|
74
|
-
last_name,
|
|
75
|
-
phone: phone == null ? void 0 : phone.phone,
|
|
76
|
-
country_calling_code: phone == null ? void 0 : phone.countryCallingCode,
|
|
77
|
-
email,
|
|
78
|
-
register_channel: "shop"
|
|
79
|
-
},
|
|
80
|
-
tags: [membership]
|
|
81
|
-
});
|
|
82
|
-
if ((res == null ? void 0 : res.code) == 200) {
|
|
83
|
-
(0, import_materials.PisellToast)({
|
|
84
|
-
content: import_utils.locales.getText(
|
|
85
|
-
"pisell2.text.ecocup.add-customer-modal.success"
|
|
86
|
-
)
|
|
87
|
-
});
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
return false;
|
|
91
|
-
} catch (error) {
|
|
92
|
-
console.error(error);
|
|
93
|
-
return false;
|
|
94
|
-
} finally {
|
|
95
|
-
setLoading(false);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
99
|
-
import_materials.PisellModal,
|
|
100
|
-
{
|
|
101
|
-
open: visible,
|
|
102
|
-
headerDivider: true,
|
|
103
|
-
title: import_utils.locales.getText("pisell2.text.ecocup.add-customer-modal.title"),
|
|
104
|
-
onCancel: _onCancel,
|
|
105
|
-
onOk: _onOk,
|
|
106
|
-
okText: import_utils.locales.getText("pisell2.text.ecocup.button.confirm"),
|
|
107
|
-
cancelText: import_utils.locales.getText("pisell2.text.ecocup.button.cancel"),
|
|
108
|
-
width: 680,
|
|
109
|
-
centered: true,
|
|
110
|
-
destroyOnClose: true,
|
|
111
|
-
wrapClassName: "pisell2-ecocup-add-customer-modal",
|
|
112
|
-
okButtonProps: { loading }
|
|
113
|
-
},
|
|
114
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-add-customer-modal-content" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, size: "large" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-add-customer-modal-content-name-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
115
|
-
import_materials.FormItemInput,
|
|
116
|
-
{
|
|
117
|
-
renderMode: "edit",
|
|
118
|
-
label: import_utils.locales.getText(
|
|
119
|
-
"pisell2.text.ecocup.add-customer-modal.first-name"
|
|
120
|
-
),
|
|
121
|
-
placeholder: import_utils.locales.getText(
|
|
122
|
-
"pisell2.text.ecocup.add-customer-modal.first-name-placeholder"
|
|
123
|
-
),
|
|
124
|
-
name: "first_name",
|
|
125
|
-
requiredobj: {
|
|
126
|
-
required: true,
|
|
127
|
-
message: import_utils.locales.getText(
|
|
128
|
-
"pisell2.text.ecocup.add-customer-modal.first-name-required"
|
|
129
|
-
)
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
133
|
-
import_materials.FormItemInput,
|
|
134
|
-
{
|
|
135
|
-
renderMode: "edit",
|
|
136
|
-
label: import_utils.locales.getText(
|
|
137
|
-
"pisell2.text.ecocup.add-customer-modal.last-name"
|
|
138
|
-
),
|
|
139
|
-
placeholder: import_utils.locales.getText(
|
|
140
|
-
"pisell2.text.ecocup.add-customer-modal.last-name-placeholder"
|
|
141
|
-
),
|
|
142
|
-
name: "last_name",
|
|
143
|
-
requiredobj: {
|
|
144
|
-
required: true,
|
|
145
|
-
message: import_utils.locales.getText(
|
|
146
|
-
"pisell2.text.ecocup.add-customer-modal.last-name-required"
|
|
147
|
-
)
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
)), /* @__PURE__ */ import_react.default.createElement(
|
|
151
|
-
import_materials.FormItemInput.Mobile,
|
|
152
|
-
{
|
|
153
|
-
renderMode: "edit",
|
|
154
|
-
name: "phone",
|
|
155
|
-
label: import_utils.locales.getText(
|
|
156
|
-
"pisell2.text.ecocup.add-customer-modal.phone"
|
|
157
|
-
),
|
|
158
|
-
placeholder: import_utils.locales.getText(
|
|
159
|
-
"pisell2.text.ecocup.add-customer-modal.phone-placeholder"
|
|
160
|
-
),
|
|
161
|
-
typeobj: {
|
|
162
|
-
type: "phone",
|
|
163
|
-
enabled: true,
|
|
164
|
-
message: import_utils.locales.getText(
|
|
165
|
-
"pisell2.text.ecocup.add-customer-modal.phone-error"
|
|
166
|
-
)
|
|
167
|
-
},
|
|
168
|
-
requiredobj: {
|
|
169
|
-
required: true,
|
|
170
|
-
message: import_utils.locales.getText(
|
|
171
|
-
"pisell2.text.ecocup.add-customer-modal.phone-required"
|
|
172
|
-
)
|
|
173
|
-
},
|
|
174
|
-
returnFormat: "object"
|
|
175
|
-
}
|
|
176
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
177
|
-
import_materials.FormItemInput,
|
|
178
|
-
{
|
|
179
|
-
renderMode: "edit",
|
|
180
|
-
name: "email",
|
|
181
|
-
label: import_utils.locales.getText(
|
|
182
|
-
"pisell2.text.ecocup.add-customer-modal.email"
|
|
183
|
-
),
|
|
184
|
-
placeholder: import_utils.locales.getText(
|
|
185
|
-
"pisell2.text.ecocup.add-customer-modal.email-placeholder"
|
|
186
|
-
),
|
|
187
|
-
requiredobj: {
|
|
188
|
-
required: true,
|
|
189
|
-
message: import_utils.locales.getText(
|
|
190
|
-
"pisell2.text.ecocup.add-customer-modal.email-required"
|
|
191
|
-
)
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
195
|
-
import_materials.FormItemSelect,
|
|
196
|
-
{
|
|
197
|
-
renderMode: "edit",
|
|
198
|
-
name: "membership",
|
|
199
|
-
label: import_utils.locales.getText(
|
|
200
|
-
"pisell2.text.ecocup.add-customer-modal.membership"
|
|
201
|
-
),
|
|
202
|
-
defaultValue: "normal",
|
|
203
|
-
options: [
|
|
204
|
-
{ label: "Normal", value: "normal" },
|
|
205
|
-
{ label: "Business", value: "business" },
|
|
206
|
-
{ label: "Admin", value: "admin" }
|
|
207
|
-
]
|
|
208
|
-
}
|
|
209
|
-
)))
|
|
210
|
-
);
|
|
211
|
-
};
|
|
212
|
-
var AddCustomerModal_default = AddCustomerModal;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ECupActionType, ICup, ICustomer } from '../../types';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface IProps {
|
|
4
|
-
maxNum: number;
|
|
5
|
-
currentNum: number;
|
|
6
|
-
cups: ICup[];
|
|
7
|
-
customerData?: ICustomer;
|
|
8
|
-
onClearAll: () => void;
|
|
9
|
-
onRemove: (cup: ICup) => void;
|
|
10
|
-
onAction: (type: ECupActionType, cup: ICup) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const CupActionList: (props: IProps) => JSX.Element;
|
|
13
|
-
export default CupActionList;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/ecocup/components/CupActionList/index.tsx
|
|
30
|
-
var CupActionList_exports = {};
|
|
31
|
-
__export(CupActionList_exports, {
|
|
32
|
-
default: () => CupActionList_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CupActionList_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_utils = require("@pisell/utils");
|
|
37
|
-
var import_materials = require("@pisell/materials");
|
|
38
|
-
var import_types = require("../../types");
|
|
39
|
-
var import_hooks = require("../../hooks");
|
|
40
|
-
var import_CupActionModal = __toESM(require("../CupActionModal"));
|
|
41
|
-
var import_MoreDropdown = __toESM(require("../MoreDropdown"));
|
|
42
|
-
var import_index = require("./index.less");
|
|
43
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
44
|
-
var CupActionList = (props) => {
|
|
45
|
-
const {
|
|
46
|
-
maxNum,
|
|
47
|
-
currentNum,
|
|
48
|
-
cups,
|
|
49
|
-
customerData,
|
|
50
|
-
onClearAll,
|
|
51
|
-
onRemove,
|
|
52
|
-
onAction
|
|
53
|
-
} = props;
|
|
54
|
-
const cupActionModal = (0, import_hooks.useModal)("ecocup-cup-action-modal");
|
|
55
|
-
const isOverMax = (0, import_react.useMemo)(() => {
|
|
56
|
-
return currentNum > maxNum;
|
|
57
|
-
}, [currentNum, maxNum]);
|
|
58
|
-
const handleAction = (type, cup) => {
|
|
59
|
-
cupActionModal.open({
|
|
60
|
-
data: {
|
|
61
|
-
type,
|
|
62
|
-
cupData: cup,
|
|
63
|
-
customerData
|
|
64
|
-
},
|
|
65
|
-
onOk: () => {
|
|
66
|
-
onAction(type, cup);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list" }, isOverMax && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list-over-max" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.text.ecocup.customer-first-modal.over-max").replace("{{num}}", (currentNum - maxNum).toString())), /* @__PURE__ */ import_react.default.createElement("span", { onClick: onClearAll }, import_utils.locales.getText("pisell2.text.ecocup.button.clear-all"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list-cup-list" }, cups.map((cup) => {
|
|
71
|
-
var _a;
|
|
72
|
-
const isInStock = (cup == null ? void 0 : cup.status) === import_types.ECupStatus.IN_STOCK;
|
|
73
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
key: cup.code,
|
|
77
|
-
className: "pisell2-ecocup-cup-action-list-cup",
|
|
78
|
-
style: isInStock ? {
|
|
79
|
-
backgroundColor: "#F6F2FF",
|
|
80
|
-
border: "1px solid #F6F2FF"
|
|
81
|
-
} : {
|
|
82
|
-
border: "1px solid #D0D5DD"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
/* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "RestOutlined", size: 24, color: "#7F56DA" }),
|
|
86
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list-cup-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list-cup-info-top" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.text.ecocup.cup-id")), /* @__PURE__ */ import_react.default.createElement("span", null, (cup == null ? void 0 : cup.eco_cup_code) || (cup == null ? void 0 : cup.code) || "-")), !isInStock && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list-cup-info-bottom" }, /* @__PURE__ */ import_react.default.createElement("span", null, ((_a = cup == null ? void 0 : cup.rent_shop) == null ? void 0 : _a.name) || "-"), /* @__PURE__ */ import_react.default.createElement("span", null, (cup == null ? void 0 : cup.rent_time) ? (0, import_dayjs.default)(cup == null ? void 0 : cup.rent_time).format("DD/MM/YYYY") : "-"))),
|
|
87
|
-
isInStock ? /* @__PURE__ */ import_react.default.createElement(
|
|
88
|
-
import_materials.Button,
|
|
89
|
-
{
|
|
90
|
-
type: "primary",
|
|
91
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-trash-01", size: 24, color: "#7F56DA" }),
|
|
92
|
-
onClick: () => onRemove(cup),
|
|
93
|
-
className: "pisell2-ecocup-cup-action-list-cup-info-remove"
|
|
94
|
-
},
|
|
95
|
-
import_utils.locales.getText("pisell2.text.ecocup.button.remove")
|
|
96
|
-
) : /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-list-cup-info-actions" }, /* @__PURE__ */ import_react.default.createElement(
|
|
97
|
-
import_materials.Button,
|
|
98
|
-
{
|
|
99
|
-
type: "primary",
|
|
100
|
-
onClick: () => handleAction(import_types.ECupActionType.RETURN, cup)
|
|
101
|
-
},
|
|
102
|
-
"Return"
|
|
103
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
104
|
-
import_MoreDropdown.default,
|
|
105
|
-
{
|
|
106
|
-
locales: import_utils.locales,
|
|
107
|
-
onClick: (key) => handleAction(key, cup),
|
|
108
|
-
buttonText: import_utils.locales.getText(
|
|
109
|
-
"pisell2.text.ecocup.button.others"
|
|
110
|
-
)
|
|
111
|
-
}
|
|
112
|
-
))
|
|
113
|
-
);
|
|
114
|
-
})), (cupActionModal == null ? void 0 : cupActionModal.visible) && /* @__PURE__ */ import_react.default.createElement(import_CupActionModal.default, { ...cupActionModal == null ? void 0 : cupActionModal.modalProps }));
|
|
115
|
-
};
|
|
116
|
-
var CupActionList_default = CupActionList;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
.pisell2-ecocup-cup-action-list {
|
|
2
|
-
&-over-max {
|
|
3
|
-
margin-bottom: 8px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: center;
|
|
7
|
-
color: #d92d20;
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
font-weight: 400;
|
|
10
|
-
|
|
11
|
-
& > span {
|
|
12
|
-
flex: 1;
|
|
13
|
-
|
|
14
|
-
&:first-child {
|
|
15
|
-
text-align: left;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:last-child {
|
|
19
|
-
text-align: right;
|
|
20
|
-
text-decoration: underline;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-cup-list {
|
|
27
|
-
max-height: 260px;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
gap: 4px;
|
|
31
|
-
overflow-y: auto;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-cup {
|
|
35
|
-
height: 60px;
|
|
36
|
-
min-height: 60px;
|
|
37
|
-
padding: 0 16px;
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: row;
|
|
40
|
-
align-items: center;
|
|
41
|
-
gap: 8px;
|
|
42
|
-
border-radius: 8px;
|
|
43
|
-
|
|
44
|
-
&-info {
|
|
45
|
-
flex: 1;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
|
|
50
|
-
&-top {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: row;
|
|
53
|
-
align-items: center;
|
|
54
|
-
gap: 4px;
|
|
55
|
-
font-size: 20px;
|
|
56
|
-
font-weight: 300;
|
|
57
|
-
color: #7f56da;
|
|
58
|
-
|
|
59
|
-
& > span {
|
|
60
|
-
&:first-child {
|
|
61
|
-
color: #667085;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&-bottom {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: row;
|
|
69
|
-
align-items: center;
|
|
70
|
-
gap: 4px;
|
|
71
|
-
font-size: 14px;
|
|
72
|
-
font-weight: 300;
|
|
73
|
-
color: #7f56da;
|
|
74
|
-
|
|
75
|
-
& > span {
|
|
76
|
-
&:first-child {
|
|
77
|
-
color: #667085;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-info-remove {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: row;
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
border-radius: 8px;
|
|
89
|
-
border: 1px solid #7f56da;
|
|
90
|
-
background: #f6f2ff;
|
|
91
|
-
color: #7F56DA;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&-info-actions {
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-direction: row;
|
|
97
|
-
align-items: flex-end;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
gap: 10px;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/ecocup/components/CupActionModal/hooks.ts
|
|
20
|
-
var hooks_exports = {};
|
|
21
|
-
__export(hooks_exports, {
|
|
22
|
-
useCupAction: () => useCupAction
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(hooks_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var import_ahooks = require("ahooks");
|
|
27
|
-
var import_hooks = require("../../hooks");
|
|
28
|
-
var useCupAction = () => {
|
|
29
|
-
const { put } = (0, import_hooks.useRequest)();
|
|
30
|
-
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
31
|
-
const { goalShopId } = (0, import_hooks.useGetGoalShopInfo)();
|
|
32
|
-
const run = (0, import_ahooks.useMemoizedFn)(async (cupId, action) => {
|
|
33
|
-
try {
|
|
34
|
-
setLoading(true);
|
|
35
|
-
const res = await put(`/shop/wallet/eco/cup/action/${cupId}`, { action, goal_shop_id: goalShopId });
|
|
36
|
-
if ((res == null ? void 0 : res.code) == 200) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
} catch (error) {
|
|
41
|
-
console.error(error);
|
|
42
|
-
return false;
|
|
43
|
-
} finally {
|
|
44
|
-
setLoading(false);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return {
|
|
48
|
-
run,
|
|
49
|
-
loading
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
-
0 && (module.exports = {
|
|
54
|
-
useCupAction
|
|
55
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
import { ICustomer, ICup, ECupActionType } from '../../types';
|
|
3
|
-
interface IProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
onOk: (cup: ICup) => void;
|
|
7
|
-
data: {
|
|
8
|
-
type: ECupActionType;
|
|
9
|
-
cupData: ICup;
|
|
10
|
-
customerData: ICustomer;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare const CupActionModal: (props: IProps) => JSX.Element;
|
|
14
|
-
export default CupActionModal;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/ecocup/components/CupActionModal/index.tsx
|
|
30
|
-
var CupActionModal_exports = {};
|
|
31
|
-
__export(CupActionModal_exports, {
|
|
32
|
-
default: () => CupActionModal_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CupActionModal_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_CustomerCard = __toESM(require("../CustomerCard"));
|
|
39
|
-
var import_CupInfoCard = __toESM(require("../CupInfoCard"));
|
|
40
|
-
var import_index = require("./index.less");
|
|
41
|
-
var import_types = require("../../types");
|
|
42
|
-
var import_hooks = require("./hooks");
|
|
43
|
-
var CupActionModal = (props) => {
|
|
44
|
-
var _a;
|
|
45
|
-
const { visible, onCancel, onOk, data } = props;
|
|
46
|
-
const { type, cupData } = data || {};
|
|
47
|
-
const cupAction = (0, import_hooks.useCupAction)();
|
|
48
|
-
const style = (0, import_react.useMemo)(() => {
|
|
49
|
-
if ((data == null ? void 0 : data.type) === import_types.ECupActionType.MISSING || (data == null ? void 0 : data.type) === import_types.ECupActionType.BROKEN) {
|
|
50
|
-
return {
|
|
51
|
-
backgroundColor: "#FEE4E2",
|
|
52
|
-
color: "#F04438"
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
backgroundColor: "#F6F2FF",
|
|
57
|
-
color: "#7F56DA"
|
|
58
|
-
};
|
|
59
|
-
}, [data == null ? void 0 : data.type]);
|
|
60
|
-
const _onCancel = () => {
|
|
61
|
-
if (cupAction == null ? void 0 : cupAction.loading) return;
|
|
62
|
-
onCancel == null ? void 0 : onCancel();
|
|
63
|
-
};
|
|
64
|
-
const _onOk = () => {
|
|
65
|
-
if (cupAction == null ? void 0 : cupAction.loading) return;
|
|
66
|
-
cupAction.run((cupData == null ? void 0 : cupData.eco_cup_id) || (cupData == null ? void 0 : cupData.id), type).then((res) => {
|
|
67
|
-
if (res) {
|
|
68
|
-
(0, import_materials.PisellToast)({
|
|
69
|
-
content: import_utils.locales.getText(
|
|
70
|
-
`pisell2.text.ecocup.toast.success-${type}`
|
|
71
|
-
)
|
|
72
|
-
});
|
|
73
|
-
onOk == null ? void 0 : onOk(cupData);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
78
|
-
import_materials.PisellModal,
|
|
79
|
-
{
|
|
80
|
-
open: visible,
|
|
81
|
-
headerDivider: false,
|
|
82
|
-
title: import_utils.locales.getText(
|
|
83
|
-
`pisell2.text.ecocup.cup-action-modal.title-${data == null ? void 0 : data.type}`
|
|
84
|
-
),
|
|
85
|
-
onCancel: _onCancel,
|
|
86
|
-
onOk: _onOk,
|
|
87
|
-
okText: import_utils.locales.getText(
|
|
88
|
-
`pisell2.text.ecocup.button.mark-as-${data == null ? void 0 : data.type}`
|
|
89
|
-
),
|
|
90
|
-
cancelText: import_utils.locales.getText("pisell2.text.ecocup.button.cancel"),
|
|
91
|
-
okButtonProps: { loading: cupAction == null ? void 0 : cupAction.loading },
|
|
92
|
-
width: 580,
|
|
93
|
-
destroyOnClose: true,
|
|
94
|
-
wrapClassName: "pisell2-ecocup-cup-action-modal"
|
|
95
|
-
},
|
|
96
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-modal-content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
97
|
-
"div",
|
|
98
|
-
{
|
|
99
|
-
className: "pisell2-ecocup-cup-action-modal-content-cup",
|
|
100
|
-
style: { ...style }
|
|
101
|
-
},
|
|
102
|
-
/* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "RestOutlined", size: 24 }),
|
|
103
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
104
|
-
"span",
|
|
105
|
-
{
|
|
106
|
-
style: {
|
|
107
|
-
color: (data == null ? void 0 : data.type) === import_types.ECupActionType.RETURN ? "#667085" : "#F04438"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
import_utils.locales.getText("pisell2.text.ecocup.cup-action-modal.cup-id")
|
|
111
|
-
),
|
|
112
|
-
/* @__PURE__ */ import_react.default.createElement("span", null, (cupData == null ? void 0 : cupData.eco_cup_code) || (cupData == null ? void 0 : cupData.code) || "")
|
|
113
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-modal-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-modal-info-left" }, /* @__PURE__ */ import_react.default.createElement(
|
|
114
|
-
import_CupInfoCard.default,
|
|
115
|
-
{
|
|
116
|
-
type: "rentInfo",
|
|
117
|
-
data: {
|
|
118
|
-
shop: (_a = cupData == null ? void 0 : cupData.rent_shop) == null ? void 0 : _a.name,
|
|
119
|
-
time: cupData == null ? void 0 : cupData.rent_time
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2-ecocup-cup-action-modal-info-right" }, /* @__PURE__ */ import_react.default.createElement(import_CustomerCard.default, { ...data == null ? void 0 : data.customerData }))))
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
var CupActionModal_default = CupActionModal;
|