@pisell/private-materials 6.12.357 → 6.12.358
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/Item/index.js +5 -2
- package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- package/es/utils/buildCartHolderParams.js +4 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -2
- package/lib/utils/buildCartHolderParams.js +4 -1
- package/package.json +1 -1
|
@@ -112,14 +112,17 @@ const CartItem = ({ onNext, renderContactInfo }) => {
|
|
|
112
112
|
if ((res === null || res === void 0 ? void 0 : res.status) === "success") {
|
|
113
113
|
let result = void 0;
|
|
114
114
|
if (formId) {
|
|
115
|
-
const { formRecordId,
|
|
115
|
+
const { formRecordId, formId: holderFormId } = handleCartHolderFormSuccess({
|
|
116
116
|
res,
|
|
117
117
|
formId,
|
|
118
118
|
skuRelationFormId,
|
|
119
119
|
utils,
|
|
120
120
|
module: appointmentBooking
|
|
121
121
|
});
|
|
122
|
-
result = buildCartHolderOption(_objectSpread2(_objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, {
|
|
122
|
+
result = buildCartHolderOption(_objectSpread2(_objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, {
|
|
123
|
+
formRecordId,
|
|
124
|
+
form_id: holderFormId
|
|
125
|
+
}), utils);
|
|
123
126
|
appointmentBooking.updateCart({
|
|
124
127
|
_id: e === null || e === void 0 ? void 0 : e._id,
|
|
125
128
|
account: result
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
4
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
5
5
|
//#region src/plus/saasDevice/devicePasscodes/model.ts
|
|
6
|
-
dayjs.extend(
|
|
7
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utcPlugin);
|
|
7
|
+
dayjs.extend(timezonePlugin);
|
|
8
8
|
const INITIAL_DEVICE_PASSCODE_STATE = {
|
|
9
9
|
deviceIds: [],
|
|
10
10
|
devicesById: {}
|
|
@@ -6,12 +6,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
|
|
|
6
6
|
import { locales } from "@pisell/utils";
|
|
7
7
|
import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
|
|
8
8
|
import { useRequest } from "ahooks";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
10
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
11
11
|
import "./index.less";
|
|
12
12
|
//#region src/plus/walletPassGallery/components/timelineSection/index.tsx
|
|
13
|
-
dayjs.extend(
|
|
14
|
-
dayjs.extend(
|
|
13
|
+
dayjs.extend(timezonePlugin);
|
|
14
|
+
dayjs.extend(utcPlugin);
|
|
15
15
|
const stateTimeUnix = 1723255863;
|
|
16
16
|
const POLL_INTERVAL = 2e3;
|
|
17
17
|
const POLL_MAX_TIMES = 5;
|
|
@@ -48,7 +48,10 @@ const createCartHolderOption = (holder, customerId) => {
|
|
|
48
48
|
name: holder === null || holder === void 0 ? void 0 : holder.main_field,
|
|
49
49
|
username: holder === null || holder === void 0 ? void 0 : holder.main_field,
|
|
50
50
|
type: "holder",
|
|
51
|
-
_origin: _objectSpread2(_objectSpread2({}, holder), {}, {
|
|
51
|
+
_origin: _objectSpread2(_objectSpread2({}, holder), {}, {
|
|
52
|
+
form_record_id: _id,
|
|
53
|
+
customer_id: customerId
|
|
54
|
+
})
|
|
52
55
|
};
|
|
53
56
|
};
|
|
54
57
|
/**
|
|
@@ -114,14 +114,17 @@ const CartItem = ({ onNext, renderContactInfo }) => {
|
|
|
114
114
|
if ((res === null || res === void 0 ? void 0 : res.status) === "success") {
|
|
115
115
|
let result = void 0;
|
|
116
116
|
if (formId) {
|
|
117
|
-
const { formRecordId,
|
|
117
|
+
const { formRecordId, formId: holderFormId } = require_buildCartHolderParams.handleCartHolderFormSuccess({
|
|
118
118
|
res,
|
|
119
119
|
formId,
|
|
120
120
|
skuRelationFormId,
|
|
121
121
|
utils,
|
|
122
122
|
module: appointmentBooking
|
|
123
123
|
});
|
|
124
|
-
result = require_buildCartHolderParams.buildCartHolderOption(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, {
|
|
124
|
+
result = require_buildCartHolderParams.buildCartHolderOption(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, {
|
|
125
|
+
formRecordId,
|
|
126
|
+
form_id: holderFormId
|
|
127
|
+
}), utils);
|
|
125
128
|
appointmentBooking.updateCart({
|
|
126
129
|
_id: e === null || e === void 0 ? void 0 : e._id,
|
|
127
130
|
account: result
|
|
@@ -48,7 +48,10 @@ const createCartHolderOption = (holder, customerId) => {
|
|
|
48
48
|
name: holder === null || holder === void 0 ? void 0 : holder.main_field,
|
|
49
49
|
username: holder === null || holder === void 0 ? void 0 : holder.main_field,
|
|
50
50
|
type: "holder",
|
|
51
|
-
_origin: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, holder), {}, {
|
|
51
|
+
_origin: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, holder), {}, {
|
|
52
|
+
form_record_id: _id,
|
|
53
|
+
customer_id: customerId
|
|
54
|
+
})
|
|
52
55
|
};
|
|
53
56
|
};
|
|
54
57
|
/**
|