@pisell/private-materials 3.0.28 → 3.0.30
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 +7 -7
- 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/collapsibleList/index.js +1 -1
- package/es/components/booking/components/footer/utils.js +5 -1
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/ClientItem/index.js +43 -0
- package/es/components/booking/deposit/ClientItem/index.less +37 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +20 -0
- package/es/components/booking/deposit/DepositItem/index.js +105 -0
- package/es/components/booking/deposit/DepositItem/index.less +88 -0
- package/es/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/es/components/booking/deposit/EditDepositModal/index.js +126 -0
- package/es/components/booking/deposit/EditDepositModal/index.less +24 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/deposit/index.js +164 -0
- package/es/components/booking/deposit/index.less +3 -0
- package/es/components/booking/deposit/serve.d.ts +8 -0
- package/es/components/booking/deposit/serve.js +27 -0
- package/es/components/booking/forms/index.js +2 -1
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/editService/index.js +50 -21
- package/es/components/booking/locales.d.ts +54 -0
- package/es/components/booking/locales.js +57 -3
- package/es/components/booking/utils.d.ts +37 -0
- package/es/components/booking/utils.js +71 -8
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/booking/components/collapsibleList/index.js +1 -1
- package/lib/components/booking/components/footer/utils.js +4 -1
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/ClientItem/index.js +71 -0
- package/lib/components/booking/deposit/ClientItem/index.less +37 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +20 -0
- package/lib/components/booking/deposit/DepositItem/index.js +112 -0
- package/lib/components/booking/deposit/DepositItem/index.less +88 -0
- package/lib/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/lib/components/booking/deposit/EditDepositModal/index.js +131 -0
- package/lib/components/booking/deposit/EditDepositModal/index.less +24 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/deposit/index.js +186 -0
- package/lib/components/booking/deposit/index.less +3 -0
- package/lib/components/booking/deposit/serve.d.ts +8 -0
- package/lib/components/booking/deposit/serve.js +30 -0
- package/lib/components/booking/forms/index.js +1 -1
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/editService/index.js +33 -11
- package/lib/components/booking/locales.d.ts +54 -0
- package/lib/components/booking/locales.js +57 -3
- package/lib/components/booking/utils.d.ts +37 -0
- package/lib/components/booking/utils.js +33 -10
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/booking-deposit/meta.ts +93 -0
- package/package.json +3 -3
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
+
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."); }
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
12
|
+
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; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
import React, { useMemo, useRef, useState } from "react";
|
|
15
|
+
import { formatAmount, locales } from "@pisell/utils";
|
|
16
|
+
import EmptyBooking from "../components/emptyBooking";
|
|
17
|
+
import TabPane from "../components/tabPane";
|
|
18
|
+
import DepositItem from "./DepositItem";
|
|
19
|
+
import EditDepositModal from "./EditDepositModal";
|
|
20
|
+
import { Button, Modal } from "antd";
|
|
21
|
+
import { getSumTotal } from "../components/footer/amount";
|
|
22
|
+
import useEngineContext from "../../../hooks/useEngineContext";
|
|
23
|
+
import { request } from "../utils";
|
|
24
|
+
import { editDepositAmount } from "./serve";
|
|
25
|
+
import dayjs from "dayjs";
|
|
26
|
+
var Deposit = function Deposit(props) {
|
|
27
|
+
var _context$appHelper, _bookingDetail$bookin;
|
|
28
|
+
var globalState = props.globalState,
|
|
29
|
+
setState = props.setState;
|
|
30
|
+
var _useState = useState(false),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
loading = _useState2[0],
|
|
33
|
+
setLoading = _useState2[1];
|
|
34
|
+
var _Modal$useModal = Modal.useModal(),
|
|
35
|
+
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
36
|
+
modal = _Modal$useModal2[0],
|
|
37
|
+
contextHolder = _Modal$useModal2[1];
|
|
38
|
+
var editDepositModalRef = useRef();
|
|
39
|
+
var context = useEngineContext();
|
|
40
|
+
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
41
|
+
isTerminal = _ref.isTerminal,
|
|
42
|
+
interaction = _ref.interaction;
|
|
43
|
+
request.setRequest(context.appHelper.utils.request);
|
|
44
|
+
var bookingDetail = globalState.bookingDetail,
|
|
45
|
+
bookingId = globalState.bookingId,
|
|
46
|
+
amountSymbol = globalState.amountSymbol,
|
|
47
|
+
generatePaymentLink = globalState.generatePaymentLink,
|
|
48
|
+
locale = globalState.locale;
|
|
49
|
+
var create = function create() {
|
|
50
|
+
var _editDepositModalRef$, _editDepositModalRef$2;
|
|
51
|
+
(_editDepositModalRef$ = editDepositModalRef.current) === null || _editDepositModalRef$ === void 0 ? void 0 : (_editDepositModalRef$2 = _editDepositModalRef$.handleOpen) === null || _editDepositModalRef$2 === void 0 ? void 0 : _editDepositModalRef$2.call(_editDepositModalRef$);
|
|
52
|
+
};
|
|
53
|
+
var deleteDeposit = function deleteDeposit() {
|
|
54
|
+
modal.confirm({
|
|
55
|
+
title: locales.getText("pisell2.text.deposit-delete-message-title"),
|
|
56
|
+
content: locales.getText('pisell2.text.deposit-delete-message'),
|
|
57
|
+
onOk: function onOk() {
|
|
58
|
+
editDepositAmount(bookingDetail.id, {
|
|
59
|
+
deposit_amount: 0
|
|
60
|
+
}).then(function (res) {
|
|
61
|
+
setState({
|
|
62
|
+
bookingDetail: _objectSpread(_objectSpread({}, bookingDetail), {}, {
|
|
63
|
+
deposit_amount: 0
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// 订单金额计算
|
|
72
|
+
var total = useMemo(function () {
|
|
73
|
+
return getSumTotal(globalState, false);
|
|
74
|
+
}, [globalState]);
|
|
75
|
+
var depositList = useMemo(function () {
|
|
76
|
+
if (!bookingId) return [];
|
|
77
|
+
if (Number(bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.deposit_amount) === 0) return [];
|
|
78
|
+
return [{
|
|
79
|
+
customer: bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.customer,
|
|
80
|
+
status: bookingDetail !== null && bookingDetail !== void 0 && bookingDetail.deposit_payment_time ? "paid" : "unpaid",
|
|
81
|
+
totalAmount: total.expectAmount,
|
|
82
|
+
depositAmount: bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.deposit_amount,
|
|
83
|
+
createdTime: dayjs(bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.created_at).format(locale === 'en' ? "dddd, D MMMM YYYY HH:mm" : "YYYY-MM-DD HH:mm"),
|
|
84
|
+
orderId: bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.id,
|
|
85
|
+
orderNumber: bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.shop_full_order_number,
|
|
86
|
+
amountSymbol: (globalState === null || globalState === void 0 ? void 0 : globalState.amountSymbol) || "$",
|
|
87
|
+
totalAmountStr: formatAmount(total.expectAmount, 2, (globalState === null || globalState === void 0 ? void 0 : globalState.amountSymbol) || "$")
|
|
88
|
+
}];
|
|
89
|
+
}, [bookingDetail, total === null || total === void 0 ? void 0 : total.expectAmount, globalState === null || globalState === void 0 ? void 0 : globalState.amountSymbol, bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.deposit_amount]);
|
|
90
|
+
var isBookingCancelled = (bookingDetail === null || bookingDetail === void 0 ? void 0 : (_bookingDetail$bookin = bookingDetail.bookings) === null || _bookingDetail$bookin === void 0 ? void 0 : _bookingDetail$bookin.appointment_status) === 'cancelled';
|
|
91
|
+
var isPaid = (bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.payment_time) !== null;
|
|
92
|
+
var footer = useMemo(function () {
|
|
93
|
+
if (!bookingId) return null;
|
|
94
|
+
// 预约状态取消时不展示添加按钮
|
|
95
|
+
if (isBookingCancelled) return null;
|
|
96
|
+
// 已经支付过的不展示添加按钮
|
|
97
|
+
if (isPaid) return null;
|
|
98
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
className: "pisell-lowcode__booking-deposit-footer"
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
101
|
+
size: "large",
|
|
102
|
+
block: true,
|
|
103
|
+
onClick: depositList.length > 0 ? deleteDeposit : create
|
|
104
|
+
}, depositList.length > 0 ? locales.getText("pisell2.text.deposit-delete") : locales.getText("pisell2.text.add")));
|
|
105
|
+
}, [depositList, isBookingCancelled, isPaid]);
|
|
106
|
+
var handleEdit = function handleEdit(e, item) {
|
|
107
|
+
var _editDepositModalRef$3, _editDepositModalRef$4;
|
|
108
|
+
(_editDepositModalRef$3 = editDepositModalRef.current) === null || _editDepositModalRef$3 === void 0 ? void 0 : (_editDepositModalRef$4 = _editDepositModalRef$3.handleOpen) === null || _editDepositModalRef$4 === void 0 ? void 0 : _editDepositModalRef$4.call(_editDepositModalRef$3, item.depositAmount);
|
|
109
|
+
};
|
|
110
|
+
var handleChange = function handleChange(amount) {
|
|
111
|
+
editDepositAmount(bookingDetail.id, {
|
|
112
|
+
deposit_amount: amount
|
|
113
|
+
}).then(function (res) {
|
|
114
|
+
setState({
|
|
115
|
+
bookingDetail: _objectSpread(_objectSpread({}, bookingDetail), {}, {
|
|
116
|
+
deposit_amount: amount
|
|
117
|
+
})
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
var handleGoOrderDetail = function handleGoOrderDetail() {
|
|
122
|
+
if (isTerminal !== null && isTerminal !== void 0 && isTerminal()) {
|
|
123
|
+
var _interaction$utils, _interaction$utils$po;
|
|
124
|
+
return interaction === null || interaction === void 0 ? void 0 : (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 ? void 0 : (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
|
|
125
|
+
module: "booking",
|
|
126
|
+
key: "edit_order",
|
|
127
|
+
data: {
|
|
128
|
+
order_id: bookingDetail.id
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
globalState.action({
|
|
133
|
+
type: "pisell1.goOrderDetail",
|
|
134
|
+
data: {
|
|
135
|
+
"[unique_order_id]": bookingDetail.id
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
return /*#__PURE__*/React.createElement(TabPane, {
|
|
140
|
+
loading: loading,
|
|
141
|
+
header: locales.getText("pisell2.text.deposit-list"),
|
|
142
|
+
footer: footer
|
|
143
|
+
}, !bookingId || !depositList.length ? /*#__PURE__*/React.createElement(EmptyBooking, {
|
|
144
|
+
description: !bookingId ? undefined : locales.getText("pisell2.text.deposit-list-empty")
|
|
145
|
+
}) : depositList.map(function (item) {
|
|
146
|
+
return /*#__PURE__*/React.createElement(DepositItem, _extends({
|
|
147
|
+
key: item.status
|
|
148
|
+
}, item, {
|
|
149
|
+
generatePaymentLink: generatePaymentLink,
|
|
150
|
+
handleGoOrderDetail: handleGoOrderDetail,
|
|
151
|
+
onEdit: function onEdit(e) {
|
|
152
|
+
return handleEdit(e, item);
|
|
153
|
+
},
|
|
154
|
+
isPaid: isPaid,
|
|
155
|
+
isBookingCancelled: isBookingCancelled
|
|
156
|
+
}));
|
|
157
|
+
}), /*#__PURE__*/React.createElement(EditDepositModal, {
|
|
158
|
+
totalAmount: total.expectAmount,
|
|
159
|
+
ref: editDepositModalRef,
|
|
160
|
+
amountSymbol: amountSymbol,
|
|
161
|
+
onChange: handleChange
|
|
162
|
+
}), contextHolder);
|
|
163
|
+
};
|
|
164
|
+
export default Deposit;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
import { request } from "../utils";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 编辑订单金额
|
|
9
|
+
* @param orderId
|
|
10
|
+
* @param params
|
|
11
|
+
*/
|
|
12
|
+
export var editDepositAmount = /*#__PURE__*/function () {
|
|
13
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId, params) {
|
|
14
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16
|
+
case 0:
|
|
17
|
+
return _context.abrupt("return", request.getRequest().put("/shop/order/appointment/deposit/".concat(orderId), params));
|
|
18
|
+
case 1:
|
|
19
|
+
case "end":
|
|
20
|
+
return _context.stop();
|
|
21
|
+
}
|
|
22
|
+
}, _callee);
|
|
23
|
+
}));
|
|
24
|
+
return function editDepositAmount(_x, _x2) {
|
|
25
|
+
return _ref.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
}();
|
|
@@ -209,7 +209,8 @@ var Forms = Provider(function (props) {
|
|
|
209
209
|
data = _context4.sent;
|
|
210
210
|
message.success(locales.getText("pisell2.text.forms") + locales.getText("pisell2.text.updated"));
|
|
211
211
|
state === null || state === void 0 ? void 0 : state.callback({
|
|
212
|
-
order_id: state.bookingId
|
|
212
|
+
order_id: state.bookingId,
|
|
213
|
+
afterCloseUpdate: true
|
|
213
214
|
});
|
|
214
215
|
_context4.next = 10;
|
|
215
216
|
break;
|
|
@@ -203,12 +203,11 @@ var Info = function Info() {
|
|
|
203
203
|
quantity: 1,
|
|
204
204
|
price: item.price,
|
|
205
205
|
product_name: item.title,
|
|
206
|
-
other: e
|
|
206
|
+
other: JSON.parse(JSON.stringify(e))
|
|
207
207
|
},
|
|
208
208
|
new: 1
|
|
209
209
|
});
|
|
210
210
|
var _total = getProductTotalPrice(cacheItem);
|
|
211
|
-
console.log("_total", e);
|
|
212
211
|
// 用于折扣 可修改
|
|
213
212
|
cacheItem._extend.total = _total;
|
|
214
213
|
// 用于储存原价
|
|
@@ -219,6 +218,7 @@ var Info = function Info() {
|
|
|
219
218
|
cacheItem._id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
|
|
220
219
|
cacheItem.new = 0;
|
|
221
220
|
}
|
|
221
|
+
console.log("_total", cacheItem);
|
|
222
222
|
dispatch({
|
|
223
223
|
type: "setService",
|
|
224
224
|
payload: {
|
|
@@ -35,7 +35,7 @@ import { sliceDayIntoFiveMinutes, formatResource, getErrorList, getServiceTimes,
|
|
|
35
35
|
import Like from "../like";
|
|
36
36
|
import { getNoResource } from "../../../mock";
|
|
37
37
|
var Info = function Info() {
|
|
38
|
-
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service3, _state$service3$cache, _state$service5, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$
|
|
38
|
+
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI6, _state$service$cacheI7;
|
|
39
39
|
var _Form$useForm = Form.useForm(),
|
|
40
40
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
41
41
|
form = _Form$useForm2[0];
|
|
@@ -135,6 +135,7 @@ var Info = function Info() {
|
|
|
135
135
|
var timeObj = useMemo(function () {
|
|
136
136
|
var _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7;
|
|
137
137
|
var obj = sliceDayIntoFiveMinutes((_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.config) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.basic) === null || _state$bookingConfig7 === void 0 ? void 0 : _state$bookingConfig7.service_time, locales.locale);
|
|
138
|
+
var timeSlices = _toConsumableArray(obj.timeSlices);
|
|
138
139
|
var durationSlicesBasedOnTime = _toConsumableArray(obj.durationSlicesBasedOnTime);
|
|
139
140
|
|
|
140
141
|
// 如果商品是灵活时长, 则增加灵活的选项
|
|
@@ -153,10 +154,26 @@ var Info = function Info() {
|
|
|
153
154
|
disabled: true
|
|
154
155
|
});
|
|
155
156
|
}
|
|
157
|
+
// 如果有选择时间, 但是不在列表内 则需要在列表内添加上此值
|
|
158
|
+
if (useStartTime && useStartTime !== "now" && !timeSlices.some(function (d) {
|
|
159
|
+
return d.value === useStartTime;
|
|
160
|
+
})) {
|
|
161
|
+
timeSlices.unshift({
|
|
162
|
+
label: dayjs(useStartTime, "HH:mm").format("hh:mm A"),
|
|
163
|
+
value: useStartTime
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// 增加当前
|
|
168
|
+
timeSlices.unshift({
|
|
169
|
+
label: locales.getText("pisell2.text.now"),
|
|
170
|
+
value: "now"
|
|
171
|
+
});
|
|
156
172
|
return _objectSpread(_objectSpread({}, obj), {}, {
|
|
173
|
+
timeSlices: timeSlices,
|
|
157
174
|
durationSlicesBasedOnTime: durationSlicesBasedOnTime
|
|
158
175
|
});
|
|
159
|
-
}, [state, locales.locale, useDuration, flexibleOption]);
|
|
176
|
+
}, [state, locales.locale, useDuration, useStartTime, flexibleOption]);
|
|
160
177
|
|
|
161
178
|
// 由于灵活时长的结束时间随时变动, 这里发现如果当前选择的值没有在列表内,则选择最新的灵活时长值
|
|
162
179
|
useEffect(function () {
|
|
@@ -180,7 +197,7 @@ var Info = function Info() {
|
|
|
180
197
|
*/
|
|
181
198
|
var getResources = /*#__PURE__*/function () {
|
|
182
199
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cacheItem) {
|
|
183
|
-
var data, _list, _cacheItem;
|
|
200
|
+
var data, _list, _cacheItem, _useResource;
|
|
184
201
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
185
202
|
while (1) switch (_context.prev = _context.next) {
|
|
186
203
|
case 0:
|
|
@@ -223,13 +240,23 @@ var Info = function Info() {
|
|
|
223
240
|
_list = _list.sort(function (a, b) {
|
|
224
241
|
return b.usable ? 1 : -1;
|
|
225
242
|
});
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
243
|
+
if (useResource) {
|
|
244
|
+
// 校验, 如果当前选择的资源 在列表里没找到, 则恢复成无资源, 防止数据错乱
|
|
245
|
+
if (!_list.find(function (d) {
|
|
246
|
+
return d.form_record_id === useResource;
|
|
247
|
+
})) {
|
|
248
|
+
form.setFieldsValue({
|
|
249
|
+
resource: 0
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
// 如果只有一个资源,并且当前未选择, 则默认选中
|
|
254
|
+
_useResource = 0;
|
|
255
|
+
if (_list.length === 2) {
|
|
256
|
+
_useResource = _list[1].form_record_id;
|
|
257
|
+
}
|
|
231
258
|
form.setFieldsValue({
|
|
232
|
-
resource:
|
|
259
|
+
resource: _useResource
|
|
233
260
|
});
|
|
234
261
|
}
|
|
235
262
|
dispatch({
|
|
@@ -380,7 +407,7 @@ var Info = function Info() {
|
|
|
380
407
|
* @Date: 2024-01-09 14:04
|
|
381
408
|
*/
|
|
382
409
|
var onFinish = function onFinish(values) {
|
|
383
|
-
var _currentResource$_ext2
|
|
410
|
+
var _currentResource$_ext2;
|
|
384
411
|
var _list = _toConsumableArray(state.service.value);
|
|
385
412
|
var _item = _objectSpread(_objectSpread({}, state.service.cacheItem), {}, {
|
|
386
413
|
errorList: errorList
|
|
@@ -404,12 +431,14 @@ var Info = function Info() {
|
|
|
404
431
|
_extend.bundle_edit = 1;
|
|
405
432
|
}
|
|
406
433
|
_item._extend = _extend;
|
|
434
|
+
var _id = _item === null || _item === void 0 ? void 0 : _item._id;
|
|
407
435
|
|
|
408
436
|
// 判断是新增还是编辑
|
|
409
|
-
if ((
|
|
437
|
+
if (!_list.some(function (d) {
|
|
438
|
+
return d._id === _id;
|
|
439
|
+
})) {
|
|
410
440
|
_list.push(_item);
|
|
411
441
|
} else {
|
|
412
|
-
var _id = _item === null || _item === void 0 ? void 0 : _item._id;
|
|
413
442
|
_list = _list.map(function (d) {
|
|
414
443
|
return d._id === _id ? _objectSpread(_objectSpread({}, _item), {}, {
|
|
415
444
|
new: 0
|
|
@@ -432,7 +461,7 @@ var Info = function Info() {
|
|
|
432
461
|
if (state.service.editModal) {
|
|
433
462
|
var cacheItem = state.service.cacheItem;
|
|
434
463
|
form.setFieldsValue(getServerItemExtend(state, cacheItem, timeObj));
|
|
435
|
-
if (state.renderType !==
|
|
464
|
+
if (state.renderType !== "eventBooking") {
|
|
436
465
|
// 获取资源列表
|
|
437
466
|
getResources();
|
|
438
467
|
}
|
|
@@ -450,8 +479,8 @@ var Info = function Info() {
|
|
|
450
479
|
* @Date: 2024-01-09 14:06
|
|
451
480
|
*/
|
|
452
481
|
var isReason = useMemo(function () {
|
|
453
|
-
var _state$service$
|
|
454
|
-
var oPrice = Number(((_state$service$
|
|
482
|
+
var _state$service$cacheI3;
|
|
483
|
+
var oPrice = Number(((_state$service$cacheI3 = state.service.cacheItem) === null || _state$service$cacheI3 === void 0 ? void 0 : _state$service$cacheI3._extend.origin_total) || 0);
|
|
455
484
|
var cPrice = Number(useTotal || 0);
|
|
456
485
|
// 原价 !== 现价
|
|
457
486
|
return cPrice !== oPrice;
|
|
@@ -477,7 +506,7 @@ var Info = function Info() {
|
|
|
477
506
|
* @Date: 2024-01-09 14:07
|
|
478
507
|
*/
|
|
479
508
|
useUpdateEffect(function () {
|
|
480
|
-
if (useStartTime && useDuration && state.renderType !==
|
|
509
|
+
if (useStartTime && useDuration && state.renderType !== "eventBooking") {
|
|
481
510
|
getResources();
|
|
482
511
|
}
|
|
483
512
|
}, [useStartTime, useDuration, state.renderType]);
|
|
@@ -533,7 +562,7 @@ var Info = function Info() {
|
|
|
533
562
|
var bundles = useMemo(function () {
|
|
534
563
|
var _state$service4, _state$service4$cache, _state$service4$cache2, _state$service4$cache3;
|
|
535
564
|
return ((_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$cache = _state$service4.cacheItem) === null || _state$service4$cache === void 0 ? void 0 : (_state$service4$cache2 = _state$service4$cache._extend) === null || _state$service4$cache2 === void 0 ? void 0 : (_state$service4$cache3 = _state$service4$cache2.other) === null || _state$service4$cache3 === void 0 ? void 0 : _state$service4$cache3.bundle) || [];
|
|
536
|
-
}, [(_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : _state$service5.cacheItem]);
|
|
565
|
+
}, [(_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : (_state$service5$cache = _state$service5.cacheItem) === null || _state$service5$cache === void 0 ? void 0 : (_state$service5$cache2 = _state$service5$cache._extend) === null || _state$service5$cache2 === void 0 ? void 0 : (_state$service5$cache3 = _state$service5$cache2.other) === null || _state$service5$cache3 === void 0 ? void 0 : _state$service5$cache3.bundle]);
|
|
537
566
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
538
567
|
zIndex: 1000,
|
|
539
568
|
open: state.service.editModal,
|
|
@@ -603,8 +632,8 @@ var Info = function Info() {
|
|
|
603
632
|
width: "100%"
|
|
604
633
|
},
|
|
605
634
|
min: 0,
|
|
606
|
-
max: ((_state$service$
|
|
607
|
-
placeholder: ((_state$service$
|
|
635
|
+
max: ((_state$service$cacheI4 = state.service.cacheItem) === null || _state$service$cacheI4 === void 0 ? void 0 : (_state$service$cacheI5 = _state$service$cacheI4._extend) === null || _state$service$cacheI5 === void 0 ? void 0 : _state$service$cacheI5.origin_total) || 0,
|
|
636
|
+
placeholder: ((_state$service$cacheI6 = state.service.cacheItem) === null || _state$service$cacheI6 === void 0 ? void 0 : (_state$service$cacheI7 = _state$service$cacheI6._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total) || "0"
|
|
608
637
|
}))), /*#__PURE__*/React.createElement(Col, {
|
|
609
638
|
span: 12
|
|
610
639
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -627,7 +656,7 @@ var Info = function Info() {
|
|
|
627
656
|
name: "discount_reason"
|
|
628
657
|
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
629
658
|
size: "large"
|
|
630
|
-
}))) : null, state.renderType !==
|
|
659
|
+
}))) : null, state.renderType !== "eventBooking" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
|
|
631
660
|
span: 12
|
|
632
661
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
633
662
|
label: locales.getText("pisell2.text.start_time"),
|
|
@@ -685,7 +714,7 @@ var Info = function Info() {
|
|
|
685
714
|
}, /*#__PURE__*/React.createElement(InputNumber, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
686
715
|
hidden: true,
|
|
687
716
|
name: "like_status"
|
|
688
|
-
}, /*#__PURE__*/React.createElement(Input, null))))), state.renderType !==
|
|
717
|
+
}, /*#__PURE__*/React.createElement(Input, null))))), state.renderType !== "eventBooking" && errorList.map(function (d, i) {
|
|
689
718
|
return /*#__PURE__*/React.createElement(Alert, {
|
|
690
719
|
key: d.type,
|
|
691
720
|
message: d.label,
|
|
@@ -122,6 +122,24 @@ declare const _default: {
|
|
|
122
122
|
'pisell2.text.order.sales.channel.tableorder': string;
|
|
123
123
|
'pisell2.text.order.sales.channel.reserve': string;
|
|
124
124
|
'pisell2.text.rebook': string;
|
|
125
|
+
'pisell2.text.now': string;
|
|
126
|
+
'pisell2.text.deposit-list': string;
|
|
127
|
+
'pisell2.text.deposit-item-status-paid': string;
|
|
128
|
+
'pisell2.text.deposit-item-status-unpaid': string;
|
|
129
|
+
'pisell2.text.deposit-order-total': string;
|
|
130
|
+
'pisell2.text.deposit-order-detail': string;
|
|
131
|
+
'pisell2.text.deposit-collect-deposit': string;
|
|
132
|
+
'pisell2.text.deposit-order-no': string;
|
|
133
|
+
'pisell2.text.deposit-amount': string;
|
|
134
|
+
'pisell2.text.deposit-deposit-amount': string;
|
|
135
|
+
'pisell2.text.deposit-generate-payment-link': string;
|
|
136
|
+
'pisell2.text.deposit-list-empty': string;
|
|
137
|
+
'pisell2.text.deposit-amount-message': string;
|
|
138
|
+
'pisell2.text.deposit-amount-message2': string;
|
|
139
|
+
'pisell2.text.deposit-amount-message3': string;
|
|
140
|
+
'pisell2.text.deposit-delete': string;
|
|
141
|
+
'pisell2.text.deposit-delete-message-title': string;
|
|
142
|
+
'pisell2.text.deposit-delete-message': string;
|
|
125
143
|
};
|
|
126
144
|
'zh-CN': {
|
|
127
145
|
'pisell2.text.refunded-amount': string;
|
|
@@ -246,6 +264,24 @@ declare const _default: {
|
|
|
246
264
|
'pisell2.text.order.sales.channel.tableorder': string;
|
|
247
265
|
'pisell2.text.order.sales.channel.reserve': string;
|
|
248
266
|
'pisell2.text.rebook': string;
|
|
267
|
+
'pisell2.text.now': string;
|
|
268
|
+
'pisell2.text.deposit-list': string;
|
|
269
|
+
'pisell2.text.deposit-item-status-paid': string;
|
|
270
|
+
'pisell2.text.deposit-item-status-unpaid': string;
|
|
271
|
+
'pisell2.text.deposit-order-total': string;
|
|
272
|
+
'pisell2.text.deposit-order-detail': string;
|
|
273
|
+
'pisell2.text.deposit-collect-deposit': string;
|
|
274
|
+
'pisell2.text.deposit-order-no': string;
|
|
275
|
+
'pisell2.text.deposit-amount': string;
|
|
276
|
+
'pisell2.text.deposit-deposit-amount': string;
|
|
277
|
+
'pisell2.text.deposit-generate-payment-link': string;
|
|
278
|
+
'pisell2.text.deposit-list-empty': string;
|
|
279
|
+
'pisell2.text.deposit-amount-message': string;
|
|
280
|
+
'pisell2.text.deposit-amount-message2': string;
|
|
281
|
+
'pisell2.text.deposit-amount-message3': string;
|
|
282
|
+
'pisell2.text.deposit-delete': string;
|
|
283
|
+
'pisell2.text.deposit-delete-message-title': string;
|
|
284
|
+
'pisell2.text.deposit-delete-message': string;
|
|
249
285
|
};
|
|
250
286
|
'zh-HK': {
|
|
251
287
|
'pisell2.text.refunded-amount': string;
|
|
@@ -370,6 +406,24 @@ declare const _default: {
|
|
|
370
406
|
'pisell2.text.order.sales.channel.tableorder': string;
|
|
371
407
|
'pisell2.text.order.sales.channel.reserve': string;
|
|
372
408
|
'pisell2.text.rebook': string;
|
|
409
|
+
'pisell2.text.now': string;
|
|
410
|
+
'pisell2.text.deposit-list': string;
|
|
411
|
+
'pisell2.text.deposit-item-status-paid': string;
|
|
412
|
+
'pisell2.text.deposit-item-status-unpaid': string;
|
|
413
|
+
'pisell2.text.deposit-order-total': string;
|
|
414
|
+
'pisell2.text.deposit-order-detail': string;
|
|
415
|
+
'pisell2.text.deposit-collect-deposit': string;
|
|
416
|
+
'pisell2.text.deposit-order-no': string;
|
|
417
|
+
'pisell2.text.deposit-amount': string;
|
|
418
|
+
'pisell2.text.deposit-deposit-amount': string;
|
|
419
|
+
'pisell2.text.deposit-generate-payment-link': string;
|
|
420
|
+
'pisell2.text.deposit-list-empty': string;
|
|
421
|
+
'pisell2.text.deposit-amount-message': string;
|
|
422
|
+
'pisell2.text.deposit-amount-message2': string;
|
|
423
|
+
'pisell2.text.deposit-amount-message3': string;
|
|
424
|
+
'pisell2.text.deposit-delete': string;
|
|
425
|
+
'pisell2.text.deposit-delete-message-title': string;
|
|
426
|
+
'pisell2.text.deposit-delete-message': string;
|
|
373
427
|
};
|
|
374
428
|
};
|
|
375
429
|
export default _default;
|
|
@@ -136,7 +136,25 @@ export default {
|
|
|
136
136
|
'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
|
|
137
137
|
'pisell2.text.order.sales.channel.tableorder': "Table Order",
|
|
138
138
|
'pisell2.text.order.sales.channel.reserve': "Google Reservation",
|
|
139
|
-
'pisell2.text.rebook': "Rebook"
|
|
139
|
+
'pisell2.text.rebook': "Rebook",
|
|
140
|
+
'pisell2.text.now': 'Now',
|
|
141
|
+
'pisell2.text.deposit-list': "Deposit List",
|
|
142
|
+
'pisell2.text.deposit-item-status-paid': "Paid",
|
|
143
|
+
'pisell2.text.deposit-item-status-unpaid': "Unpaid",
|
|
144
|
+
'pisell2.text.deposit-order-total': "Order Total",
|
|
145
|
+
'pisell2.text.deposit-order-detail': "Order Details",
|
|
146
|
+
'pisell2.text.deposit-collect-deposit': "Collect Deposit",
|
|
147
|
+
'pisell2.text.deposit-order-no': "Order No",
|
|
148
|
+
'pisell2.text.deposit-amount': "Amount",
|
|
149
|
+
'pisell2.text.deposit-deposit-amount': "Deposit Amount",
|
|
150
|
+
'pisell2.text.deposit-generate-payment-link': "Generate Payment Link",
|
|
151
|
+
'pisell2.text.deposit-list-empty': "Please add a deposit",
|
|
152
|
+
'pisell2.text.deposit-amount-message': "Amount must be greater than 0",
|
|
153
|
+
'pisell2.text.deposit-amount-message2': "The deposit amount cannot be greater than the total order amount",
|
|
154
|
+
'pisell2.text.deposit-amount-message3': "Please enter the deposit amount",
|
|
155
|
+
'pisell2.text.deposit-delete': "Delete deposit",
|
|
156
|
+
'pisell2.text.deposit-delete-message-title': "Prompt",
|
|
157
|
+
'pisell2.text.deposit-delete-message': "It cannot be restored after deletion. Please confirm the operation."
|
|
140
158
|
},
|
|
141
159
|
'zh-CN': {
|
|
142
160
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -280,7 +298,25 @@ export default {
|
|
|
280
298
|
'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
|
|
281
299
|
'pisell2.text.order.sales.channel.tableorder': "扫码点餐",
|
|
282
300
|
'pisell2.text.order.sales.channel.reserve': "谷歌预约",
|
|
283
|
-
'pisell2.text.rebook': "再次预约"
|
|
301
|
+
'pisell2.text.rebook': "再次预约",
|
|
302
|
+
'pisell2.text.now': '现在',
|
|
303
|
+
'pisell2.text.deposit-list': "定金列表",
|
|
304
|
+
'pisell2.text.deposit-item-status-paid': "已支付",
|
|
305
|
+
'pisell2.text.deposit-item-status-unpaid': "未支付",
|
|
306
|
+
'pisell2.text.deposit-order-total': "订单总额",
|
|
307
|
+
'pisell2.text.deposit-order-detail': "订单详情",
|
|
308
|
+
'pisell2.text.deposit-collect-deposit': "收定金",
|
|
309
|
+
'pisell2.text.deposit-order-no': "订单编号",
|
|
310
|
+
'pisell2.text.deposit-amount': "金额",
|
|
311
|
+
'pisell2.text.deposit-deposit-amount': "定金金额",
|
|
312
|
+
'pisell2.text.deposit-generate-payment-link': "生成支付链接",
|
|
313
|
+
'pisell2.text.deposit-list-empty': "请添加定金",
|
|
314
|
+
'pisell2.text.deposit-amount-message': "金额必须大于0",
|
|
315
|
+
'pisell2.text.deposit-amount-message2': "定金金额不能大于订单总额",
|
|
316
|
+
'pisell2.text.deposit-amount-message3': "请输入定金金额",
|
|
317
|
+
'pisell2.text.deposit-delete': "删除定金",
|
|
318
|
+
'pisell2.text.deposit-delete-message-title': "提示",
|
|
319
|
+
'pisell2.text.deposit-delete-message': "删除后不可恢复,请确认操作"
|
|
284
320
|
},
|
|
285
321
|
'zh-HK': {
|
|
286
322
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -424,6 +460,24 @@ export default {
|
|
|
424
460
|
'pisell2.text.order.sales.channel.boxcocal': "Boxlocal",
|
|
425
461
|
'pisell2.text.order.sales.channel.tableorder': "掃碼點餐",
|
|
426
462
|
'pisell2.text.order.sales.channel.reserve': "谷歌預約",
|
|
427
|
-
'pisell2.text.rebook': "再次預約"
|
|
463
|
+
'pisell2.text.rebook': "再次預約",
|
|
464
|
+
'pisell2.text.now': '現在',
|
|
465
|
+
'pisell2.text.deposit-list': "定金列表",
|
|
466
|
+
'pisell2.text.deposit-item-status-paid': "已支付",
|
|
467
|
+
'pisell2.text.deposit-item-status-unpaid': "未支付",
|
|
468
|
+
'pisell2.text.deposit-order-total': "訂單總額",
|
|
469
|
+
'pisell2.text.deposit-order-detail': "訂單詳情",
|
|
470
|
+
'pisell2.text.deposit-collect-deposit': "收定金",
|
|
471
|
+
'pisell2.text.deposit-order-no': "訂單編號",
|
|
472
|
+
'pisell2.text.deposit-amount': "金額",
|
|
473
|
+
'pisell2.text.deposit-deposit-amount': "定金金額",
|
|
474
|
+
'pisell2.text.deposit-generate-payment-link': "生成支付鏈接",
|
|
475
|
+
'pisell2.text.deposit-list-empty': "請添加定金",
|
|
476
|
+
'pisell2.text.deposit-amount-message': "金額必須大於0",
|
|
477
|
+
'pisell2.text.deposit-amount-message2': "定金金額不能大於訂單總額",
|
|
478
|
+
'pisell2.text.deposit-amount-message3': "請輸入定金金額",
|
|
479
|
+
'pisell2.text.deposit-delete': "刪除定金",
|
|
480
|
+
'pisell2.text.deposit-delete-message-title': "提示",
|
|
481
|
+
'pisell2.text.deposit-delete-message': "刪除後不可恢復,請確認操作"
|
|
428
482
|
}
|
|
429
483
|
};
|