@pisell/private-materials 6.3.1 → 6.3.3
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 +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/single/RenderValueById.d.ts +1 -0
- package/es/components/booking/forms/single/RenderValueById.js +68 -17
- package/es/components/booking/forms/single/index.less +67 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info2/service/addService/utils.js +2 -1
- package/es/components/booking/info2/utilsByBooking.js +3 -2
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/materiels/duration/index.js +1 -1
- package/es/components/booking/materiels/startTime/index.js +2 -2
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +3 -3
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/single/RenderValueById.d.ts +1 -0
- package/lib/components/booking/forms/single/RenderValueById.js +37 -9
- package/lib/components/booking/forms/single/index.less +67 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info2/service/addService/utils.js +3 -3
- package/lib/components/booking/info2/utilsByBooking.js +4 -4
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/materiels/duration/index.js +1 -1
- package/lib/components/booking/materiels/startTime/index.js +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/package.json +4 -4
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
30
30
|
* @return {*}
|
31
31
|
* @Author: xiangfeng.xue
|
32
32
|
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -1,24 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
4
|
+
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; }
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
8
|
+
import { isArr, isUndefined, locales } from '@pisell/utils';
|
9
|
+
import { Iconfont } from '@pisell/materials';
|
10
|
+
import { Tag, Tooltip } from 'antd';
|
11
|
+
import { useRequest } from 'ahooks';
|
5
12
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
6
13
|
import { getFormData } from "../serve";
|
14
|
+
import "./index.less";
|
7
15
|
var RenderValueById = function RenderValueById(props) {
|
8
|
-
var _field$setting, _field$setting6;
|
16
|
+
var _field$setting, _ref, _ref$toString, _field$setting6;
|
9
17
|
var field = props.field,
|
10
18
|
propsValue = props.value;
|
11
19
|
var _useEngineContext = useEngineContext(),
|
12
20
|
appHelper = _useEngineContext.appHelper;
|
21
|
+
|
22
|
+
// 关联表单展示数量
|
23
|
+
var _useState = useState(10),
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
25
|
+
displayCount = _useState2[0],
|
26
|
+
setDisplayCount = _useState2[1];
|
13
27
|
var _getFormData = useRequest(getFormData, {
|
14
28
|
manual: true,
|
15
|
-
cacheKey: "formOption-".concat((_field$setting = field.setting) === null || _field$setting === void 0 ? void 0 : _field$setting.linkedTable),
|
29
|
+
cacheKey: "formOption-".concat((_field$setting = field.setting) === null || _field$setting === void 0 ? void 0 : _field$setting.linkedTable, "-").concat((_ref = propsValue || []) === null || _ref === void 0 || (_ref$toString = _ref.toString) === null || _ref$toString === void 0 ? void 0 : _ref$toString.call(_ref)),
|
16
30
|
staleTime: 500,
|
17
31
|
cacheTime: 5000
|
18
32
|
});
|
19
33
|
var value = useMemo(function () {
|
20
34
|
var v = propsValue;
|
21
|
-
if (field.filed_type ===
|
35
|
+
if (field.filed_type === 'form_to_form') {
|
22
36
|
if (isArr(propsValue)) {
|
23
37
|
v = propsValue;
|
24
38
|
} else if (propsValue !== null && propsValue !== void 0 && propsValue.form_ids) {
|
@@ -31,7 +45,7 @@ var RenderValueById = function RenderValueById(props) {
|
|
31
45
|
}, [propsValue]);
|
32
46
|
useEffect(function () {
|
33
47
|
var _field$setting2;
|
34
|
-
if (field.filed_type ===
|
48
|
+
if (field.filed_type === 'form_to_form' && (_field$setting2 = field.setting) !== null && _field$setting2 !== void 0 && _field$setting2.linkedTable) {
|
35
49
|
var _field$setting3;
|
36
50
|
_getFormData.run({
|
37
51
|
form_record_ids: value,
|
@@ -43,7 +57,7 @@ var RenderValueById = function RenderValueById(props) {
|
|
43
57
|
}, [field.filed_type, value]);
|
44
58
|
var options = useMemo(function () {
|
45
59
|
var _field$setting4, _field$setting5;
|
46
|
-
if (field.filed_type ===
|
60
|
+
if (field.filed_type === 'form_to_form' && field !== null && field !== void 0 && (_field$setting4 = field.setting) !== null && _field$setting4 !== void 0 && _field$setting4.linkedTable) {
|
47
61
|
var _getFormData$data;
|
48
62
|
return ((_getFormData$data = _getFormData.data) === null || _getFormData$data === void 0 || (_getFormData$data = _getFormData$data.data) === null || _getFormData$data === void 0 || (_getFormData$data = _getFormData$data.list) === null || _getFormData$data === void 0 ? void 0 : _getFormData$data.map(function (item) {
|
49
63
|
return {
|
@@ -55,24 +69,61 @@ var RenderValueById = function RenderValueById(props) {
|
|
55
69
|
return field === null || field === void 0 || (_field$setting5 = field.setting) === null || _field$setting5 === void 0 ? void 0 : _field$setting5.customTypeList;
|
56
70
|
}, [field.filed_type, field === null || field === void 0 || (_field$setting6 = field.setting) === null || _field$setting6 === void 0 ? void 0 : _field$setting6.customTypeList, _getFormData.data]);
|
57
71
|
if (isArr(value)) {
|
72
|
+
var _field$setting7;
|
73
|
+
// 是否是关联表单列表展示样式
|
74
|
+
var formListDisplay = (field === null || field === void 0 || (_field$setting7 = field.setting) === null || _field$setting7 === void 0 ? void 0 : _field$setting7.displayStyle) === 'list' && (field === null || field === void 0 ? void 0 : field.filed_type) === 'form_to_form';
|
58
75
|
var _list = options === null || options === void 0 ? void 0 : options.filter(function (i) {
|
59
76
|
return value === null || value === void 0 ? void 0 : value.includes((i === null || i === void 0 ? void 0 : i.id) || i.value);
|
60
77
|
});
|
61
|
-
var _str = (_list === null || _list === void 0 ? void 0 : _list.map(function (i) {
|
78
|
+
var _str = !formListDisplay && (_list === null || _list === void 0 ? void 0 : _list.map(function (i) {
|
62
79
|
var _appHelper$utils;
|
63
|
-
|
64
|
-
|
65
|
-
|
80
|
+
var title = appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.translationShop((i === null || i === void 0 ? void 0 : i.title) || (i === null || i === void 0 ? void 0 : i.label));
|
81
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
82
|
+
title: title
|
83
|
+
}, /*#__PURE__*/React.createElement(Tag, {
|
84
|
+
className: "pisell-lowcode__booking-form-link-tag-title"
|
85
|
+
}, title));
|
86
|
+
})) || '-';
|
87
|
+
|
88
|
+
// 如果列表式展示
|
89
|
+
if (formListDisplay) {
|
90
|
+
var displayList = (_list === null || _list === void 0 ? void 0 : _list.slice(0, displayCount)) || [];
|
91
|
+
_str = (displayList === null || displayList === void 0 ? void 0 : displayList.map(function (i, index) {
|
92
|
+
var _appHelper$utils2;
|
93
|
+
var title = appHelper === null || appHelper === void 0 || (_appHelper$utils2 = appHelper.utils) === null || _appHelper$utils2 === void 0 ? void 0 : _appHelper$utils2.translationShop((i === null || i === void 0 ? void 0 : i.title) || (i === null || i === void 0 ? void 0 : i.label));
|
94
|
+
return /*#__PURE__*/React.createElement("div", {
|
95
|
+
className: "pisell-lowcode__booking-form-link-to-list-item"
|
96
|
+
}, /*#__PURE__*/React.createElement("span", {
|
97
|
+
className: "pisell-lowcode__booking-form-link-to-list-item-index"
|
98
|
+
}, index + 1), /*#__PURE__*/React.createElement(Tooltip, {
|
99
|
+
title: title
|
100
|
+
}, /*#__PURE__*/React.createElement("span", {
|
101
|
+
className: "pisell-lowcode__booking-form-link-to-list-item-title"
|
102
|
+
}, title)));
|
103
|
+
})) || '-';
|
104
|
+
}
|
105
|
+
return /*#__PURE__*/React.createElement("span", {
|
106
|
+
className: formListDisplay ? 'pisell-lowcode__booking-form-link-to-list-wrap' : ''
|
107
|
+
}, _str || '-', formListDisplay && (_list === null || _list === void 0 ? void 0 : _list.length) > displayCount && /*#__PURE__*/React.createElement("div", {
|
108
|
+
className: "pisell-lowcode__booking-form-link-to-list-item-more",
|
109
|
+
onClick: function onClick() {
|
110
|
+
return setDisplayCount(function (prev) {
|
111
|
+
return Math.min(prev + 10, (_list === null || _list === void 0 ? void 0 : _list.length) || 0);
|
112
|
+
});
|
113
|
+
}
|
114
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.text.form.link.to.another.record.more')), /*#__PURE__*/React.createElement(Iconfont, {
|
115
|
+
type: "icona-IconStroke"
|
116
|
+
})));
|
66
117
|
}
|
67
118
|
if (!isUndefined(value)) {
|
68
|
-
var _field$
|
69
|
-
if ((field === null || field === void 0 ? void 0 : field.filed_type) ===
|
70
|
-
return /*#__PURE__*/React.createElement("span", null, value ||
|
119
|
+
var _field$setting8, _appHelper$utils3, _item$, _item$2;
|
120
|
+
if ((field === null || field === void 0 ? void 0 : field.filed_type) === 'select' && !(field !== null && field !== void 0 && (_field$setting8 = field.setting) !== null && _field$setting8 !== void 0 && _field$setting8.version)) {
|
121
|
+
return /*#__PURE__*/React.createElement("span", null, value || '-');
|
71
122
|
}
|
72
123
|
var _item = options === null || options === void 0 ? void 0 : options.filter(function (i) {
|
73
124
|
return (i === null || i === void 0 ? void 0 : i.id) == value;
|
74
125
|
});
|
75
|
-
return (appHelper === null || appHelper === void 0 || (_appHelper$
|
126
|
+
return (appHelper === null || appHelper === void 0 || (_appHelper$utils3 = appHelper.utils) === null || _appHelper$utils3 === void 0 ? void 0 : _appHelper$utils3.translationShop((_item === null || _item === void 0 || (_item$ = _item[0]) === null || _item$ === void 0 ? void 0 : _item$.title) || (_item === null || _item === void 0 || (_item$2 = _item[0]) === null || _item$2 === void 0 ? void 0 : _item$2.label))) || '-';
|
76
127
|
}
|
77
128
|
return null;
|
78
129
|
};
|
@@ -1,3 +1,69 @@
|
|
1
1
|
.attachment-item {
|
2
2
|
width: 100%;
|
3
|
-
}
|
3
|
+
}
|
4
|
+
|
5
|
+
.pisell-lowcode__booking-form-link-tag-title {
|
6
|
+
overflow: hidden;
|
7
|
+
text-overflow: ellipsis;
|
8
|
+
white-space: nowrap;
|
9
|
+
display: inline-block;
|
10
|
+
max-width: 100%;
|
11
|
+
}
|
12
|
+
|
13
|
+
.pisell-lowcode__booking-form-link-to-list-wrap {
|
14
|
+
display: flex;
|
15
|
+
flex-direction: column;
|
16
|
+
gap: 12px;
|
17
|
+
|
18
|
+
|
19
|
+
.pisell-lowcode__booking-form-link-to-list-item-more {
|
20
|
+
padding: 4px 6px;
|
21
|
+
color: #705dff;
|
22
|
+
font-size: 14px;
|
23
|
+
cursor: pointer;
|
24
|
+
background-color: #f9fafb;
|
25
|
+
border-radius: 8px;
|
26
|
+
border: 1px solid #eaecf0;
|
27
|
+
display: flex;
|
28
|
+
justify-content: center;
|
29
|
+
align-items: center;
|
30
|
+
gap: 4px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.pisell-lowcode__booking-form-link-to-list-item {
|
34
|
+
display: flex;
|
35
|
+
align-items: center;
|
36
|
+
gap: 8px;
|
37
|
+
background-color: #f9fafb;
|
38
|
+
padding: 12px 14px;
|
39
|
+
border-radius: 8px;
|
40
|
+
border: 1px solid #eaecf0;
|
41
|
+
color: #101828;
|
42
|
+
font-size: 16px;
|
43
|
+
font-weight: 500;
|
44
|
+
white-space: normal;
|
45
|
+
|
46
|
+
.pisell-lowcode__booking-form-link-to-list-item-index {
|
47
|
+
padding: 0 5px;
|
48
|
+
min-width: 20px;
|
49
|
+
min-height: 20px;
|
50
|
+
line-height: 20px;
|
51
|
+
border-radius: 20px;
|
52
|
+
font-size: 14px;
|
53
|
+
font-weight: 600;
|
54
|
+
background-color: #705dff;
|
55
|
+
display: flex;
|
56
|
+
align-items: center;
|
57
|
+
justify-content: center;
|
58
|
+
color: #fff;
|
59
|
+
}
|
60
|
+
|
61
|
+
.pisell-lowcode__booking-form-link-to-list-item-title {
|
62
|
+
flex: 1;
|
63
|
+
overflow: hidden;
|
64
|
+
text-overflow: ellipsis;
|
65
|
+
white-space: nowrap;
|
66
|
+
display: block;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
@@ -1,5 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from '../model';
|
1
3
|
export declare const walkInData: {
|
2
4
|
id: number;
|
3
5
|
nickname: string;
|
4
6
|
};
|
5
|
-
export declare const Provider: any, Context:
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
8
|
+
state: FormState;
|
9
|
+
} & {
|
10
|
+
dispatch: (params: {
|
11
|
+
type: string;
|
12
|
+
payload: any;
|
13
|
+
}) => void;
|
14
|
+
}>;
|
@@ -584,7 +584,8 @@ export var getProductExtend = function getProductExtend(_ref11) {
|
|
584
584
|
state: state
|
585
585
|
});
|
586
586
|
if (getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration) === 'flexible') {
|
587
|
-
|
587
|
+
var _cacheItem$_data$time;
|
588
|
+
_cacheItem._extend.duration = (_cacheItem$_data$time = _cacheItem._data.timeObj) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time.durationSlicesBasedOnTime) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time[0]) === null || _cacheItem$_data$time === void 0 ? void 0 : _cacheItem$_data$time.value;
|
588
589
|
|
589
590
|
// 计算服务的开始和结束时间
|
590
591
|
var _getServiceTimes = getServiceTimes({
|
@@ -328,7 +328,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
328
328
|
// 下一个商品的扩展参数
|
329
329
|
var _extend = {
|
330
330
|
// 时长: 当前商品时长 > 第一个时长
|
331
|
-
duration: findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
|
331
|
+
duration: findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
|
332
332
|
};
|
333
333
|
|
334
334
|
// 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
|
@@ -342,7 +342,8 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
342
342
|
} else {
|
343
343
|
// 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
|
344
344
|
if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
|
345
|
-
|
345
|
+
var _timeObj$timeSlices;
|
346
|
+
_extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 || (_timeObj$timeSlices = timeObj.timeSlices) === null || _timeObj$timeSlices === void 0 ? void 0 : _timeObj$timeSlices.length) - 1].value;
|
346
347
|
} else {
|
347
348
|
_extend.start_time = lastServerEndDate.format("HH:mm");
|
348
349
|
}
|
@@ -273,6 +273,7 @@ declare const _default: {
|
|
273
273
|
'pisell2.text.validity.valid_through': (str: string) => string;
|
274
274
|
'pisell2.text.quotation.product.change.title': string;
|
275
275
|
'pisell2.text.quotation.product.change.describe': string;
|
276
|
+
'pisell2.text.form.link.to.another.record.more': string;
|
276
277
|
};
|
277
278
|
'zh-CN': {
|
278
279
|
'pisell2.text.refunded-amount': string;
|
@@ -548,6 +549,7 @@ declare const _default: {
|
|
548
549
|
'pisell2.text.validity.valid_through': (str: string) => string;
|
549
550
|
'pisell2.text.quotation.product.change.title': string;
|
550
551
|
'pisell2.text.quotation.product.change.describe': string;
|
552
|
+
'pisell2.text.form.link.to.another.record.more': string;
|
551
553
|
};
|
552
554
|
'zh-HK': {
|
553
555
|
'pisell2.text.refunded-amount': string;
|
@@ -823,6 +825,7 @@ declare const _default: {
|
|
823
825
|
'pisell2.text.validity.valid_through': (str: string) => string;
|
824
826
|
'pisell2.text.quotation.product.change.title': string;
|
825
827
|
'pisell2.text.quotation.product.change.describe': string;
|
828
|
+
'pisell2.text.form.link.to.another.record.more': string;
|
826
829
|
};
|
827
830
|
};
|
828
831
|
export default _default;
|
@@ -315,7 +315,8 @@ export default {
|
|
315
315
|
return "Valid through ".concat(str);
|
316
316
|
},
|
317
317
|
'pisell2.text.quotation.product.change.title': "Notification",
|
318
|
-
'pisell2.text.quotation.product.change.describe': "Product updates available: Please refresh the following items to load the latest data."
|
318
|
+
'pisell2.text.quotation.product.change.describe': "Product updates available: Please refresh the following items to load the latest data.",
|
319
|
+
'pisell2.text.form.link.to.another.record.more': 'View More'
|
319
320
|
},
|
320
321
|
'zh-CN': {
|
321
322
|
'pisell2.text.refunded-amount': '已退金额',
|
@@ -637,7 +638,8 @@ export default {
|
|
637
638
|
return "\u6709\u6548\u671F\u81F3 ".concat(str, " \uFF08\u542B\u5F53\u65E5\uFF09");
|
638
639
|
},
|
639
640
|
'pisell2.text.quotation.product.change.title': "提示",
|
640
|
-
'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
|
641
|
+
'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
642
|
+
'pisell2.text.form.link.to.another.record.more': '查看更多'
|
641
643
|
},
|
642
644
|
'zh-HK': {
|
643
645
|
'pisell2.text.refunded-amount': '已退金額',
|
@@ -959,6 +961,7 @@ export default {
|
|
959
961
|
return "\u6709\u6548\u671F\u81F3 ".concat(str, " \uFF08\u542B\u7576\u65E5\uFF09");
|
960
962
|
},
|
961
963
|
'pisell2.text.quotation.product.change.title': "提示",
|
962
|
-
'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
|
964
|
+
'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
965
|
+
'pisell2.text.form.link.to.another.record.more': '查看更多'
|
963
966
|
}
|
964
967
|
};
|
@@ -60,7 +60,7 @@ var Duration = function Duration(props) {
|
|
60
60
|
});
|
61
61
|
}
|
62
62
|
return durationSlicesBasedOnTime;
|
63
|
-
}, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
|
63
|
+
}, [timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
|
64
64
|
useEffect(function () {
|
65
65
|
timeObjChange === null || timeObjChange === void 0 || timeObjChange(times);
|
66
66
|
}, [times]);
|
@@ -25,7 +25,7 @@ var StartTime = function StartTime(props) {
|
|
25
25
|
return sliceDayIntoFiveMinutes(slice, locale);
|
26
26
|
}, [slice, locale]);
|
27
27
|
useEffect(function () {
|
28
|
-
timeObjChange === null || timeObjChange === void 0
|
28
|
+
timeObjChange === null || timeObjChange === void 0 || timeObjChange(timeObj);
|
29
29
|
}, [timeObj]);
|
30
30
|
var renderOptions = useCallback(function (array) {
|
31
31
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "value";
|
@@ -37,6 +37,6 @@ var StartTime = function StartTime(props) {
|
|
37
37
|
}, d[label]);
|
38
38
|
});
|
39
39
|
}, []);
|
40
|
-
return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj.timeSlices));
|
40
|
+
return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices));
|
41
41
|
};
|
42
42
|
export default StartTime;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export interface FormState {
|
2
3
|
amountSymbol: string;
|
3
4
|
apis: {
|
@@ -105,4 +106,11 @@ export declare const walkInData: {
|
|
105
106
|
id: number;
|
106
107
|
nickname: string;
|
107
108
|
};
|
108
|
-
export declare const Provider: any, Context:
|
109
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
110
|
+
state: FormState;
|
111
|
+
} & {
|
112
|
+
dispatch: (params: {
|
113
|
+
type: string;
|
114
|
+
payload: any;
|
115
|
+
}) => void;
|
116
|
+
}>;
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormState } from "../model";
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
|
+
state: FormState;
|
5
|
+
} & {
|
6
|
+
dispatch: (params: {
|
7
|
+
type: string;
|
8
|
+
payload: any;
|
9
|
+
}) => void;
|
10
|
+
}>;
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
166
166
|
type: string;
|
167
167
|
value: number;
|
168
|
-
}) => number | {
|
168
|
+
}) => number | "flexible" | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
}
|
171
|
+
};
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -670,7 +670,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
670
670
|
if (isSession) {
|
671
671
|
return getDays(cacheItem, 'minutes');
|
672
672
|
}
|
673
|
-
return findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
|
673
|
+
return findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
|
674
674
|
};
|
675
675
|
|
676
676
|
// 获取上一个服务商品
|
@@ -694,7 +694,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
694
694
|
} else {
|
695
695
|
// 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
|
696
696
|
if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, 'day')) {
|
697
|
-
_extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
|
697
|
+
_extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices.length) - 1].value;
|
698
698
|
} else {
|
699
699
|
_extend.start_time = lastServerEndDate.format("HH:mm");
|
700
700
|
}
|
@@ -704,7 +704,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
704
704
|
// _extend.resource = 0;
|
705
705
|
|
706
706
|
var findNextSliceProps = {
|
707
|
-
timeSlices: timeObj.timeSlices,
|
707
|
+
timeSlices: timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices,
|
708
708
|
index: 0,
|
709
709
|
date: ''
|
710
710
|
};
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
8
8
|
*/
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
10
10
|
className?: string | undefined;
|
11
|
-
onChange?: ((status: "success" | "page" | "
|
11
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
12
12
|
[keys: string]: unknown;
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
14
14
|
onClose: () => void;
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
11
11
|
api: PayProps['api'];
|
12
12
|
className?: string | undefined;
|
13
|
-
onChange?: ((status: "success" | "page" | "
|
13
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
14
14
|
[keys: string]: unknown;
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
16
16
|
onClose: () => void;
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
18
|
-
readonly statusRef: React.MutableRefObject<"success" | "
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
22
|
+
readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
175
175
|
type: EActionTypes;
|
176
176
|
payload: {
|
177
|
-
status: "success" | "
|
177
|
+
status: "success" | "loading" | "warn" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
295
|
name?: string | undefined;
|
296
296
|
symbol?: string | undefined;
|
297
297
|
amount?: string | number | undefined;
|
298
|
-
mode?: "
|
298
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
301
|
-
action?: "amount" | "
|
300
|
+
eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
305
305
|
subTitle?: string | undefined;
|
306
|
-
type?: "
|
306
|
+
type?: "unset" | "step" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "success" | "
|
311
|
+
status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export interface FormState {
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
3
4
|
order: any;
|
@@ -28,4 +29,11 @@ export interface PayGroup {
|
|
28
29
|
pay_number?: string;
|
29
30
|
_order: any;
|
30
31
|
}
|
31
|
-
export declare const Provider: any, Context:
|
32
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
33
|
+
state: FormState;
|
34
|
+
} & {
|
35
|
+
dispatch: (params: {
|
36
|
+
type: string;
|
37
|
+
payload: any;
|
38
|
+
}) => void;
|
39
|
+
}>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
2
3
|
import dayjs from "dayjs";
|
3
4
|
export interface FormState {
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
68
69
|
};
|
69
70
|
setGlobalState: Function | null;
|
70
71
|
}
|
71
|
-
export declare const Provider: any, Context:
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
73
|
+
state: FormState;
|
74
|
+
} & {
|
75
|
+
dispatch: (params: {
|
76
|
+
type: string;
|
77
|
+
payload: any;
|
78
|
+
}) => void;
|
79
|
+
}>;
|
@@ -326,7 +326,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
326
326
|
setCurrentProduct(item);
|
327
327
|
} else {
|
328
328
|
setCurrentProduct(null);
|
329
|
-
if (
|
329
|
+
if ((item === null || item === void 0 ? void 0 : item.extension_type) === 'normal') {
|
330
330
|
cacheValues = {
|
331
331
|
bundle: [],
|
332
332
|
key: item.id,
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
addWalletCard: any;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
walletDetailState: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|
@@ -1 +1,14 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: number;
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
5
|
+
}
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
7
|
+
state: RechargeState;
|
8
|
+
} & {
|
9
|
+
dispatch: (params: {
|
10
|
+
type: string;
|
11
|
+
payload: any;
|
12
|
+
}) => void;
|
13
|
+
}>;
|
14
|
+
export {};
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface RechargeState {
|
3
|
+
total: number;
|
4
|
+
}
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
+
state: RechargeState;
|
7
|
+
} & {
|
8
|
+
dispatch: (params: {
|
9
|
+
type: string;
|
10
|
+
payload: any;
|
11
|
+
}) => void;
|
12
|
+
}>;
|
13
|
+
export {};
|