@pisell/private-materials 6.3.117 → 6.3.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/cupList/const.d.ts +140 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +186 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/locales.d.ts +572 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/store/index.d.ts +358 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/locales.d.ts +626 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/locales.d.ts +53 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/locales.d.ts +68 -0
- package/es/components/systemSettings/registry/locales.d.ts +534 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +140 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/locales.d.ts +304 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/useEngineContext.d.ts +11 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/locales.d.ts +35 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +10 -3
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +6 -2
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -10
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/index.js +2 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/locales.js +10 -5
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +19 -6
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +45 -58
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
- package/es/plus/walletPassGallery/locales.d.ts +483 -0
- package/es/pro/Cards/components/SKUCard/index.js +5 -2
- package/es/pro/Cards/components/SKUCard/index.less +18 -3
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Login2.0/locales.d.ts +908 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +58 -0
- package/es/pro/Selector/types.d.ts +223 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/cupList/const.d.ts +140 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +186 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/locales.d.ts +572 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/store/index.d.ts +358 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/locales.d.ts +626 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/locales.d.ts +53 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/locales.d.ts +68 -0
- package/lib/components/systemSettings/registry/locales.d.ts +534 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +140 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/locales.d.ts +304 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/useEngineContext.d.ts +11 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/locales.d.ts +35 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +15 -9
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +3 -3
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -7
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -1
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/locales.js +10 -5
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +15 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +39 -54
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
- package/lib/plus/walletPassGallery/locales.d.ts +483 -0
- package/lib/pro/Cards/components/SKUCard/index.js +4 -7
- package/lib/pro/Cards/components/SKUCard/index.less +18 -3
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Login2.0/locales.d.ts +908 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +58 -0
- package/lib/pro/Selector/types.d.ts +223 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Product {
|
|
2
|
+
_id: string;
|
|
3
|
+
_extend: {
|
|
4
|
+
origin_total: number;
|
|
5
|
+
total: number;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function distributeDiscountOrIncrease(products: Product[], // 商品列表
|
|
9
|
+
totalAdjustment: number, // 总折扣或加价金额,可能为负数(折扣)或正数(加价)
|
|
10
|
+
totalPrice: number): Product[];
|
|
11
|
+
export {};
|
|
@@ -245,4 +245,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
245
245
|
* @Author: WangHan
|
|
246
246
|
* @Date: 2024-12-24 11:32
|
|
247
247
|
*/
|
|
248
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
248
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -109,4 +110,11 @@ export declare const walkInData: {
|
|
|
109
110
|
id: number;
|
|
110
111
|
nickname: string;
|
|
111
112
|
};
|
|
112
|
-
export declare const Provider: any, Context:
|
|
113
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
114
|
+
state: FormState;
|
|
115
|
+
} & {
|
|
116
|
+
dispatch: (params: {
|
|
117
|
+
type: string;
|
|
118
|
+
payload: any;
|
|
119
|
+
}) => void;
|
|
120
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
166
166
|
export declare const getDuration: (duration: number | {
|
|
167
167
|
type: string;
|
|
168
168
|
value: number;
|
|
169
|
-
}) => number | {
|
|
169
|
+
}) => number | "flexible" | {
|
|
170
170
|
type: string;
|
|
171
171
|
value: number;
|
|
172
|
-
}
|
|
172
|
+
};
|
|
173
173
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
174
174
|
export declare const getIsEdit: (state: any) => boolean;
|
|
175
175
|
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ECupActionType, ICup } from '../../types';
|
|
2
|
+
export declare const useCupAction: () => {
|
|
3
|
+
run: (this: unknown, cupId: string, action: ECupActionType) => Promise<boolean>;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @description: 批量归还杯子
|
|
8
|
+
* @return {*}
|
|
9
|
+
*/
|
|
10
|
+
export declare const useBatchCupAction: () => {
|
|
11
|
+
run: (this: unknown, eco_cup_ids: number[] | string[]) => Promise<boolean>;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description: 统计杯子列表中的客户、店铺、时间数量
|
|
16
|
+
* @param {ICup[]} cupList - 杯子列表
|
|
17
|
+
* @return {object} 返回统计信息和是否为多个的标识
|
|
18
|
+
*/
|
|
19
|
+
export declare const useCupListStatistics: (cupList: ICup[]) => {
|
|
20
|
+
hasMultipleCustomers: boolean;
|
|
21
|
+
hasMultipleShops: boolean;
|
|
22
|
+
hasMultipleTimes: boolean;
|
|
23
|
+
uniqueCustomer: import("../../types").ICustomer | undefined;
|
|
24
|
+
uniqueShop: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
uniqueTime: string | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
hasMultipleCustomers: boolean;
|
|
31
|
+
hasMultipleShops: boolean;
|
|
32
|
+
hasMultipleTimes: boolean;
|
|
33
|
+
uniqueCustomer: null;
|
|
34
|
+
uniqueShop: null;
|
|
35
|
+
uniqueTime: null;
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取客户详情
|
|
3
|
+
*/
|
|
4
|
+
export declare const useCustomerDetail: () => {
|
|
5
|
+
run: (this: unknown, id: string) => Promise<any>;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 批量租用杯子
|
|
10
|
+
*/
|
|
11
|
+
export declare const useBatchRentCups: () => {
|
|
12
|
+
run: (this: unknown, id: string, cupIds: string[]) => Promise<boolean>;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
declare const STATUS_TEXT_MAP: {
|
|
2
|
+
in_stock: string;
|
|
3
|
+
rent: string;
|
|
4
|
+
return: string;
|
|
5
|
+
missing: string;
|
|
6
|
+
broken: string;
|
|
7
|
+
shop_changed: string;
|
|
8
|
+
};
|
|
9
|
+
declare const STATUS_COLOR_MAP: {
|
|
10
|
+
in_stock: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
color: string;
|
|
13
|
+
border: string;
|
|
14
|
+
};
|
|
15
|
+
rent: {
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
color: string;
|
|
18
|
+
border: string;
|
|
19
|
+
};
|
|
20
|
+
return: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
color: string;
|
|
23
|
+
border: string;
|
|
24
|
+
};
|
|
25
|
+
shop_changed: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
color: string;
|
|
28
|
+
border: string;
|
|
29
|
+
};
|
|
30
|
+
overtime: {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
color: string;
|
|
33
|
+
border: string;
|
|
34
|
+
};
|
|
35
|
+
expire_soon: {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
color: string;
|
|
38
|
+
border: string;
|
|
39
|
+
};
|
|
40
|
+
borrowing: {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
color: string;
|
|
43
|
+
border: string;
|
|
44
|
+
};
|
|
45
|
+
missing: {
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
color: string;
|
|
48
|
+
border: string;
|
|
49
|
+
};
|
|
50
|
+
broken: {
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
color: string;
|
|
53
|
+
border: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @description: 排序设置
|
|
58
|
+
* @return {*}
|
|
59
|
+
*/
|
|
60
|
+
declare const SORT_SETTINGS: {
|
|
61
|
+
show: boolean;
|
|
62
|
+
list: {
|
|
63
|
+
columnKey: string;
|
|
64
|
+
key: string;
|
|
65
|
+
type: string;
|
|
66
|
+
localFilter: boolean;
|
|
67
|
+
}[];
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @description: 列配置
|
|
71
|
+
* @return {*}
|
|
72
|
+
*/
|
|
73
|
+
declare const COLUMN_SETTING: {
|
|
74
|
+
show: boolean;
|
|
75
|
+
storageMode: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @description: 过滤选项
|
|
79
|
+
* @return {*}
|
|
80
|
+
*/
|
|
81
|
+
declare const FILTER: (locales: any, isNormalShop: boolean, ecoShopLists?: any, isPartner?: boolean, currentPagination?: number) => {
|
|
82
|
+
show: boolean;
|
|
83
|
+
quickFilterMaxLength: number;
|
|
84
|
+
currentPagination: number;
|
|
85
|
+
list: ({
|
|
86
|
+
key: string;
|
|
87
|
+
type: string;
|
|
88
|
+
columnKey: string;
|
|
89
|
+
isCustom: boolean;
|
|
90
|
+
name: string;
|
|
91
|
+
sort: boolean;
|
|
92
|
+
localFilter: boolean;
|
|
93
|
+
other: {
|
|
94
|
+
size: string;
|
|
95
|
+
allowClear: boolean;
|
|
96
|
+
showSearch: boolean;
|
|
97
|
+
placeholder: any;
|
|
98
|
+
defaultValue: number;
|
|
99
|
+
options: {
|
|
100
|
+
label: any;
|
|
101
|
+
value: string | number;
|
|
102
|
+
}[];
|
|
103
|
+
style: {
|
|
104
|
+
width: number;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
isHidden?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
key: string;
|
|
110
|
+
type: string;
|
|
111
|
+
columnKey: string;
|
|
112
|
+
isCustom: boolean;
|
|
113
|
+
name: string;
|
|
114
|
+
sort: boolean;
|
|
115
|
+
localFilter: boolean;
|
|
116
|
+
isHidden: boolean;
|
|
117
|
+
other: {
|
|
118
|
+
size: string;
|
|
119
|
+
allowClear: boolean;
|
|
120
|
+
showSearch: boolean;
|
|
121
|
+
placeholder: any;
|
|
122
|
+
defaultValue: number;
|
|
123
|
+
options: {
|
|
124
|
+
label: any;
|
|
125
|
+
value: any;
|
|
126
|
+
}[];
|
|
127
|
+
style: {
|
|
128
|
+
width: number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
})[];
|
|
132
|
+
};
|
|
133
|
+
declare const HEADER_RIGHT_OPTIONS: {
|
|
134
|
+
languageKey: string;
|
|
135
|
+
key: string;
|
|
136
|
+
size: string;
|
|
137
|
+
icon: string;
|
|
138
|
+
type: string;
|
|
139
|
+
}[];
|
|
140
|
+
export { STATUS_TEXT_MAP, STATUS_COLOR_MAP, SORT_SETTINGS, COLUMN_SETTING, FILTER, HEADER_RIGHT_OPTIONS };
|
|
@@ -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,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
|
+
})[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface GetCustomerListsParams {
|
|
2
|
+
with_cup_count_flag?: number;
|
|
3
|
+
search?: string;
|
|
4
|
+
skip?: number;
|
|
5
|
+
num?: number;
|
|
6
|
+
goal_shop_id?: number;
|
|
7
|
+
order_by?: string;
|
|
8
|
+
sort?: 'asc' | 'desc';
|
|
9
|
+
}
|
|
10
|
+
export declare const useCustomerListsApi: () => {
|
|
11
|
+
loading: boolean;
|
|
12
|
+
data: any;
|
|
13
|
+
run: (params: GetCustomerListsParams) => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { TCallback } from './utils/scanListener';
|
|
2
|
+
/**
|
|
3
|
+
* 获取当前语言
|
|
4
|
+
*/
|
|
5
|
+
export declare const useLanguage: () => any;
|
|
6
|
+
/**
|
|
7
|
+
* 扫码监听
|
|
8
|
+
*/
|
|
9
|
+
export declare const useScanListener: () => {
|
|
10
|
+
addListener: (key: string, callback: TCallback) => void;
|
|
11
|
+
removeListener: (key: string) => void;
|
|
12
|
+
setActiveListener: (key: string) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 获取app
|
|
16
|
+
*/
|
|
17
|
+
export declare const useGetApp: () => any;
|
|
18
|
+
/**
|
|
19
|
+
* 获取modal
|
|
20
|
+
*/
|
|
21
|
+
export declare const useModal: (key: string) => {
|
|
22
|
+
modalProps: any;
|
|
23
|
+
visible: any;
|
|
24
|
+
open: (props?: any) => void;
|
|
25
|
+
close: () => void;
|
|
26
|
+
};
|
|
27
|
+
export declare const useRequest: () => {
|
|
28
|
+
get: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
29
|
+
post: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
30
|
+
put: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
31
|
+
remove: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @description: 获取goal_shop_id和是否是普通店铺
|
|
35
|
+
* @return {*}
|
|
36
|
+
*/
|
|
37
|
+
export declare const useGetGoalShopInfo: () => {
|
|
38
|
+
goalShopId: number | undefined;
|
|
39
|
+
isNormalShop: boolean;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 获取当前店铺id
|
|
43
|
+
*/
|
|
44
|
+
export declare const useGetShopId: () => any;
|
|
45
|
+
/**
|
|
46
|
+
* @description: 是否是app端
|
|
47
|
+
* @return {*}
|
|
48
|
+
*/
|
|
49
|
+
export declare const useIsApp: () => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @description: 获取分享场景
|
|
52
|
+
* @return {*}
|
|
53
|
+
*/
|
|
54
|
+
export declare const useGetShare: () => {
|
|
55
|
+
source: string | null;
|
|
56
|
+
isEcoShare: boolean;
|
|
57
|
+
};
|