@pisell/private-materials 6.2.9 → 6.2.11
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 +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
- package/es/components/appointmentBooking/components/Content/index.js +87 -8
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Services/index.js +7 -2
- package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
- package/es/components/appointmentBooking/hooks.js +28 -30
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/customSelect/index.js +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/info/client/index.js +3 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/es/components/booking/info/service/Lists.js +36 -26
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/utils.js +20 -21
- package/es/components/booking/info2/index.js +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +6 -3
- package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/index.js +258 -165
- package/es/components/booking/info2/service/index.js +19 -15
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -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 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- 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/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/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/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/index.js +103 -39
- package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/es/components/productSelect/index.d.ts +2 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +48 -41
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.js +38 -2
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/components/timeBar/index.js +78 -71
- package/es/components/ticketBooking/locales.d.ts +3 -0
- package/es/components/ticketBooking/locales.js +6 -3
- package/es/components/walletList/index.js +4 -4
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
- package/lib/components/appointmentBooking/components/Content/index.js +44 -7
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Services/index.js +6 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
- package/lib/components/appointmentBooking/hooks.js +5 -16
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/info/client/index.js +5 -4
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
- package/lib/components/booking/info/service/Lists.js +35 -23
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +4 -2
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/index.js +132 -70
- package/lib/components/booking/info2/service/index.js +13 -9
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- 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 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- 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/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/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/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.js +74 -37
- package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/lib/components/productSelect/index.d.ts +2 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
- package/lib/components/ticketBooking/locales.d.ts +3 -0
- package/lib/components/ticketBooking/locales.js +6 -3
- package/lib/components/walletList/index.js +3 -3
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
@@ -54,7 +54,7 @@ var import_utils6 = require("../../../info/service2/utils");
|
|
54
54
|
var import_utils7 = require("../../../../ticketBooking/utils");
|
55
55
|
var submitLock = false;
|
56
56
|
var Info = (_, ref) => {
|
57
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
57
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
|
58
58
|
const [form] = import_antd.Form.useForm();
|
59
59
|
const useTotal = import_antd.Form.useWatch("total", form);
|
60
60
|
const useResource = import_antd.Form.useWatch("resource", form);
|
@@ -67,7 +67,7 @@ var Info = (_, ref) => {
|
|
67
67
|
var _a2, _b2;
|
68
68
|
return ((_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.cacheItem) && (0, import_utils6.isNormalProductByDurationSchedule)((_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.cacheItem);
|
69
69
|
}, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem]);
|
70
|
-
const getCurrentCacheItem = (_cacheItem) => {
|
70
|
+
const getCurrentCacheItem = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
|
71
71
|
let values = form.getFieldsValue();
|
72
72
|
let _item = _cacheItem || state.service.cacheItem;
|
73
73
|
return {
|
@@ -77,40 +77,43 @@ var Info = (_, ref) => {
|
|
77
77
|
...values
|
78
78
|
}
|
79
79
|
};
|
80
|
-
};
|
80
|
+
});
|
81
81
|
const currentResource = (0, import_react.useMemo)(() => {
|
82
82
|
return null;
|
83
|
-
}, [
|
83
|
+
}, []);
|
84
84
|
const durationProps = (0, import_react.useMemo)(() => {
|
85
85
|
var _a2, _b2, _c2;
|
86
86
|
let _cacheItem = getCurrentCacheItem();
|
87
|
-
|
87
|
+
const val2 = (0, import_utils4.getDurationProps)({
|
88
88
|
cacheItem: _cacheItem,
|
89
89
|
useStartTime,
|
90
|
-
currentResource,
|
90
|
+
// currentResource,
|
91
91
|
slice: (_c2 = (_b2 = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.service_time
|
92
92
|
});
|
93
|
+
return val2;
|
93
94
|
}, [
|
94
|
-
currentResource,
|
95
|
+
// currentResource,
|
95
96
|
state.service.cacheItem,
|
96
97
|
useStartTime,
|
97
98
|
useResource,
|
98
99
|
(_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
|
99
100
|
]);
|
100
101
|
const flexibleOption = (0, import_react.useMemo)(() => {
|
101
|
-
|
102
|
+
const op = (0, import_utils4.getFlexibleOption)({
|
102
103
|
durationProps
|
103
104
|
});
|
105
|
+
return op;
|
104
106
|
}, [durationProps, import_utils.locales.locale]);
|
105
107
|
const timeObj = (0, import_react.useMemo)(() => {
|
106
|
-
|
108
|
+
const val2 = (0, import_utils4.getTimeObj)({
|
107
109
|
durationProps,
|
108
110
|
useStartTime,
|
109
111
|
currentResource,
|
110
112
|
state,
|
111
113
|
useDuration
|
112
114
|
});
|
113
|
-
|
115
|
+
return val2;
|
116
|
+
}, [durationProps, useStartTime, currentResource, (_g = (_f = (_e = state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.service_time, useDuration]);
|
114
117
|
(0, import_react.useEffect)(() => {
|
115
118
|
try {
|
116
119
|
if (useDuration.indexOf("flexible_") == 0) {
|
@@ -218,13 +221,32 @@ var Info = (_, ref) => {
|
|
218
221
|
}
|
219
222
|
});
|
220
223
|
};
|
224
|
+
const { run: setEditDataRun } = (0, import_ahooks.useDebounceFn)(
|
225
|
+
(...params) => {
|
226
|
+
setEditData(...params);
|
227
|
+
},
|
228
|
+
{
|
229
|
+
wait: 50,
|
230
|
+
leading: true,
|
231
|
+
trailing: false
|
232
|
+
}
|
233
|
+
);
|
221
234
|
const setEditData = (0, import_ahooks.useMemoizedFn)(
|
222
235
|
(_cacheItem, open, openProductDetail) => {
|
223
|
-
|
236
|
+
console.timeEnd("handleChange");
|
237
|
+
console.log("setEditDatasetEditData", _cacheItem, open);
|
224
238
|
isChangeTotal.current = false;
|
225
239
|
let cacheItem = _cacheItem || state.service.cacheItem;
|
226
240
|
let values = cacheItem._extend;
|
241
|
+
const startTime2 = performance.now();
|
242
|
+
console.log(startTime2, "startTime");
|
243
|
+
form.resetFields();
|
227
244
|
form.setFieldsValue(values);
|
245
|
+
const endTime = performance.now();
|
246
|
+
console.log(endTime - window.pp1, "打开商品5");
|
247
|
+
console.log("执行时间", endTime - startTime2, values);
|
248
|
+
setTimeout(() => {
|
249
|
+
}, 20);
|
228
250
|
if (openProductDetail) {
|
229
251
|
setTimeout(() => {
|
230
252
|
handleEdit({});
|
@@ -237,7 +259,7 @@ var Info = (_, ref) => {
|
|
237
259
|
let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
|
238
260
|
let cPrice = Number(useTotal || 0);
|
239
261
|
return cPrice !== oPrice;
|
240
|
-
}, [useTotal, (
|
262
|
+
}, [useTotal, (_i = (_h = state.service.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.origin_total]);
|
241
263
|
const getResources = () => {
|
242
264
|
let res = (0, import_utils4.formatResources)({
|
243
265
|
cacheItem: getCurrentCacheItem(),
|
@@ -259,9 +281,9 @@ var Info = (_, ref) => {
|
|
259
281
|
updateResourceErrors(res.maps);
|
260
282
|
};
|
261
283
|
const updateResourceErrors = (resourceMaps) => {
|
262
|
-
let { resource } = form.getFieldsValue();
|
263
|
-
if (
|
264
|
-
let _resource = { ...
|
284
|
+
let { resource: resource2 } = form.getFieldsValue();
|
285
|
+
if (resource2) {
|
286
|
+
let _resource = { ...resource2 };
|
265
287
|
for (let form_id in _resource) {
|
266
288
|
_resource[form_id] = _resource[form_id].map((d) => {
|
267
289
|
var _a2, _b2;
|
@@ -295,24 +317,17 @@ var Info = (_, ref) => {
|
|
295
317
|
]);
|
296
318
|
(0, import_react.useEffect)(() => {
|
297
319
|
if (state.isBookingCreatePage && state.service.editModal) {
|
298
|
-
|
320
|
+
setEditDataRun(null);
|
299
321
|
}
|
300
322
|
}, [state.service.editModal, state.isBookingCreatePage]);
|
301
323
|
(0, import_react.useEffect)(() => {
|
302
324
|
getDiscount();
|
303
|
-
}, [useTotal, (
|
304
|
-
const isDiscount = (0, import_react.useMemo)(() => {
|
305
|
-
var _a2, _b2, _c2;
|
306
|
-
if (!((_a2 = state.service) == null ? void 0 : _a2.cacheItem)) {
|
307
|
-
return false;
|
308
|
-
}
|
309
|
-
return useTotal != ((_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend.origin_total);
|
310
|
-
}, [useTotal, (_j = (_i = state.service) == null ? void 0 : _i.cacheItem) == null ? void 0 : _j._extend.origin_total]);
|
325
|
+
}, [useTotal, (_k = (_j = state.service.cacheItem) == null ? void 0 : _j._extend) == null ? void 0 : _k.origin_total]);
|
311
326
|
const bundles = (0, import_react.useMemo)(() => {
|
312
327
|
var _a2, _b2, _c2, _d2;
|
313
328
|
return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
|
314
|
-
}, [(
|
315
|
-
const handleEdit = (e) => {
|
329
|
+
}, [(_o = (_n = (_m = (_l = state.service) == null ? void 0 : _l.cacheItem) == null ? void 0 : _m._extend) == null ? void 0 : _n.other) == null ? void 0 : _o.bundle]);
|
330
|
+
const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
|
316
331
|
var _a2, _b2, _c2, _d2, _e2;
|
317
332
|
const item = state.service.cacheItem;
|
318
333
|
let values = form.getFieldsValue();
|
@@ -398,8 +413,8 @@ var Info = (_, ref) => {
|
|
398
413
|
});
|
399
414
|
}
|
400
415
|
});
|
401
|
-
};
|
402
|
-
const handleChange = (e) => {
|
416
|
+
});
|
417
|
+
const handleChange = (0, import_ahooks.useMemoizedFn)((e) => {
|
403
418
|
if (state.channelDisabledEdit) {
|
404
419
|
return;
|
405
420
|
}
|
@@ -413,10 +428,10 @@ var Info = (_, ref) => {
|
|
413
428
|
// changeService: true,
|
414
429
|
}
|
415
430
|
});
|
416
|
-
};
|
431
|
+
});
|
417
432
|
(0, import_react.useImperativeHandle)(ref, () => {
|
418
433
|
return {
|
419
|
-
init:
|
434
|
+
init: setEditDataRun
|
420
435
|
};
|
421
436
|
});
|
422
437
|
const handleTotalChange = (number) => {
|
@@ -428,43 +443,30 @@ var Info = (_, ref) => {
|
|
428
443
|
}
|
429
444
|
return false;
|
430
445
|
}, [state.renderType, isNormalProduct]);
|
431
|
-
const SelectTime = (
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
zIndex: state.service.changeService ? 999 : 1e3,
|
437
|
-
forceRender: true,
|
438
|
-
mask: state.drawerMask,
|
439
|
-
open: state.service.editModal && !((_p = state.service.cacheItem) == null ? void 0 : _p.autoClose),
|
440
|
-
title: import_utils.locales.getText("pisell2.text.edit-service"),
|
441
|
-
onClose: () => {
|
442
|
-
dispatch({
|
443
|
-
type: "setService",
|
444
|
-
payload: {
|
445
|
-
editModal: false,
|
446
|
-
cacheItem: null,
|
447
|
-
changeService: false
|
448
|
-
}
|
449
|
-
});
|
450
|
-
}
|
451
|
-
},
|
452
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
446
|
+
const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
|
447
|
+
console.log(isShowTimeAndResource, "isShowTimeAndResource");
|
448
|
+
const productName = (0, import_react.useMemo)(() => {
|
449
|
+
var _a2, _b2, _c2;
|
450
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
453
451
|
import_collapsibleList.default,
|
454
452
|
{
|
455
453
|
style: { marginTop: bundles.length ? "8px" : 0 },
|
456
454
|
list: bundles,
|
457
455
|
renderItem: (item) => (0, import_utils2.renderBundles)(item, state.amountSymbol)
|
458
456
|
}
|
459
|
-
))))
|
457
|
+
))));
|
458
|
+
}, [(_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name, bundles, state.amountSymbol, state.isBookingCreatePage]);
|
459
|
+
const price = (0, import_react.useMemo)(() => {
|
460
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
461
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
460
462
|
import_antd.Form.Item,
|
461
463
|
{
|
462
464
|
label: import_utils.locales.getText("pisell2.text.price"),
|
463
465
|
name: "total",
|
464
466
|
rules: [{ required: true }],
|
465
|
-
extra: useTotal !== ((
|
467
|
+
extra: useTotal !== ((_b2 = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend) == null ? void 0 : _b2.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
|
466
468
|
(0, import_utils.formatAmount)(
|
467
|
-
(
|
469
|
+
(_d2 = (_c2 = state.service.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.origin_total,
|
468
470
|
2,
|
469
471
|
state.amountSymbol
|
470
472
|
),
|
@@ -480,18 +482,25 @@ var Info = (_, ref) => {
|
|
480
482
|
prefix: state.amountSymbol,
|
481
483
|
onChange: handleTotalChange,
|
482
484
|
disabled: state.channelDisabledEdit,
|
483
|
-
originValue: ((
|
484
|
-
placeholder: ((
|
485
|
+
originValue: ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) || 0,
|
486
|
+
placeholder: ((_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total) || "0"
|
485
487
|
}
|
486
488
|
)
|
487
|
-
))
|
489
|
+
));
|
490
|
+
}, [useTotal, (_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total, state.amountSymbol, state.channelDisabledEdit]);
|
491
|
+
const reason = (0, import_react.useMemo)(() => {
|
492
|
+
return isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
488
493
|
import_antd.Form.Item,
|
489
494
|
{
|
490
495
|
label: import_utils.locales.getText("pisell2.text.discount-reason"),
|
491
496
|
name: "discount_reason"
|
492
497
|
},
|
493
498
|
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
|
494
|
-
)) : null
|
499
|
+
)) : null;
|
500
|
+
}, [isReason]);
|
501
|
+
const startTime = (0, import_react.useMemo)(() => {
|
502
|
+
var _a2, _b2, _c2, _d2;
|
503
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
495
504
|
import_antd.Form.Item,
|
496
505
|
{
|
497
506
|
label: import_utils.locales.getText("pisell2.text.start_time"),
|
@@ -501,7 +510,7 @@ var Info = (_, ref) => {
|
|
501
510
|
SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
502
511
|
SelectTime,
|
503
512
|
{
|
504
|
-
slice: (
|
513
|
+
slice: (_d2 = (_c2 = (_b2 = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.service_time) == null ? void 0 : _d2.value,
|
505
514
|
timePickerProps: {
|
506
515
|
style: { width: "100%" }
|
507
516
|
},
|
@@ -510,7 +519,11 @@ var Info = (_, ref) => {
|
|
510
519
|
}
|
511
520
|
}
|
512
521
|
) : null
|
513
|
-
))
|
522
|
+
));
|
523
|
+
}, [SelectTime, (_y = (_x = (_w = (_v = state.bookingConfig) == null ? void 0 : _v.config) == null ? void 0 : _w.basic) == null ? void 0 : _x.service_time) == null ? void 0 : _y.value]);
|
524
|
+
const duration = (0, import_react.useMemo)(() => {
|
525
|
+
console.log("render form duration");
|
526
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
514
527
|
import_antd.Form.Item,
|
515
528
|
{
|
516
529
|
label: import_utils.locales.getText("pisell2.text.duration"),
|
@@ -518,23 +531,34 @@ var Info = (_, ref) => {
|
|
518
531
|
rules: [{ required: true }]
|
519
532
|
},
|
520
533
|
/* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
|
521
|
-
))
|
534
|
+
));
|
535
|
+
}, [durationProps, timeObj]);
|
536
|
+
const resource = (0, import_react.useMemo)(() => {
|
537
|
+
console.log("render form resource");
|
538
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
|
522
539
|
import_Resources.default,
|
523
540
|
{
|
524
541
|
ref: resourcesRef,
|
525
542
|
state,
|
526
543
|
cacheItem: state.service.cacheItem,
|
527
|
-
getCurrentCacheItem
|
528
|
-
useDuration,
|
529
|
-
useStartTime
|
544
|
+
getCurrentCacheItem
|
530
545
|
}
|
531
|
-
))
|
546
|
+
));
|
547
|
+
}, [state.renderType, (_A = (_z = state.service.cacheItem) == null ? void 0 : _z._data) == null ? void 0 : _A.resources, (_C = (_B = state.service.cacheItem) == null ? void 0 : _B._data) == null ? void 0 : _C.resourceMaps]);
|
548
|
+
const capacity = (0, import_react.useMemo)(() => {
|
549
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(
|
532
550
|
import_Capacity.default,
|
533
551
|
{
|
534
552
|
state,
|
535
553
|
cacheItem: state.service.cacheItem
|
536
554
|
}
|
537
|
-
))
|
555
|
+
));
|
556
|
+
}, [state.locale, state.isTerminal, (_F = (_E = (_D = state.service) == null ? void 0 : _D.cacheItem) == null ? void 0 : _E._data) == null ? void 0 : _F.capacitys]);
|
557
|
+
const hiddenQuantity = (0, import_react.useMemo)(() => {
|
558
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null));
|
559
|
+
}, []);
|
560
|
+
const quantity = (0, import_react.useMemo)(() => {
|
561
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
538
562
|
import_antd.Form.Item,
|
539
563
|
{
|
540
564
|
label: import_utils.locales.getText("pisell2.text.quantity"),
|
@@ -556,7 +580,11 @@ var Info = (_, ref) => {
|
|
556
580
|
}
|
557
581
|
}
|
558
582
|
)
|
559
|
-
))
|
583
|
+
));
|
584
|
+
}, []);
|
585
|
+
const footer = (0, import_react.useMemo)(() => {
|
586
|
+
var _a2;
|
587
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
560
588
|
"div",
|
561
589
|
{
|
562
590
|
className: "pisell-lowcode__booking-service-delete-wrap",
|
@@ -568,13 +596,47 @@ var Info = (_, ref) => {
|
|
568
596
|
{
|
569
597
|
type: "primary",
|
570
598
|
className: "pisell-lowcode__booking-service-body-edit-footer-apple",
|
571
|
-
disabled: !isNormalProduct && !((
|
599
|
+
disabled: !isNormalProduct && !((_a2 = state.service.resourcesOrigin) == null ? void 0 : _a2.length),
|
572
600
|
onClick: () => {
|
573
601
|
form.submit();
|
574
602
|
}
|
575
603
|
},
|
576
604
|
import_utils.locales.getText("pisell2.text.apply")
|
577
|
-
))
|
605
|
+
));
|
606
|
+
}, [isNormalProduct, (_G = state.service.resourcesOrigin) == null ? void 0 : _G.length]);
|
607
|
+
console.log("render edit");
|
608
|
+
console.log(state.service.editModal && !((_H = state.service.cacheItem) == null ? void 0 : _H.autoClose), performance.now() - window.pp1, "打开商品1");
|
609
|
+
const [val, setVal] = (0, import_react.useState)(false);
|
610
|
+
(0, import_react.useEffect)(() => {
|
611
|
+
if (isShowTimeAndResource) {
|
612
|
+
setTimeout(() => {
|
613
|
+
setVal(true);
|
614
|
+
}, 200);
|
615
|
+
} else {
|
616
|
+
setVal(false);
|
617
|
+
}
|
618
|
+
}, [isShowTimeAndResource]);
|
619
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
620
|
+
import_drawer.default,
|
621
|
+
{
|
622
|
+
titleNoWrap: true,
|
623
|
+
zIndex: state.service.changeService ? 999 : 1e3,
|
624
|
+
forceRender: true,
|
625
|
+
mask: state.drawerMask,
|
626
|
+
open: state.service.editModal && !((_I = state.service.cacheItem) == null ? void 0 : _I.autoClose),
|
627
|
+
title: import_utils.locales.getText("pisell2.text.edit-service"),
|
628
|
+
onClose: () => {
|
629
|
+
dispatch({
|
630
|
+
type: "setService",
|
631
|
+
payload: {
|
632
|
+
editModal: false,
|
633
|
+
cacheItem: null,
|
634
|
+
changeService: false
|
635
|
+
}
|
636
|
+
});
|
637
|
+
}
|
638
|
+
},
|
639
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, productName, price, reason, val && isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, startTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity)), footer)
|
578
640
|
));
|
579
641
|
};
|
580
642
|
var editService_default = (0, import_react.forwardRef)(Info);
|
@@ -56,14 +56,18 @@ var Service = () => {
|
|
56
56
|
}, []);
|
57
57
|
const clearCart = (0, import_useClearCart.default)(state, dispatch);
|
58
58
|
const { dom } = (0, import_useQuotation.default)(state, dispatch);
|
59
|
-
|
60
|
-
|
61
|
-
{
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
59
|
+
const renderMemo = (0, import_react.useMemo)(() => {
|
60
|
+
console.log("render info22222");
|
61
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(
|
62
|
+
import_Lists.default,
|
63
|
+
{
|
64
|
+
isParallelResource: true,
|
65
|
+
onEdit: handleEdit,
|
66
|
+
onAction: handleAction,
|
67
|
+
onChange: (e, type) => dispatchService(type || "setService", e)
|
68
|
+
}
|
69
|
+
), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null), dom);
|
70
|
+
}, [clearCart, dom, showAddTimeModal, clearCart]);
|
71
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderMemo);
|
68
72
|
};
|
69
73
|
var service_default = import_react.default.memo(Service);
|
@@ -49,6 +49,7 @@ var Duration = (props) => {
|
|
49
49
|
timeObj,
|
50
50
|
...resetProps
|
51
51
|
} = props;
|
52
|
+
const startDateStr = (0, import_react.useMemo)(() => (0, import_dayjs.default)(startDate).format("YYYY-MM-DD HH:mm:ss"), [startDate]);
|
52
53
|
const times = (0, import_react.useMemo)(() => {
|
53
54
|
if (timeObj) {
|
54
55
|
return timeObj.durationSlicesBasedOnTime;
|
@@ -76,7 +77,7 @@ var Duration = (props) => {
|
|
76
77
|
});
|
77
78
|
}
|
78
79
|
return durationSlicesBasedOnTime;
|
79
|
-
}, [timeObj, slice, locale, duration,
|
80
|
+
}, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
|
80
81
|
(0, import_react.useEffect)(() => {
|
81
82
|
timeObjChange == null ? void 0 : timeObjChange(times);
|
82
83
|
}, [times]);
|
@@ -88,6 +89,10 @@ var Duration = (props) => {
|
|
88
89
|
},
|
89
90
|
[]
|
90
91
|
);
|
91
|
-
|
92
|
+
const options = (0, import_react.useMemo)(() => {
|
93
|
+
console.log("render form options");
|
94
|
+
return renderOptions(times);
|
95
|
+
}, [times]);
|
96
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, options);
|
92
97
|
};
|
93
98
|
var duration_default = Duration;
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
18
|
-
readonly statusRef: React.MutableRefObject<"success" | "
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
22
|
+
readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
175
175
|
type: EActionTypes;
|
176
176
|
payload: {
|
177
|
-
status: "success" | "
|
177
|
+
status: "success" | "loading" | "warn" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
297
297
|
amount?: string | number | undefined;
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
300
|
+
eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "success" | "
|
311
|
+
status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|