@pisell/private-materials 6.9.1 → 6.9.3
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/README.md +5 -1
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +150 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/Sales/Cart/index.js +20 -3
- package/es/components/Sales/Cart/utils.d.ts +5 -0
- package/es/components/Sales/Cart/utils.js +16 -0
- package/es/components/Sales/Summary/utils.js +5 -4
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
- package/es/components/appointmentBooking/components/Voucher/index.js +26 -5
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +6 -13
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +3 -0
- package/es/components/appointmentBooking/utils.d.ts +23 -0
- package/es/components/appointmentBooking/utils.js +159 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +10 -0
- package/es/components/booking/components/customiseItemModal/index.js +4 -7
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +358 -165
- package/es/components/booking/components/footer/index.js +496 -170
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +134 -78
- package/es/components/booking/components/voucher/index.js +15 -6
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/dashboard/index.js +78 -92
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/dashboard/serve.js +22 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useQuotation.js +32 -10
- package/es/components/booking/info/client/index.js +16 -6
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/utils.js +45 -41
- package/es/components/booking/info2/cartClientCard/index.js +16 -10
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +21 -18
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/info2/service/editService/utils.js +9 -5
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +172 -65
- package/es/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +3 -2
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/es/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +324 -198
- package/es/components/checkout/index.less +6 -0
- package/es/components/checkout/plugin.js +59 -12
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/es/components/ecocup/components/CustomerCard/index.js +34 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/es/components/ecocup/components/PageHeader/index.js +37 -0
- package/es/components/ecocup/components/PageHeader/index.less +19 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/es/components/ecocup/components/SearchBar/index.js +218 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/cupList/const.d.ts +133 -0
- package/es/components/ecocup/cupList/const.js +306 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/es/{plus/myTeamLogin/index.js → components/ecocup/cupList/hooks/useCupApi.js} +129 -259
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
- package/es/components/ecocup/cupList/index.d.ts +6 -0
- package/es/components/ecocup/cupList/index.js +220 -0
- package/es/components/ecocup/cupList/index.less +113 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/cupProject/const.js +27 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +103 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.d.ts +49 -0
- package/es/components/ecocup/hooks.js +151 -0
- package/es/components/ecocup/locales.d.ts +339 -0
- package/es/components/ecocup/locales.js +372 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftposPay/EFTPos.js +15 -6
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -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/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +9 -2
- package/es/components/eftposPay/tyro/index.js +97 -4
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
- package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/es/components/eventBooking/components/Voucher/index.js +266 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +268 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/components/MX51/index.js +2 -1
- package/es/components/pay/toB/paymentMethods/index.js +2 -1
- package/es/components/pay/toB/types/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +54 -5
- package/es/components/pay/toC/PaymentList/index.less +58 -1
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +22 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/es/components/pay/toC/PaymentList/utils.js +188 -6
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +68 -28
- package/es/components/pay/toC/locales.d.ts +6 -0
- package/es/components/pay/toC/locales.js +9 -3
- package/es/components/pay/toC/model.d.ts +2 -9
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +5 -8
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +142 -63
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +18 -4
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +12 -2
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +14 -11
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +69 -10
- package/es/components/ticketBooking/index.d.ts +2 -0
- package/es/components/ticketBooking/index.js +2 -1
- package/es/components/walletList/index.js +7 -2
- package/es/index.d.ts +7 -4
- package/es/index.js +7 -4
- package/es/plus/clinetSearch/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +27 -5
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +6 -3
- package/es/plus/clinetSearch/types.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +861 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +4 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +6 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +5 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +152 -0
- package/es/plus/orderList/config.js +785 -0
- package/es/plus/orderList/index.d.ts +9 -0
- package/es/plus/orderList/index.js +128 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +372 -0
- package/es/plus/orderList/locales.js +459 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.js +12 -3
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/es/plus/productSelect/ProductList/gridComponents.js +30 -10
- package/es/plus/productSelect/index.d.ts +3 -1
- package/es/plus/productSelect/index.js +85 -14
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +8 -0
- package/es/plus/walletPassGallery/serve.js +78 -50
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +7 -2
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/es/plus/webPosLogin/service.js +2 -1
- package/es/pro/Login2.0/AuthModal.js +12 -4
- package/es/pro/Login2.0/Login2.js +7 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/index.less +15 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/NumericStepper/index.d.ts +27 -1
- package/es/pro/NumericStepper/index.js +84 -68
- package/es/pro/NumericStepper/index.less +261 -136
- package/es/pro/Selector/Selector.js +17 -10
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +4 -2
- package/es/pro/Selector/types.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/es/pro/skuDetailModal/index.js +57 -55
- package/es/pro/skuDetailModal/index.less +46 -4
- package/es/pro/skuDetailModal/types.d.ts +7 -0
- package/lib/components/Sales/Cart/index.js +25 -7
- package/lib/components/Sales/Cart/utils.d.ts +5 -0
- package/lib/components/Sales/Cart/utils.js +13 -1
- package/lib/components/Sales/Summary/utils.js +2 -4
- package/lib/components/appointmentBooking/components/Header/index.js +3 -8
- package/lib/components/appointmentBooking/components/Services/index.js +5 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
- package/lib/components/appointmentBooking/components/Voucher/index.js +37 -6
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +6 -11
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +3 -0
- package/lib/components/appointmentBooking/utils.d.ts +23 -0
- package/lib/components/appointmentBooking/utils.js +103 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +10 -0
- package/lib/components/booking/components/customiseItemModal/index.js +4 -5
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +122 -25
- package/lib/components/booking/components/footer/index.js +243 -5
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +52 -18
- package/lib/components/booking/components/voucher/index.js +18 -4
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/dashboard/index.js +38 -59
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.js +8 -2
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useQuotation.js +65 -21
- package/lib/components/booking/info/client/index.js +16 -8
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/utils.js +6 -2
- package/lib/components/booking/info2/cartClientCard/index.js +17 -11
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +20 -17
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/info2/service/editService/utils.js +7 -4
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +105 -31
- package/lib/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -2
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/lib/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +160 -109
- package/lib/components/checkout/index.less +6 -0
- package/lib/components/checkout/plugin.js +195 -150
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
- package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/lib/components/ecocup/components/PageHeader/index.js +59 -0
- package/lib/components/ecocup/components/PageHeader/index.less +19 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SearchBar/const.js +50 -0
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/lib/components/ecocup/components/SearchBar/index.js +213 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/cupList/const.d.ts +133 -0
- package/lib/components/ecocup/cupList/const.js +326 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +39 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
- package/lib/components/ecocup/cupList/index.d.ts +6 -0
- package/lib/components/ecocup/cupList/index.js +208 -0
- package/lib/components/ecocup/cupList/index.less +113 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/cupProject/const.js +58 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +126 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/index.js +32 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.d.ts +49 -0
- package/lib/components/ecocup/hooks.js +155 -0
- package/lib/components/ecocup/locales.d.ts +339 -0
- package/lib/components/ecocup/locales.js +389 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftposPay/EFTPos.js +11 -7
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -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 +106 -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 +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/store/index.d.ts +9 -2
- package/lib/components/eftposPay/tyro/index.js +64 -7
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
- package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Voucher/index.js +197 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/components/MX51/index.js +2 -1
- package/lib/components/pay/toB/paymentMethods/index.js +2 -1
- package/lib/components/pay/toB/types/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +36 -5
- package/lib/components/pay/toC/PaymentList/index.less +58 -1
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +21 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/lib/components/pay/toC/PaymentList/utils.js +156 -7
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +53 -11
- package/lib/components/pay/toC/locales.d.ts +6 -0
- package/lib/components/pay/toC/locales.js +9 -3
- package/lib/components/pay/toC/model.d.ts +2 -9
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +3 -7
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -16
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.js +20 -6
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +13 -3
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +3 -2
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +59 -0
- package/lib/components/ticketBooking/index.d.ts +2 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/walletList/index.js +5 -1
- package/lib/index.d.ts +7 -4
- package/lib/index.js +15 -6
- package/lib/plus/clinetSearch/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +31 -7
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +6 -3
- package/lib/plus/clinetSearch/types.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +584 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +4 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +6 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +5 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +152 -0
- package/lib/plus/orderList/config.js +763 -0
- package/lib/plus/orderList/index.d.ts +9 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +372 -0
- package/lib/plus/orderList/locales.js +471 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/lib/plus/productSelect/ProductList/gridComponents.js +7 -1
- package/lib/plus/productSelect/index.d.ts +3 -1
- package/lib/plus/productSelect/index.js +56 -11
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +8 -0
- package/lib/plus/walletPassGallery/serve.js +23 -8
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +7 -2
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/lib/plus/webPosLogin/service.js +2 -1
- package/lib/pro/Login2.0/AuthModal.js +15 -7
- package/lib/pro/Login2.0/Login2.js +7 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/index.less +15 -3
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/NumericStepper/index.d.ts +27 -1
- package/lib/pro/NumericStepper/index.js +73 -70
- package/lib/pro/NumericStepper/index.less +261 -136
- package/lib/pro/Selector/Selector.js +11 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +4 -2
- package/lib/pro/Selector/types.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/lib/pro/skuDetailModal/index.js +114 -64
- package/lib/pro/skuDetailModal/index.less +46 -4
- package/lib/pro/skuDetailModal/types.d.ts +7 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/lowcode/login2/meta.ts +15 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/package.json +7 -22
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +0 -157
- package/es/plus/myTeamLogin/index.d.ts +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +0 -156
- package/lib/plus/myTeamLogin/index.d.ts +0 -11
- package/lib/plus/myTeamLogin/index.js +0 -198
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lowcode/my-team-login/meta.ts +0 -71
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import React, { useState, useEffect, useCallback, useRef, useMemo } from 'react';
|
|
14
|
+
import { useDebounceFn } from 'ahooks';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
|
+
import { Table, DatePicker, Page } from '@pisell/materials';
|
|
17
|
+
import { locales } from '@pisell/utils';
|
|
18
|
+
import { CalendarOutlined } from '@ant-design/icons';
|
|
19
|
+
import { usePlatform } from "../../../hooks/useEngineContext";
|
|
20
|
+
import { useColumns, useSummary, useCupListsApi, useStatisticsApi, useEcoShopListsApi } from "./hooks";
|
|
21
|
+
import { SORT_SETTINGS, COLUMN_SETTING, FILTER } from "./const";
|
|
22
|
+
import PageHeader from "../components/PageHeader";
|
|
23
|
+
import CupActionModal from "../components/CupActionModal";
|
|
24
|
+
import SearchBar from "../components/SearchBar";
|
|
25
|
+
import { useLanguage, useModal, useGetGoalShopInfo, useIsApp } from "../hooks";
|
|
26
|
+
import localeTexts from "../locales";
|
|
27
|
+
import "./index.less";
|
|
28
|
+
var prefixCls = 'ecocup-cup-list';
|
|
29
|
+
var SCAN_LISTENER_KEY = 'eco-cup-list-scan-listener';
|
|
30
|
+
var PAGE_SIZE = 10;
|
|
31
|
+
var FORMAT = 'YYYY-MM-DD HH:mm:ss';
|
|
32
|
+
var CupList = function CupList(props) {
|
|
33
|
+
var _useState = useState([dayjs().startOf('day'), dayjs().endOf('day')]),
|
|
34
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35
|
+
date = _useState2[0],
|
|
36
|
+
setDate = _useState2[1];
|
|
37
|
+
var cupActionModal = useModal('ecocup-list-action-modal');
|
|
38
|
+
var _useGetGoalShopInfo = useGetGoalShopInfo(),
|
|
39
|
+
isNormalShop = _useGetGoalShopInfo.isNormalShop;
|
|
40
|
+
var isApp = useIsApp();
|
|
41
|
+
var platform = usePlatform();
|
|
42
|
+
var language = useLanguage();
|
|
43
|
+
locales.init(localeTexts, language);
|
|
44
|
+
var _useState3 = useState({
|
|
45
|
+
skip: 1,
|
|
46
|
+
num: PAGE_SIZE
|
|
47
|
+
}),
|
|
48
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
|
+
listParams = _useState4[0],
|
|
50
|
+
setListParams = _useState4[1];
|
|
51
|
+
// 使用 ref 保存最新的 listParams,用于在回调中获取最新值
|
|
52
|
+
var listParamsRef = useRef(listParams);
|
|
53
|
+
var _useCupListsApi = useCupListsApi(),
|
|
54
|
+
loading = _useCupListsApi.loading,
|
|
55
|
+
data = _useCupListsApi.data,
|
|
56
|
+
run = _useCupListsApi.run;
|
|
57
|
+
var _useStatisticsApi = useStatisticsApi(),
|
|
58
|
+
staticsData = _useStatisticsApi.data,
|
|
59
|
+
getStatics = _useStatisticsApi.getStatics;
|
|
60
|
+
var _useEcoShopListsApi = useEcoShopListsApi(),
|
|
61
|
+
ecoShopLists = _useEcoShopListsApi.data,
|
|
62
|
+
getEcoShopLists = _useEcoShopListsApi.getEcoShopLists;
|
|
63
|
+
var isPartner = useMemo(function () {
|
|
64
|
+
return !!(isNormalShop || listParams !== null && listParams !== void 0 && listParams.partner_shop_id);
|
|
65
|
+
}, [isNormalShop, listParams === null || listParams === void 0 ? void 0 : listParams.partner_shop_id]);
|
|
66
|
+
useEffect(function () {
|
|
67
|
+
listParamsRef.current = listParams;
|
|
68
|
+
}, [listParams]);
|
|
69
|
+
var getLists = useCallback(function (params) {
|
|
70
|
+
run(_objectSpread(_objectSpread({}, (listParamsRef === null || listParamsRef === void 0 ? void 0 : listParamsRef.current) || {}), params));
|
|
71
|
+
}, [listParams]);
|
|
72
|
+
useEffect(function () {
|
|
73
|
+
var _date$, _date$2;
|
|
74
|
+
if (isApp) return;
|
|
75
|
+
getStatics({
|
|
76
|
+
started_at: date === null || date === void 0 || (_date$ = date[0]) === null || _date$ === void 0 ? void 0 : _date$.format(FORMAT),
|
|
77
|
+
ended_at: date === null || date === void 0 || (_date$2 = date[1]) === null || _date$2 === void 0 ? void 0 : _date$2.format(FORMAT),
|
|
78
|
+
partner_shop_id: listParams === null || listParams === void 0 ? void 0 : listParams.partner_shop_id
|
|
79
|
+
});
|
|
80
|
+
}, [date, isApp, listParams === null || listParams === void 0 ? void 0 : listParams.partner_shop_id]);
|
|
81
|
+
useEffect(function () {
|
|
82
|
+
if (isNormalShop || isApp) return;
|
|
83
|
+
getEcoShopLists({});
|
|
84
|
+
}, [isNormalShop, isApp]);
|
|
85
|
+
useEffect(function () {
|
|
86
|
+
getLists();
|
|
87
|
+
}, [getLists]);
|
|
88
|
+
var handleClickAction = useCallback(function (type, record) {
|
|
89
|
+
cupActionModal.open({
|
|
90
|
+
data: {
|
|
91
|
+
type: type,
|
|
92
|
+
cupData: record,
|
|
93
|
+
customerData: (record === null || record === void 0 ? void 0 : record.customer) || {}
|
|
94
|
+
},
|
|
95
|
+
onCancel: cupActionModal.close,
|
|
96
|
+
onOk: function onOk(values) {
|
|
97
|
+
cupActionModal.close();
|
|
98
|
+
getLists();
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}, [cupActionModal]);
|
|
102
|
+
var columns = useColumns({
|
|
103
|
+
onClickAction: handleClickAction,
|
|
104
|
+
locales: locales
|
|
105
|
+
});
|
|
106
|
+
var summary = useSummary(locales, staticsData, isPartner);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @description: 值变化回调处理函数
|
|
110
|
+
* @param {any} changedValues
|
|
111
|
+
* @param {any} values
|
|
112
|
+
* @return {*}
|
|
113
|
+
*/
|
|
114
|
+
var handleValuesChange = function handleValuesChange(changedValues, values) {
|
|
115
|
+
var _values$order_by, _values$pagination, _values$pagination2;
|
|
116
|
+
// 分割排序字段
|
|
117
|
+
var orderByTypes = values === null || values === void 0 || (_values$order_by = values.order_by) === null || _values$order_by === void 0 ? void 0 : _values$order_by.split(':');
|
|
118
|
+
var params = _objectSpread(_objectSpread({}, (values === null || values === void 0 ? void 0 : values.filters) || {}), {}, {
|
|
119
|
+
order_by: orderByTypes === null || orderByTypes === void 0 ? void 0 : orderByTypes[0],
|
|
120
|
+
sort: orderByTypes === null || orderByTypes === void 0 ? void 0 : orderByTypes[1],
|
|
121
|
+
skip: (values === null || values === void 0 || (_values$pagination = values.pagination) === null || _values$pagination === void 0 ? void 0 : _values$pagination.page) || 1,
|
|
122
|
+
num: (values === null || values === void 0 || (_values$pagination2 = values.pagination) === null || _values$pagination2 === void 0 ? void 0 : _values$pagination2.size) || PAGE_SIZE,
|
|
123
|
+
partner_shop_id: (values === null || values === void 0 ? void 0 : values.partner_shop_id) || undefined,
|
|
124
|
+
status: (values === null || values === void 0 ? void 0 : values.status) || undefined
|
|
125
|
+
});
|
|
126
|
+
setListParams(function (prev) {
|
|
127
|
+
return _objectSpread(_objectSpread({}, prev), params);
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @description: 值变化回调防抖处理函数
|
|
133
|
+
* @return {*}
|
|
134
|
+
*/
|
|
135
|
+
var _useDebounceFn = useDebounceFn(handleValuesChange, {
|
|
136
|
+
wait: 200
|
|
137
|
+
}),
|
|
138
|
+
handleValuesChangeDebounce = _useDebounceFn.run;
|
|
139
|
+
var handleChange = function handleChange(value, type) {
|
|
140
|
+
// 搜索code
|
|
141
|
+
if (type === 'search') {
|
|
142
|
+
setListParams(function (prev) {
|
|
143
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
144
|
+
search: value,
|
|
145
|
+
skip: 1
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
} else {
|
|
149
|
+
// 搜索日期
|
|
150
|
+
setDate(value);
|
|
151
|
+
setListParams(function (prev) {
|
|
152
|
+
var _value$, _value$2;
|
|
153
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
154
|
+
skip: 1,
|
|
155
|
+
operated_at_start: value === null || value === void 0 || (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.format(FORMAT),
|
|
156
|
+
operated_at_end: value === null || value === void 0 || (_value$2 = value[1]) === null || _value$2 === void 0 ? void 0 : _value$2.format(FORMAT)
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
var pagination = useMemo(function () {
|
|
162
|
+
return {
|
|
163
|
+
pageSize: PAGE_SIZE,
|
|
164
|
+
total: (data === null || data === void 0 ? void 0 : data.count) || 0,
|
|
165
|
+
size: 'large',
|
|
166
|
+
current: (listParams === null || listParams === void 0 ? void 0 : listParams.skip) || 1,
|
|
167
|
+
localPagination: false
|
|
168
|
+
};
|
|
169
|
+
}, [data === null || data === void 0 ? void 0 : data.count, listParams === null || listParams === void 0 ? void 0 : listParams.skip]);
|
|
170
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
171
|
+
className: "".concat(prefixCls, "-container")
|
|
172
|
+
}, /*#__PURE__*/React.createElement(Page, {
|
|
173
|
+
style: {
|
|
174
|
+
height: '100%'
|
|
175
|
+
}
|
|
176
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
177
|
+
dataSource: (data === null || data === void 0 ? void 0 : data.list) || [],
|
|
178
|
+
columns: columns,
|
|
179
|
+
title: !isApp ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, {
|
|
180
|
+
title: locales.getText('pisell2.text.ecocup.title')
|
|
181
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: "".concat(prefixCls, "-header")
|
|
183
|
+
}, /*#__PURE__*/React.createElement(DatePicker.RangePicker, {
|
|
184
|
+
inputReadOnly: true,
|
|
185
|
+
bordered: false,
|
|
186
|
+
allowClear: false,
|
|
187
|
+
size: "large",
|
|
188
|
+
suffixIcon: /*#__PURE__*/React.createElement(CalendarOutlined, null),
|
|
189
|
+
value: date,
|
|
190
|
+
onChange: handleChange,
|
|
191
|
+
format: "DD/MM/YYYY",
|
|
192
|
+
className: "".concat(prefixCls, "-date-picker")
|
|
193
|
+
}), /*#__PURE__*/React.createElement(SearchBar, {
|
|
194
|
+
scanListenerKey: SCAN_LISTENER_KEY,
|
|
195
|
+
size: "small",
|
|
196
|
+
placeholder: locales.getText('pisell2.text.ecocup.scan-or-search'),
|
|
197
|
+
onSearch: function onSearch(value) {
|
|
198
|
+
return handleChange(value, 'search');
|
|
199
|
+
}
|
|
200
|
+
}))) : null,
|
|
201
|
+
align: "center",
|
|
202
|
+
pagination: pagination,
|
|
203
|
+
columnSetting: !isApp ? COLUMN_SETTING : null,
|
|
204
|
+
sort: !isApp ? SORT_SETTINGS : null,
|
|
205
|
+
filter: !isApp ? FILTER(locales, isNormalShop, ecoShopLists, isPartner, listParams === null || listParams === void 0 ? void 0 : listParams.skip) : null,
|
|
206
|
+
summary: !isApp ? summary : null,
|
|
207
|
+
className: "".concat(prefixCls, "-table"),
|
|
208
|
+
rowClassName: "".concat(prefixCls, "-table-row"),
|
|
209
|
+
loading: loading,
|
|
210
|
+
onValuesChange: handleValuesChangeDebounce,
|
|
211
|
+
rowKey: "id",
|
|
212
|
+
virtual: false,
|
|
213
|
+
tableLayout: "",
|
|
214
|
+
scroll: {
|
|
215
|
+
scrollToFirstRowOnChange: true,
|
|
216
|
+
autoCalc: true
|
|
217
|
+
}
|
|
218
|
+
})), cupActionModal.visible && /*#__PURE__*/React.createElement(CupActionModal, cupActionModal.modalProps));
|
|
219
|
+
};
|
|
220
|
+
export default CupList;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@prefixCls: ecocup-cup-list;
|
|
2
|
+
|
|
3
|
+
.@{prefixCls} {
|
|
4
|
+
&-container {
|
|
5
|
+
height: 100%;
|
|
6
|
+
background-color: #2A1C48;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: 38px 12px 12px;
|
|
10
|
+
|
|
11
|
+
.pisell-lowcode-page-header-left{
|
|
12
|
+
flex: 1;
|
|
13
|
+
}
|
|
14
|
+
.pisell-lowcode-action-btn-icon{
|
|
15
|
+
color: #fff!important;
|
|
16
|
+
&:hover{
|
|
17
|
+
color: #101828!important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.materials-grid-table-wrap{
|
|
22
|
+
.grid-view-table-wrap{
|
|
23
|
+
border-radius: 0 0 10px 10px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-header {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-date-picker {
|
|
37
|
+
width: 240px !important;
|
|
38
|
+
background: #916ce0;
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
> div > div {
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
color: #fff;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
line-height: 20px;
|
|
45
|
+
input{
|
|
46
|
+
height: 38px !important;
|
|
47
|
+
line-height: 38px !important;
|
|
48
|
+
padding: 0 0 0 14px !important;
|
|
49
|
+
&::selection {
|
|
50
|
+
background: transparent;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-summary {
|
|
57
|
+
&-card {
|
|
58
|
+
height: 80px;
|
|
59
|
+
.pisell-lowcode-card-body {
|
|
60
|
+
padding: 0;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
&-statistic {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
text-align: center;
|
|
70
|
+
gap: 8px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
.pisell-lowcode-statistic-title,
|
|
73
|
+
.pisell-lowcode-statistic-content-value {
|
|
74
|
+
// color: #5d3f9f !important;
|
|
75
|
+
line-height: 24px;
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
.pisell-lowcode-statistic-content-value {
|
|
79
|
+
font-size: 28px;
|
|
80
|
+
}
|
|
81
|
+
.pisell-lowcode-statistic-content {
|
|
82
|
+
line-height: 28px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-table {
|
|
89
|
+
td {
|
|
90
|
+
text-align: center;
|
|
91
|
+
}
|
|
92
|
+
&-table-row {
|
|
93
|
+
&:hover {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
&-table-status {
|
|
99
|
+
padding: 4px 8px;
|
|
100
|
+
border-radius: 16px;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
line-height: 16px;
|
|
104
|
+
width: max-content;
|
|
105
|
+
margin: 0 auto;
|
|
106
|
+
}
|
|
107
|
+
&-table-actions {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
gap: 10px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export var CUP_PROJECT_FOOTER_BUTTONS = [{
|
|
2
|
+
key: 'add-new-customer',
|
|
3
|
+
icon: 'pisell2-plus-circle',
|
|
4
|
+
type: 'primary',
|
|
5
|
+
size: 'large',
|
|
6
|
+
languageKey: 'pisell2.text.cup-project.footer.button.new-customer'
|
|
7
|
+
}, {
|
|
8
|
+
key: 'customer-list',
|
|
9
|
+
icon: 'pisell2-file-check-02',
|
|
10
|
+
type: 'primary',
|
|
11
|
+
size: 'large',
|
|
12
|
+
languageKey: 'pisell2.text.cup-project.footer.button.customer-list'
|
|
13
|
+
}, {
|
|
14
|
+
key: 'cup-list',
|
|
15
|
+
icon: 'pisell2-file-check-02',
|
|
16
|
+
type: 'primary',
|
|
17
|
+
size: 'large',
|
|
18
|
+
languageKey: 'pisell2.text.cup-project.footer.button.cup-list'
|
|
19
|
+
}
|
|
20
|
+
// {
|
|
21
|
+
// key: 'register-cups',
|
|
22
|
+
// icon: 'RestOutlined',
|
|
23
|
+
// type: 'primary',
|
|
24
|
+
// size: 'large',
|
|
25
|
+
// languageKey: 'pisell2.text.cup-project.footer.button.register-cups',
|
|
26
|
+
// },
|
|
27
|
+
];
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { locales } from '@pisell/utils';
|
|
3
|
+
import { Button, Icon } from '@pisell/materials';
|
|
4
|
+
import "./index.less";
|
|
5
|
+
import { useGetApp, useGetGoalShopInfo, useLanguage, useModal } from "../hooks";
|
|
6
|
+
import localeTexts from "../locales";
|
|
7
|
+
import { CUP_PROJECT_FOOTER_BUTTONS } from "./const";
|
|
8
|
+
import SearchBar from "../components/SearchBar";
|
|
9
|
+
import AddCustomerModal from "../components/AddCustomerModal";
|
|
10
|
+
import CustomerAndCupModal from "../components/CustomerAndCupModal";
|
|
11
|
+
var SCAN_LISTENER_KEY = 'eco-cup-project-scan-listener';
|
|
12
|
+
export default function EcoCupProject() {
|
|
13
|
+
var language = useLanguage();
|
|
14
|
+
locales.init(localeTexts, language);
|
|
15
|
+
var getApp = useGetApp();
|
|
16
|
+
var addCustomerModal = useModal('ecocup-add-customer-modal');
|
|
17
|
+
var customerAndCupModal = useModal('ecocup-customer-and-cup-modal');
|
|
18
|
+
var _useGetGoalShopInfo = useGetGoalShopInfo(),
|
|
19
|
+
goalShopId = _useGetGoalShopInfo.goalShopId;
|
|
20
|
+
var onSearchResult = function onSearchResult(result) {
|
|
21
|
+
console.log('onSearchResult', result);
|
|
22
|
+
if ((result === null || result === void 0 ? void 0 : result.type) === 'customer') {
|
|
23
|
+
customerAndCupModal.open({
|
|
24
|
+
data: {
|
|
25
|
+
firstType: result === null || result === void 0 ? void 0 : result.type,
|
|
26
|
+
customerData: result === null || result === void 0 ? void 0 : result.data
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
} else if ((result === null || result === void 0 ? void 0 : result.type) === 'cup') {
|
|
30
|
+
customerAndCupModal.open({
|
|
31
|
+
data: {
|
|
32
|
+
firstType: result === null || result === void 0 ? void 0 : result.type,
|
|
33
|
+
cupData: result === null || result === void 0 ? void 0 : result.data
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var onClickNewCustomer = function onClickNewCustomer() {
|
|
39
|
+
console.log('onClickNewCustomer');
|
|
40
|
+
addCustomerModal.open();
|
|
41
|
+
};
|
|
42
|
+
var onClickCustomerList = function onClickCustomerList() {
|
|
43
|
+
console.log('onClickCustomerList');
|
|
44
|
+
var app = getApp === null || getApp === void 0 ? void 0 : getApp();
|
|
45
|
+
if (goalShopId) {
|
|
46
|
+
var _app$history;
|
|
47
|
+
app === null || app === void 0 || (_app$history = app.history) === null || _app$history === void 0 || _app$history.push("/ecocup/customer-list?goal_shop_id=".concat(goalShopId));
|
|
48
|
+
} else {
|
|
49
|
+
var _app$history2;
|
|
50
|
+
app === null || app === void 0 || (_app$history2 = app.history) === null || _app$history2 === void 0 || _app$history2.push('/ecocup/customer-list');
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var onClickCupList = function onClickCupList() {
|
|
54
|
+
console.log('onClickCupList');
|
|
55
|
+
var app = getApp === null || getApp === void 0 ? void 0 : getApp();
|
|
56
|
+
if (goalShopId) {
|
|
57
|
+
var _app$history3;
|
|
58
|
+
app === null || app === void 0 || (_app$history3 = app.history) === null || _app$history3 === void 0 || _app$history3.push("/ecocup/cup-list?goal_shop_id=".concat(goalShopId));
|
|
59
|
+
} else {
|
|
60
|
+
var _app$history4;
|
|
61
|
+
app === null || app === void 0 || (_app$history4 = app.history) === null || _app$history4 === void 0 || _app$history4.push('/ecocup/cup-list');
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var onClickButton = function onClickButton(key) {
|
|
65
|
+
switch (key) {
|
|
66
|
+
case 'add-new-customer':
|
|
67
|
+
onClickNewCustomer();
|
|
68
|
+
break;
|
|
69
|
+
case 'customer-list':
|
|
70
|
+
onClickCustomerList();
|
|
71
|
+
break;
|
|
72
|
+
case 'cup-list':
|
|
73
|
+
onClickCupList();
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: "ecocup-cup-project"
|
|
79
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: "ecocup-cup-project-title"
|
|
81
|
+
}, locales.getText('pisell2.text.cup-project.title')), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "ecocup-cup-project-search-bar"
|
|
83
|
+
}, /*#__PURE__*/React.createElement(SearchBar, {
|
|
84
|
+
scanListenerKey: SCAN_LISTENER_KEY,
|
|
85
|
+
onSearchResult: onSearchResult
|
|
86
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "ecocup-cup-project-actions"
|
|
88
|
+
}, CUP_PROJECT_FOOTER_BUTTONS.map(function (button) {
|
|
89
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
90
|
+
key: button.key,
|
|
91
|
+
type: button.type,
|
|
92
|
+
size: "large",
|
|
93
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
94
|
+
type: button.icon,
|
|
95
|
+
size: 32
|
|
96
|
+
}),
|
|
97
|
+
onClick: function onClick() {
|
|
98
|
+
return onClickButton(button.key);
|
|
99
|
+
},
|
|
100
|
+
className: "ecocup-cup-project-actions-button"
|
|
101
|
+
}, locales.getText(button.languageKey));
|
|
102
|
+
})), addCustomerModal.visible && /*#__PURE__*/React.createElement(AddCustomerModal, addCustomerModal.modalProps), customerAndCupModal.visible && /*#__PURE__*/React.createElement(CustomerAndCupModal, customerAndCupModal.modalProps));
|
|
103
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.ecocup-cup-project {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
background-color: #292929;
|
|
9
|
+
|
|
10
|
+
&-title {
|
|
11
|
+
color: #ffffff;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: 40px;
|
|
14
|
+
font-weight: 300;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-search-bar {
|
|
18
|
+
margin-top: 16px;
|
|
19
|
+
height: 60px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
width: 818px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-actions {
|
|
25
|
+
margin-top: 132px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
|
|
31
|
+
&-button {
|
|
32
|
+
width: 220px;
|
|
33
|
+
height: 48px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
font-weight: 300;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 排序设置
|
|
3
|
+
* @return {*}
|
|
4
|
+
*/
|
|
5
|
+
declare const SORT_SETTINGS: {
|
|
6
|
+
show: boolean;
|
|
7
|
+
list: {
|
|
8
|
+
columnKey: string;
|
|
9
|
+
key: string;
|
|
10
|
+
type: string;
|
|
11
|
+
localFilter: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description: 列配置
|
|
16
|
+
* @return {*}
|
|
17
|
+
*/
|
|
18
|
+
declare const COLUMN_SETTING: {
|
|
19
|
+
show: boolean;
|
|
20
|
+
storageMode: string;
|
|
21
|
+
};
|
|
22
|
+
declare const FILTER: (locales: any) => {
|
|
23
|
+
show: boolean;
|
|
24
|
+
quickFilterMaxLength: number;
|
|
25
|
+
list: {
|
|
26
|
+
key: string;
|
|
27
|
+
type: string;
|
|
28
|
+
columnKey: string;
|
|
29
|
+
sort: boolean;
|
|
30
|
+
localFilter: boolean;
|
|
31
|
+
isCustom: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
other: {
|
|
34
|
+
size: string;
|
|
35
|
+
allowClear: boolean;
|
|
36
|
+
placeholder: any;
|
|
37
|
+
trigger: string[];
|
|
38
|
+
style: {
|
|
39
|
+
width: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
export { SORT_SETTINGS, COLUMN_SETTING, FILTER };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 排序设置
|
|
3
|
+
* @return {*}
|
|
4
|
+
*/
|
|
5
|
+
var SORT_SETTINGS = {
|
|
6
|
+
show: true,
|
|
7
|
+
list: [{
|
|
8
|
+
columnKey: 'display_name',
|
|
9
|
+
key: 'display_name',
|
|
10
|
+
type: 'string',
|
|
11
|
+
localFilter: false
|
|
12
|
+
}, {
|
|
13
|
+
columnKey: 'create_time',
|
|
14
|
+
key: 'create_time',
|
|
15
|
+
type: 'date',
|
|
16
|
+
localFilter: false
|
|
17
|
+
}
|
|
18
|
+
// {
|
|
19
|
+
// columnKey: 'total_rent_count',
|
|
20
|
+
// key: 'total_rent_count',
|
|
21
|
+
// type: 'number',
|
|
22
|
+
// localFilter: false,
|
|
23
|
+
// },
|
|
24
|
+
// {
|
|
25
|
+
// columnKey: 'total_return_count',
|
|
26
|
+
// key: 'total_return_count',
|
|
27
|
+
// type: 'number',
|
|
28
|
+
// localFilter: false,
|
|
29
|
+
// },
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description: 列配置
|
|
35
|
+
* @return {*}
|
|
36
|
+
*/
|
|
37
|
+
var COLUMN_SETTING = {
|
|
38
|
+
show: true,
|
|
39
|
+
storageMode: 'localStorage'
|
|
40
|
+
};
|
|
41
|
+
var FILTER = function FILTER(locales) {
|
|
42
|
+
return {
|
|
43
|
+
show: true,
|
|
44
|
+
quickFilterMaxLength: 3,
|
|
45
|
+
// sortButtonShow: true,
|
|
46
|
+
// storageMode: 'localStorage',
|
|
47
|
+
list: [{
|
|
48
|
+
key: 'search',
|
|
49
|
+
type: 'search',
|
|
50
|
+
columnKey: '',
|
|
51
|
+
sort: true,
|
|
52
|
+
localFilter: false,
|
|
53
|
+
isCustom: true,
|
|
54
|
+
name: 'search',
|
|
55
|
+
other: {
|
|
56
|
+
size: 'large',
|
|
57
|
+
allowClear: true,
|
|
58
|
+
placeholder: locales.getText('pisell2.text.ecocup.customer.list.search.placeholder'),
|
|
59
|
+
trigger: ['onChange', 'onPressEnter'],
|
|
60
|
+
style: {
|
|
61
|
+
width: 240
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}]
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export { SORT_SETTINGS, COLUMN_SETTING, FILTER };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const useColumns: (locales: any) => ({
|
|
2
|
+
title: any;
|
|
3
|
+
dataIndex: string;
|
|
4
|
+
key: string;
|
|
5
|
+
align: string;
|
|
6
|
+
width: number;
|
|
7
|
+
render?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
title: any;
|
|
10
|
+
dataIndex: string;
|
|
11
|
+
key: string;
|
|
12
|
+
align: string;
|
|
13
|
+
width: number;
|
|
14
|
+
render: (text: string) => string;
|
|
15
|
+
})[];
|