@pisell/private-materials 6.3.88 → 6.3.89
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/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/es/components/{eftpos/PairModal → ecocup/components/AddCustomerModal}/index.js +159 -189
- 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 +7 -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 +6 -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/components/ecocup/cupList/hooks/useCupApi.js +172 -0
- 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/eftpos/const.d.ts +1 -3
- package/es/components/eftpos/const.js +0 -2
- package/es/components/eftpos/device.d.ts +1 -3
- package/es/components/eftpos/device.js +3 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -7
- package/es/components/eftpos/hooks.js +0 -20
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/index.js +14 -118
- package/es/components/eftpos/index.less +1 -26
- package/es/components/eftpos/locales.d.ts +0 -24
- package/es/components/eftpos/locales.js +7 -91
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +1 -6
- package/es/components/eftposPay/const.js +0 -2
- package/es/components/eftposPay/device.js +208 -36
- package/es/components/eftposPay/hooks.d.ts +1 -2
- package/es/components/eftposPay/hooks.js +0 -12
- package/es/components/eftposPay/linkly/index.js +0 -1
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -4
- package/es/components/eftposPay/pay.js +2 -7
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +5 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +835 -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 +154 -0
- package/es/plus/orderList/config.js +786 -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/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/NumericStepper/index.d.ts +28 -3
- package/es/pro/NumericStepper/index.js +175 -107
- package/es/pro/NumericStepper/index.less +295 -143
- package/es/pro/Selector/Selector.js +33 -26
- package/es/pro/Selector/components/Card/index.js +2 -3
- package/es/pro/Selector/components/Card/index.less +11 -4
- package/es/pro/Selector/components/Indicator/index.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.js +2 -1
- package/es/pro/Selector/components/Indicator/index.less +4 -1
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +5 -3
- package/es/pro/Selector/components/LayoutContainer/index.js +226 -9
- package/es/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +60 -6
- package/es/pro/Selector/selector.less +0 -64
- package/es/pro/Selector/types.d.ts +40 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +54 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/es/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/es/pro/comprehensiveSearch/components/index.js +2 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +140 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +14 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +7 -0
- package/es/pro/comprehensiveSearch/index.js +207 -0
- package/es/pro/comprehensiveSearch/index.less +196 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/locales.js +14 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- 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/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- 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 +7 -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 +6 -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/{eftposPay/mx51/types.js → ecocup/components/SearchBar/const.js} +28 -17
- 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/{eftposPay/aggregatePayment → ecocup/customerList/hooks}/index.js +10 -10
- 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/eftpos/const.d.ts +1 -3
- package/lib/components/eftpos/const.js +0 -2
- package/lib/components/eftpos/device.d.ts +1 -3
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -7
- package/lib/components/eftpos/hooks.js +0 -19
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/index.js +7 -73
- package/lib/components/eftpos/index.less +1 -26
- package/lib/components/eftpos/locales.d.ts +0 -24
- package/lib/components/eftpos/locales.js +4 -88
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +1 -6
- package/lib/components/eftposPay/const.js +0 -2
- package/lib/components/eftposPay/device.js +108 -23
- package/lib/components/eftposPay/hooks.d.ts +1 -2
- package/lib/components/eftposPay/hooks.js +0 -16
- package/lib/components/eftposPay/linkly/index.js +0 -1
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -6
- package/lib/components/eftposPay/pay.js +2 -4
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/index.d.ts +5 -1
- package/lib/index.js +13 -1
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +567 -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 +154 -0
- package/lib/plus/orderList/config.js +764 -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/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/NumericStepper/index.d.ts +28 -3
- package/lib/pro/NumericStepper/index.js +176 -88
- package/lib/pro/NumericStepper/index.less +295 -143
- package/lib/pro/Selector/Selector.js +27 -16
- package/lib/pro/Selector/components/Card/index.js +9 -1
- package/lib/pro/Selector/components/Card/index.less +11 -4
- package/lib/pro/Selector/components/Indicator/index.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +4 -1
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +5 -3
- package/lib/pro/Selector/components/LayoutContainer/index.js +130 -2
- package/lib/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +28 -6
- package/lib/pro/Selector/selector.less +0 -64
- package/lib/pro/Selector/types.d.ts +40 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +64 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/lib/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/lib/pro/comprehensiveSearch/components/index.js +42 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +153 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +38 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +7 -0
- package/lib/pro/comprehensiveSearch/index.js +190 -0
- package/lib/pro/comprehensiveSearch/index.less +196 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/locales.js +38 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- 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/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/order-list/meta.ts +87 -0
- package/package.json +6 -6
- package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/es/components/eftpos/PairModal/hooks.js +0 -67
- package/es/components/eftpos/PairModal/index.d.ts +0 -11
- package/es/components/eftpos/PairModal/index.less +0 -70
- package/es/components/eftpos/assets/mx51SCI.svg +0 -15
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -125
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/es/components/eftposPay/aggregatePayment/mock.js +0 -567
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -70
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -96
- package/es/components/eftposPay/aggregatePayment/types.js +0 -61
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -385
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1127
- package/es/components/eftposPay/mx51/Action.d.ts +0 -6
- package/es/components/eftposPay/mx51/Action.js +0 -91
- package/es/components/eftposPay/mx51/const.d.ts +0 -5
- package/es/components/eftposPay/mx51/const.js +0 -69
- package/es/components/eftposPay/mx51/index.d.ts +0 -6
- package/es/components/eftposPay/mx51/index.js +0 -362
- package/es/components/eftposPay/mx51/types.d.ts +0 -136
- package/es/components/eftposPay/mx51/types.js +0 -29
- package/es/components/eftposPay/mx51/utils.d.ts +0 -10
- package/es/components/eftposPay/mx51/utils.js +0 -120
- package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/lib/components/eftpos/PairModal/hooks.js +0 -70
- package/lib/components/eftpos/PairModal/index.d.ts +0 -11
- package/lib/components/eftpos/PairModal/index.js +0 -197
- package/lib/components/eftpos/PairModal/index.less +0 -70
- package/lib/components/eftpos/assets/mx51SCI.svg +0 -15
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -152
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/lib/components/eftposPay/aggregatePayment/mock.js +0 -679
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -96
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -302
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -746
- package/lib/components/eftposPay/mx51/Action.d.ts +0 -6
- package/lib/components/eftposPay/mx51/Action.js +0 -127
- package/lib/components/eftposPay/mx51/const.d.ts +0 -5
- package/lib/components/eftposPay/mx51/const.js +0 -85
- package/lib/components/eftposPay/mx51/index.d.ts +0 -6
- package/lib/components/eftposPay/mx51/index.js +0 -330
- package/lib/components/eftposPay/mx51/types.d.ts +0 -136
- package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
- package/lib/components/eftposPay/mx51/utils.js +0 -114
|
@@ -0,0 +1,764 @@
|
|
|
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/plus/orderList/config.tsx
|
|
30
|
+
var config_exports = {};
|
|
31
|
+
__export(config_exports, {
|
|
32
|
+
getFilterButtonList: () => getFilterButtonList,
|
|
33
|
+
getQuickFilterList: () => getQuickFilterList,
|
|
34
|
+
getSortList: () => getSortList,
|
|
35
|
+
getTableColumns: () => getTableColumns
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(config_exports);
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_antd = require("antd");
|
|
40
|
+
var import_materials = require("@pisell/materials");
|
|
41
|
+
var import_serve = require("./serve");
|
|
42
|
+
var getDeliveryTypeMap = (locales) => ({
|
|
43
|
+
nil: locales.getText("pisell2.orderList.deliveryType.nil"),
|
|
44
|
+
shipping: locales.getText("pisell2.orderList.deliveryType.shipping"),
|
|
45
|
+
local_delivery: locales.getText(
|
|
46
|
+
"pisell2.orderList.deliveryType.local_delivery"
|
|
47
|
+
),
|
|
48
|
+
pickup: locales.getText("pisell2.orderList.deliveryType.pickup"),
|
|
49
|
+
shop_service: locales.getText("pisell2.orderList.deliveryType.shop_service")
|
|
50
|
+
});
|
|
51
|
+
var getShopServiceTypeMap = (locales) => ({
|
|
52
|
+
"dine-in": locales.getText("pisell2.orderList.shopServiceType.dine-in"),
|
|
53
|
+
takeaway: locales.getText("pisell2.orderList.shopServiceType.takeaway")
|
|
54
|
+
});
|
|
55
|
+
var getPlatformMap = (locales) => ({
|
|
56
|
+
online_store: locales.getText("pisell2.orderList.platform.online_store"),
|
|
57
|
+
wholesalebusiness: locales.getText("pisell2.orderList.platform.wholesalebusiness"),
|
|
58
|
+
"table-order": locales.getText("pisell2.orderList.platform.table-order"),
|
|
59
|
+
mobile_order: locales.getText("pisell2.orderList.platform.mobile_order"),
|
|
60
|
+
kiosk: locales.getText("pisell2.orderList.platform.kiosk"),
|
|
61
|
+
pos: locales.getText("pisell2.orderList.platform.pos")
|
|
62
|
+
});
|
|
63
|
+
var getOrderStatusMap = (locales) => ({
|
|
64
|
+
open: locales.getText("pisell2.orderList.orderStatus.open"),
|
|
65
|
+
completed: locales.getText("pisell2.orderList.orderStatus.completed"),
|
|
66
|
+
cancelled: locales.getText("pisell2.orderList.orderStatus.cancelled")
|
|
67
|
+
});
|
|
68
|
+
var ORDER_STATUS_COLOR_MAP = {
|
|
69
|
+
open: {
|
|
70
|
+
borderColor: "#1570EF",
|
|
71
|
+
// Blue/600
|
|
72
|
+
textColor: "#175CD3"
|
|
73
|
+
// Blue/700
|
|
74
|
+
},
|
|
75
|
+
completed: {
|
|
76
|
+
borderColor: "#079455",
|
|
77
|
+
// Success/600
|
|
78
|
+
textColor: "#067647"
|
|
79
|
+
// Success/700
|
|
80
|
+
},
|
|
81
|
+
cancelled: {
|
|
82
|
+
borderColor: "#D92D20",
|
|
83
|
+
// Error/600
|
|
84
|
+
textColor: "#B42318"
|
|
85
|
+
// Error/700
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
var getShippingStatusMap = (locales) => ({
|
|
89
|
+
fulfilled: locales.getText(
|
|
90
|
+
"pisell2.orderList.shippingStatus.falseulfilled"
|
|
91
|
+
),
|
|
92
|
+
unfulfilled: locales.getText("pisell2.orderList.shippingStatus.unfulfilled"),
|
|
93
|
+
fulfilling: locales.getText("pisell2.orderList.shippingStatus.fulfilling"),
|
|
94
|
+
partial_fulfilled: locales.getText(
|
|
95
|
+
"pisell2.orderList.shippingStatus.partial_fulfilled"
|
|
96
|
+
)
|
|
97
|
+
});
|
|
98
|
+
var SHIPPING_STATUS_COLOR_MAP = {
|
|
99
|
+
fulfilling: {
|
|
100
|
+
borderColor: "#DC6803",
|
|
101
|
+
// Warning/600 - 处理中
|
|
102
|
+
textColor: "#B54708"
|
|
103
|
+
// Warning/700
|
|
104
|
+
},
|
|
105
|
+
unfulfilled: {
|
|
106
|
+
borderColor: "#DC6803",
|
|
107
|
+
// Success/600 --未处理
|
|
108
|
+
textColor: "#B54708"
|
|
109
|
+
// Success/700
|
|
110
|
+
},
|
|
111
|
+
partial_fulfilled: {
|
|
112
|
+
borderColor: "#088AB2",
|
|
113
|
+
// Cyan/600 - 部分处理
|
|
114
|
+
textColor: "#0E7090"
|
|
115
|
+
// Cyan/700
|
|
116
|
+
},
|
|
117
|
+
fulfilled: {
|
|
118
|
+
borderColor: "#475467",
|
|
119
|
+
// Gray/600 - 已处理
|
|
120
|
+
textColor: "#344054"
|
|
121
|
+
// Gray/700
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var getPaymentStatusMap = (locales) => ({
|
|
125
|
+
authorized: locales.getText("pisell2.orderList.paymentStatus.authorized"),
|
|
126
|
+
paid: locales.getText("pisell2.orderList.paymentStatus.paid"),
|
|
127
|
+
partially_paid: locales.getText(
|
|
128
|
+
"pisell2.orderList.paymentStatus.partially_paid"
|
|
129
|
+
),
|
|
130
|
+
partially_refunded: locales.getText(
|
|
131
|
+
"pisell2.orderList.paymentStatus.partially_refunded"
|
|
132
|
+
),
|
|
133
|
+
payment_pending: locales.getText(
|
|
134
|
+
"pisell2.orderList.paymentStatus.payment_pending"
|
|
135
|
+
),
|
|
136
|
+
refunded: locales.getText("pisell2.orderList.paymentStatus.refunded"),
|
|
137
|
+
unpaid: locales.getText("pisell2.orderList.paymentStatus.unpaid"),
|
|
138
|
+
voided: locales.getText("pisell2.orderList.paymentStatus.voided"),
|
|
139
|
+
payment_processing: locales.getText(
|
|
140
|
+
"pisell2.orderList.paymentStatus.payment_processing"
|
|
141
|
+
)
|
|
142
|
+
});
|
|
143
|
+
var PAYMENT_STATUS_COLOR_MAP = {
|
|
144
|
+
unpaid: "#B2DDFF",
|
|
145
|
+
// 未付款 - Blue/200
|
|
146
|
+
payment_processing: "#FEDF89",
|
|
147
|
+
// 待支付 - Warning/200
|
|
148
|
+
payment_pending: "#FEDF89",
|
|
149
|
+
// 等待付款 - Warning/200
|
|
150
|
+
authorized: "#ABEFC6",
|
|
151
|
+
// 已授权 - Success/200
|
|
152
|
+
paid: "#ABEFC6",
|
|
153
|
+
// 已付款 - Success/200
|
|
154
|
+
partially_paid: "#CEEAB0",
|
|
155
|
+
// 部分付款 - Moss/200
|
|
156
|
+
refunded: "#FECDCA",
|
|
157
|
+
// 已退款 - Error/200
|
|
158
|
+
partially_refunded: "#FCCEEE",
|
|
159
|
+
// 部分退款 - Pink/200
|
|
160
|
+
voided: "#D0D5DD"
|
|
161
|
+
// 已作废 - Gray/300
|
|
162
|
+
};
|
|
163
|
+
var renderMapValue = (value, map) => {
|
|
164
|
+
return map[value] || "";
|
|
165
|
+
};
|
|
166
|
+
var getTableColumns = (locales) => [
|
|
167
|
+
{
|
|
168
|
+
title: locales.getText("pisell2.orderList.column.orderNumber"),
|
|
169
|
+
dataIndex: "shop_full_order_number",
|
|
170
|
+
key: "shop_full_order_number",
|
|
171
|
+
width: 100,
|
|
172
|
+
render: (value, record) => {
|
|
173
|
+
const { note } = record || {};
|
|
174
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "order-id-cell" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-id-link" }, value), note && /* @__PURE__ */ import_react.default.createElement(
|
|
175
|
+
import_antd.Tooltip,
|
|
176
|
+
{
|
|
177
|
+
title: /* @__PURE__ */ import_react.default.createElement("div", { style: { whiteSpace: "pre-wrap" } }, note)
|
|
178
|
+
},
|
|
179
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "order-id-link-badge cursor-pointer" }, locales.getText("pisell2.orderList.common.note"))
|
|
180
|
+
));
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
title: locales.getText("pisell2.orderList.column.customerInfo"),
|
|
185
|
+
dataIndex: "customer",
|
|
186
|
+
key: "customer",
|
|
187
|
+
width: 200,
|
|
188
|
+
render: (value, record) => {
|
|
189
|
+
const { email, phone } = value || {};
|
|
190
|
+
const customer_name = (value == null ? void 0 : value.customer_name) || (record == null ? void 0 : record.customer_name);
|
|
191
|
+
const guest_code = value == null ? void 0 : value.guest_code;
|
|
192
|
+
if (guest_code) {
|
|
193
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "compound-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "title" }, locales.getText("pisell2.orderList.common.guest")));
|
|
194
|
+
}
|
|
195
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "compound-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "title" }, customer_name || "-"), /* @__PURE__ */ import_react.default.createElement("div", { className: "subtitle" }, phone || "-"), /* @__PURE__ */ import_react.default.createElement("div", { className: "subtitle" }, email || "-"));
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
title: locales.getText("pisell2.orderList.column.contactInfo"),
|
|
200
|
+
dataIndex: "contacts_info",
|
|
201
|
+
key: "contacts_info",
|
|
202
|
+
width: 200,
|
|
203
|
+
render: (value, record) => {
|
|
204
|
+
const _value = (value == null ? void 0 : value.value) || {};
|
|
205
|
+
const {
|
|
206
|
+
first_name,
|
|
207
|
+
last_name,
|
|
208
|
+
display_name,
|
|
209
|
+
phone: phoneInfo,
|
|
210
|
+
email
|
|
211
|
+
} = _value || {};
|
|
212
|
+
const { country_calling_code, country_code, phone } = phoneInfo || {};
|
|
213
|
+
const _name = display_name || `${first_name || ""} ${last_name || ""}`;
|
|
214
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "compound-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "title" }, `${_name || "-"}`), /* @__PURE__ */ import_react.default.createElement("div", { className: "subtitle" }, phone || "-"), /* @__PURE__ */ import_react.default.createElement("div", { className: "subtitle" }, email || "-"));
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
title: locales.getText("pisell2.orderList.column.tags"),
|
|
219
|
+
dataIndex: "tag",
|
|
220
|
+
key: "tag",
|
|
221
|
+
width: 200,
|
|
222
|
+
render: (value) => {
|
|
223
|
+
if (Array.isArray(value)) {
|
|
224
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "tags-container" }, value.map((item, index) => /* @__PURE__ */ import_react.default.createElement(import_materials.PisellTags, { key: index }, item.name)));
|
|
225
|
+
}
|
|
226
|
+
return "-";
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
title: locales.getText("pisell2.orderList.column.deliveryMethod"),
|
|
231
|
+
dataIndex: "delivery_type",
|
|
232
|
+
key: "delivery_type",
|
|
233
|
+
width: 160,
|
|
234
|
+
render: (value, record) => {
|
|
235
|
+
const { shop_service_type } = record.metadata || {};
|
|
236
|
+
const SHOP_SERVICE_TYPE_MAP = getShopServiceTypeMap(locales);
|
|
237
|
+
const DELIVERY_TYPE_MAP = getDeliveryTypeMap(locales);
|
|
238
|
+
let node = null;
|
|
239
|
+
if (value === "shop_service") {
|
|
240
|
+
node = renderMapValue(
|
|
241
|
+
shop_service_type == null ? void 0 : shop_service_type.server_type,
|
|
242
|
+
SHOP_SERVICE_TYPE_MAP
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
node = renderMapValue(value, DELIVERY_TYPE_MAP);
|
|
246
|
+
return node ? /* @__PURE__ */ import_react.default.createElement(import_materials.PisellTags, { style: { whiteSpace: "nowrap" } }, node) : "-";
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
title: locales.getText("pisell2.orderList.column.paymentInfo"),
|
|
251
|
+
dataIndex: "payment_status",
|
|
252
|
+
key: "payment_status",
|
|
253
|
+
width: 140,
|
|
254
|
+
render: (value, record) => {
|
|
255
|
+
const PAYMENT_STATUS_MAP = getPaymentStatusMap(locales);
|
|
256
|
+
const total_amount = Number(record.total_amount || 0);
|
|
257
|
+
const paid_amount = Number(record.paid_amount || 0);
|
|
258
|
+
const total_refund_amount = Number(record.total_refund_amount || 0);
|
|
259
|
+
const unpaid = Number(total_amount - paid_amount).toFixed(2);
|
|
260
|
+
let tooltipContent = "";
|
|
261
|
+
if (["payment_pending", "payment_processing", "unpaid"].includes(value)) {
|
|
262
|
+
tooltipContent = `${locales.getText(
|
|
263
|
+
"pisell2.orderList.common.totalAmount"
|
|
264
|
+
)}: $${total_amount.toFixed(2)}
|
|
265
|
+
${locales.getText(
|
|
266
|
+
"pisell2.orderList.common.unpaidAmount"
|
|
267
|
+
)}: $${unpaid}`;
|
|
268
|
+
} else if (value === "partially_paid") {
|
|
269
|
+
tooltipContent = `${locales.getText(
|
|
270
|
+
"pisell2.orderList.common.totalAmount"
|
|
271
|
+
)}: $${total_amount.toFixed(2)}
|
|
272
|
+
${locales.getText(
|
|
273
|
+
"pisell2.orderList.common.paidAmount"
|
|
274
|
+
)}: $${paid_amount.toFixed(2)}
|
|
275
|
+
${locales.getText(
|
|
276
|
+
"pisell2.orderList.common.dueAmount"
|
|
277
|
+
)}: $${unpaid}`;
|
|
278
|
+
} else if (value === "paid") {
|
|
279
|
+
tooltipContent = `${locales.getText(
|
|
280
|
+
"pisell2.orderList.common.totalAmount"
|
|
281
|
+
)}: $${total_amount.toFixed(2)}
|
|
282
|
+
${locales.getText(
|
|
283
|
+
"pisell2.orderList.common.paidAmount"
|
|
284
|
+
)}: $${paid_amount.toFixed(2)}`;
|
|
285
|
+
} else if (["partially_refunded", "refunded"].includes(value)) {
|
|
286
|
+
tooltipContent = `${locales.getText(
|
|
287
|
+
"pisell2.orderList.common.totalAmount"
|
|
288
|
+
)}: $${total_amount.toFixed(2)}
|
|
289
|
+
${locales.getText(
|
|
290
|
+
"pisell2.orderList.common.paidAmount"
|
|
291
|
+
)}: $${paid_amount.toFixed(2)}
|
|
292
|
+
${locales.getText(
|
|
293
|
+
"pisell2.orderList.common.refundedAmount"
|
|
294
|
+
)}: $${total_refund_amount.toFixed(2)}`;
|
|
295
|
+
}
|
|
296
|
+
const color = PAYMENT_STATUS_COLOR_MAP[value] || "";
|
|
297
|
+
if (["voided", "authorized"].includes(value)) {
|
|
298
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
299
|
+
import_materials.PisellTags,
|
|
300
|
+
{
|
|
301
|
+
className: "cursor-pointer",
|
|
302
|
+
style: { backgroundColor: color, whiteSpace: "nowrap" }
|
|
303
|
+
},
|
|
304
|
+
renderMapValue(value, PAYMENT_STATUS_MAP) || "-"
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
308
|
+
import_antd.Tooltip,
|
|
309
|
+
{
|
|
310
|
+
title: /* @__PURE__ */ import_react.default.createElement("div", { style: { whiteSpace: "pre-wrap" } }, tooltipContent)
|
|
311
|
+
},
|
|
312
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
313
|
+
import_materials.PisellTags,
|
|
314
|
+
{
|
|
315
|
+
className: "cursor-pointer",
|
|
316
|
+
style: { backgroundColor: color, whiteSpace: "nowrap" }
|
|
317
|
+
},
|
|
318
|
+
renderMapValue(value, PAYMENT_STATUS_MAP)
|
|
319
|
+
)
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
title: locales.getText("pisell2.orderList.column.orderChannel"),
|
|
325
|
+
dataIndex: "order_sales_channel",
|
|
326
|
+
key: "order_sales_channel",
|
|
327
|
+
width: 160,
|
|
328
|
+
render: (value) => {
|
|
329
|
+
const PLATFORM_MAP = getPlatformMap(locales);
|
|
330
|
+
return renderMapValue(value, PLATFORM_MAP) || "-";
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
title: locales.getText("pisell2.orderList.column.productQuantity"),
|
|
335
|
+
dataIndex: "product_quantity",
|
|
336
|
+
key: "product_quantity",
|
|
337
|
+
width: 180,
|
|
338
|
+
isShow: false,
|
|
339
|
+
render: (value) => {
|
|
340
|
+
return `${Number(value || 0)}${locales.getText(
|
|
341
|
+
"pisell2.orderList.common.itemsCount"
|
|
342
|
+
)}`;
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
// {
|
|
346
|
+
// title: locales.getText('pisell2.orderList.column.business'),
|
|
347
|
+
// dataIndex: 'business_code',
|
|
348
|
+
// key: 'business_code',
|
|
349
|
+
// isShow: false,
|
|
350
|
+
// render: (value: any) => {
|
|
351
|
+
// return value;
|
|
352
|
+
// },
|
|
353
|
+
// },
|
|
354
|
+
{
|
|
355
|
+
title: locales.getText("pisell2.orderList.column.orderStatus"),
|
|
356
|
+
dataIndex: "status",
|
|
357
|
+
key: "status",
|
|
358
|
+
width: 140,
|
|
359
|
+
isShow: false,
|
|
360
|
+
render: (value) => {
|
|
361
|
+
const ORDER_STATUS_MAP = getOrderStatusMap(locales);
|
|
362
|
+
const color = ORDER_STATUS_COLOR_MAP[value];
|
|
363
|
+
let style = {};
|
|
364
|
+
if (color) {
|
|
365
|
+
style = {
|
|
366
|
+
borderColor: color.borderColor,
|
|
367
|
+
color: color.textColor,
|
|
368
|
+
whiteSpace: "nowrap"
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellTags, { className: "cursor-pointer", style }, renderMapValue(value, ORDER_STATUS_MAP) || "-");
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
title: locales.getText("pisell2.orderList.column.processStatus"),
|
|
376
|
+
dataIndex: "shipping_status",
|
|
377
|
+
key: "shipping_status",
|
|
378
|
+
width: 140,
|
|
379
|
+
isShow: false,
|
|
380
|
+
render: (value) => {
|
|
381
|
+
const SHIPPING_STATUS_MAP = getShippingStatusMap(locales);
|
|
382
|
+
const color = SHIPPING_STATUS_COLOR_MAP[value];
|
|
383
|
+
let style = {};
|
|
384
|
+
if (color) {
|
|
385
|
+
style = {
|
|
386
|
+
borderColor: color.borderColor,
|
|
387
|
+
color: color.textColor,
|
|
388
|
+
whiteSpace: "nowrap"
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellTags, { className: "cursor-pointer", style }, renderMapValue(value, SHIPPING_STATUS_MAP) || "-");
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
title: locales.getText("pisell2.orderList.column.createInfo"),
|
|
396
|
+
dataIndex: "create_account",
|
|
397
|
+
key: "create_account",
|
|
398
|
+
isShow: false,
|
|
399
|
+
width: 180,
|
|
400
|
+
render: (value, record) => {
|
|
401
|
+
const { created_at, create_account_id } = record || {};
|
|
402
|
+
const { first_name, last_name } = value || {};
|
|
403
|
+
let display_name = `${first_name || ""} ${last_name || ""}`;
|
|
404
|
+
if (Number(create_account_id) > 0) {
|
|
405
|
+
display_name = locales.getText("pisell2.orderList.filter.customer.label");
|
|
406
|
+
}
|
|
407
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "compound-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "title" }, `${display_name || "-"}`), /* @__PURE__ */ import_react.default.createElement("div", { className: "subtitle" }, created_at || "-"));
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
title: locales.getText("pisell2.orderList.column.moreInfo"),
|
|
412
|
+
dataIndex: "last_edit_account",
|
|
413
|
+
key: "last_edit_account",
|
|
414
|
+
isShow: false,
|
|
415
|
+
width: 180,
|
|
416
|
+
render: (value) => {
|
|
417
|
+
if (value) {
|
|
418
|
+
const { account, created_at } = value || {};
|
|
419
|
+
const { display_name } = account || {};
|
|
420
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "compound-cell" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "title" }, `${display_name || "-"}`), /* @__PURE__ */ import_react.default.createElement("div", { className: "subtitle" }, created_at || "-"));
|
|
421
|
+
}
|
|
422
|
+
return "-";
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
];
|
|
426
|
+
var getQuickFilterList = (locales) => {
|
|
427
|
+
return [
|
|
428
|
+
{
|
|
429
|
+
name: "orderDate",
|
|
430
|
+
//end_time 分两个字段
|
|
431
|
+
type: "rangePicker",
|
|
432
|
+
key: "orderDate",
|
|
433
|
+
label: locales.getText("pisell2.orderList.quickFilter.orderDate.label"),
|
|
434
|
+
other: {
|
|
435
|
+
placeholder: locales.getText(
|
|
436
|
+
"pisell2.orderList.quickFilter.orderDate.placeholder"
|
|
437
|
+
)
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "keyword",
|
|
442
|
+
type: "search",
|
|
443
|
+
key: "keyword",
|
|
444
|
+
other: {
|
|
445
|
+
allowClear: true,
|
|
446
|
+
placeholder: locales.getText(
|
|
447
|
+
"pisell2.orderList.quickFilter.keyword.placeholder"
|
|
448
|
+
),
|
|
449
|
+
trigger: ["onChange"],
|
|
450
|
+
style: {
|
|
451
|
+
width: "400px"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
];
|
|
456
|
+
};
|
|
457
|
+
var getFilterButtonList = (locales) => {
|
|
458
|
+
const ORDER_STATUS_MAP = getOrderStatusMap(locales);
|
|
459
|
+
const PAYMENT_STATUS_MAP = getPaymentStatusMap(locales);
|
|
460
|
+
const SHIPPING_STATUS_MAP = getShippingStatusMap(locales);
|
|
461
|
+
const DELIVERY_TYPE_MAP = getDeliveryTypeMap(locales);
|
|
462
|
+
return [
|
|
463
|
+
{
|
|
464
|
+
name: "status",
|
|
465
|
+
type: "select",
|
|
466
|
+
key: "status",
|
|
467
|
+
label: locales.getText("pisell2.orderList.filter.orderStatus.label"),
|
|
468
|
+
other: {
|
|
469
|
+
allowClear: true,
|
|
470
|
+
mode: "multiple",
|
|
471
|
+
placeholder: locales.getText(
|
|
472
|
+
"pisell2.orderList.filter.orderStatus.placeholder"
|
|
473
|
+
),
|
|
474
|
+
options: Object.entries(ORDER_STATUS_MAP).map(([key, value]) => ({
|
|
475
|
+
label: value,
|
|
476
|
+
value: key
|
|
477
|
+
}))
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: "payment_status",
|
|
482
|
+
type: "select",
|
|
483
|
+
key: "payment_status",
|
|
484
|
+
label: locales.getText("pisell2.orderList.filter.paymentStatus.label"),
|
|
485
|
+
other: {
|
|
486
|
+
allowClear: true,
|
|
487
|
+
mode: "multiple",
|
|
488
|
+
placeholder: locales.getText(
|
|
489
|
+
"pisell2.orderList.filter.paymentStatus.placeholder"
|
|
490
|
+
),
|
|
491
|
+
options: Object.entries(PAYMENT_STATUS_MAP).map(([key, value]) => ({
|
|
492
|
+
label: value,
|
|
493
|
+
value: key
|
|
494
|
+
}))
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "shipping_status",
|
|
499
|
+
type: "select",
|
|
500
|
+
key: "shipping_status",
|
|
501
|
+
label: locales.getText("pisell2.orderList.filter.shippingStatus.label"),
|
|
502
|
+
other: {
|
|
503
|
+
allowClear: true,
|
|
504
|
+
mode: "multiple",
|
|
505
|
+
placeholder: locales.getText(
|
|
506
|
+
"pisell2.orderList.filter.shippingStatus.placeholder"
|
|
507
|
+
),
|
|
508
|
+
options: Object.entries(SHIPPING_STATUS_MAP).map(([key, value]) => ({
|
|
509
|
+
label: value,
|
|
510
|
+
value: key
|
|
511
|
+
}))
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
// {
|
|
515
|
+
// name: 'updatedDate', //end_time 分两个字段
|
|
516
|
+
// type: 'rangePicker',
|
|
517
|
+
// key: 'updatedDate',
|
|
518
|
+
// label: '更新时间',
|
|
519
|
+
// other: {
|
|
520
|
+
// placeholder: '请选择更新时间',
|
|
521
|
+
// },
|
|
522
|
+
// },
|
|
523
|
+
{
|
|
524
|
+
name: "customer_id",
|
|
525
|
+
type: "select",
|
|
526
|
+
key: "customer_id",
|
|
527
|
+
label: locales.getText("pisell2.orderList.filter.customer.label"),
|
|
528
|
+
other: {
|
|
529
|
+
allowClear: true,
|
|
530
|
+
isSearchServer: true,
|
|
531
|
+
showSearch: true,
|
|
532
|
+
placeholder: locales.getText(
|
|
533
|
+
"pisell2.orderList.filter.customer.placeholder"
|
|
534
|
+
),
|
|
535
|
+
options: (params) => (0, import_serve.getCustomerSelectOptions)(params).then(
|
|
536
|
+
(res) => res.map((item) => ({
|
|
537
|
+
label: item.display_name,
|
|
538
|
+
value: item.id
|
|
539
|
+
}))
|
|
540
|
+
)
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
name: "order_sales_channel",
|
|
545
|
+
type: "select",
|
|
546
|
+
key: "order_sales_channel",
|
|
547
|
+
label: locales.getText("pisell2.orderList.filter.salesChannel.label"),
|
|
548
|
+
other: {
|
|
549
|
+
allowClear: true,
|
|
550
|
+
mode: "multiple",
|
|
551
|
+
placeholder: locales.getText(
|
|
552
|
+
"pisell2.orderList.filter.salesChannel.placeholder"
|
|
553
|
+
),
|
|
554
|
+
options: () => (0, import_serve.getChannelSelectOptions)().then(
|
|
555
|
+
(res) => res.map((item) => ({
|
|
556
|
+
label: item.name,
|
|
557
|
+
value: item.code
|
|
558
|
+
}))
|
|
559
|
+
)
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: "payment_methods",
|
|
564
|
+
type: "select",
|
|
565
|
+
key: "payment_methods",
|
|
566
|
+
label: locales.getText("pisell2.orderList.filter.paymentMethod.label"),
|
|
567
|
+
other: {
|
|
568
|
+
allowClear: true,
|
|
569
|
+
mode: "multiple",
|
|
570
|
+
placeholder: locales.getText(
|
|
571
|
+
"pisell2.orderList.filter.paymentMethod.placeholder"
|
|
572
|
+
),
|
|
573
|
+
options: () => (0, import_serve.getPaymentSelectOptions)().then((res) => {
|
|
574
|
+
const map = new Map(
|
|
575
|
+
res.map((item) => [
|
|
576
|
+
item.code,
|
|
577
|
+
{ label: item.name, value: item.code }
|
|
578
|
+
])
|
|
579
|
+
);
|
|
580
|
+
return Array.from(map.values());
|
|
581
|
+
})
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
name: "total_amount",
|
|
586
|
+
//max_total_amount 分两个字段
|
|
587
|
+
type: "numberRange",
|
|
588
|
+
key: "total_amount",
|
|
589
|
+
label: locales.getText("pisell2.orderList.filter.totalAmount.label"),
|
|
590
|
+
other: {
|
|
591
|
+
placeholder: locales.getText(
|
|
592
|
+
"pisell2.orderList.filter.totalAmount.placeholder"
|
|
593
|
+
)
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "tag_ids",
|
|
598
|
+
type: "select",
|
|
599
|
+
key: "tag_ids",
|
|
600
|
+
label: locales.getText("pisell2.orderList.filter.tags.label"),
|
|
601
|
+
other: {
|
|
602
|
+
allowClear: true,
|
|
603
|
+
mode: "multiple",
|
|
604
|
+
isSearchServer: true,
|
|
605
|
+
showSearch: true,
|
|
606
|
+
placeholder: locales.getText(
|
|
607
|
+
"pisell2.orderList.filter.tags.placeholder"
|
|
608
|
+
),
|
|
609
|
+
options: (params) => (0, import_serve.getTagSelectOptions)(params).then(
|
|
610
|
+
(res) => res.map((item) => ({
|
|
611
|
+
label: item.name,
|
|
612
|
+
value: item.id
|
|
613
|
+
}))
|
|
614
|
+
)
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: "shipping_type",
|
|
619
|
+
type: "select",
|
|
620
|
+
key: "shipping_type",
|
|
621
|
+
label: locales.getText("pisell2.orderList.filter.shippingType.label"),
|
|
622
|
+
other: {
|
|
623
|
+
allowClear: true,
|
|
624
|
+
mode: "multiple",
|
|
625
|
+
placeholder: locales.getText(
|
|
626
|
+
"pisell2.orderList.filter.shippingType.placeholder"
|
|
627
|
+
),
|
|
628
|
+
options: Object.entries(DELIVERY_TYPE_MAP).filter(([key]) => !["nil", "shop_service"].includes(key)).map(([key, value]) => ({
|
|
629
|
+
label: value,
|
|
630
|
+
value: key
|
|
631
|
+
}))
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
name: "delivery_zone_name",
|
|
636
|
+
type: "text",
|
|
637
|
+
key: "delivery_zone_name",
|
|
638
|
+
label: locales.getText("pisell2.orderList.filter.deliveryZone.label"),
|
|
639
|
+
other: {
|
|
640
|
+
placeholder: locales.getText(
|
|
641
|
+
"pisell2.orderList.filter.deliveryZone.placeholder"
|
|
642
|
+
)
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
name: "location_id",
|
|
647
|
+
type: "select",
|
|
648
|
+
key: "location_id",
|
|
649
|
+
label: locales.getText("pisell2.orderList.filter.pickupLocation.label"),
|
|
650
|
+
other: {
|
|
651
|
+
allowClear: true,
|
|
652
|
+
placeholder: locales.getText(
|
|
653
|
+
"pisell2.orderList.filter.pickupLocation.placeholder"
|
|
654
|
+
),
|
|
655
|
+
options: () => (0, import_serve.getLocationSelectOptions)().then(
|
|
656
|
+
(res) => res.map((item) => ({
|
|
657
|
+
label: item.name,
|
|
658
|
+
value: item.id
|
|
659
|
+
}))
|
|
660
|
+
)
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
name: "shipping_order_number",
|
|
665
|
+
type: "text",
|
|
666
|
+
key: "shipping_order_number",
|
|
667
|
+
label: locales.getText("pisell2.orderList.filter.trackingNumber.label"),
|
|
668
|
+
other: {
|
|
669
|
+
placeholder: locales.getText(
|
|
670
|
+
"pisell2.orderList.filter.trackingNumber.placeholder"
|
|
671
|
+
)
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
name: "logistics_company_id",
|
|
676
|
+
type: "select",
|
|
677
|
+
key: "logistics_company_id",
|
|
678
|
+
label: locales.getText("pisell2.orderList.filter.logistics.label"),
|
|
679
|
+
other: {
|
|
680
|
+
allowClear: true,
|
|
681
|
+
mode: "multiple",
|
|
682
|
+
placeholder: locales.getText(
|
|
683
|
+
"pisell2.orderList.filter.logistics.placeholder"
|
|
684
|
+
),
|
|
685
|
+
options: () => (0, import_serve.getLogisticsSelectOptions)().then(
|
|
686
|
+
(res) => res.map((item) => ({
|
|
687
|
+
label: item.name,
|
|
688
|
+
value: item.id
|
|
689
|
+
}))
|
|
690
|
+
)
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: "zip",
|
|
695
|
+
type: "text",
|
|
696
|
+
key: "zip",
|
|
697
|
+
label: locales.getText("pisell2.orderList.filter.zipCode.label"),
|
|
698
|
+
other: {
|
|
699
|
+
placeholder: locales.getText(
|
|
700
|
+
"pisell2.orderList.filter.zipCode.placeholder"
|
|
701
|
+
)
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
];
|
|
705
|
+
};
|
|
706
|
+
var getSortList = (locales) => {
|
|
707
|
+
return [
|
|
708
|
+
{
|
|
709
|
+
type: "string",
|
|
710
|
+
isCustom: false,
|
|
711
|
+
name: "shop_full_order_number",
|
|
712
|
+
label: locales.getText("pisell2.orderList.sort.orderNumber")
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
type: "time",
|
|
716
|
+
isCustom: false,
|
|
717
|
+
name: "created_at",
|
|
718
|
+
label: locales.getText("pisell2.orderList.sort.createdAt")
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
type: "time",
|
|
722
|
+
isCustom: false,
|
|
723
|
+
name: "updated_at",
|
|
724
|
+
label: locales.getText("pisell2.orderList.sort.updatedAt")
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
type: "string",
|
|
728
|
+
isCustom: false,
|
|
729
|
+
name: "customer_name",
|
|
730
|
+
label: locales.getText("pisell2.orderList.sort.customerName")
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
type: "date",
|
|
734
|
+
isCustom: false,
|
|
735
|
+
name: "payment_status",
|
|
736
|
+
label: locales.getText("pisell2.orderList.sort.paymentStatus")
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
type: "date",
|
|
740
|
+
isCustom: false,
|
|
741
|
+
name: "shipping_status",
|
|
742
|
+
label: locales.getText("pisell2.orderList.sort.shippingStatus")
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
type: "number",
|
|
746
|
+
isCustom: false,
|
|
747
|
+
name: "total_amount",
|
|
748
|
+
label: locales.getText("pisell2.orderList.sort.totalAmount")
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
type: "time",
|
|
752
|
+
isCustom: false,
|
|
753
|
+
name: "delivery_start_at",
|
|
754
|
+
label: locales.getText("pisell2.orderList.sort.deliveryStartAt")
|
|
755
|
+
}
|
|
756
|
+
];
|
|
757
|
+
};
|
|
758
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
759
|
+
0 && (module.exports = {
|
|
760
|
+
getFilterButtonList,
|
|
761
|
+
getQuickFilterList,
|
|
762
|
+
getSortList,
|
|
763
|
+
getTableColumns
|
|
764
|
+
});
|