@pisell/private-materials 6.2.41 → 6.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +13 -29
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +12 -8
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/editBookingModal/index.js +3 -4
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +16 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -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/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/index.less +5 -22
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +4 -0
- package/es/plus/saasCreateOrganization/components/Header.js +62 -0
- package/es/plus/saasCreateOrganization/index.d.ts +5 -0
- package/es/plus/saasCreateOrganization/index.js +15 -0
- package/es/plus/saasCreateOrganization/index.less +55 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/es/plus/saasCreateOrganization/locales.js +14 -0
- package/es/plus/saasCreateOrganization/types.d.ts +69 -0
- package/es/plus/saasCreateOrganization/types.js +1 -0
- package/es/plus/saasLogin/index.d.ts +5 -0
- package/es/plus/saasLogin/index.js +165 -0
- package/es/plus/saasLogin/index.less +136 -0
- package/es/plus/saasLogin/locales.d.ts +51 -0
- package/es/plus/saasLogin/locales.js +50 -0
- package/es/plus/saasLogin/types.d.ts +62 -0
- package/es/plus/saasLogin/types.js +1 -0
- package/es/plus/saasLogin/utils.d.ts +35 -0
- package/es/plus/saasLogin/utils.js +31 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +10 -0
- package/es/plus/saasRegister/components/EntryEmail.js +92 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +10 -0
- package/es/plus/saasRegister/components/EntryInfo.js +145 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +5 -0
- package/es/plus/saasRegister/components/GoLogin.js +27 -0
- package/es/plus/saasRegister/components/Header.d.ts +4 -0
- package/es/plus/saasRegister/components/Header.js +62 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +9 -0
- package/es/plus/saasRegister/components/VerifyError.js +68 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
- package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
- package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
- package/es/plus/saasRegister/index.d.ts +5 -0
- package/es/plus/saasRegister/index.js +246 -0
- package/es/plus/saasRegister/index.less +218 -0
- package/es/plus/saasRegister/locales.d.ts +117 -0
- package/es/plus/saasRegister/locales.js +116 -0
- package/es/plus/saasRegister/types.d.ts +114 -0
- package/es/plus/saasRegister/types.js +24 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +1 -11
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/editBookingModal/index.js +3 -4
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +15 -3
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -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/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/index.less +5 -22
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +5 -0
- package/lib/plus/saasCreateOrganization/index.js +47 -0
- package/lib/plus/saasCreateOrganization/index.less +55 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/lib/plus/saasCreateOrganization/locales.js +38 -0
- package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
- package/lib/plus/saasCreateOrganization/types.js +17 -0
- package/lib/plus/saasLogin/index.d.ts +5 -0
- package/lib/plus/saasLogin/index.js +171 -0
- package/lib/plus/saasLogin/index.less +136 -0
- package/lib/plus/saasLogin/locales.d.ts +51 -0
- package/lib/plus/saasLogin/locales.js +74 -0
- package/lib/plus/saasLogin/types.d.ts +62 -0
- package/lib/plus/saasLogin/types.js +17 -0
- package/lib/plus/saasLogin/utils.d.ts +35 -0
- package/lib/plus/saasLogin/utils.js +50 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +10 -0
- package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +10 -0
- package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +5 -0
- package/lib/plus/saasRegister/components/GoLogin.js +58 -0
- package/lib/plus/saasRegister/components/Header.d.ts +4 -0
- package/lib/plus/saasRegister/components/Header.js +99 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +9 -0
- package/lib/plus/saasRegister/components/VerifyError.js +123 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
- package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
- package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
- package/lib/plus/saasRegister/index.d.ts +5 -0
- package/lib/plus/saasRegister/index.js +205 -0
- package/lib/plus/saasRegister/index.less +218 -0
- package/lib/plus/saasRegister/locales.d.ts +117 -0
- package/lib/plus/saasRegister/locales.js +140 -0
- package/lib/plus/saasRegister/types.d.ts +114 -0
- package/lib/plus/saasRegister/types.js +54 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/saas-create-organization/meta.ts +214 -0
- package/lowcode/saas-create-organization/snippets.ts +25 -0
- package/lowcode/saas-login/meta.ts +370 -0
- package/lowcode/saas-login/snippets.ts +38 -0
- package/lowcode/saas-register/meta.ts +386 -0
- package/lowcode/saas-register/snippets.ts +31 -0
- package/package.json +3 -3
@@ -434,13 +434,15 @@ var Addons = Provider(function (props) {
|
|
434
434
|
}
|
435
435
|
});
|
436
436
|
}
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
437
|
+
/*
|
438
|
+
if (state.channelDisabledEdit) {
|
439
|
+
modal.warning({
|
440
|
+
okText: locales.getText('pisell2.text.ok'),
|
441
|
+
content: locales.getText('pisell2.text.terminal-edit-message'),
|
442
|
+
});
|
443
|
+
return;
|
444
|
+
}
|
445
|
+
*/
|
444
446
|
getProducts();
|
445
447
|
setSearch('');
|
446
448
|
dispatch({
|
@@ -496,9 +498,11 @@ var Addons = Provider(function (props) {
|
|
496
498
|
if (state.disabledEdit) {
|
497
499
|
return;
|
498
500
|
}
|
501
|
+
/*
|
499
502
|
if (state.channelDisabledEdit) {
|
500
503
|
return;
|
501
504
|
}
|
505
|
+
*/
|
502
506
|
var isSession = isSessionProduct(item);
|
503
507
|
state.action({
|
504
508
|
type: 'pisell1.handleOpenProductModal',
|
@@ -563,7 +567,7 @@ var Addons = Provider(function (props) {
|
|
563
567
|
}
|
564
568
|
}, state.addons.value.map(function (d) {
|
565
569
|
return /*#__PURE__*/React.createElement(ProductItem, {
|
566
|
-
disabled: state.disabledEdit
|
570
|
+
disabled: state.disabledEdit,
|
567
571
|
item: d,
|
568
572
|
key: d.id,
|
569
573
|
amountSymbol: state.amountSymbol,
|
@@ -62,6 +62,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
|
|
62
62
|
return {
|
63
63
|
open: function open(params) {
|
64
64
|
console.log('change', params);
|
65
|
+
form.resetFields();
|
65
66
|
setParams(params);
|
66
67
|
setOpen(true);
|
67
68
|
}
|
@@ -173,9 +174,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
|
|
173
174
|
});
|
174
175
|
}, [data]);
|
175
176
|
var updateResource = function updateResource(resource) {
|
176
|
-
form.
|
177
|
-
resource: resource
|
178
|
-
});
|
177
|
+
form.setFieldValue('resource', resource);
|
179
178
|
};
|
180
179
|
var originCacheItem = useMemo(function () {
|
181
180
|
if (!data) {
|
@@ -224,9 +223,9 @@ var EditBookingModal = function EditBookingModal(props, ref) {
|
|
224
223
|
});
|
225
224
|
}, [data, useToDate, useResource]);
|
226
225
|
var initState = function initState() {
|
227
|
-
form.resetFields();
|
228
226
|
setData(null);
|
229
227
|
setOpen(false);
|
228
|
+
form.resetFields();
|
230
229
|
};
|
231
230
|
var onCancel = function onCancel() {
|
232
231
|
initState();
|
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
248
248
|
* @Author: WangHan
|
249
249
|
* @Date: 2024-12-24 11:32
|
250
250
|
*/
|
251
|
-
export declare const updateServicePrice: (state: any) => never[]
|
251
|
+
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|
@@ -95,7 +95,7 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType, business
|
|
95
95
|
if (renderType === 'eventBooking') {
|
96
96
|
return false;
|
97
97
|
}
|
98
|
-
var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413];
|
98
|
+
var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413, 8943];
|
99
99
|
|
100
100
|
// 固定的shopId 或者安装 Resource Kit 应用,则认为是booking4Shop
|
101
101
|
return booking4Shops.includes(shopId) || (businessUtils === null || businessUtils === void 0 ? void 0 : businessUtils.getAppByModal('resourcekit'));
|
@@ -277,8 +277,23 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
|
|
277
277
|
try {
|
278
278
|
var _loop2 = function _loop2() {
|
279
279
|
var item = _step.value;
|
280
|
+
var _item$select_type = item.select_type,
|
281
|
+
select_type = _item$select_type === void 0 ? {} : _item$select_type,
|
282
|
+
_item$optional_resour = item.optional_resource,
|
283
|
+
optional_resource = _item$optional_resour === void 0 ? [] : _item$optional_resour,
|
284
|
+
_item$default_resourc = item.default_resource,
|
285
|
+
default_resource = _item$default_resourc === void 0 ? [] : _item$default_resourc;
|
280
286
|
var renderList = item.renderList.filter(function (d) {
|
281
|
-
|
287
|
+
if ((select_type === null || select_type === void 0 ? void 0 : select_type.type) === 'single') {
|
288
|
+
// 单选:
|
289
|
+
if (resourceId && (optional_resource.includes(resourceId) || default_resource.includes(resourceId))) {
|
290
|
+
return d.id === resourceId;
|
291
|
+
}
|
292
|
+
return d.is_default === 1;
|
293
|
+
} else {
|
294
|
+
// 多选
|
295
|
+
return d.is_default === 1 || d.id === resourceId;
|
296
|
+
}
|
282
297
|
});
|
283
298
|
var defaultOriginalResource = [];
|
284
299
|
if (renderList.length === 0) {
|
@@ -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: "success" | "page" | "
|
12
|
+
onChange?: ((status: "success" | "page" | "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: "success" | "page" | "
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
15
15
|
[keys: string]: unknown;
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
17
17
|
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<"
|
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: "
|
177
|
+
status: "success" | "warn" | "loading" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,10 +295,10 @@ 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?: "
|
301
|
-
action?: "amount" | "
|
300
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
301
|
+
action?: "amount" | "deviceList" | "pay" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | 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?: "
|
311
|
+
status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|
@@ -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
|
20
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
21
21
|
}>;
|
22
22
|
export { modal };
|
@@ -306,6 +306,9 @@ var TicketBooking = function TicketBooking() {
|
|
306
306
|
selectCustomer(null);
|
307
307
|
enableAllScanListeners();
|
308
308
|
shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
|
309
|
+
setState({
|
310
|
+
createCount: state.createCount + 1
|
311
|
+
});
|
309
312
|
});
|
310
313
|
|
311
314
|
// 作废预约
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
package/es/index.d.ts
CHANGED
@@ -49,3 +49,6 @@ export { default as ClientCard } from './plus/clientCard';
|
|
49
49
|
export { default as ClientSearch } from './plus/clinetSearch';
|
50
50
|
export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
|
51
51
|
export { default as NoteModal } from './plus/noteModal';
|
52
|
+
export { default as SaasLogin } from './plus/saasLogin';
|
53
|
+
export { default as SaasRegister } from './plus/saasRegister';
|
54
|
+
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
package/es/index.js
CHANGED
@@ -52,4 +52,7 @@ export { default as StepController } from "./components/stepController";
|
|
52
52
|
export { default as ClientCard } from "./plus/clientCard";
|
53
53
|
export { default as ClientSearch } from "./plus/clinetSearch";
|
54
54
|
export { default as ComprehensiveSearch } from "./pro/comprehensiveSearch";
|
55
|
-
export { default as NoteModal } from "./plus/noteModal";
|
55
|
+
export { default as NoteModal } from "./plus/noteModal";
|
56
|
+
export { default as SaasLogin } from "./plus/saasLogin";
|
57
|
+
export { default as SaasRegister } from "./plus/saasRegister";
|
58
|
+
export { default as SaasCreateOrganization } from "./plus/saasCreateOrganization";
|
@@ -201,7 +201,8 @@
|
|
201
201
|
.price-info {
|
202
202
|
display: flex;
|
203
203
|
align-items: center;
|
204
|
-
|
204
|
+
flex-wrap: wrap;
|
205
|
+
gap: unset;
|
205
206
|
}
|
206
207
|
|
207
208
|
.price {
|
@@ -210,6 +211,8 @@
|
|
210
211
|
font-style: normal;
|
211
212
|
font-weight: 600;
|
212
213
|
line-height: 28px;
|
214
|
+
overflow: hidden;
|
215
|
+
margin-right: 8px;
|
213
216
|
}
|
214
217
|
|
215
218
|
.original-price {
|
@@ -219,6 +222,7 @@
|
|
219
222
|
font-weight: 400;
|
220
223
|
line-height: 24px;
|
221
224
|
position: relative;
|
225
|
+
overflow: hidden;
|
222
226
|
|
223
227
|
&::before {
|
224
228
|
content: '';
|
@@ -246,25 +250,4 @@
|
|
246
250
|
}
|
247
251
|
}
|
248
252
|
}
|
249
|
-
|
250
|
-
// 网格布局中的产品卡片样式调整
|
251
|
-
.product-grid-wrapper {
|
252
|
-
.pisell-product-select__product-card {
|
253
|
-
min-width: unset;
|
254
|
-
width: 100%;
|
255
|
-
}
|
256
|
-
}
|
257
|
-
|
258
|
-
// 列表布局中的产品卡片样式调整
|
259
|
-
.product-list-wrapper {
|
260
|
-
.pisell-product-select__product-card {
|
261
|
-
min-width: 363px;
|
262
|
-
max-width: unset;
|
263
|
-
margin-top: 12px;
|
264
|
-
|
265
|
-
&:first-child {
|
266
|
-
margin-top: 0;
|
267
|
-
}
|
268
|
-
}
|
269
|
-
}
|
270
253
|
}
|
@@ -8,6 +8,7 @@ import React, { useMemo } from 'react';
|
|
8
8
|
import { PisellText } from '@pisell/materials';
|
9
9
|
import classNames from 'classnames';
|
10
10
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
11
|
+
import "./index.less";
|
11
12
|
var index = function index(props) {
|
12
13
|
var _context$appHelper$ut;
|
13
14
|
var context = useEngineContext();
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { locales } from '@pisell/utils';
|
3
|
+
import "../index.less";
|
4
|
+
export var Header = function Header(props) {
|
5
|
+
var _props$showLogo = props.showLogo,
|
6
|
+
showLogo = _props$showLogo === void 0 ? true : _props$showLogo,
|
7
|
+
_props$logo = props.logo,
|
8
|
+
logo = _props$logo === void 0 ? '' : _props$logo,
|
9
|
+
_props$logoSize = props.logoSize,
|
10
|
+
logoSize = _props$logoSize === void 0 ? {
|
11
|
+
width: 48,
|
12
|
+
height: 48
|
13
|
+
} : _props$logoSize,
|
14
|
+
_props$logoPosition = props.logoPosition,
|
15
|
+
logoPosition = _props$logoPosition === void 0 ? 'center' : _props$logoPosition,
|
16
|
+
_props$showWelcomeMes = props.showWelcomeMessage,
|
17
|
+
showWelcomeMessage = _props$showWelcomeMes === void 0 ? true : _props$showWelcomeMes,
|
18
|
+
_props$welcomeMessage = props.welcomeMessage,
|
19
|
+
welcomeMessage = _props$welcomeMessage === void 0 ? locales.getText('pisell-saas-create-org-welcome-message') : _props$welcomeMessage,
|
20
|
+
_props$welcomeMessage2 = props.welcomeMessageAlign,
|
21
|
+
welcomeMessageAlign = _props$welcomeMessage2 === void 0 ? 'center' : _props$welcomeMessage2,
|
22
|
+
_props$showTitle = props.showTitle,
|
23
|
+
showTitle = _props$showTitle === void 0 ? true : _props$showTitle,
|
24
|
+
_props$title = props.title,
|
25
|
+
title = _props$title === void 0 ? locales.getText('pisell-saas-create-org-title') : _props$title,
|
26
|
+
_props$titleAlign = props.titleAlign,
|
27
|
+
titleAlign = _props$titleAlign === void 0 ? 'center' : _props$titleAlign,
|
28
|
+
_props$showSubtitle = props.showSubtitle,
|
29
|
+
showSubtitle = _props$showSubtitle === void 0 ? true : _props$showSubtitle,
|
30
|
+
_props$subtitle = props.subtitle,
|
31
|
+
subtitle = _props$subtitle === void 0 ? '' : _props$subtitle,
|
32
|
+
_props$subtitleAlign = props.subtitleAlign,
|
33
|
+
subtitleAlign = _props$subtitleAlign === void 0 ? 'center' : _props$subtitleAlign;
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, showLogo && /*#__PURE__*/React.createElement("div", {
|
35
|
+
className: "pisell-saas-create-org-logo ".concat(logoPosition),
|
36
|
+
style: {
|
37
|
+
width: logoSize.width,
|
38
|
+
height: logoSize.height
|
39
|
+
}
|
40
|
+
}, logo && /*#__PURE__*/React.createElement("img", {
|
41
|
+
src: logo,
|
42
|
+
alt: "logo",
|
43
|
+
style: {
|
44
|
+
height: (logoSize === null || logoSize === void 0 ? void 0 : logoSize.height) || 48
|
45
|
+
}
|
46
|
+
})), showWelcomeMessage && /*#__PURE__*/React.createElement("h1", {
|
47
|
+
className: "pisell-saas-create-org-welcome-message",
|
48
|
+
style: {
|
49
|
+
textAlign: welcomeMessageAlign
|
50
|
+
}
|
51
|
+
}, welcomeMessage || ''), showTitle && /*#__PURE__*/React.createElement("h1", {
|
52
|
+
className: "pisell-saas-create-org-title",
|
53
|
+
style: {
|
54
|
+
textAlign: titleAlign
|
55
|
+
}
|
56
|
+
}, title || ''), showSubtitle && /*#__PURE__*/React.createElement("div", {
|
57
|
+
className: "pisell-saas-create-org-subtitle",
|
58
|
+
style: {
|
59
|
+
textAlign: subtitleAlign
|
60
|
+
}
|
61
|
+
}, subtitle || ''));
|
62
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { locales } from '@pisell/utils';
|
3
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
4
|
+
import { Header } from "./components/Header";
|
5
|
+
import localeTexts from "./locales";
|
6
|
+
import "./index.less";
|
7
|
+
var SaasCreateOrganization = function SaasCreateOrganization(props) {
|
8
|
+
var _context$engine;
|
9
|
+
var context = useEngineContext();
|
10
|
+
locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
12
|
+
className: "pisell-saas-create-org-container"
|
13
|
+
}, /*#__PURE__*/React.createElement(Header, props), /*#__PURE__*/React.createElement("div", null, props === null || props === void 0 ? void 0 : props.children));
|
14
|
+
};
|
15
|
+
export default SaasCreateOrganization;
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.pisell-saas-create-org-container {
|
2
|
+
width: 360px;
|
3
|
+
max-width: 360px;
|
4
|
+
min-width: 266px;
|
5
|
+
margin: 0 20px;
|
6
|
+
overflow-x: hidden;
|
7
|
+
|
8
|
+
// Logo样式
|
9
|
+
.pisell-saas-create-org-logo {
|
10
|
+
width: fit-content;
|
11
|
+
height: 48px;
|
12
|
+
border-radius: 8px;
|
13
|
+
|
14
|
+
&.left {
|
15
|
+
margin-right: auto;
|
16
|
+
margin-left: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
&.center {
|
20
|
+
margin: 0 auto;
|
21
|
+
}
|
22
|
+
|
23
|
+
&.right {
|
24
|
+
margin-left: auto;
|
25
|
+
margin-right: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
img {
|
29
|
+
height: 48px;
|
30
|
+
object-fit: contain;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.pisell-saas-create-org-welcome-message {
|
35
|
+
margin-top: 10px;
|
36
|
+
color: #101828;
|
37
|
+
text-align: center;
|
38
|
+
font-size: 20px;
|
39
|
+
font-weight: 500;
|
40
|
+
}
|
41
|
+
|
42
|
+
.pisell-saas-create-org-title {
|
43
|
+
margin-top: 24px;
|
44
|
+
font-size: 30px;
|
45
|
+
font-weight: 600;
|
46
|
+
color: #101828;
|
47
|
+
}
|
48
|
+
|
49
|
+
.pisell-saas-create-org-subtitle {
|
50
|
+
margin-top: 12px;
|
51
|
+
font-size: 16px;
|
52
|
+
color: #475467;
|
53
|
+
font-weight: 400;
|
54
|
+
}
|
55
|
+
}
|