@pisell/private-materials 6.2.11 → 6.2.12
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/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/utils.js +17 -1
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.js +8 -11
- package/es/components/booking/info/client/index.js +2 -3
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
- package/es/components/booking/info/service/Lists.js +26 -36
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +21 -20
- package/es/components/booking/info2/index.js +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +3 -6
- package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
- package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
- package/es/components/booking/info2/service/editService/index.js +165 -258
- package/es/components/booking/info2/service/index.js +15 -19
- package/es/components/booking/materiels/duration/index.js +2 -9
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- 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 +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.js +41 -48
- package/es/components/shoppingCart/components/Cart/index.js +18 -21
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -175
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +71 -78
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.js +10 -1
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.js +13 -16
- package/lib/components/booking/info/client/index.js +4 -5
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
- package/lib/components/booking/info/service/Lists.js +23 -35
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- 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 +2 -4
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
- package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
- package/lib/components/booking/info2/service/editService/index.js +70 -132
- package/lib/components/booking/info2/service/index.js +9 -13
- package/lib/components/booking/materiels/duration/index.js +2 -7
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -2
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- 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 +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
- package/lib/components/shoppingCart/components/Cart/index.js +15 -18
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -143
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +4 -4
@@ -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;
|
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 = (
|
70
|
+
const getCurrentCacheItem = (_cacheItem) => {
|
71
71
|
let values = form.getFieldsValue();
|
72
72
|
let _item = _cacheItem || state.service.cacheItem;
|
73
73
|
return {
|
@@ -77,43 +77,40 @@ 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
|
+
}, [useResource]);
|
84
84
|
const durationProps = (0, import_react.useMemo)(() => {
|
85
85
|
var _a2, _b2, _c2;
|
86
86
|
let _cacheItem = getCurrentCacheItem();
|
87
|
-
|
87
|
+
return (0, import_utils4.getDurationProps)({
|
88
88
|
cacheItem: _cacheItem,
|
89
89
|
useStartTime,
|
90
|
-
|
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;
|
94
93
|
}, [
|
95
|
-
|
94
|
+
currentResource,
|
96
95
|
state.service.cacheItem,
|
97
96
|
useStartTime,
|
98
97
|
useResource,
|
99
98
|
(_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
|
100
99
|
]);
|
101
100
|
const flexibleOption = (0, import_react.useMemo)(() => {
|
102
|
-
|
101
|
+
return (0, import_utils4.getFlexibleOption)({
|
103
102
|
durationProps
|
104
103
|
});
|
105
|
-
return op;
|
106
104
|
}, [durationProps, import_utils.locales.locale]);
|
107
105
|
const timeObj = (0, import_react.useMemo)(() => {
|
108
|
-
|
106
|
+
return (0, import_utils4.getTimeObj)({
|
109
107
|
durationProps,
|
110
108
|
useStartTime,
|
111
109
|
currentResource,
|
112
110
|
state,
|
113
111
|
useDuration
|
114
112
|
});
|
115
|
-
|
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]);
|
113
|
+
}, [durationProps, useStartTime, currentResource, state, useDuration]);
|
117
114
|
(0, import_react.useEffect)(() => {
|
118
115
|
try {
|
119
116
|
if (useDuration.indexOf("flexible_") == 0) {
|
@@ -221,32 +218,13 @@ var Info = (_, ref) => {
|
|
221
218
|
}
|
222
219
|
});
|
223
220
|
};
|
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
|
-
);
|
234
221
|
const setEditData = (0, import_ahooks.useMemoizedFn)(
|
235
222
|
(_cacheItem, open, openProductDetail) => {
|
236
|
-
|
237
|
-
console.log("setEditDatasetEditData", _cacheItem, open);
|
223
|
+
form.resetFields();
|
238
224
|
isChangeTotal.current = false;
|
239
225
|
let cacheItem = _cacheItem || state.service.cacheItem;
|
240
226
|
let values = cacheItem._extend;
|
241
|
-
const startTime2 = performance.now();
|
242
|
-
console.log(startTime2, "startTime");
|
243
|
-
form.resetFields();
|
244
227
|
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);
|
250
228
|
if (openProductDetail) {
|
251
229
|
setTimeout(() => {
|
252
230
|
handleEdit({});
|
@@ -259,7 +237,7 @@ var Info = (_, ref) => {
|
|
259
237
|
let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
|
260
238
|
let cPrice = Number(useTotal || 0);
|
261
239
|
return cPrice !== oPrice;
|
262
|
-
}, [useTotal, (
|
240
|
+
}, [useTotal, (_f = (_e = state.service.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.origin_total]);
|
263
241
|
const getResources = () => {
|
264
242
|
let res = (0, import_utils4.formatResources)({
|
265
243
|
cacheItem: getCurrentCacheItem(),
|
@@ -281,9 +259,9 @@ var Info = (_, ref) => {
|
|
281
259
|
updateResourceErrors(res.maps);
|
282
260
|
};
|
283
261
|
const updateResourceErrors = (resourceMaps) => {
|
284
|
-
let { resource
|
285
|
-
if (
|
286
|
-
let _resource = { ...
|
262
|
+
let { resource } = form.getFieldsValue();
|
263
|
+
if (resource) {
|
264
|
+
let _resource = { ...resource };
|
287
265
|
for (let form_id in _resource) {
|
288
266
|
_resource[form_id] = _resource[form_id].map((d) => {
|
289
267
|
var _a2, _b2;
|
@@ -317,17 +295,24 @@ var Info = (_, ref) => {
|
|
317
295
|
]);
|
318
296
|
(0, import_react.useEffect)(() => {
|
319
297
|
if (state.isBookingCreatePage && state.service.editModal) {
|
320
|
-
|
298
|
+
setEditData(null);
|
321
299
|
}
|
322
300
|
}, [state.service.editModal, state.isBookingCreatePage]);
|
323
301
|
(0, import_react.useEffect)(() => {
|
324
302
|
getDiscount();
|
325
|
-
}, [useTotal, (
|
303
|
+
}, [useTotal, (_h = (_g = state.service.cacheItem) == null ? void 0 : _g._extend) == null ? void 0 : _h.origin_total]);
|
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]);
|
326
311
|
const bundles = (0, import_react.useMemo)(() => {
|
327
312
|
var _a2, _b2, _c2, _d2;
|
328
313
|
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) || [];
|
329
|
-
}, [(
|
330
|
-
const handleEdit = (
|
314
|
+
}, [(_n = (_m = (_l = (_k = state.service) == null ? void 0 : _k.cacheItem) == null ? void 0 : _l._extend) == null ? void 0 : _m.other) == null ? void 0 : _n.bundle]);
|
315
|
+
const handleEdit = (e) => {
|
331
316
|
var _a2, _b2, _c2, _d2, _e2;
|
332
317
|
const item = state.service.cacheItem;
|
333
318
|
let values = form.getFieldsValue();
|
@@ -413,8 +398,8 @@ var Info = (_, ref) => {
|
|
413
398
|
});
|
414
399
|
}
|
415
400
|
});
|
416
|
-
}
|
417
|
-
const handleChange = (
|
401
|
+
};
|
402
|
+
const handleChange = (e) => {
|
418
403
|
if (state.channelDisabledEdit) {
|
419
404
|
return;
|
420
405
|
}
|
@@ -428,10 +413,10 @@ var Info = (_, ref) => {
|
|
428
413
|
// changeService: true,
|
429
414
|
}
|
430
415
|
});
|
431
|
-
}
|
416
|
+
};
|
432
417
|
(0, import_react.useImperativeHandle)(ref, () => {
|
433
418
|
return {
|
434
|
-
init:
|
419
|
+
init: setEditData
|
435
420
|
};
|
436
421
|
});
|
437
422
|
const handleTotalChange = (number) => {
|
@@ -443,30 +428,43 @@ var Info = (_, ref) => {
|
|
443
428
|
}
|
444
429
|
return false;
|
445
430
|
}, [state.renderType, isNormalProduct]);
|
446
|
-
const SelectTime = (
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
431
|
+
const SelectTime = (_o = window.BaseMaterials) == null ? void 0 : _o.SelectTime;
|
432
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
433
|
+
import_drawer.default,
|
434
|
+
{
|
435
|
+
titleNoWrap: true,
|
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(
|
451
453
|
import_collapsibleList.default,
|
452
454
|
{
|
453
455
|
style: { marginTop: bundles.length ? "8px" : 0 },
|
454
456
|
list: bundles,
|
455
457
|
renderItem: (item) => (0, import_utils2.renderBundles)(item, state.amountSymbol)
|
456
458
|
}
|
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(
|
459
|
+
)))), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
462
460
|
import_antd.Form.Item,
|
463
461
|
{
|
464
462
|
label: import_utils.locales.getText("pisell2.text.price"),
|
465
463
|
name: "total",
|
466
464
|
rules: [{ required: true }],
|
467
|
-
extra: useTotal !== ((
|
465
|
+
extra: useTotal !== ((_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
|
468
466
|
(0, import_utils.formatAmount)(
|
469
|
-
(
|
467
|
+
(_w = (_v = state.service.cacheItem) == null ? void 0 : _v._extend) == null ? void 0 : _w.origin_total,
|
470
468
|
2,
|
471
469
|
state.amountSymbol
|
472
470
|
),
|
@@ -482,25 +480,18 @@ var Info = (_, ref) => {
|
|
482
480
|
prefix: state.amountSymbol,
|
483
481
|
onChange: handleTotalChange,
|
484
482
|
disabled: state.channelDisabledEdit,
|
485
|
-
originValue: ((
|
486
|
-
placeholder: ((
|
483
|
+
originValue: ((_y = (_x = state.service.cacheItem) == null ? void 0 : _x._extend) == null ? void 0 : _y.origin_total) || 0,
|
484
|
+
placeholder: ((_A = (_z = state.service.cacheItem) == null ? void 0 : _z._extend) == null ? void 0 : _A.origin_total) || "0"
|
487
485
|
}
|
488
486
|
)
|
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(
|
487
|
+
)), isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
493
488
|
import_antd.Form.Item,
|
494
489
|
{
|
495
490
|
label: import_utils.locales.getText("pisell2.text.discount-reason"),
|
496
491
|
name: "discount_reason"
|
497
492
|
},
|
498
493
|
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
|
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(
|
494
|
+
)) : null, isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
504
495
|
import_antd.Form.Item,
|
505
496
|
{
|
506
497
|
label: import_utils.locales.getText("pisell2.text.start_time"),
|
@@ -510,7 +501,7 @@ var Info = (_, ref) => {
|
|
510
501
|
SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
511
502
|
SelectTime,
|
512
503
|
{
|
513
|
-
slice: (
|
504
|
+
slice: (_E = (_D = (_C = (_B = state.bookingConfig) == null ? void 0 : _B.config) == null ? void 0 : _C.basic) == null ? void 0 : _D.service_time) == null ? void 0 : _E.value,
|
514
505
|
timePickerProps: {
|
515
506
|
style: { width: "100%" }
|
516
507
|
},
|
@@ -519,11 +510,7 @@ var Info = (_, ref) => {
|
|
519
510
|
}
|
520
511
|
}
|
521
512
|
) : null
|
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(
|
513
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
527
514
|
import_antd.Form.Item,
|
528
515
|
{
|
529
516
|
label: import_utils.locales.getText("pisell2.text.duration"),
|
@@ -531,34 +518,23 @@ var Info = (_, ref) => {
|
|
531
518
|
rules: [{ required: true }]
|
532
519
|
},
|
533
520
|
/* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
|
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(
|
521
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
|
539
522
|
import_Resources.default,
|
540
523
|
{
|
541
524
|
ref: resourcesRef,
|
542
525
|
state,
|
543
526
|
cacheItem: state.service.cacheItem,
|
544
|
-
getCurrentCacheItem
|
527
|
+
getCurrentCacheItem,
|
528
|
+
useDuration,
|
529
|
+
useStartTime
|
545
530
|
}
|
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(
|
531
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(
|
550
532
|
import_Capacity.default,
|
551
533
|
{
|
552
534
|
state,
|
553
535
|
cacheItem: state.service.cacheItem
|
554
536
|
}
|
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(
|
537
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null))), isNormalProduct && /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
562
538
|
import_antd.Form.Item,
|
563
539
|
{
|
564
540
|
label: import_utils.locales.getText("pisell2.text.quantity"),
|
@@ -580,11 +556,7 @@ var Info = (_, ref) => {
|
|
580
556
|
}
|
581
557
|
}
|
582
558
|
)
|
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(
|
559
|
+
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
588
560
|
"div",
|
589
561
|
{
|
590
562
|
className: "pisell-lowcode__booking-service-delete-wrap",
|
@@ -596,47 +568,13 @@ var Info = (_, ref) => {
|
|
596
568
|
{
|
597
569
|
type: "primary",
|
598
570
|
className: "pisell-lowcode__booking-service-body-edit-footer-apple",
|
599
|
-
disabled: !isNormalProduct && !((
|
571
|
+
disabled: !isNormalProduct && !((_F = state.service.resourcesOrigin) == null ? void 0 : _F.length),
|
600
572
|
onClick: () => {
|
601
573
|
form.submit();
|
602
574
|
}
|
603
575
|
},
|
604
576
|
import_utils.locales.getText("pisell2.text.apply")
|
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)
|
577
|
+
)))
|
640
578
|
));
|
641
579
|
};
|
642
580
|
var editService_default = (0, import_react.forwardRef)(Info);
|
@@ -56,18 +56,14 @@ 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
|
-
|
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);
|
59
|
+
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(
|
60
|
+
import_Lists.default,
|
61
|
+
{
|
62
|
+
isParallelResource: true,
|
63
|
+
onEdit: handleEdit,
|
64
|
+
onAction: handleAction,
|
65
|
+
onChange: (e, type) => dispatchService(type || "setService", e)
|
66
|
+
}
|
67
|
+
), !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);
|
72
68
|
};
|
73
69
|
var service_default = import_react.default.memo(Service);
|
@@ -49,7 +49,6 @@ 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]);
|
53
52
|
const times = (0, import_react.useMemo)(() => {
|
54
53
|
if (timeObj) {
|
55
54
|
return timeObj.durationSlicesBasedOnTime;
|
@@ -77,7 +76,7 @@ var Duration = (props) => {
|
|
77
76
|
});
|
78
77
|
}
|
79
78
|
return durationSlicesBasedOnTime;
|
80
|
-
}, [timeObj
|
79
|
+
}, [timeObj, slice, locale, duration, startDate, usableTime]);
|
81
80
|
(0, import_react.useEffect)(() => {
|
82
81
|
timeObjChange == null ? void 0 : timeObjChange(times);
|
83
82
|
}, [times]);
|
@@ -89,10 +88,6 @@ var Duration = (props) => {
|
|
89
88
|
},
|
90
89
|
[]
|
91
90
|
);
|
92
|
-
|
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);
|
91
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(times));
|
97
92
|
};
|
98
93
|
var duration_default = Duration;
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
166
166
|
type: string;
|
167
167
|
value: number;
|
168
|
-
}) => number |
|
168
|
+
}) => number | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
};
|
171
|
+
} | "flexible";
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
8
8
|
*/
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
10
10
|
className?: string | undefined;
|
11
|
-
onChange?: ((status: "success" | "page" | "
|
11
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
12
12
|
[keys: string]: unknown;
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
14
14
|
onClose: () => void;
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
11
11
|
api: PayProps['api'];
|
12
12
|
className?: string | undefined;
|
13
|
-
onChange?: ((status: "success" | "page" | "
|
13
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
14
14
|
[keys: string]: unknown;
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
16
16
|
onClose: () => void;
|
@@ -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" | "warn" | "loading" | "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<"payo" | "tyro" | "windcave" | "stripe" | "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" | "warn" | "loading" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
295
|
name?: string | undefined;
|
296
296
|
symbol?: string | undefined;
|
297
297
|
amount?: string | number | undefined;
|
298
|
-
mode?: "
|
298
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
300
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
305
305
|
subTitle?: string | undefined;
|
306
|
-
type?: "
|
306
|
+
type?: "step" | "unset" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "success" | "
|
311
|
+
status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|