@pisell/private-materials 3.0.60 → 3.0.61
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/preview.js +8 -8
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.js +5 -5
- package/es/components/booking/components/customSelect/index.js +40 -7
- package/es/components/booking/components/footer/utils.js +12 -7
- package/es/components/booking/forms/index.js +136 -63
- package/es/components/booking/forms/single/index.js +1 -1
- package/es/components/booking/info/client/index.js +124 -31
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/client/serve.js +51 -0
- package/es/components/booking/info/index.js +8 -5
- package/es/components/booking/info/pet/index.js +4 -2
- package/es/components/booking/info/service/addService/index.js +0 -1
- package/es/components/booking/model.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +4 -4
- package/lib/components/booking/components/footer/utils.js +8 -5
- package/lib/components/booking/forms/index.js +38 -3
- package/lib/components/booking/forms/single/index.js +1 -1
- package/lib/components/booking/info/client/index.js +40 -9
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/client/serve.js +39 -0
- package/lib/components/booking/info/index.js +5 -2
- package/lib/components/booking/info/pet/index.js +2 -1
- package/lib/components/booking/info/service/addService/index.js +0 -1
- package/lib/components/booking/model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/booking/info/client/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
getFranchiseeCustomerInfo: () => getFranchiseeCustomerInfo,
|
|
23
|
+
getFranchiseeCustomerList: () => getFranchiseeCustomerList
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(serve_exports);
|
|
26
|
+
var import_utils = require("../../utils");
|
|
27
|
+
var getFranchiseeCustomerInfo = async (params) => {
|
|
28
|
+
let { data } = await import_utils.request.getRequest().get(`/shop/franchisee/customer/id`, params);
|
|
29
|
+
return data;
|
|
30
|
+
};
|
|
31
|
+
var getFranchiseeCustomerList = async (params) => {
|
|
32
|
+
let { data } = await import_utils.request.getRequest().get(`/shop/franchisee/customer/select-list`, params, { abort: true });
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
getFranchiseeCustomerInfo,
|
|
38
|
+
getFranchiseeCustomerList
|
|
39
|
+
});
|
|
@@ -62,6 +62,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
62
62
|
const { style, globalState, modules = defaultModules, slot } = props;
|
|
63
63
|
const modal = (0, import_react.useContext)(import_model.Context);
|
|
64
64
|
const context = (0, import_useEngineContext.default)();
|
|
65
|
+
import_utils2.request.setRequest(context.appHelper.utils.request);
|
|
65
66
|
const params = (0, import_react.useMemo)(() => {
|
|
66
67
|
var _a2, _b2, _c2, _d2;
|
|
67
68
|
return ((_d2 = (_c2 = (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.bookingConfig) == null ? void 0 : _b2.config) == null ? void 0 : _c2.basic) == null ? void 0 : _d2.appointment_subject) || {};
|
|
@@ -82,13 +83,15 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
82
83
|
}
|
|
83
84
|
}, []);
|
|
84
85
|
(0, import_react.useEffect)(() => {
|
|
85
|
-
var _a2, _b2, _c2;
|
|
86
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
87
|
+
const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
|
|
86
88
|
modal.dispatch({
|
|
87
89
|
type: "setState",
|
|
88
90
|
payload: {
|
|
89
91
|
setGlobalState: props.setGlobalState,
|
|
90
92
|
...globalState,
|
|
91
|
-
isTerminal: (
|
|
93
|
+
isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
|
|
94
|
+
isFranchisee
|
|
92
95
|
}
|
|
93
96
|
});
|
|
94
97
|
}, [globalState]);
|
|
@@ -85,7 +85,8 @@ var Pet = () => {
|
|
|
85
85
|
if (!noClient) {
|
|
86
86
|
let _values = {
|
|
87
87
|
form_id: boardParams.form_id,
|
|
88
|
-
..._params
|
|
88
|
+
..._params,
|
|
89
|
+
source_shop_customer: petForm == null ? void 0 : petForm.is_franchisor
|
|
89
90
|
};
|
|
90
91
|
if (formData.data_range === "customer") {
|
|
91
92
|
_values.customer_id = (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id;
|
|
@@ -277,7 +277,6 @@ var Info = () => {
|
|
|
277
277
|
state.service.value,
|
|
278
278
|
loading
|
|
279
279
|
]);
|
|
280
|
-
console.log(state.service.addModal, "state.service.addModal");
|
|
281
280
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_c = (_b = state.service) == null ? void 0 : _b.cacheItem) == null ? void 0 : _c.autoClose) && /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }), addButton, /* @__PURE__ */ import_react.default.createElement(
|
|
282
281
|
import_drawer.default,
|
|
283
282
|
{
|