@pisell/private-materials 6.1.30 → 6.1.32
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/components/footer/index.js +7 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/index.d.ts +6 -0
- package/es/index.js +7 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/index.js +7 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.js +18 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/pro-number-keyboard/meta.ts +427 -0
- package/lowcode/pro-phone-selector/meta.ts +357 -0
- package/package.json +12 -12
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
30
30
|
* @return {*}
|
31
31
|
* @Author: xiangfeng.xue
|
32
32
|
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -336,7 +336,13 @@ var Footer = function Footer(props) {
|
|
336
336
|
state.action({
|
337
337
|
type: 'pisell1.handleOpenPayment',
|
338
338
|
data: {
|
339
|
-
order_info: res
|
339
|
+
order_info: res,
|
340
|
+
subtotal_info: {
|
341
|
+
subTotalList: subTotalList,
|
342
|
+
orderTotalList: orderTotalList,
|
343
|
+
total: total,
|
344
|
+
showDetail: showDetail
|
345
|
+
}
|
340
346
|
},
|
341
347
|
callback: function callback(res) {
|
342
348
|
console.log('webpos_pay_result', res);
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
5
5
|
handleOpen: () => void;
|
6
6
|
handleValuesChange: (val: any) => void;
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
7
|
+
handleOk: (values: SendModalValues) => Promise<any>;
|
8
8
|
};
|
9
9
|
export default useSendModal;
|
@@ -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 | "flexible" | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
}
|
171
|
+
};
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -298,12 +298,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
298
298
|
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
300
|
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
301
|
-
action?: "amount" | "
|
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?: "unset" | "step" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
@@ -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 };
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
package/es/index.d.ts
CHANGED
@@ -50,3 +50,9 @@ export { default as ClientCard } from './plus/clientCard';
|
|
50
50
|
export { default as ClientSearch } from './plus/clinetSearch';
|
51
51
|
export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
|
52
52
|
export { default as NoteModal } from './plus/noteModal';
|
53
|
+
export { default as ProNumberKeyboard } from './pro/numberKeyboard';
|
54
|
+
export { default as ProNumberSelector } from './pro/pisellNumberSelector';
|
55
|
+
export { default as ProPhoneSelector } from './pro/pisellPhoneKeyboard';
|
56
|
+
export { default as ProPriceKeyboard } from './pro/pisellPriceKeyboardModal';
|
57
|
+
export { default as ProPriceRadio } from './pro/pisellPriceRadio';
|
58
|
+
export { default as ProSkuDetailModal } from './pro/skuDetailModal';
|
package/es/index.js
CHANGED
@@ -53,4 +53,10 @@ export { default as StepController } from "./components/stepController";
|
|
53
53
|
export { default as ClientCard } from "./plus/clientCard";
|
54
54
|
export { default as ClientSearch } from "./plus/clinetSearch";
|
55
55
|
export { default as ComprehensiveSearch } from "./pro/comprehensiveSearch";
|
56
|
-
export { default as NoteModal } from "./plus/noteModal";
|
56
|
+
export { default as NoteModal } from "./plus/noteModal";
|
57
|
+
export { default as ProNumberKeyboard } from "./pro/numberKeyboard";
|
58
|
+
export { default as ProNumberSelector } from "./pro/pisellNumberSelector";
|
59
|
+
export { default as ProPhoneSelector } from "./pro/pisellPhoneKeyboard";
|
60
|
+
export { default as ProPriceKeyboard } from "./pro/pisellPriceKeyboardModal";
|
61
|
+
export { default as ProPriceRadio } from "./pro/pisellPriceRadio";
|
62
|
+
export { default as ProSkuDetailModal } from "./pro/skuDetailModal";
|
package/es/utils/index.d.ts
CHANGED
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
20
20
|
destroy: () => void;
|
21
|
-
update: (configUpdate: import("antd
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
22
22
|
}>;
|
23
23
|
export { modal };
|
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
30
30
|
* @return {*}
|
31
31
|
* @Author: xiangfeng.xue
|
32
32
|
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -246,7 +246,13 @@ var Footer = (props) => {
|
|
246
246
|
state.action({
|
247
247
|
type: "pisell1.handleOpenPayment",
|
248
248
|
data: {
|
249
|
-
order_info: res
|
249
|
+
order_info: res,
|
250
|
+
subtotal_info: {
|
251
|
+
subTotalList,
|
252
|
+
orderTotalList,
|
253
|
+
total,
|
254
|
+
showDetail
|
255
|
+
}
|
250
256
|
},
|
251
257
|
callback: (res2) => {
|
252
258
|
var _a2, _b2, _c2, _d2;
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
5
5
|
handleOpen: () => void;
|
6
6
|
handleValuesChange: (val: any) => void;
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
7
|
+
handleOk: (values: SendModalValues) => Promise<any>;
|
8
8
|
};
|
9
9
|
export default useSendModal;
|
@@ -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 | "flexible" | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
}
|
171
|
+
};
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -298,12 +298,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
298
298
|
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
300
|
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
301
|
-
action?: "amount" | "
|
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?: "unset" | "step" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
@@ -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 };
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
package/lib/index.d.ts
CHANGED
@@ -50,3 +50,9 @@ export { default as ClientCard } from './plus/clientCard';
|
|
50
50
|
export { default as ClientSearch } from './plus/clinetSearch';
|
51
51
|
export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
|
52
52
|
export { default as NoteModal } from './plus/noteModal';
|
53
|
+
export { default as ProNumberKeyboard } from './pro/numberKeyboard';
|
54
|
+
export { default as ProNumberSelector } from './pro/pisellNumberSelector';
|
55
|
+
export { default as ProPhoneSelector } from './pro/pisellPhoneKeyboard';
|
56
|
+
export { default as ProPriceKeyboard } from './pro/pisellPriceKeyboardModal';
|
57
|
+
export { default as ProPriceRadio } from './pro/pisellPriceRadio';
|
58
|
+
export { default as ProSkuDetailModal } from './pro/skuDetailModal';
|
package/lib/index.js
CHANGED
@@ -64,6 +64,12 @@ __export(src_exports, {
|
|
64
64
|
Login: () => import_login.default,
|
65
65
|
NoteModal: () => import_noteModal.default,
|
66
66
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
67
|
+
ProNumberKeyboard: () => import_numberKeyboard.default,
|
68
|
+
ProNumberSelector: () => import_pisellNumberSelector.default,
|
69
|
+
ProPhoneSelector: () => import_pisellPhoneKeyboard.default,
|
70
|
+
ProPriceKeyboard: () => import_pisellPriceKeyboardModal.default,
|
71
|
+
ProPriceRadio: () => import_pisellPriceRadio.default,
|
72
|
+
ProSkuDetailModal: () => import_skuDetailModal.default,
|
67
73
|
ProductExtension: () => import_productExtension.default,
|
68
74
|
RuleSetting: () => import_ruleSetting.default,
|
69
75
|
Schedules: () => import_schedules.default,
|
@@ -136,6 +142,12 @@ var import_clientCard = __toESM(require("./plus/clientCard"));
|
|
136
142
|
var import_clinetSearch = __toESM(require("./plus/clinetSearch"));
|
137
143
|
var import_comprehensiveSearch = __toESM(require("./pro/comprehensiveSearch"));
|
138
144
|
var import_noteModal = __toESM(require("./plus/noteModal"));
|
145
|
+
var import_numberKeyboard = __toESM(require("./pro/numberKeyboard"));
|
146
|
+
var import_pisellNumberSelector = __toESM(require("./pro/pisellNumberSelector"));
|
147
|
+
var import_pisellPhoneKeyboard = __toESM(require("./pro/pisellPhoneKeyboard"));
|
148
|
+
var import_pisellPriceKeyboardModal = __toESM(require("./pro/pisellPriceKeyboardModal"));
|
149
|
+
var import_pisellPriceRadio = __toESM(require("./pro/pisellPriceRadio"));
|
150
|
+
var import_skuDetailModal = __toESM(require("./pro/skuDetailModal"));
|
139
151
|
import_dayjs.default.extend(import_weekday.default);
|
140
152
|
import_dayjs.default.extend(import_localeData.default);
|
141
153
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -175,6 +187,12 @@ import_dayjs.default.extend(import_localeData.default);
|
|
175
187
|
Login,
|
176
188
|
NoteModal,
|
177
189
|
PisellSelectCustomerModal,
|
190
|
+
ProNumberKeyboard,
|
191
|
+
ProNumberSelector,
|
192
|
+
ProPhoneSelector,
|
193
|
+
ProPriceKeyboard,
|
194
|
+
ProPriceRadio,
|
195
|
+
ProSkuDetailModal,
|
178
196
|
ProductExtension,
|
179
197
|
RuleSetting,
|
180
198
|
Schedules,
|
package/lib/utils/index.d.ts
CHANGED
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
20
20
|
destroy: () => void;
|
21
|
-
update: (configUpdate: import("antd
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
22
22
|
}>;
|
23
23
|
export { modal };
|