@pisell/private-materials 3.0.157-gray → 3.0.157
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.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/components/footer/index.js +3 -3
- package/es/components/booking/forms/forms.d.ts +0 -1
- package/es/components/booking/forms/forms.js +2 -4
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +3 -4
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +2 -4
- package/es/components/booking/info/clientVariant/vertical/index.js +5 -6
- package/es/components/booking/info/clientVariant/vertical/index.less +0 -8
- package/es/components/booking/info/index.less +0 -9
- package/es/components/booking/info/pet/index.js +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +2 -8
- package/es/components/booking/info/service/addService/index.js +36 -82
- package/es/components/booking/info/service/addService/index.less +1 -27
- package/es/components/booking/info/service/editService/index.js +13 -11
- package/es/components/booking/locales.d.ts +0 -48
- package/es/components/booking/locales.js +3 -51
- package/es/components/booking/model.d.ts +0 -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/model.d.ts +1 -2
- package/es/components/booking/utils.d.ts +1 -1
- package/es/components/booking/utils.js +51 -54
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/components/schedules/resources/add/index.js +9 -9
- package/es/components/schedules/resources/edit/index.d.ts +4 -0
- package/es/components/schedules/resources/edit/index.js +116 -0
- package/es/components/schedules/resources/edit/index.less +19 -0
- package/es/components/schedules/resources/index.d.ts +2 -2
- package/es/components/schedules/resources/index.js +24 -16
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/components/footer/index.js +3 -3
- package/lib/components/booking/forms/forms.d.ts +0 -1
- package/lib/components/booking/forms/forms.js +2 -5
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +2 -4
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +2 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +76 -88
- package/lib/components/booking/info/clientVariant/vertical/index.less +0 -8
- package/lib/components/booking/info/index.less +0 -9
- package/lib/components/booking/info/pet/index.js +1 -2
- package/lib/components/booking/info/service/addService/index.d.ts +2 -8
- package/lib/components/booking/info/service/addService/index.js +29 -66
- package/lib/components/booking/info/service/addService/index.less +1 -27
- package/lib/components/booking/info/service/editService/index.js +6 -9
- package/lib/components/booking/locales.d.ts +0 -48
- package/lib/components/booking/locales.js +3 -51
- package/lib/components/booking/model.d.ts +0 -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/model.d.ts +1 -2
- package/lib/components/booking/utils.d.ts +1 -1
- package/lib/components/booking/utils.js +22 -57
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/components/schedules/resources/add/index.js +7 -7
- package/lib/components/schedules/resources/edit/index.d.ts +4 -0
- package/lib/components/schedules/resources/edit/index.js +132 -0
- package/lib/components/schedules/resources/edit/index.less +19 -0
- package/lib/components/schedules/resources/index.d.ts +2 -2
- package/lib/components/schedules/resources/index.js +7 -4
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/package.json +4 -4
- package/es/components/booking/dashboard/index.d.ts +0 -20
- package/es/components/booking/dashboard/index.js +0 -253
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/dashboard/serve.js +0 -27
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/addServiceVariant/index.js +0 -33
- package/lib/components/booking/dashboard/index.d.ts +0 -20
- package/lib/components/booking/dashboard/index.js +0 -251
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/dashboard/serve.js +0 -33
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/addServiceVariant/index.js +0 -58
- package/lowcode/booking-dashboard/meta.ts +0 -137
- package/lowcode/booking-vertical-add-service/meta.ts +0 -124
- package/lowcode/vertical-add-service/meta.ts +0 -71
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.pisell-lowcode__schedules-component-resources-detail-footer {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
position: absolute;
|
|
6
|
+
padding: 8px 16px;
|
|
7
|
+
border-top: 1px solid rgba(22, 44, 88, 0.09);
|
|
8
|
+
bottom: 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
left: 0;
|
|
11
|
+
background-color: #ffffff;
|
|
12
|
+
z-index: 999;
|
|
13
|
+
.footer-btn {
|
|
14
|
+
flex: 1;
|
|
15
|
+
&.cancel-btn {
|
|
16
|
+
margin-right: 12px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -10,18 +10,19 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { useRequest } from
|
|
14
|
-
import { Collapse, Empty, Skeleton } from
|
|
15
|
-
import React, { useContext, useEffect, useMemo, useRef, useState } from
|
|
13
|
+
import { useRequest } from 'ahooks';
|
|
14
|
+
import { Collapse, Empty, Skeleton } from 'antd';
|
|
15
|
+
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
16
16
|
import CurrentDay from "../components/CurrentDay";
|
|
17
17
|
import Search from "../components/Search";
|
|
18
18
|
import { Context } from "../model";
|
|
19
19
|
import ResourcesAdd from "./add";
|
|
20
|
+
import ResourcesEdit from "./edit";
|
|
20
21
|
import ResourcesDetail from "./detail";
|
|
21
22
|
import "./index.less";
|
|
22
23
|
import List from "./list";
|
|
23
24
|
import { getFormTypes, getRelationResource } from "./serve";
|
|
24
|
-
import { locales } from
|
|
25
|
+
import { locales } from '@pisell/utils';
|
|
25
26
|
var Resources = function Resources() {
|
|
26
27
|
var _useContext = useContext(Context),
|
|
27
28
|
state = _useContext.state,
|
|
@@ -31,8 +32,9 @@ var Resources = function Resources() {
|
|
|
31
32
|
tabKey = state.tabKey;
|
|
32
33
|
var cacheResource = resources === null || resources === void 0 ? void 0 : resources.cacheResource;
|
|
33
34
|
var resourcesAddRef = useRef();
|
|
35
|
+
var resourcesEditRef = useRef();
|
|
34
36
|
var resourcesDetailRef = useRef();
|
|
35
|
-
var _useState = useState(
|
|
37
|
+
var _useState = useState(''),
|
|
36
38
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
39
|
seachText = _useState2[0],
|
|
38
40
|
setSearchText = _useState2[1];
|
|
@@ -89,12 +91,12 @@ var Resources = function Resources() {
|
|
|
89
91
|
skip: 1,
|
|
90
92
|
num: 500,
|
|
91
93
|
schedule_ids: currentSelectDayDetail ? currentSelectDayDetail.scheduleIds || [] : undefined,
|
|
92
|
-
exclude_form_code: [
|
|
94
|
+
exclude_form_code: ['opening_hours']
|
|
93
95
|
}, params || null);
|
|
94
96
|
};
|
|
95
97
|
useEffect(function () {
|
|
96
98
|
_getFormTypes.run({
|
|
97
|
-
type:
|
|
99
|
+
type: 'manual',
|
|
98
100
|
num: 500,
|
|
99
101
|
skip: 1
|
|
100
102
|
});
|
|
@@ -104,13 +106,14 @@ var Resources = function Resources() {
|
|
|
104
106
|
}, [currentSelectDayDetail === null || currentSelectDayDetail === void 0 ? void 0 : currentSelectDayDetail.scheduleIds]);
|
|
105
107
|
useEffect(function () {
|
|
106
108
|
if (cacheResource) {
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
+
var _resourcesEditRef$cur, _resourcesEditRef$cur2;
|
|
110
|
+
// resourcesDetailRef.current?.open?.(cacheResource);
|
|
111
|
+
(_resourcesEditRef$cur = resourcesEditRef.current) === null || _resourcesEditRef$cur === void 0 ? void 0 : (_resourcesEditRef$cur2 = _resourcesEditRef$cur.open) === null || _resourcesEditRef$cur2 === void 0 ? void 0 : _resourcesEditRef$cur2.call(_resourcesEditRef$cur, cacheResource);
|
|
109
112
|
// 滚动到 id 对应的位置
|
|
110
113
|
setTimeout(function () {
|
|
111
114
|
var _el$scrollIntoView;
|
|
112
115
|
var el = document.getElementById("".concat(cacheResource.id));
|
|
113
|
-
console.log(
|
|
116
|
+
console.log('el', el);
|
|
114
117
|
el === null || el === void 0 ? void 0 : (_el$scrollIntoView = el.scrollIntoView) === null || _el$scrollIntoView === void 0 ? void 0 : _el$scrollIntoView.call(el, true);
|
|
115
118
|
}, 100);
|
|
116
119
|
}
|
|
@@ -142,7 +145,8 @@ var Resources = function Resources() {
|
|
|
142
145
|
list: resources.map(function (resource) {
|
|
143
146
|
return {
|
|
144
147
|
id: resource.id,
|
|
145
|
-
title: resource.title
|
|
148
|
+
title: resource.title,
|
|
149
|
+
form_id: item.id
|
|
146
150
|
};
|
|
147
151
|
}),
|
|
148
152
|
addClick: function addClick() {
|
|
@@ -150,8 +154,9 @@ var Resources = function Resources() {
|
|
|
150
154
|
(_resourcesAddRef$curr = resourcesAddRef.current) === null || _resourcesAddRef$curr === void 0 ? void 0 : (_resourcesAddRef$curr2 = _resourcesAddRef$curr.open) === null || _resourcesAddRef$curr2 === void 0 ? void 0 : _resourcesAddRef$curr2.call(_resourcesAddRef$curr, item.id);
|
|
151
155
|
},
|
|
152
156
|
itemClick: function itemClick(resource) {
|
|
153
|
-
var
|
|
154
|
-
|
|
157
|
+
var _resourcesEditRef$cur3, _resourcesEditRef$cur4;
|
|
158
|
+
// resourcesDetailRef.current?.open?.(resource);
|
|
159
|
+
(_resourcesEditRef$cur3 = resourcesEditRef.current) === null || _resourcesEditRef$cur3 === void 0 ? void 0 : (_resourcesEditRef$cur4 = _resourcesEditRef$cur3.open) === null || _resourcesEditRef$cur4 === void 0 ? void 0 : _resourcesEditRef$cur4.call(_resourcesEditRef$cur3, resource);
|
|
155
160
|
}
|
|
156
161
|
})
|
|
157
162
|
};
|
|
@@ -159,7 +164,7 @@ var Resources = function Resources() {
|
|
|
159
164
|
}, [formTypes, seachText, relationResource]);
|
|
160
165
|
var handleClose = function handleClose() {
|
|
161
166
|
dispatch({
|
|
162
|
-
type:
|
|
167
|
+
type: 'setState',
|
|
163
168
|
payload: {
|
|
164
169
|
currentSelectDayDetail: null
|
|
165
170
|
}
|
|
@@ -169,7 +174,7 @@ var Resources = function Resources() {
|
|
|
169
174
|
className: "pisell-lowcode__schedules-component-resources"
|
|
170
175
|
}, /*#__PURE__*/React.createElement("div", {
|
|
171
176
|
style: {
|
|
172
|
-
padding:
|
|
177
|
+
padding: '0 32px'
|
|
173
178
|
}
|
|
174
179
|
}, /*#__PURE__*/React.createElement(CurrentDay, {
|
|
175
180
|
onClose: handleClose,
|
|
@@ -196,10 +201,13 @@ var Resources = function Resources() {
|
|
|
196
201
|
}
|
|
197
202
|
}) : /*#__PURE__*/React.createElement(Empty, {
|
|
198
203
|
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
199
|
-
description: locales.getText(
|
|
204
|
+
description: locales.getText('pisell2.text.products.no-resources')
|
|
200
205
|
})))), /*#__PURE__*/React.createElement(ResourcesAdd, {
|
|
201
206
|
ref: resourcesAddRef,
|
|
202
207
|
onSuccess: init
|
|
208
|
+
}), /*#__PURE__*/React.createElement(ResourcesEdit, {
|
|
209
|
+
ref: resourcesEditRef,
|
|
210
|
+
onSuccess: init
|
|
203
211
|
}), /*#__PURE__*/React.createElement(ResourcesDetail, {
|
|
204
212
|
tabKey: tabKey,
|
|
205
213
|
ref: resourcesDetailRef,
|
package/es/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export { default as BookingStartTime } from './components/booking/materiels/star
|
|
|
12
12
|
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
13
|
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
14
|
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
15
|
-
export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
|
|
16
15
|
export { default as ProductExtension } from './components/productExtension';
|
|
17
16
|
export { default as BookingDeposit } from './components/booking/deposit';
|
|
18
17
|
export { default as RuleSetting } from './components/ruleSetting';
|
|
@@ -20,4 +19,3 @@ export { default as TaxSelect } from './components/taxSelect';
|
|
|
20
19
|
export { default as ToCPay } from './components/pay/toC';
|
|
21
20
|
export { default as Eftpos } from './components/eftpos';
|
|
22
21
|
export { default as EftposPay } from './components/eftposPay';
|
|
23
|
-
export { default as BookingDashboard } from './components/booking/dashboard';
|
package/es/index.js
CHANGED
|
@@ -16,12 +16,10 @@ export { default as BookingStartTime } from "./components/booking/materiels/star
|
|
|
16
16
|
export { default as BookingDuration } from "./components/booking/materiels/duration";
|
|
17
17
|
export { default as BookingContacts } from "./components/booking/materiels/contacts";
|
|
18
18
|
export { VerticalClient } from "./components/booking/info/clientVariant";
|
|
19
|
-
export { default as VerticalAddService } from "./components/booking/info/addServiceVariant";
|
|
20
19
|
export { default as ProductExtension } from "./components/productExtension";
|
|
21
20
|
export { default as BookingDeposit } from "./components/booking/deposit";
|
|
22
21
|
export { default as RuleSetting } from "./components/ruleSetting";
|
|
23
22
|
export { default as TaxSelect } from "./components/taxSelect";
|
|
24
23
|
export { default as ToCPay } from "./components/pay/toC";
|
|
25
24
|
export { default as Eftpos } from "./components/eftpos";
|
|
26
|
-
export { default as EftposPay } from "./components/eftposPay";
|
|
27
|
-
export { default as BookingDashboard } from "./components/booking/dashboard";
|
|
25
|
+
export { default as EftposPay } from "./components/eftposPay";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
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: {
|
|
@@ -622,7 +622,7 @@ var Footer = (props) => {
|
|
|
622
622
|
}
|
|
623
623
|
if (transaction_habit_selection.button_rows == 1) {
|
|
624
624
|
if (state.appointment_status !== "cancelled") {
|
|
625
|
-
if (!state.disabledEdit
|
|
625
|
+
if (!state.disabledEdit) {
|
|
626
626
|
arr.push(actionMap.sale);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
@@ -722,7 +722,7 @@ var Footer = (props) => {
|
|
|
722
722
|
if (!state.bookingDetail) {
|
|
723
723
|
return true;
|
|
724
724
|
}
|
|
725
|
-
if (!((_a2 = state.addons) == null ? void 0 : _a2.load) && state.renderType !== "eventBooking"
|
|
725
|
+
if (!((_a2 = state.addons) == null ? void 0 : _a2.load) && state.renderType !== "eventBooking") {
|
|
726
726
|
return true;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
@@ -836,7 +836,7 @@ var Footer = (props) => {
|
|
|
836
836
|
className: "pisell-lowcode__booking-footer-buttons",
|
|
837
837
|
style: { marginTop: 12 }
|
|
838
838
|
},
|
|
839
|
-
state.appointment_status !== "cancelled"
|
|
839
|
+
state.appointment_status !== "cancelled" ? /* @__PURE__ */ import_react.default.createElement(
|
|
840
840
|
import_antd2.Button,
|
|
841
841
|
{
|
|
842
842
|
onClick: () => handleSale(),
|
|
@@ -53,8 +53,7 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
53
53
|
addCallback,
|
|
54
54
|
client,
|
|
55
55
|
loading,
|
|
56
|
-
addButtonProps
|
|
57
|
-
drawerProps
|
|
56
|
+
addButtonProps
|
|
58
57
|
} = props;
|
|
59
58
|
const onAction = (0, import_ahooks.useMemoizedFn)(
|
|
60
59
|
async (formDataConfig, isAdd) => {
|
|
@@ -151,7 +150,6 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
151
150
|
onChange: (val) => {
|
|
152
151
|
onValueChange(d, val);
|
|
153
152
|
},
|
|
154
|
-
drawerProps,
|
|
155
153
|
onAdd: () => {
|
|
156
154
|
onAction(d, true);
|
|
157
155
|
},
|
|
@@ -192,8 +190,7 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
192
190
|
client == null ? void 0 : client.id,
|
|
193
191
|
addButtonProps,
|
|
194
192
|
customSelectProps,
|
|
195
|
-
optionRender
|
|
196
|
-
drawerProps
|
|
193
|
+
optionRender
|
|
197
194
|
]);
|
|
198
195
|
});
|
|
199
196
|
var forms_default = Forms;
|
|
@@ -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: {
|
|
@@ -7,5 +7,5 @@ import "./index.less";
|
|
|
7
7
|
* @Author: zhiwei.Wang
|
|
8
8
|
* @Date: 2024-01-30 17:06
|
|
9
9
|
*/
|
|
10
|
-
declare const Single: ({ value, onChange, form, mode, optionRender, loading, customSelectProps, onAdd, addButtonProps, modalOpen, watch,
|
|
10
|
+
declare const Single: ({ value, onChange, form, mode, optionRender, loading, customSelectProps, onAdd, addButtonProps, modalOpen, watch, }: any) => React.JSX.Element;
|
|
11
11
|
export default Single;
|
|
@@ -53,8 +53,7 @@ var Single = ({
|
|
|
53
53
|
onAdd,
|
|
54
54
|
addButtonProps,
|
|
55
55
|
modalOpen,
|
|
56
|
-
watch
|
|
57
|
-
drawerProps
|
|
56
|
+
watch
|
|
58
57
|
}) => {
|
|
59
58
|
var _a, _b;
|
|
60
59
|
const [HumanBodySelector] = (0, import_useComponents.default)({
|
|
@@ -178,8 +177,7 @@ var Single = ({
|
|
|
178
177
|
addButtonProps: _addButtonProps,
|
|
179
178
|
drawerProps: {
|
|
180
179
|
title: `${import_utils.locales.getText("pisell2.text.select")} ${((_b = form.form) == null ? void 0 : _b.title) || "-"}`,
|
|
181
|
-
destroyOnClose: true
|
|
182
|
-
...drawerProps || {}
|
|
180
|
+
destroyOnClose: true
|
|
183
181
|
},
|
|
184
182
|
optionRender: _optionRender,
|
|
185
183
|
rowKey: "form_record_id",
|
|
@@ -18,7 +18,6 @@ interface SelectDrawerProps {
|
|
|
18
18
|
handleAddPet: any;
|
|
19
19
|
modalOpen: boolean;
|
|
20
20
|
franchiseeLoading?: number;
|
|
21
|
-
showHeader?: boolean;
|
|
22
21
|
}
|
|
23
22
|
declare const _default: React.ForwardRefExoticComponent<SelectDrawerProps & React.RefAttributes<unknown>>;
|
|
24
23
|
export default _default;
|
|
@@ -107,8 +107,7 @@ var SelectDrawer = (props, ref) => {
|
|
|
107
107
|
showPet,
|
|
108
108
|
handleAddPet,
|
|
109
109
|
modalOpen,
|
|
110
|
-
franchiseeLoading
|
|
111
|
-
showHeader
|
|
110
|
+
franchiseeLoading
|
|
112
111
|
} = props;
|
|
113
112
|
const form = (formData == null ? void 0 : formData[0]) || {};
|
|
114
113
|
const valList = (childrenValue == null ? void 0 : childrenValue[form.id]) || defaultArr;
|
|
@@ -274,8 +273,7 @@ var SelectDrawer = (props, ref) => {
|
|
|
274
273
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
275
274
|
import_drawer.default,
|
|
276
275
|
{
|
|
277
|
-
|
|
278
|
-
title: showHeader && import_utils.locales.getText("pisell2.text.select-customer"),
|
|
276
|
+
title: import_utils.locales.getText("pisell2.text.select-customer"),
|
|
279
277
|
open,
|
|
280
278
|
onClose: closeDrawer,
|
|
281
279
|
header: /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -333,105 +333,93 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
333
333
|
handleOpenClientModal();
|
|
334
334
|
};
|
|
335
335
|
(0, import_react.useImperativeHandle)(ref, () => {
|
|
336
|
-
var _a2, _b2;
|
|
337
336
|
return {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
close: () => {
|
|
338
|
+
var _a2;
|
|
339
|
+
(_a2 = modalRef.current) == null ? void 0 : _a2.close();
|
|
340
|
+
}
|
|
341
341
|
};
|
|
342
342
|
});
|
|
343
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
343
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-client-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
344
344
|
"div",
|
|
345
345
|
{
|
|
346
|
-
className: (0, import_classnames.default)("pisell-lowcode__booking-vertical-client
|
|
347
|
-
|
|
348
|
-
})
|
|
346
|
+
className: (0, import_classnames.default)("pisell-lowcode__booking-vertical-client", {
|
|
347
|
+
"pisell-lowcode__booking-vertical-client-walkin": isWalkIn
|
|
348
|
+
}),
|
|
349
|
+
onClick: handleOpenClient
|
|
349
350
|
},
|
|
350
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
351
|
-
|
|
351
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: false, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
352
|
+
import_antd.Avatar,
|
|
352
353
|
{
|
|
353
|
-
className:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
{
|
|
361
|
-
className: "pisell-lowcode__booking-client-avatar",
|
|
362
|
-
src: import_utils.image.ali((_y = state.client.value) == null ? void 0 : _y.cover, 100),
|
|
363
|
-
size: 64,
|
|
364
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
|
|
365
|
-
}
|
|
366
|
-
), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_z = state.client.value) == null ? void 0 : _z.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_A = state.client.value) == null ? void 0 : _A.email) : null, ((_B = state.client.value) == null ? void 0 : _B.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_C = state.client.value) == null ? void 0 : _C.phone) : null), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
|
|
367
|
-
import_antd.Dropdown.Button,
|
|
368
|
-
{
|
|
369
|
-
menu: {
|
|
370
|
-
items: menus,
|
|
371
|
-
onClick: menuChange
|
|
372
|
-
},
|
|
373
|
-
placement: "bottomRight",
|
|
374
|
-
onClick: () => handleOpenClientModal()
|
|
375
|
-
},
|
|
376
|
-
import_utils.locales.getText("pisell2.text.variant-client-change")
|
|
377
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
378
|
-
import_antd.Button,
|
|
379
|
-
{
|
|
380
|
-
onClick: (e) => {
|
|
381
|
-
e.stopPropagation();
|
|
382
|
-
handleViewClient();
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
import_utils.locales.getText("pisell2.text.view-profile")
|
|
386
|
-
)))
|
|
387
|
-
),
|
|
388
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
389
|
-
"div",
|
|
354
|
+
className: "pisell-lowcode__booking-client-avatar",
|
|
355
|
+
src: import_utils.image.ali((_y = state.client.value) == null ? void 0 : _y.cover, 100),
|
|
356
|
+
size: 64,
|
|
357
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
|
|
358
|
+
}
|
|
359
|
+
), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_z = state.client.value) == null ? void 0 : _z.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_A = state.client.value) == null ? void 0 : _A.email) : null, ((_B = state.client.value) == null ? void 0 : _B.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_C = state.client.value) == null ? void 0 : _C.phone) : null), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
|
|
360
|
+
import_antd.Dropdown.Button,
|
|
390
361
|
{
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
362
|
+
menu: {
|
|
363
|
+
items: menus,
|
|
364
|
+
onClick: menuChange
|
|
365
|
+
},
|
|
366
|
+
placement: "bottomRight",
|
|
367
|
+
onClick: () => handleOpenClientModal()
|
|
395
368
|
},
|
|
396
|
-
|
|
397
|
-
),
|
|
398
|
-
isShowAddBtn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
|
369
|
+
import_utils.locales.getText("pisell2.text.variant-client-change")
|
|
370
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
399
371
|
import_antd.Button,
|
|
400
372
|
{
|
|
401
|
-
onClick: () => {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
},
|
|
406
|
-
block: true,
|
|
407
|
-
size: "large"
|
|
373
|
+
onClick: (e) => {
|
|
374
|
+
e.stopPropagation();
|
|
375
|
+
handleViewClient();
|
|
376
|
+
}
|
|
408
377
|
},
|
|
409
|
-
import_utils.locales.getText("pisell2.text.
|
|
410
|
-
))
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
378
|
+
import_utils.locales.getText("pisell2.text.view-profile")
|
|
379
|
+
)))
|
|
380
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
381
|
+
"div",
|
|
382
|
+
{
|
|
383
|
+
className: (0, import_classnames.default)("pisell-lowcode__booking-vertical-pet", {
|
|
384
|
+
"pisell-lowcode__booking-vertical-pet-walkin": isWalkIn
|
|
385
|
+
}),
|
|
386
|
+
onClick: handleOpenClient
|
|
387
|
+
},
|
|
388
|
+
petRender
|
|
389
|
+
), isShowAddBtn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-vertical-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
|
390
|
+
import_antd.Button,
|
|
391
|
+
{
|
|
392
|
+
onClick: () => {
|
|
393
|
+
const currentClientSearchValue = getCurrentClientSearchValue();
|
|
394
|
+
modalRef.current.setSearch(currentClientSearchValue);
|
|
395
|
+
handleOpenClientModal(currentClientSearchValue);
|
|
396
|
+
},
|
|
397
|
+
block: true,
|
|
398
|
+
size: "large"
|
|
399
|
+
},
|
|
400
|
+
import_utils.locales.getText("pisell2.text.select")
|
|
401
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
402
|
+
import_SelectDrawer.default,
|
|
403
|
+
{
|
|
404
|
+
modalOpen: state.modalOpen,
|
|
405
|
+
loading,
|
|
406
|
+
autoFocus: !((_F = (_E = (_D = context == null ? void 0 : context.appHelper) == null ? void 0 : _D.utils) == null ? void 0 : _E.isTerminal) == null ? void 0 : _F.call(_E)),
|
|
407
|
+
ref: modalRef,
|
|
408
|
+
onClose: handleClose,
|
|
409
|
+
handleSelectClient,
|
|
410
|
+
handleCreateItem,
|
|
411
|
+
childrenValue: state.pet.value,
|
|
412
|
+
handleSelectPet,
|
|
413
|
+
formData: state.pet.formData,
|
|
414
|
+
searchChange,
|
|
415
|
+
options: renderList,
|
|
416
|
+
holder: (_G = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _G.holder,
|
|
417
|
+
client: (_H = state == null ? void 0 : state.client) == null ? void 0 : _H.value,
|
|
418
|
+
loadMore,
|
|
419
|
+
showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
|
|
420
|
+
handleAddPet,
|
|
421
|
+
franchiseeLoading
|
|
422
|
+
}
|
|
423
|
+
));
|
|
436
424
|
});
|
|
437
425
|
var vertical_default = VerticalClient;
|
|
@@ -117,11 +117,3 @@
|
|
|
117
117
|
line-height: 24px;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
.create-booking-page-vertical-client-wrap {
|
|
121
|
-
.pisell-lowcode__booking-drawer-title-wrap {
|
|
122
|
-
padding: 16px 16px 0 !important;
|
|
123
|
-
}
|
|
124
|
-
.pisell-lowcode-input-affix-wrapper {
|
|
125
|
-
margin-top: 0 !important;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -15,13 +15,4 @@
|
|
|
15
15
|
// height: 42px;
|
|
16
16
|
// background: #069456;
|
|
17
17
|
// }
|
|
18
|
-
}
|
|
19
|
-
#create-booking-page-info-wrap {
|
|
20
|
-
.pisell-lowcode__booking-tab-pane-footer {
|
|
21
|
-
padding: 12px 16px !important;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.create-booking-page-info-wrap {
|
|
25
|
-
position: initial !important;
|
|
26
|
-
padding: 0 16px !important;
|
|
27
18
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
|
3
2
|
import './index.less';
|
|
4
|
-
|
|
3
|
+
declare const Info: ({ onEdit }: {
|
|
5
4
|
onEdit: any;
|
|
6
|
-
|
|
7
|
-
state?: any;
|
|
8
|
-
drawerProps?: PisellDrawerProps;
|
|
9
|
-
renderMode?: 'current' | 'drawer';
|
|
10
|
-
}
|
|
11
|
-
declare const Info: (props: AddServiceProps) => React.JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
12
6
|
export default Info;
|