@pisell/private-materials 6.5.10 → 6.5.12
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 +2 -2
- package/build/lowcode/preview.js +148 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Services/index.js +36 -18
- package/es/components/appointmentBooking/hooks.js +6 -0
- package/es/components/booking/components/footer/index.js +24 -5
- package/es/components/booking/editBookingModal/index.js +8 -2
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +145 -101
- package/es/components/checkout/components/AmountSummary/index.js +6 -4
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +14 -10
- package/es/components/checkout/components/PaymentDetailModal/index.js +76 -27
- package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.js +4 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +1 -0
- 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 +1 -1
- package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +60 -17
- package/es/components/eftposPay/payo/config.js +10 -10
- package/es/components/eftposPay/serve.js +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
- package/es/components/pay/toC/utils.js +1 -1
- package/es/components/pinModal/hooks.d.ts +7 -0
- package/es/components/pinModal/hooks.js +65 -0
- package/es/components/pinModal/index.d.ts +4 -0
- package/es/components/pinModal/index.js +98 -0
- package/es/components/pinModal/index.less +44 -0
- package/es/components/pinModal/locales.d.ts +27 -0
- package/es/components/pinModal/locales.js +26 -0
- package/es/components/pinModal/serve.d.ts +6 -0
- package/es/components/pinModal/serve.js +11 -0
- package/es/components/pinModal/types.d.ts +0 -0
- package/es/components/pinModal/types.js +0 -0
- package/es/components/pinVerifyModal/hooks.d.ts +7 -0
- package/es/components/pinVerifyModal/hooks.js +80 -0
- package/es/components/pinVerifyModal/index.d.ts +5 -0
- package/es/components/pinVerifyModal/index.js +218 -0
- package/es/components/pinVerifyModal/index.less +92 -0
- package/es/components/pinVerifyModal/locales.d.ts +24 -0
- package/es/components/pinVerifyModal/locales.js +23 -0
- package/es/components/pinVerifyModal/types.d.ts +33 -0
- package/es/components/pinVerifyModal/types.js +1 -0
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +56 -10
- package/es/components/ticketBooking/components/timeBar/index.js +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +20 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Services/index.js +13 -3
- package/lib/components/appointmentBooking/hooks.js +6 -0
- package/lib/components/booking/components/footer/index.js +21 -3
- package/lib/components/booking/editBookingModal/index.js +6 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +6 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +37 -9
- package/lib/components/checkout/components/AmountSummary/index.js +4 -4
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +6 -3
- package/lib/components/checkout/components/PaymentDetailModal/index.js +47 -14
- package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +3 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +1 -0
- 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 +1 -1
- package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +59 -15
- package/lib/components/eftposPay/payo/config.js +9 -9
- package/lib/components/eftposPay/serve.js +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
- package/lib/components/pay/toC/utils.js +1 -1
- package/lib/components/pinModal/hooks.d.ts +7 -0
- package/lib/components/pinModal/hooks.js +85 -0
- package/lib/components/pinModal/index.d.ts +4 -0
- package/lib/components/pinModal/index.js +88 -0
- package/lib/components/pinModal/index.less +44 -0
- package/lib/components/pinModal/locales.d.ts +27 -0
- package/lib/components/pinModal/locales.js +50 -0
- package/lib/components/pinModal/serve.d.ts +6 -0
- package/lib/components/pinModal/serve.js +37 -0
- package/lib/components/pinModal/types.d.ts +0 -0
- package/lib/components/pinModal/types.js +0 -0
- package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
- package/lib/components/pinVerifyModal/hooks.js +93 -0
- package/lib/components/pinVerifyModal/index.d.ts +5 -0
- package/lib/components/pinVerifyModal/index.js +230 -0
- package/lib/components/pinVerifyModal/index.less +92 -0
- package/lib/components/pinVerifyModal/locales.d.ts +24 -0
- package/lib/components/pinVerifyModal/locales.js +47 -0
- package/lib/components/pinVerifyModal/types.d.ts +33 -0
- package/lib/components/pinVerifyModal/types.js +17 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +52 -5
- package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +19 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/pin-modal/meta.ts +37 -0
- package/lowcode/pin-verify-modal/meta.ts +80 -0
- package/package.json +1 -1
@@ -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 - 购物车商品数组
|
@@ -99,7 +99,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
99
99
|
},
|
100
100
|
callback: function () {
|
101
101
|
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
102
|
-
var product, session, startDate, endDate, _data$origin, resources, activeStatus, index, stepList, hasResourceStep, description;
|
102
|
+
var product, res, session, startDate, endDate, _res, _data$origin, resources, activeStatus, _res2, index, stepList, hasResourceStep, description;
|
103
103
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
104
104
|
while (1) switch (_context.prev = _context.next) {
|
105
105
|
case 0:
|
@@ -117,7 +117,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
117
117
|
|
118
118
|
// 零售模版,直接加入购物车
|
119
119
|
if (!isRetailTemplate) {
|
120
|
-
_context.next =
|
120
|
+
_context.next = 12;
|
121
121
|
break;
|
122
122
|
}
|
123
123
|
if (!(data !== null && data !== void 0 && data.isCancel)) {
|
@@ -126,51 +126,69 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
126
126
|
}
|
127
127
|
return _context.abrupt("return");
|
128
128
|
case 8:
|
129
|
-
appointmentBooking.storeProduct(product);
|
129
|
+
res = appointmentBooking.storeProduct(product);
|
130
|
+
if (!(!res.success && res.errorCode === 'not_enough_stock')) {
|
131
|
+
_context.next = 11;
|
132
|
+
break;
|
133
|
+
}
|
134
|
+
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unuse.stock')));
|
135
|
+
case 11:
|
130
136
|
return _context.abrupt("return");
|
131
|
-
case
|
137
|
+
case 12:
|
132
138
|
session = data === null || data === void 0 ? void 0 : data.session;
|
133
139
|
if (!session) {
|
134
|
-
_context.next =
|
140
|
+
_context.next = 24;
|
135
141
|
break;
|
136
142
|
}
|
137
143
|
startDate = dayjs(session === null || session === void 0 ? void 0 : session.start_at).format('YYYY-MM-DD');
|
138
144
|
endDate = dayjs(session === null || session === void 0 ? void 0 : session.end_at).format('YYYY-MM-DD');
|
139
|
-
appointmentBooking.addProductToCart({
|
145
|
+
_res = appointmentBooking.addProductToCart({
|
140
146
|
product: _objectSpread({}, product),
|
141
147
|
date: {
|
142
148
|
startTime: "".concat(startDate, " ").concat(session === null || session === void 0 ? void 0 : session.start_time),
|
143
149
|
endTime: "".concat(endDate, " ").concat(session === null || session === void 0 ? void 0 : session.end_time)
|
144
150
|
}
|
145
151
|
});
|
146
|
-
|
152
|
+
if (!(!_res.success && _res.errorCode === 'not_enough_stock')) {
|
153
|
+
_context.next = 19;
|
154
|
+
break;
|
155
|
+
}
|
156
|
+
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unuse.stock')));
|
157
|
+
case 19:
|
158
|
+
appointmentBooking.closeProductDetail();
|
159
|
+
_context.next = 22;
|
147
160
|
return appointmentBooking.getAvailableDate({
|
148
161
|
startDate: startDate,
|
149
162
|
endDate: endDate
|
150
163
|
});
|
151
|
-
case
|
152
|
-
_context.next =
|
164
|
+
case 22:
|
165
|
+
_context.next = 34;
|
153
166
|
break;
|
154
|
-
case
|
167
|
+
case 24:
|
155
168
|
resources = (data === null || data === void 0 || (_data$origin = data.origin) === null || _data$origin === void 0 || (_data$origin = _data$origin.product_resource) === null || _data$origin === void 0 ? void 0 : _data$origin.resources) || [];
|
156
169
|
activeStatus = resources.find(function (item) {
|
157
170
|
return item.status === 1;
|
158
171
|
});
|
159
172
|
if (!(!activeStatus && !appointmentBooking.isTargetNormalProduct(data === null || data === void 0 ? void 0 : data.origin))) {
|
160
|
-
_context.next =
|
173
|
+
_context.next = 28;
|
161
174
|
break;
|
162
175
|
}
|
163
176
|
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.no.available.service')));
|
164
|
-
case
|
165
|
-
appointmentBooking.storeProduct(product);
|
166
|
-
|
177
|
+
case 28:
|
178
|
+
_res2 = appointmentBooking.storeProduct(product);
|
179
|
+
if (!(!_res2.success && _res2.errorCode === 'not_enough_stock')) {
|
180
|
+
_context.next = 31;
|
181
|
+
break;
|
182
|
+
}
|
183
|
+
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unuse.stock')));
|
184
|
+
case 31:
|
167
185
|
if (!(type === 'duration')) {
|
168
|
-
_context.next =
|
186
|
+
_context.next = 34;
|
169
187
|
break;
|
170
188
|
}
|
171
|
-
_context.next =
|
189
|
+
_context.next = 34;
|
172
190
|
return appointmentBooking.getAvailableDate();
|
173
|
-
case
|
191
|
+
case 34:
|
174
192
|
appointmentBooking.closeProductDetail();
|
175
193
|
|
176
194
|
// 先选择日期流程
|
@@ -199,7 +217,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
199
217
|
removeStep('select-time');
|
200
218
|
}
|
201
219
|
}
|
202
|
-
case
|
220
|
+
case 36:
|
203
221
|
case "end":
|
204
222
|
return _context.stop();
|
205
223
|
}
|
@@ -206,6 +206,12 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
206
206
|
if (!result) {
|
207
207
|
return Toast(locales.getText('pisell2.appointment.unuse.date'));
|
208
208
|
}
|
209
|
+
var capacityResult = appointmentBooking.checkMaxDurationCapacity();
|
210
|
+
if (!capacityResult.success) {
|
211
|
+
var getMessage = locales.getText('pisell2.appointment.unuse.capacity');
|
212
|
+
var message = typeof getMessage === 'function' ? getMessage(capacityResult.minAvailableCount) : getMessage;
|
213
|
+
return Toast(message);
|
214
|
+
}
|
209
215
|
}
|
210
216
|
if (!isRetailTemplate && currentKey !== null && currentKey !== void 0 && currentKey.startsWith('select-resource')) {
|
211
217
|
var _currentSelectedResou;
|
@@ -44,7 +44,7 @@ import dayjs from 'dayjs';
|
|
44
44
|
import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
|
45
45
|
import { Iconfont } from '@pisell/materials';
|
46
46
|
import { useCustomer } from "../../../ticketBooking/hooks/pisellos/useCustomer";
|
47
|
-
import { useDebounceEffect, useMemoizedFn } from 'ahooks';
|
47
|
+
import { useDebounceEffect, useDebounceFn, useMemoizedFn } from 'ahooks';
|
48
48
|
import { cloneDeep } from 'lodash';
|
49
49
|
import { useShopDiscount } from "../../../appointmentBooking/hooks";
|
50
50
|
|
@@ -608,13 +608,13 @@ var Footer = function Footer(props) {
|
|
608
608
|
}, [JSON.stringify(total), JSON.stringify(orderTotalList), JSON.stringify(subTotalList), (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id]);
|
609
609
|
|
610
610
|
/**
|
611
|
-
* @title: 处理checkout
|
611
|
+
* @title: 处理checkout内部函数
|
612
612
|
* @description:
|
613
613
|
* @return {*}
|
614
614
|
* @Author: zhiwei.Wang
|
615
615
|
* @Date: 2024-01-30 16:53
|
616
616
|
*/
|
617
|
-
var
|
617
|
+
var handleCheckoutInternal = /*#__PURE__*/function () {
|
618
618
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
619
619
|
var isNewOrder, isHasDayProducts, res, modalData, _res;
|
620
620
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
@@ -720,11 +720,19 @@ var Footer = function Footer(props) {
|
|
720
720
|
}
|
721
721
|
}, _callee4);
|
722
722
|
}));
|
723
|
-
return function
|
723
|
+
return function handleCheckoutInternal() {
|
724
724
|
return _ref4.apply(this, arguments);
|
725
725
|
};
|
726
726
|
}();
|
727
727
|
|
728
|
+
// 使用防抖,500毫秒内不重复执行
|
729
|
+
var _useDebounceFn = useDebounceFn(handleCheckoutInternal, {
|
730
|
+
wait: 500,
|
731
|
+
leading: true,
|
732
|
+
trailing: false
|
733
|
+
}),
|
734
|
+
handleCheckout = _useDebounceFn.run;
|
735
|
+
|
728
736
|
/**
|
729
737
|
* @title: 保存额外商品
|
730
738
|
* @description:
|
@@ -837,7 +845,7 @@ var Footer = function Footer(props) {
|
|
837
845
|
*/
|
838
846
|
var handleSave = /*#__PURE__*/function () {
|
839
847
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_ref6) {
|
840
|
-
var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
|
848
|
+
var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window7, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
|
841
849
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
842
850
|
while (1) switch (_context6.prev = _context6.next) {
|
843
851
|
case 0:
|
@@ -945,6 +953,17 @@ var Footer = function Footer(props) {
|
|
945
953
|
}, {
|
946
954
|
key: '日期',
|
947
955
|
value: dayjs().format('YYYY-MM-DD HH:mm')
|
956
|
+
}, {
|
957
|
+
key: '店铺id',
|
958
|
+
value: store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.globalConfig) === null || _store$getState === void 0 ? void 0 : _store$getState.id
|
959
|
+
}, {
|
960
|
+
key: 'shopApi',
|
961
|
+
value: JSON.stringify((_window7 = window) === null || _window7 === void 0 ? void 0 : _window7.shopApi, function (key, value) {
|
962
|
+
if (typeof value === 'function') {
|
963
|
+
return 'function';
|
964
|
+
}
|
965
|
+
return value;
|
966
|
+
})
|
948
967
|
}]
|
949
968
|
});
|
950
969
|
|
@@ -71,7 +71,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
|
|
71
71
|
var getInitData = /*#__PURE__*/function () {
|
72
72
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
73
73
|
var _data$fromResource, _data$toResource;
|
74
|
-
var mockProps, _data, _initResourceVal, fromResourceFormId, toResourceFormId, _form_id, _data$toResource2, _formatResources, list, maps, currentForm, relation_id, _currentForm$renderLi, _currentForm$renderLi2, _currentForm$renderLi3, _currentForm$renderLi4, _targetResource, _cloned, _idx, _sameResource;
|
74
|
+
var mockProps, _data, _initResourceVal, fromResourceFormId, toResourceFormId, _form_id, _data$toResource2, _formatResources, list, maps, currentForm, relation_id, _currentForm$renderLi, _currentForm$renderLi2, _currentForm$renderLi3, _currentForm$renderLi4, _targetResource, _cloned, _idx, _sameResource, _targetIdx;
|
75
75
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
76
76
|
while (1) switch (_context.prev = _context.next) {
|
77
77
|
case 0:
|
@@ -129,7 +129,13 @@ var EditBookingModal = function EditBookingModal(props, ref) {
|
|
129
129
|
_cloned[_idx] = _targetResource; // 替换现有对象
|
130
130
|
}
|
131
131
|
} else {
|
132
|
-
|
132
|
+
// 未发现原资源位置(短时间内通过其它渠道修改过资源)
|
133
|
+
_targetIdx = _cloned.findIndex(function (rs) {
|
134
|
+
return rs.relation_id == (_targetResource === null || _targetResource === void 0 ? void 0 : _targetResource.relation_id);
|
135
|
+
}); // 判断是否已经包含了目标资源,不包含则加入进来
|
136
|
+
if (_targetIdx === -1) {
|
137
|
+
_cloned.push(_targetResource); // 添加新对象
|
138
|
+
}
|
133
139
|
}
|
134
140
|
_initResourceVal = _objectSpread(_objectSpread({}, _initResourceVal), {}, _defineProperty({}, _form_id, _cloned));
|
135
141
|
} else {
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
5
5
|
handleOpen: () => void;
|
6
6
|
handleValuesChange: (val: any) => void;
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
8
8
|
};
|
9
9
|
export default useSendModal;
|
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
248
248
|
* @Author: WangHan
|
249
249
|
* @Date: 2024-12-24 11:32
|
250
250
|
*/
|
251
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
251
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
@@ -156,6 +156,8 @@ declare const _default: {
|
|
156
156
|
'pisell2.text.deposit-delete-message': string;
|
157
157
|
'pisell2.text.deposit-paid': string;
|
158
158
|
"pisell2.text.stock": string;
|
159
|
+
'pisell2.appointment.unuse.stock': string;
|
160
|
+
'pisell2.appointment.unuse.capacity': (count: number) => string;
|
159
161
|
'pisell2.text.payment-link': string;
|
160
162
|
'pisell2.text.send-mail': string;
|
161
163
|
'pisell2.text.copy-to-clipboard': string;
|
@@ -458,6 +460,8 @@ declare const _default: {
|
|
458
460
|
'pisell2.text.deposit-delete-message': string;
|
459
461
|
'pisell2.text.deposit-paid': string;
|
460
462
|
"pisell2.text.stock": string;
|
463
|
+
'pisell2.appointment.unuse.stock': string;
|
464
|
+
'pisell2.appointment.unuse.capacity': (count: number) => string;
|
461
465
|
'pisell2.text.payment-link': string;
|
462
466
|
'pisell2.text.send-mail': string;
|
463
467
|
'pisell2.text.copy-to-clipboard': string;
|
@@ -760,6 +764,8 @@ declare const _default: {
|
|
760
764
|
'pisell2.text.deposit-delete-message': string;
|
761
765
|
'pisell2.text.deposit-paid': string;
|
762
766
|
"pisell2.text.stock": string;
|
767
|
+
'pisell2.appointment.unuse.stock': string;
|
768
|
+
'pisell2.appointment.unuse.capacity': (count: number) => string;
|
763
769
|
'pisell2.text.payment-link': string;
|
764
770
|
'pisell2.text.send-mail': string;
|
765
771
|
'pisell2.text.copy-to-clipboard': string;
|
@@ -174,6 +174,10 @@ export default {
|
|
174
174
|
'pisell2.text.deposit-delete-message': "It cannot be restored after deletion. Please confirm the operation.",
|
175
175
|
'pisell2.text.deposit-paid': "Deposit paid",
|
176
176
|
"pisell2.text.stock": "Stock",
|
177
|
+
'pisell2.appointment.unuse.stock': "Not enough stock",
|
178
|
+
'pisell2.appointment.unuse.capacity': function pisell2AppointmentUnuseCapacity(count) {
|
179
|
+
return "Only ".concat(count, " spots available. Please reduce quantity.");
|
180
|
+
},
|
177
181
|
'pisell2.text.payment-link': "Payment link",
|
178
182
|
'pisell2.text.send-mail': "Send email",
|
179
183
|
'pisell2.text.copy-to-clipboard': "Copy to clipboard",
|
@@ -531,6 +535,10 @@ export default {
|
|
531
535
|
'pisell2.text.deposit-delete-message': "删除后不可恢复,请确认操作",
|
532
536
|
'pisell2.text.deposit-paid': "已付定金",
|
533
537
|
"pisell2.text.stock": "库存",
|
538
|
+
'pisell2.appointment.unuse.stock': "库存不足",
|
539
|
+
'pisell2.appointment.unuse.capacity': function pisell2AppointmentUnuseCapacity(count) {
|
540
|
+
return "\u4EC5\u53EF\u9884\u7EA6 ".concat(count, " \u4E2A\uFF0C\u8BF7\u51CF\u5C11\u6570\u91CF");
|
541
|
+
},
|
534
542
|
'pisell2.text.payment-link': "付款链接",
|
535
543
|
'pisell2.text.send-mail': "发送邮件",
|
536
544
|
'pisell2.text.copy-to-clipboard': "复制到剪切板",
|
@@ -888,6 +896,10 @@ export default {
|
|
888
896
|
'pisell2.text.deposit-delete-message': "刪除後不可恢復,請確認操作",
|
889
897
|
'pisell2.text.deposit-paid': "已付定金",
|
890
898
|
"pisell2.text.stock": "庫存",
|
899
|
+
'pisell2.appointment.unuse.stock': "庫存不足",
|
900
|
+
'pisell2.appointment.unuse.capacity': function pisell2AppointmentUnuseCapacity(count) {
|
901
|
+
return "\u50C5\u53EF\u9810\u7D04 ".concat(count, " \u500B\uFF0C\u8ACB\u6E1B\u5C11\u6578\u91CF");
|
902
|
+
},
|
891
903
|
'pisell2.text.payment-link': "付款鏈接",
|
892
904
|
'pisell2.text.send-mail': "發送郵件",
|
893
905
|
'pisell2.text.copy-to-clipboard': "複製到剪切板",
|
@@ -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 | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
};
|
171
|
+
} | "flexible";
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|