@pisell/private-materials 3.3.27 → 3.3.29
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/meta.js +1 -1
- 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/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +6 -2
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/hooks/useSelectPet.js +2 -4
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/serviceList/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/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- 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/shoppingCart/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +4 -3
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.js +1 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +2 -4
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/serviceList/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/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- 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/shoppingCart/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/package.json +4 -4
|
@@ -220,11 +220,15 @@ var useQuotation = function useQuotation(state, dispatch) {
|
|
|
220
220
|
return (state === null || state === void 0 || (_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.edit) || (state === null || state === void 0 || (_state$date = state.date) === null || _state$date === void 0 ? void 0 : _state$date.edit);
|
|
221
221
|
}, [state]);
|
|
222
222
|
useEffect(function () {
|
|
223
|
-
var _context$appHelper, _context$appHelper$ge, _state$client2;
|
|
223
|
+
var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g, _state$client2;
|
|
224
|
+
// 报价单
|
|
224
225
|
var isQuotation = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.businessUtils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getAppByModal) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, 'quotation');
|
|
225
226
|
|
|
227
|
+
// 假日报价单
|
|
228
|
+
var isHolidayQuotation = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.businessUtils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getAppByModal) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.call(_context$appHelper2, 'holidayquotation');
|
|
229
|
+
|
|
226
230
|
// 没有报价单不走该流程 没有更新客户信息或者日期不更新不走该流程
|
|
227
|
-
if (!isQuotation || !isEditClientOrDate) return;
|
|
231
|
+
if (!isQuotation && !isHolidayQuotation || !isEditClientOrDate) return;
|
|
228
232
|
updateCartQuotation({
|
|
229
233
|
customer_id: (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id,
|
|
230
234
|
schedule_date: currentDate
|
|
@@ -1093,7 +1093,7 @@ var Info = function Info(_, ref) {
|
|
|
1093
1093
|
}]
|
|
1094
1094
|
}, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
|
|
1095
1095
|
timeObj: timeObj
|
|
1096
|
-
})))), (holderLists === null || holderLists === void 0 ? void 0 : holderLists.length) > 0 ? /*#__PURE__*/React.createElement(Col, {
|
|
1096
|
+
})))), isDayBookingMode && (holderLists === null || holderLists === void 0 ? void 0 : holderLists.length) > 0 ? /*#__PURE__*/React.createElement(Col, {
|
|
1097
1097
|
span: isDayBookingMode ? 12 : 24
|
|
1098
1098
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1099
1099
|
label: locales.getText('pisell2.text.holder'),
|
|
@@ -30,11 +30,9 @@ var useSelectPet = function useSelectPet(state) {
|
|
|
30
30
|
*/
|
|
31
31
|
var holderLists = useMemo(function () {
|
|
32
32
|
var _state$pet3;
|
|
33
|
-
var _lists = formatHolderLists(petLists);
|
|
34
|
-
return _lists;
|
|
35
33
|
if (isDaysBookingBol) {
|
|
36
|
-
var
|
|
37
|
-
return
|
|
34
|
+
var _lists = formatHolderLists(petLists);
|
|
35
|
+
return _lists;
|
|
38
36
|
}
|
|
39
37
|
return (state === null || state === void 0 || (_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : _state$pet3.holders) || [];
|
|
40
38
|
}, [petLists, isDaysBookingBol, state === null || state === void 0 || (_state$pet4 = state.pet) === null || _state$pet4 === void 0 ? void 0 : _state$pet4.holders]);
|
|
@@ -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) => never[]
|
|
243
|
+
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|
|
@@ -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" | "print" | "fail" | "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" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -179,11 +179,12 @@ var useQuotation = (state, dispatch) => {
|
|
|
179
179
|
return ((_a2 = state == null ? void 0 : state.client) == null ? void 0 : _a2.edit) || ((_b2 = state == null ? void 0 : state.date) == null ? void 0 : _b2.edit);
|
|
180
180
|
}, [state]);
|
|
181
181
|
(0, import_react.useEffect)(() => {
|
|
182
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
182
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
183
183
|
const isQuotation = (_d = (_c = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c.getAppByModal) == null ? void 0 : _d.call(_c, "quotation");
|
|
184
|
-
|
|
184
|
+
const isHolidayQuotation = (_h = (_g = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.businessUtils) == null ? void 0 : _g.getAppByModal) == null ? void 0 : _h.call(_g, "holidayquotation");
|
|
185
|
+
if (!isQuotation && !isHolidayQuotation || !isEditClientOrDate) return;
|
|
185
186
|
updateCartQuotation({
|
|
186
|
-
customer_id: (
|
|
187
|
+
customer_id: (_j = (_i = state.client) == null ? void 0 : _i.value) == null ? void 0 : _j.id,
|
|
187
188
|
schedule_date: currentDate
|
|
188
189
|
});
|
|
189
190
|
}, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id, currentDate, isEditClientOrDate]);
|
|
@@ -752,7 +752,7 @@ var Info = (_, ref) => {
|
|
|
752
752
|
rules: [{ required: true }]
|
|
753
753
|
},
|
|
754
754
|
/* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
|
|
755
|
-
)), (holderLists == null ? void 0 : holderLists.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: isDayBookingMode ? 12 : 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
755
|
+
)), isDayBookingMode && (holderLists == null ? void 0 : holderLists.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: isDayBookingMode ? 12 : 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
756
756
|
import_antd.Form.Item,
|
|
757
757
|
{
|
|
758
758
|
label: import_utils.locales.getText("pisell2.text.holder"),
|
|
@@ -36,11 +36,9 @@ var useSelectPet = (state) => {
|
|
|
36
36
|
}, [(_a = state == null ? void 0 : state.pet) == null ? void 0 : _a.value]);
|
|
37
37
|
const holderLists = (0, import_react.useMemo)(() => {
|
|
38
38
|
var _a2;
|
|
39
|
-
const _lists = (0, import_utils.formatHolderLists)(petLists);
|
|
40
|
-
return _lists;
|
|
41
39
|
if (isDaysBookingBol) {
|
|
42
|
-
const
|
|
43
|
-
return
|
|
40
|
+
const _lists = (0, import_utils.formatHolderLists)(petLists);
|
|
41
|
+
return _lists;
|
|
44
42
|
}
|
|
45
43
|
return ((_a2 = state == null ? void 0 : state.pet) == null ? void 0 : _a2.holders) || [];
|
|
46
44
|
}, [petLists, isDaysBookingBol, (_b = state == null ? void 0 : state.pet) == null ? void 0 : _b.holders]);
|
|
@@ -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) => never[]
|
|
243
|
+
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|
|
@@ -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" | "print" | "fail" | "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" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.29",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/
|
|
62
|
+
"@pisell/date-picker": "3.0.2",
|
|
63
63
|
"@pisell/utils": "1.0.42",
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/
|
|
64
|
+
"@pisell/materials": "3.3.8",
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|