@pisell/private-materials 3.3.29 → 3.3.30
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- 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/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/addons/model.js +5 -5
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +33 -13
- package/es/components/booking/components/footer/index.less +6 -1
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/deposit/index.js +4 -2
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/info/client/index.js +2 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +2 -2
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/Lists.js +5 -4
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +1 -1
- package/es/components/booking/info/service/editService/index.js +6 -1
- package/es/components/booking/info/service/index.js +2 -2
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/index.js +2 -2
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +6 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -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.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +1 -1
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/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.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- 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.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/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +9 -1
- 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/index.js +3 -3
- 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.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.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +8 -3
- 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/shoppingCart/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/model.d.ts +9 -1
- package/es/hooks/useComponents.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +66 -30
- package/lib/components/booking/components/footer/index.less +6 -1
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.js +4 -2
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/client/index.js +2 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +2 -2
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.js +42 -28
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +1 -1
- package/lib/components/booking/info/service/editService/index.js +20 -13
- package/lib/components/booking/info/service/index.js +2 -2
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/index.js +2 -2
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +14 -7
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- 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/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +1 -1
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
- 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/shoppingCart/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -46,33 +46,35 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
|
46
46
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
47
47
|
const { isShowChangeHolder } = (0, import_useHolderConfig.default)(state);
|
|
48
48
|
const { handleAddHolder } = (0, import_useAddHolder.default)(state, dispatch);
|
|
49
|
-
const handleChange = (0, import_ahooks.useMemoizedFn)(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
cacheItem,
|
|
62
|
-
|
|
63
|
-
|
|
49
|
+
const handleChange = (0, import_ahooks.useMemoizedFn)(
|
|
50
|
+
(currentItem, type, other) => {
|
|
51
|
+
if (state.disabledEdit || state.disableEventBookingEdit) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let products = (0, import_utils.updateServices)(state, currentItem, type, other, {
|
|
55
|
+
handleAddHolder
|
|
56
|
+
});
|
|
57
|
+
if (type === "view" || type === "edit_product") {
|
|
58
|
+
let product = currentItem._origin;
|
|
59
|
+
let cacheItem = { ...product, new: 0 };
|
|
60
|
+
if (isParallelResource) {
|
|
61
|
+
cacheItem = (0, import_utils2.getProductExtend)({
|
|
62
|
+
cacheItem,
|
|
63
|
+
state
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
onChange({ editModal: true, cacheItem });
|
|
67
|
+
return onEdit == null ? void 0 : onEdit({ ...product, new: 0 }, type);
|
|
64
68
|
}
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
const params = {
|
|
70
|
+
editModal: false,
|
|
71
|
+
value: products,
|
|
72
|
+
edit: true,
|
|
73
|
+
cacheItem: null
|
|
74
|
+
};
|
|
75
|
+
onChange(params);
|
|
67
76
|
}
|
|
68
|
-
|
|
69
|
-
editModal: false,
|
|
70
|
-
value: products,
|
|
71
|
-
edit: true,
|
|
72
|
-
cacheItem: null
|
|
73
|
-
};
|
|
74
|
-
onChange(params);
|
|
75
|
-
});
|
|
77
|
+
);
|
|
76
78
|
const productParams = (0, import_react.useMemo)(() => {
|
|
77
79
|
return {
|
|
78
80
|
hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
|
|
@@ -84,9 +86,15 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
|
84
86
|
maxLength: (0, import_utils.isEventBooking)(state) ? 1 : 999,
|
|
85
87
|
isShowChangeHolder,
|
|
86
88
|
isShowChangeResource: true,
|
|
87
|
-
isShowAddHolderButton: true
|
|
89
|
+
isShowAddHolderButton: true,
|
|
90
|
+
isShowEditProduct: true
|
|
88
91
|
};
|
|
89
|
-
}, [
|
|
92
|
+
}, [
|
|
93
|
+
state == null ? void 0 : state.bookingId,
|
|
94
|
+
state == null ? void 0 : state.disabledEdit,
|
|
95
|
+
isShowChangeHolder,
|
|
96
|
+
state.isBookingCreatePage
|
|
97
|
+
]);
|
|
90
98
|
return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
|
|
91
99
|
import_shoppingCart.default,
|
|
92
100
|
{
|
|
@@ -98,7 +106,13 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
|
|
|
98
106
|
onAddProduct: () => onChange({ addModal: true }),
|
|
99
107
|
productParams: {
|
|
100
108
|
...productParams,
|
|
101
|
-
products: (0, import_utils.formatProducts)(
|
|
109
|
+
products: (0, import_utils.formatProducts)(
|
|
110
|
+
((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value) || [],
|
|
111
|
+
state,
|
|
112
|
+
false,
|
|
113
|
+
true,
|
|
114
|
+
isParallelResource
|
|
115
|
+
)
|
|
102
116
|
}
|
|
103
117
|
}
|
|
104
118
|
));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export interface EditServiceRef {
|
|
4
|
-
init: (cacheItem?: any) => void;
|
|
4
|
+
init: (cacheItem?: any, open?: boolean, openEditProduct?: boolean) => void;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
7
7
|
export default _default;
|
|
@@ -264,20 +264,27 @@ var Info = (_, ref) => {
|
|
|
264
264
|
}
|
|
265
265
|
await editBooking({ booking: data });
|
|
266
266
|
});
|
|
267
|
-
const setEditData = (0, import_ahooks.useMemoizedFn)(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
267
|
+
const setEditData = (0, import_ahooks.useMemoizedFn)(
|
|
268
|
+
(_cacheItem, open, openProductDetail) => {
|
|
269
|
+
setCurrentTab("batch_edit");
|
|
270
|
+
isChangeTotal.current = false;
|
|
271
|
+
let cacheItem = _cacheItem || state.service.cacheItem;
|
|
272
|
+
let values = cacheItem._extend;
|
|
273
|
+
values = {
|
|
274
|
+
...values,
|
|
275
|
+
discount_reason: (values == null ? void 0 : values.discount_reason) || ""
|
|
276
|
+
};
|
|
277
|
+
form.setFieldsValue(values);
|
|
278
|
+
if (openProductDetail) {
|
|
279
|
+
setTimeout(() => {
|
|
280
|
+
handleEdit({});
|
|
281
|
+
}, 100);
|
|
282
|
+
}
|
|
283
|
+
if (!isEventBookingMode) {
|
|
284
|
+
getResources(cacheItem, open);
|
|
285
|
+
}
|
|
279
286
|
}
|
|
280
|
-
|
|
287
|
+
);
|
|
281
288
|
const isReason = (0, import_react.useMemo)(() => {
|
|
282
289
|
var _a2;
|
|
283
290
|
let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
|
|
@@ -66,10 +66,10 @@ var Service = () => {
|
|
|
66
66
|
}
|
|
67
67
|
return true;
|
|
68
68
|
}, [state, appointment_card.quick_time]);
|
|
69
|
-
const handleEdit = (cacheItem) => {
|
|
69
|
+
const handleEdit = (cacheItem, type) => {
|
|
70
70
|
setTimeout(() => {
|
|
71
71
|
var _a2, _b2;
|
|
72
|
-
(_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem);
|
|
72
|
+
(_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem, false, type === "edit_product");
|
|
73
73
|
}, 100);
|
|
74
74
|
};
|
|
75
75
|
const clearCart = (0, import_useClearCart.default)(state, dispatch);
|
|
@@ -55,10 +55,10 @@ var Service2Cart = ({
|
|
|
55
55
|
payload: { ...payload }
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
const handleEdit = (cacheItem) => {
|
|
58
|
+
const handleEdit = (cacheItem, type) => {
|
|
59
59
|
setTimeout(() => {
|
|
60
60
|
var _a, _b;
|
|
61
|
-
(_b = (_a = detailRef.current) == null ? void 0 : _a.init) == null ? void 0 : _b.call(_a, cacheItem);
|
|
61
|
+
(_b = (_a = detailRef.current) == null ? void 0 : _a.init) == null ? void 0 : _b.call(_a, cacheItem, false, type === "edit_product");
|
|
62
62
|
}, 100);
|
|
63
63
|
};
|
|
64
64
|
const { dom } = (0, import_useQuotation.default)(state, dispatch);
|
|
@@ -240,4 +240,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
240
240
|
* @Author: WangHan
|
|
241
241
|
* @Date: 2024-12-24 11:32
|
|
242
242
|
*/
|
|
243
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
243
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -206,13 +206,20 @@ var Info = (_, ref) => {
|
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
|
-
const setEditData = (0, import_ahooks.useMemoizedFn)(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
209
|
+
const setEditData = (0, import_ahooks.useMemoizedFn)(
|
|
210
|
+
(_cacheItem, open, openProductDetail) => {
|
|
211
|
+
form.resetFields();
|
|
212
|
+
isChangeTotal.current = false;
|
|
213
|
+
let cacheItem = _cacheItem || state.service.cacheItem;
|
|
214
|
+
let values = cacheItem._extend;
|
|
215
|
+
form.setFieldsValue(values);
|
|
216
|
+
if (openProductDetail) {
|
|
217
|
+
setTimeout(() => {
|
|
218
|
+
handleEdit({});
|
|
219
|
+
}, 100);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
);
|
|
216
223
|
const isReason = (0, import_react.useMemo)(() => {
|
|
217
224
|
var _a2;
|
|
218
225
|
let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -104,4 +105,11 @@ export declare const walkInData: {
|
|
|
104
105
|
id: number;
|
|
105
106
|
nickname: string;
|
|
106
107
|
};
|
|
107
|
-
export declare const Provider: any, Context:
|
|
108
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
109
|
+
state: FormState;
|
|
110
|
+
} & {
|
|
111
|
+
dispatch: (params: {
|
|
112
|
+
type: string;
|
|
113
|
+
payload: any;
|
|
114
|
+
}) => void;
|
|
115
|
+
}>;
|
|
@@ -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
|
+
}>;
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "page" | "success" | "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "page" | "success" | "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -28,4 +29,11 @@ export interface PayGroup {
|
|
|
28
29
|
pay_number?: string;
|
|
29
30
|
_order: any;
|
|
30
31
|
}
|
|
31
|
-
export declare const Provider: any, Context:
|
|
32
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
33
|
+
state: FormState;
|
|
34
|
+
} & {
|
|
35
|
+
dispatch: (params: {
|
|
36
|
+
type: string;
|
|
37
|
+
payload: any;
|
|
38
|
+
}) => void;
|
|
39
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
|
17
17
|
export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
|
|
18
18
|
export declare const saveConfirm: () => Promise<{
|
|
19
19
|
destroy: () => void;
|
|
20
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
21
21
|
}>;
|
|
22
22
|
export { modal };
|
|
@@ -50,7 +50,8 @@ var Product = (props) => {
|
|
|
50
50
|
isShowDelete,
|
|
51
51
|
isShowChangeHolder,
|
|
52
52
|
isShowHolder,
|
|
53
|
-
isShowAddHolderButton
|
|
53
|
+
isShowAddHolderButton,
|
|
54
|
+
isShowEditProduct
|
|
54
55
|
} = state;
|
|
55
56
|
const clearCart = (0, import_useClearCart.default)(id);
|
|
56
57
|
const handleChange = (item, type, other) => {
|
|
@@ -66,7 +67,8 @@ var Product = (props) => {
|
|
|
66
67
|
isShowChangeHolder,
|
|
67
68
|
isShowDelete,
|
|
68
69
|
isShowHolder,
|
|
69
|
-
isShowAddHolderButton
|
|
70
|
+
isShowAddHolderButton,
|
|
71
|
+
isShowEditProduct
|
|
70
72
|
};
|
|
71
73
|
}, [
|
|
72
74
|
isShowNote,
|
|
@@ -76,7 +78,8 @@ var Product = (props) => {
|
|
|
76
78
|
isShowDelete,
|
|
77
79
|
isShowHolder,
|
|
78
80
|
isShowAddHolderButton,
|
|
79
|
-
isShowChangeHolder
|
|
81
|
+
isShowChangeHolder,
|
|
82
|
+
isShowEditProduct
|
|
80
83
|
]);
|
|
81
84
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
|
|
82
85
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -88,6 +91,7 @@ var Product = (props) => {
|
|
|
88
91
|
onDelete: (e) => handleChange(e, "delete", item),
|
|
89
92
|
onNote: (e) => handleChange(e, "note", { note: e.note }),
|
|
90
93
|
onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
|
|
94
|
+
onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
|
|
91
95
|
onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
|
|
92
96
|
onChangeResource: (e) => handleChange(item, "change_resource", e),
|
|
93
97
|
onChangeHolder: (e) => handleChange(item, "change_holder", e),
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
addWalletCard: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
walletDetailState: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
+
state: RechargeState;
|
|
8
|
+
} & {
|
|
9
|
+
dispatch: (params: {
|
|
10
|
+
type: string;
|
|
11
|
+
payload: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
selectedGiftOptionId: string | null;
|
|
4
|
+
cardList: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
price: number;
|
|
8
|
+
}>;
|
|
9
|
+
selectedItem: {
|
|
10
|
+
id?: string;
|
|
11
|
+
gift_price?: number;
|
|
12
|
+
price?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant_id?: string;
|
|
15
|
+
};
|
|
16
|
+
productId?: string;
|
|
17
|
+
detailId?: string;
|
|
18
|
+
total: string | number;
|
|
19
|
+
rechargeModalOpen: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
+
state: RechargeState;
|
|
23
|
+
} & {
|
|
24
|
+
dispatch: (params: {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: any;
|
|
27
|
+
}) => void;
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: 0;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|