@pisell/private-materials 3.0.88 → 3.0.89
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 +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -2
- package/es/components/booking/info/service/editService/index.d.ts +2 -2
- package/es/components/booking/info/service/editService/index.js +60 -59
- package/es/components/booking/model.d.ts +1 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -2
- package/lib/components/booking/info/service/editService/index.d.ts +2 -2
- package/lib/components/booking/info/service/editService/index.js +16 -15
- package/lib/components/booking/model.d.ts +1 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ var import_like = __toESM(require("../like"));
|
|
|
48
48
|
var import_mock = require("../../../mock");
|
|
49
49
|
var import_utils4 = require("../addService/utils");
|
|
50
50
|
var Info = () => {
|
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
52
52
|
const [form] = import_antd.Form.useForm();
|
|
53
53
|
const useTotal = import_antd.Form.useWatch("total", form);
|
|
54
54
|
const useLikeStatus = import_antd.Form.useWatch("like_status", form);
|
|
@@ -276,14 +276,18 @@ var Info = () => {
|
|
|
276
276
|
return (0, import_utils3.getErrorList)(currentResource, getCurrentCacheItem());
|
|
277
277
|
}, [currentResource, useDuration, useStartTime]);
|
|
278
278
|
(0, import_ahooks.useUpdateEffect)(() => {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
var _a2;
|
|
280
|
+
if (state.service.cacheItem && !((_a2 = state.service.cacheItem) == null ? void 0 : _a2.autoClose)) {
|
|
281
|
+
if (useStartTime && useDuration && state.renderType !== "eventBooking") {
|
|
282
|
+
getResources();
|
|
283
|
+
}
|
|
281
284
|
}
|
|
282
285
|
}, [
|
|
283
286
|
useStartTime,
|
|
284
287
|
useDuration,
|
|
285
288
|
state.renderType,
|
|
286
|
-
state.service.resourcesOrigin
|
|
289
|
+
state.service.resourcesOrigin,
|
|
290
|
+
(_d = state.service.cacheItem) == null ? void 0 : _d.autoClose
|
|
287
291
|
]);
|
|
288
292
|
(0, import_react.useEffect)(() => {
|
|
289
293
|
setEditData();
|
|
@@ -300,7 +304,7 @@ var Info = () => {
|
|
|
300
304
|
return false;
|
|
301
305
|
}
|
|
302
306
|
return useTotal != ((_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend.origin_total);
|
|
303
|
-
}, [useTotal, (
|
|
307
|
+
}, [useTotal, (_f = (_e = state.service) == null ? void 0 : _e.cacheItem) == null ? void 0 : _f._extend.origin_total]);
|
|
304
308
|
(0, import_react.useEffect)(() => {
|
|
305
309
|
if (useResource === 0) {
|
|
306
310
|
handleLikeResource("common");
|
|
@@ -309,7 +313,7 @@ var Info = () => {
|
|
|
309
313
|
const bundles = (0, import_react.useMemo)(() => {
|
|
310
314
|
var _a2, _b2, _c2, _d2;
|
|
311
315
|
return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
|
|
312
|
-
}, [(
|
|
316
|
+
}, [(_j = (_i = (_h = (_g = state.service) == null ? void 0 : _g.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.other) == null ? void 0 : _j.bundle]);
|
|
313
317
|
const getResourcesData = async () => {
|
|
314
318
|
setResourceLoading(true);
|
|
315
319
|
try {
|
|
@@ -335,13 +339,13 @@ var Info = () => {
|
|
|
335
339
|
(0, import_react.useEffect)(() => {
|
|
336
340
|
getResourcesData();
|
|
337
341
|
}, [state.date.value]);
|
|
338
|
-
const SelectTime = (
|
|
342
|
+
const SelectTime = (_k = window.BaseMaterials) == null ? void 0 : _k.SelectTime;
|
|
339
343
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
340
344
|
import_drawer.default,
|
|
341
345
|
{
|
|
342
346
|
zIndex: 1e3,
|
|
343
347
|
forceRender: true,
|
|
344
|
-
open: state.service.editModal && !((
|
|
348
|
+
open: state.service.editModal && !((_l = state.service.cacheItem) == null ? void 0 : _l.autoClose),
|
|
345
349
|
title: import_utils.locales.getText("pisell2.text.edit-service"),
|
|
346
350
|
onClose: () => {
|
|
347
351
|
dispatch({
|
|
@@ -370,7 +374,7 @@ var Info = () => {
|
|
|
370
374
|
});
|
|
371
375
|
}
|
|
372
376
|
},
|
|
373
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((
|
|
377
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_o = (_n = (_m = state.service) == null ? void 0 : _m.cacheItem) == null ? void 0 : _n._extend) == null ? void 0 : _o.product_name) || "-"),
|
|
374
378
|
/* @__PURE__ */ import_react.default.createElement(
|
|
375
379
|
import_collapsibleList.default,
|
|
376
380
|
{
|
|
@@ -395,8 +399,8 @@ var Info = () => {
|
|
|
395
399
|
precision: 2,
|
|
396
400
|
style: { width: "100%" },
|
|
397
401
|
min: 0,
|
|
398
|
-
max: ((
|
|
399
|
-
placeholder: ((
|
|
402
|
+
max: ((_q = (_p = state.service.cacheItem) == null ? void 0 : _p._extend) == null ? void 0 : _q.origin_total) || 0,
|
|
403
|
+
placeholder: ((_s = (_r = state.service.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.origin_total) || "0"
|
|
400
404
|
}
|
|
401
405
|
)
|
|
402
406
|
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -436,10 +440,7 @@ var Info = () => {
|
|
|
436
440
|
SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
437
441
|
SelectTime,
|
|
438
442
|
{
|
|
439
|
-
slice: (
|
|
440
|
-
onChange: (e) => {
|
|
441
|
-
console.log("eeee", e);
|
|
442
|
-
},
|
|
443
|
+
slice: (_w = (_v = (_u = (_t = state.bookingConfig) == null ? void 0 : _t.config) == null ? void 0 : _u.basic) == null ? void 0 : _v.service_time) == null ? void 0 : _w.value,
|
|
443
444
|
timePickerProps: {
|
|
444
445
|
style: { width: "100%" }
|
|
445
446
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -96,7 +95,7 @@ export declare const walkInData: {
|
|
|
96
95
|
id: number;
|
|
97
96
|
nickname: string;
|
|
98
97
|
};
|
|
99
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
98
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
100
99
|
state: FormState;
|
|
101
100
|
} & {
|
|
102
101
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,7 +68,7 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
71
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
73
72
|
state: FormState;
|
|
74
73
|
} & {
|
|
75
74
|
dispatch: (params: {
|