@pisell/private-materials 3.0.78 → 3.0.80
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 +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/booking/components/addButton/index.js +3 -3
- package/es/components/booking/components/customSelect/index.d.ts +2 -0
- package/es/components/booking/components/customSelect/index.js +6 -1
- package/es/components/booking/components/drawer/index.d.ts +1 -0
- package/es/components/booking/components/drawer/index.js +4 -2
- package/es/components/booking/components/footer/index.js +0 -1
- package/es/components/booking/info/client/index.js +3 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +39 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +378 -0
- package/es/components/booking/info/clientVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/index.js +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +22 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +321 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +66 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +205 -0
- package/es/components/booking/info/clientVariant/vertical/index.less +61 -0
- package/es/components/booking/info/index.js +1 -1
- package/es/components/booking/info/pet/index.d.ts +10 -1
- package/es/components/booking/info/pet/index.js +22 -14
- package/es/components/booking/info/service/addService/index.js +1 -1
- package/es/components/booking/info/utils.d.ts +1 -0
- package/es/components/booking/info/utils.js +12 -0
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/booking/model.d.ts +2 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/components/booking/components/addButton/index.js +2 -2
- package/lib/components/booking/components/customSelect/index.d.ts +2 -0
- package/lib/components/booking/components/customSelect/index.js +6 -1
- package/lib/components/booking/components/drawer/index.d.ts +1 -0
- package/lib/components/booking/components/drawer/index.js +2 -2
- package/lib/components/booking/components/footer/index.js +0 -1
- package/lib/components/booking/info/client/index.js +2 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +39 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +308 -0
- package/lib/components/booking/info/clientVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/index.js +39 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +22 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +344 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +66 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +230 -0
- package/lib/components/booking/info/clientVariant/vertical/index.less +61 -0
- package/lib/components/booking/info/index.js +1 -1
- package/lib/components/booking/info/pet/index.d.ts +10 -1
- package/lib/components/booking/info/pet/index.js +15 -8
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/info/utils.d.ts +1 -0
- package/lib/components/booking/info/utils.js +16 -2
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/booking/model.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -2
- package/package.json +2 -2
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
|
|
3
|
+
import { InfoProps } from "../../forms/forms";
|
|
4
|
+
interface PetProps {
|
|
5
|
+
state?: any;
|
|
6
|
+
dispatch?: any;
|
|
7
|
+
hideTitle?: boolean;
|
|
8
|
+
addButtonProps?: InfoProps['addButtonProps'];
|
|
9
|
+
handleOpenModal?: () => void;
|
|
10
|
+
clientChangeNotSetPet?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Pet: (props: PetProps) => React.JSX.Element;
|
|
4
13
|
export default Pet;
|
|
@@ -34,8 +34,12 @@ var defaultParams = {
|
|
|
34
34
|
total: 0,
|
|
35
35
|
keyword: ""
|
|
36
36
|
};
|
|
37
|
-
var Pet = function Pet() {
|
|
38
|
-
var _context$appHelper,
|
|
37
|
+
var Pet = function Pet(props) {
|
|
38
|
+
var _context$appHelper, _state2, _state2$bookingConfig, _state2$bookingConfig2, _state2$bookingConfig3, _state$bookingConfig3, _state$client$value2, _state$client8, _state$client8$value, _state$pet5, _state$pet5$formData, _state$pet5$formData$, _state$pet5$formData$2, _state$client9;
|
|
39
|
+
var hideTitle = props.hideTitle,
|
|
40
|
+
addButtonProps = props.addButtonProps,
|
|
41
|
+
handleOpenModal = props.handleOpenModal,
|
|
42
|
+
clientChangeNotSetPet = props.clientChangeNotSetPet;
|
|
39
43
|
var _useState = useState(false),
|
|
40
44
|
_useState2 = _slicedToArray(_useState, 2),
|
|
41
45
|
loadLoading = _useState2[0],
|
|
@@ -58,11 +62,13 @@ var Pet = function Pet() {
|
|
|
58
62
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
59
63
|
params = _useState8[0],
|
|
60
64
|
setParams = _useState8[1];
|
|
65
|
+
state = state || (props === null || props === void 0 ? void 0 : props.state);
|
|
66
|
+
dispatch = dispatch || (props === null || props === void 0 ? void 0 : props.dispatch);
|
|
61
67
|
// board设置, 获取预约主体
|
|
62
68
|
var boardParams = useMemo(function () {
|
|
63
|
-
var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
|
|
64
|
-
return (state === null ||
|
|
65
|
-
}, [state === null ||
|
|
69
|
+
var _state, _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
|
|
70
|
+
return ((_state = state) === null || _state === void 0 ? void 0 : (_state$bookingConfig = _state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
|
|
71
|
+
}, [(_state2 = state) === null || _state2 === void 0 ? void 0 : (_state2$bookingConfig = _state2.bookingConfig) === null || _state2$bookingConfig === void 0 ? void 0 : (_state2$bookingConfig2 = _state2$bookingConfig.config) === null || _state2$bookingConfig2 === void 0 ? void 0 : (_state2$bookingConfig3 = _state2$bookingConfig2.basic) === null || _state2$bookingConfig3 === void 0 ? void 0 : _state2$bookingConfig3.appointment_subject]);
|
|
66
72
|
|
|
67
73
|
/**
|
|
68
74
|
* @title: 预约主体
|
|
@@ -73,8 +79,8 @@ var Pet = function Pet() {
|
|
|
73
79
|
* @Date: 2024-01-27 14:22
|
|
74
80
|
*/
|
|
75
81
|
var petForm = useMemo(function () {
|
|
76
|
-
var _state$
|
|
77
|
-
var _holder = (_state$
|
|
82
|
+
var _state$bookingConfig2;
|
|
83
|
+
var _holder = (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.holder;
|
|
78
84
|
if (!_holder) {
|
|
79
85
|
return null;
|
|
80
86
|
}
|
|
@@ -85,7 +91,7 @@ var Pet = function Pet() {
|
|
|
85
91
|
relation_type: "appointment_booking",
|
|
86
92
|
form_record: []
|
|
87
93
|
});
|
|
88
|
-
}, [(_state$
|
|
94
|
+
}, [(_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.holder]);
|
|
89
95
|
|
|
90
96
|
/**
|
|
91
97
|
* @title: 获取表单数据
|
|
@@ -345,6 +351,7 @@ var Pet = function Pet() {
|
|
|
345
351
|
// 当客户id 发生改变时, 检测当前表单是否是该客户的, 如果不是则移除
|
|
346
352
|
useEffect(function () {
|
|
347
353
|
var _state$pet, _state$client7, _state$client7$value, _state$pet2;
|
|
354
|
+
if (clientChangeNotSetPet) return;
|
|
348
355
|
var changeFormValuesData = changeFormValues({
|
|
349
356
|
values: ((_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : _state$pet.value) || {},
|
|
350
357
|
clientId: (_state$client7 = state.client) === null || _state$client7 === void 0 ? void 0 : (_state$client7$value = _state$client7.value) === null || _state$client7$value === void 0 ? void 0 : _state$client7$value.id,
|
|
@@ -358,7 +365,7 @@ var Pet = function Pet() {
|
|
|
358
365
|
}
|
|
359
366
|
});
|
|
360
367
|
});
|
|
361
|
-
}, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id]);
|
|
368
|
+
}, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id, clientChangeNotSetPet]);
|
|
362
369
|
var handleUpdateForm = function handleUpdateForm() {
|
|
363
370
|
if (state.bookingId) {
|
|
364
371
|
// 编辑时 必须获取详情后在获取预约主体信息
|
|
@@ -376,7 +383,7 @@ var Pet = function Pet() {
|
|
|
376
383
|
setTimeout(function () {
|
|
377
384
|
handleUpdateForm();
|
|
378
385
|
}, 10);
|
|
379
|
-
}, [state.bookingId, state.bookingDetail, boardParams.form_id, boardParams.type, (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id
|
|
386
|
+
}, [state.bookingId, state.bookingDetail, boardParams.form_id, boardParams.type, state.renderType, petForm, clientChangeNotSetPet ? (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id : undefined]);
|
|
380
387
|
var _addCallback = function addCallback(_params) {
|
|
381
388
|
var _state$pet3, _state$pet3$formData;
|
|
382
389
|
var _formData = (_state$pet3 = state.pet) === null || _state$pet3 === void 0 ? void 0 : (_state$pet3$formData = _state$pet3.formData) === null || _state$pet3$formData === void 0 ? void 0 : _state$pet3$formData[0];
|
|
@@ -420,7 +427,7 @@ var Pet = function Pet() {
|
|
|
420
427
|
active: true,
|
|
421
428
|
round: true
|
|
422
429
|
}, /*#__PURE__*/React.createElement(FormsCom, {
|
|
423
|
-
hideTitle:
|
|
430
|
+
hideTitle: hideTitle,
|
|
424
431
|
watch: {
|
|
425
432
|
value: state.pet.value
|
|
426
433
|
},
|
|
@@ -449,7 +456,8 @@ var Pet = function Pet() {
|
|
|
449
456
|
loadMore: loadMore,
|
|
450
457
|
filterItem: function filterItem() {
|
|
451
458
|
return true;
|
|
452
|
-
}
|
|
459
|
+
},
|
|
460
|
+
handleOpenModal: handleOpenModal
|
|
453
461
|
},
|
|
454
462
|
optionRender: function optionRender(item) {
|
|
455
463
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
@@ -484,7 +492,7 @@ var Pet = function Pet() {
|
|
|
484
492
|
}
|
|
485
493
|
}, locales.getText("pisell2.text.edit"))));
|
|
486
494
|
},
|
|
487
|
-
addButtonProps: {
|
|
495
|
+
addButtonProps: _objectSpread({
|
|
488
496
|
style: {
|
|
489
497
|
margin: 0
|
|
490
498
|
},
|
|
@@ -507,7 +515,7 @@ var Pet = function Pet() {
|
|
|
507
515
|
}
|
|
508
516
|
return addCallback;
|
|
509
517
|
}()
|
|
510
|
-
}
|
|
518
|
+
}, addButtonProps)
|
|
511
519
|
})));
|
|
512
520
|
};
|
|
513
521
|
export default Pet;
|
|
@@ -282,7 +282,7 @@ var Info = function Info() {
|
|
|
282
282
|
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5, _state$service4, _state$service4$value;
|
|
283
283
|
// Salonip 不要这个
|
|
284
284
|
|
|
285
|
-
if (shopList.includes((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id)) {
|
|
285
|
+
if (shopList.includes((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id) || state.closeAutoOpenService) {
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -5,4 +5,16 @@ export var getIsBundleOrCombination = function getIsBundleOrCombination(productD
|
|
|
5
5
|
return true;
|
|
6
6
|
}
|
|
7
7
|
return false;
|
|
8
|
+
};
|
|
9
|
+
export var uniqueByField = function uniqueByField(arr, field) {
|
|
10
|
+
var seen = new Set();
|
|
11
|
+
return arr.filter(function (item) {
|
|
12
|
+
var fieldValue = item[field];
|
|
13
|
+
if (seen.has(fieldValue)) {
|
|
14
|
+
return false;
|
|
15
|
+
} else {
|
|
16
|
+
seen.add(fieldValue);
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
8
20
|
};
|
|
@@ -157,6 +157,8 @@ declare const _default: {
|
|
|
157
157
|
'page.booking.text.fully-booked': string;
|
|
158
158
|
'page.booking.text.unlimited': string;
|
|
159
159
|
'pisell2.text.terminal-edit-message': string;
|
|
160
|
+
"pisell2.text.actions": string;
|
|
161
|
+
"pisell2.text.add-client": string;
|
|
160
162
|
};
|
|
161
163
|
'zh-CN': {
|
|
162
164
|
'pisell2.text.refunded-amount': string;
|
|
@@ -316,6 +318,8 @@ declare const _default: {
|
|
|
316
318
|
'page.booking.text.available': string;
|
|
317
319
|
'page.booking.text.fully-booked': string;
|
|
318
320
|
'page.booking.text.unlimited': string;
|
|
321
|
+
"pisell2.text.actions": string;
|
|
322
|
+
"pisell2.text.add-client": string;
|
|
319
323
|
};
|
|
320
324
|
'zh-HK': {
|
|
321
325
|
'pisell2.text.refunded-amount': string;
|
|
@@ -475,6 +479,8 @@ declare const _default: {
|
|
|
475
479
|
'page.booking.text.available': string;
|
|
476
480
|
'page.booking.text.fully-booked': string;
|
|
477
481
|
'page.booking.text.unlimited': string;
|
|
482
|
+
"pisell2.text.actions": string;
|
|
483
|
+
"pisell2.text.add-client": string;
|
|
478
484
|
};
|
|
479
485
|
};
|
|
480
486
|
export default _default;
|
|
@@ -171,7 +171,9 @@ export default {
|
|
|
171
171
|
'page.booking.text.available': 'Available',
|
|
172
172
|
'page.booking.text.fully-booked': 'Fully booked',
|
|
173
173
|
'page.booking.text.unlimited': 'Unlimited',
|
|
174
|
-
'pisell2.text.terminal-edit-message': "This operation cannot be performed. To proceed, please use the Pisell Terminal."
|
|
174
|
+
'pisell2.text.terminal-edit-message': "This operation cannot be performed. To proceed, please use the Pisell Terminal.",
|
|
175
|
+
"pisell2.text.actions": "Actions",
|
|
176
|
+
"pisell2.text.add-client": "Add customer"
|
|
175
177
|
},
|
|
176
178
|
'zh-CN': {
|
|
177
179
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -350,7 +352,9 @@ export default {
|
|
|
350
352
|
'page.booking.text.unavailable': '不可用',
|
|
351
353
|
'page.booking.text.available': '可用',
|
|
352
354
|
'page.booking.text.fully-booked': '已约满',
|
|
353
|
-
'page.booking.text.unlimited': '无限制'
|
|
355
|
+
'page.booking.text.unlimited': '无限制',
|
|
356
|
+
"pisell2.text.actions": "操作选项",
|
|
357
|
+
"pisell2.text.add-client": "添加客户"
|
|
354
358
|
},
|
|
355
359
|
'zh-HK': {
|
|
356
360
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -529,6 +533,8 @@ export default {
|
|
|
529
533
|
'page.booking.text.unavailable': '不可用',
|
|
530
534
|
'page.booking.text.available': '可用',
|
|
531
535
|
'page.booking.text.fully-booked': '已約滿',
|
|
532
|
-
'page.booking.text.unlimited': '無限制'
|
|
536
|
+
'page.booking.text.unlimited': '無限制',
|
|
537
|
+
"pisell2.text.actions": "操作選項",
|
|
538
|
+
"pisell2.text.add-client": "添加客戶"
|
|
533
539
|
}
|
|
534
540
|
};
|
package/es/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { default as BookingResources } from './components/booking/materiels/reso
|
|
|
11
11
|
export { default as BookingStartTime } from './components/booking/materiels/startTime';
|
|
12
12
|
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
13
|
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
|
+
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
14
15
|
export { default as ProductExtension } from './components/productExtension';
|
|
15
16
|
export { default as BookingDeposit } from './components/booking/deposit';
|
|
16
17
|
export { default as RuleSetting } from './components/ruleSetting';
|
package/es/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export { default as BookingResources } from "./components/booking/materiels/reso
|
|
|
15
15
|
export { default as BookingStartTime } from "./components/booking/materiels/startTime";
|
|
16
16
|
export { default as BookingDuration } from "./components/booking/materiels/duration";
|
|
17
17
|
export { default as BookingContacts } from "./components/booking/materiels/contacts";
|
|
18
|
+
export { VerticalClient } from "./components/booking/info/clientVariant";
|
|
18
19
|
export { default as ProductExtension } from "./components/productExtension";
|
|
19
20
|
export { default as BookingDeposit } from "./components/booking/deposit";
|
|
20
21
|
export { default as RuleSetting } from "./components/ruleSetting";
|
|
@@ -68,7 +68,7 @@ var AddButton = ({
|
|
|
68
68
|
{
|
|
69
69
|
className: "pisell-lowcode__booking-add-button-add-row",
|
|
70
70
|
onClick: _onClick,
|
|
71
|
-
style
|
|
71
|
+
style: (0, import_utils.isFunction)(style) ? style(showSub) : style
|
|
72
72
|
},
|
|
73
73
|
/* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__booking-add-button-add-row-icon" }),
|
|
74
74
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-add-button-add-row-txt" }, subTitle)
|
|
@@ -79,7 +79,7 @@ var AddButton = ({
|
|
|
79
79
|
"pisell-lowcode__booking-add-button-add-disabled": disabled
|
|
80
80
|
}),
|
|
81
81
|
onClick: _onClick,
|
|
82
|
-
style
|
|
82
|
+
style: (0, import_utils.isFunction)(style) ? style(showSub) : style
|
|
83
83
|
},
|
|
84
84
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-add-button-add-label" }, title),
|
|
85
85
|
/* @__PURE__ */ import_react.default.createElement(import_ChevronRight.default, { className: "pisell-lowcode__booking-add-button-add-icon" })
|
|
@@ -29,6 +29,8 @@ interface CustomSelectProps {
|
|
|
29
29
|
modalOpen?: boolean;
|
|
30
30
|
closeCallback?: () => any;
|
|
31
31
|
autoFocus?: boolean;
|
|
32
|
+
showDropDown?: boolean;
|
|
33
|
+
handleOpenModal: () => void;
|
|
32
34
|
}
|
|
33
35
|
declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
|
|
34
36
|
export default _default;
|
|
@@ -73,7 +73,8 @@ var CustomSelect = (props, ref) => {
|
|
|
73
73
|
modalOpen,
|
|
74
74
|
closeCallback,
|
|
75
75
|
autoFocus,
|
|
76
|
-
showDropDown = true
|
|
76
|
+
showDropDown = true,
|
|
77
|
+
handleOpenModal: propsHandleOpenModal
|
|
77
78
|
} = props;
|
|
78
79
|
const searchRef = (0, import_react.useRef)();
|
|
79
80
|
const [_value, set_value] = (0, import_react.useState)([]);
|
|
@@ -110,6 +111,10 @@ var CustomSelect = (props, ref) => {
|
|
|
110
111
|
if (disabled) {
|
|
111
112
|
return;
|
|
112
113
|
}
|
|
114
|
+
if (propsHandleOpenModal) {
|
|
115
|
+
propsHandleOpenModal();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
113
118
|
if (addButtonProps == null ? void 0 : addButtonProps.addCallback) {
|
|
114
119
|
addButtonProps == null ? void 0 : addButtonProps.addCallback();
|
|
115
120
|
}
|
|
@@ -38,7 +38,7 @@ var import_ArrowLeft = __toESM(require("@pisell/icon/es/ArrowLeft"));
|
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
40
|
var Drawer = (props) => {
|
|
41
|
-
const { hideScrollBar = true } = props;
|
|
41
|
+
const { hideScrollBar = true, showGoBack = true } = props;
|
|
42
42
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
43
43
|
import_antd.Drawer,
|
|
44
44
|
{
|
|
@@ -54,7 +54,7 @@ var Drawer = (props) => {
|
|
|
54
54
|
push: false,
|
|
55
55
|
mask: false
|
|
56
56
|
},
|
|
57
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title-wrap") }, /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title-wrap") }, showGoBack && /* @__PURE__ */ import_react.default.createElement(
|
|
58
58
|
import_ArrowLeft.default,
|
|
59
59
|
{
|
|
60
60
|
className: "pisell-lowcode__booking-drawer-back",
|
|
@@ -330,7 +330,6 @@ var Footer = (props) => {
|
|
|
330
330
|
customer = (res == null ? void 0 : res.customer_id) ? { id: res == null ? void 0 : res.customer_id } : state.bookingDetail.customer;
|
|
331
331
|
}
|
|
332
332
|
if (e.key === "sendMail") {
|
|
333
|
-
console.log(e);
|
|
334
333
|
state.action({
|
|
335
334
|
type: "pisell1.sendPayLinkEmail",
|
|
336
335
|
data: {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormState } from "../../../model";
|
|
3
|
+
interface useClientFnParams {
|
|
4
|
+
state: any;
|
|
5
|
+
setGlobalState: (val: any) => void;
|
|
6
|
+
modalRef: any;
|
|
7
|
+
}
|
|
8
|
+
declare const useClientFn: (_params: useClientFnParams) => {
|
|
9
|
+
setClient: (client: Partial<FormState["client"]>) => void;
|
|
10
|
+
isWalkIn: boolean;
|
|
11
|
+
handleSelectClient: (value: any) => Promise<unknown>;
|
|
12
|
+
menuChange: (e: any) => void;
|
|
13
|
+
handleViewClient: () => void;
|
|
14
|
+
menus: {
|
|
15
|
+
key: string;
|
|
16
|
+
label: any;
|
|
17
|
+
}[];
|
|
18
|
+
handleCreateItem: () => void;
|
|
19
|
+
getClients: ({ customer_id, ...resetParams }: {
|
|
20
|
+
customer_id?: number | undefined;
|
|
21
|
+
skip?: number | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
with?: string[] | undefined;
|
|
24
|
+
relation_form_id?: number | undefined;
|
|
25
|
+
}) => Promise<{}>;
|
|
26
|
+
params: {
|
|
27
|
+
skip: number;
|
|
28
|
+
num: number;
|
|
29
|
+
total: number;
|
|
30
|
+
search: string;
|
|
31
|
+
with: string[];
|
|
32
|
+
relation_form_id: any;
|
|
33
|
+
};
|
|
34
|
+
searchChange: (search: string) => void;
|
|
35
|
+
loading: boolean;
|
|
36
|
+
loadMore: React.JSX.Element | null;
|
|
37
|
+
handleOpenClientModal: () => void;
|
|
38
|
+
};
|
|
39
|
+
export default useClientFn;
|