@pisell/private-materials 3.3.40 → 3.3.41
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/components/appointmentBooking/components/Cart/ContinueButton/index.js +3 -2
- package/es/components/appointmentBooking/hooks.js +1 -1
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +2 -2
- package/lib/components/appointmentBooking/hooks.js +1 -1
- package/package.json +3 -3
|
@@ -32,7 +32,7 @@ var ContinueButton = function ContinueButton(_ref) {
|
|
|
32
32
|
isLastStep = _ref2.isLastStep;
|
|
33
33
|
var _useAppointmentBookin3 = useAppointmentBookingSetting(),
|
|
34
34
|
isFormSubject = _useAppointmentBookin3.isFormSubject,
|
|
35
|
-
|
|
35
|
+
isRetailTemplate = _useAppointmentBookin3.isRetailTemplate;
|
|
36
36
|
var stepList = useMemo(function () {
|
|
37
37
|
var _appointmentBooking$s;
|
|
38
38
|
return appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 || (_appointmentBooking$s = _appointmentBooking$s.step) === null || _appointmentBooking$s === void 0 || (_appointmentBooking$s = _appointmentBooking$s.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.stepList;
|
|
@@ -46,7 +46,8 @@ var ContinueButton = function ContinueButton(_ref) {
|
|
|
46
46
|
* @Date: 2025-04-28 11:41
|
|
47
47
|
*/
|
|
48
48
|
var handleCheckAccount = function handleCheckAccount() {
|
|
49
|
-
|
|
49
|
+
// 如果是零售订单,则不需要验证holder
|
|
50
|
+
if (isRetailTemplate) return false;
|
|
50
51
|
var result = checkHolder({
|
|
51
52
|
isFormSubject: isFormSubject,
|
|
52
53
|
checkAccount: checkAccount,
|
|
@@ -132,7 +132,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
132
132
|
var stepList = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s2 = appointmentBooking.store) === null || _appointmentBooking$s2 === void 0 || (_appointmentBooking$s2 = _appointmentBooking$s2.step) === null || _appointmentBooking$s2 === void 0 || (_appointmentBooking$s2 = _appointmentBooking$s2.store) === null || _appointmentBooking$s2 === void 0 ? void 0 : _appointmentBooking$s2.stepList) || [];
|
|
133
133
|
|
|
134
134
|
// 倒数第二步
|
|
135
|
-
if ((currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 2
|
|
135
|
+
if ((currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 2 >= (stepList === null || stepList === void 0 ? void 0 : stepList.length)) {
|
|
136
136
|
var _policyIdsRef$current;
|
|
137
137
|
// 如果没有同意资源上挂接的协议,则打开协议弹窗
|
|
138
138
|
if (policyIdsRef !== null && policyIdsRef !== void 0 && (_policyIdsRef$current = policyIdsRef.current) !== null && _policyIdsRef$current !== void 0 && _policyIdsRef$current.length) {
|
|
@@ -55,13 +55,13 @@ var ContinueButton = ({ onNext }) => {
|
|
|
55
55
|
setIsErrorHolder,
|
|
56
56
|
isLastStep
|
|
57
57
|
} = (0, import_context.useAppointmentBookingContext)();
|
|
58
|
-
const { isFormSubject,
|
|
58
|
+
const { isFormSubject, isRetailTemplate } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
59
59
|
const stepList = (0, import_react.useMemo)(() => {
|
|
60
60
|
var _a2, _b2, _c2;
|
|
61
61
|
return (_c2 = (_b2 = (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a2.step) == null ? void 0 : _b2.store) == null ? void 0 : _c2.stepList;
|
|
62
62
|
}, [(_c = (_b = (_a = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a.step) == null ? void 0 : _b.store) == null ? void 0 : _c.stepList]);
|
|
63
63
|
const handleCheckAccount = () => {
|
|
64
|
-
if (
|
|
64
|
+
if (isRetailTemplate) return false;
|
|
65
65
|
const result = (0, import_utils2.checkHolder)({
|
|
66
66
|
isFormSubject,
|
|
67
67
|
checkAccount,
|
|
@@ -121,7 +121,7 @@ var useAppointmentBookingStep = () => {
|
|
|
121
121
|
}
|
|
122
122
|
const currentStep = appointmentBooking == null ? void 0 : appointmentBooking.getCurrentStep();
|
|
123
123
|
const stepList2 = ((_c2 = (_b2 = (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a2.step) == null ? void 0 : _b2.store) == null ? void 0 : _c2.stepList) || [];
|
|
124
|
-
if ((currentStep == null ? void 0 : currentStep.index) + 2
|
|
124
|
+
if ((currentStep == null ? void 0 : currentStep.index) + 2 >= (stepList2 == null ? void 0 : stepList2.length)) {
|
|
125
125
|
if ((_d = policyIdsRef == null ? void 0 : policyIdsRef.current) == null ? void 0 : _d.length) {
|
|
126
126
|
let idx = 0;
|
|
127
127
|
const showNextPolicy = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.41",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
63
|
"@pisell/materials": "3.3.14",
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/
|
|
64
|
+
"@pisell/date-picker": "3.0.2",
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|