@pisell/private-materials 3.0.116 → 3.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/booking/components/footer/index.js +48 -13
- package/es/components/booking/components/footer/serve.d.ts +1 -0
- package/es/components/booking/components/footer/serve.js +21 -0
- package/es/components/booking/info/model.js +9 -7
- package/es/components/booking/info/service/editService/index.less +2 -1
- package/es/components/booking/locales.d.ts +21 -0
- package/es/components/booking/locales.js +55 -3
- package/es/components/booking/model.d.ts +1 -1
- package/lib/components/booking/components/footer/index.js +23 -0
- package/lib/components/booking/components/footer/serve.d.ts +1 -0
- package/lib/components/booking/components/footer/serve.js +30 -0
- package/lib/components/booking/info/model.js +9 -7
- package/lib/components/booking/info/service/editService/index.less +2 -1
- package/lib/components/booking/locales.d.ts +21 -0
- package/lib/components/booking/locales.js +68 -3
- package/lib/components/booking/model.d.ts +1 -1
- package/package.json +2 -2
|
@@ -30,6 +30,7 @@ import FooterMenus from "./FooterMenus";
|
|
|
30
30
|
import "./index.less";
|
|
31
31
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
32
32
|
import { DownOutlined } from '@ant-design/icons';
|
|
33
|
+
import { eventBookingCheck } from "./serve";
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* @title: 底部
|
|
@@ -348,7 +349,7 @@ var Footer = function Footer(props) {
|
|
|
348
349
|
*/
|
|
349
350
|
var handleSave = /*#__PURE__*/function () {
|
|
350
351
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref4) {
|
|
351
|
-
var type, _ref4$messageShow, messageShow, _setLoading, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, api;
|
|
352
|
+
var type, _ref4$messageShow, messageShow, _setLoading, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, api, _yield$eventBookingCh, data, confirmed;
|
|
352
353
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
353
354
|
while (1) switch (_context4.prev = _context4.next) {
|
|
354
355
|
case 0:
|
|
@@ -378,45 +379,79 @@ var Footer = function Footer(props) {
|
|
|
378
379
|
_context4.prev = 13;
|
|
379
380
|
callbackData = null; // 格式化提交的参数
|
|
380
381
|
values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // 区分是新增还是编辑
|
|
381
|
-
api = state.bookingId ? editApi : createApi; //
|
|
382
|
-
if (!
|
|
383
|
-
_context4.next =
|
|
382
|
+
api = state.bookingId ? editApi : createApi; // 活动预约新建时校验重复
|
|
383
|
+
if (!(!state.bookingId && state.renderType === 'eventBooking')) {
|
|
384
|
+
_context4.next = 29;
|
|
384
385
|
break;
|
|
385
386
|
}
|
|
386
387
|
_context4.next = 20;
|
|
387
|
-
return
|
|
388
|
+
return eventBookingCheck(values);
|
|
388
389
|
case 20:
|
|
390
|
+
_yield$eventBookingCh = _context4.sent;
|
|
391
|
+
data = _yield$eventBookingCh.data;
|
|
392
|
+
if (!data.list.length) {
|
|
393
|
+
_context4.next = 29;
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
_context4.next = 25;
|
|
397
|
+
return modal.confirm({
|
|
398
|
+
icon: null,
|
|
399
|
+
title: locales.getText('page.event.booking.text.duplicate-enrollment'),
|
|
400
|
+
content: locales.getText('page.event.booking.text.duplicate-enrollment-content')({
|
|
401
|
+
customerName: data.customer_name,
|
|
402
|
+
title: data.title,
|
|
403
|
+
list: data.list
|
|
404
|
+
}),
|
|
405
|
+
width: 480,
|
|
406
|
+
okText: locales.getText('page.event.booking.text.duplicate-enrollment-confirm')
|
|
407
|
+
});
|
|
408
|
+
case 25:
|
|
409
|
+
confirmed = _context4.sent;
|
|
410
|
+
if (confirmed) {
|
|
411
|
+
_context4.next = 29;
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
_setLoading(false);
|
|
415
|
+
return _context4.abrupt("return");
|
|
416
|
+
case 29:
|
|
417
|
+
if (!addonsEdit) {
|
|
418
|
+
_context4.next = 32;
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
_context4.next = 32;
|
|
422
|
+
return handleSaveAddons();
|
|
423
|
+
case 32:
|
|
389
424
|
if (!infoEdit) {
|
|
390
|
-
_context4.next =
|
|
425
|
+
_context4.next = 37;
|
|
391
426
|
break;
|
|
392
427
|
}
|
|
393
|
-
_context4.next =
|
|
428
|
+
_context4.next = 35;
|
|
394
429
|
return api(values);
|
|
395
|
-
case
|
|
430
|
+
case 35:
|
|
396
431
|
callbackData = _context4.sent;
|
|
397
432
|
if (messageShow) {
|
|
398
433
|
message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
|
|
399
434
|
}
|
|
400
|
-
case
|
|
435
|
+
case 37:
|
|
401
436
|
// 回调关闭弹窗
|
|
402
437
|
state === null || state === void 0 ? void 0 : state.callback(callbackData);
|
|
403
438
|
_setLoading(false);
|
|
404
439
|
|
|
405
440
|
// return数据 checkout时需要
|
|
406
441
|
return _context4.abrupt("return", callbackData || values);
|
|
407
|
-
case
|
|
408
|
-
_context4.prev =
|
|
442
|
+
case 42:
|
|
443
|
+
_context4.prev = 42;
|
|
409
444
|
_context4.t1 = _context4["catch"](13);
|
|
410
445
|
console.log(_context4.t1);
|
|
411
446
|
if ((_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.code) === 70101) {
|
|
412
447
|
message.error(_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.message);
|
|
413
448
|
}
|
|
414
449
|
_setLoading(false);
|
|
415
|
-
case
|
|
450
|
+
case 47:
|
|
416
451
|
case "end":
|
|
417
452
|
return _context4.stop();
|
|
418
453
|
}
|
|
419
|
-
}, _callee4, null, [[13,
|
|
454
|
+
}, _callee4, null, [[13, 42]]);
|
|
420
455
|
}));
|
|
421
456
|
return function handleSave(_x3) {
|
|
422
457
|
return _ref5.apply(this, arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const eventBookingCheck: (params: any) => Promise<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export var eventBookingCheck = /*#__PURE__*/function () {
|
|
7
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
8
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10
|
+
case 0:
|
|
11
|
+
return _context.abrupt("return", request.getRequest().post("/shop/eventbookingv2/order/check", params));
|
|
12
|
+
case 1:
|
|
13
|
+
case "end":
|
|
14
|
+
return _context.stop();
|
|
15
|
+
}
|
|
16
|
+
}, _callee);
|
|
17
|
+
}));
|
|
18
|
+
return function eventBookingCheck(_x) {
|
|
19
|
+
return _ref.apply(this, arguments);
|
|
20
|
+
};
|
|
21
|
+
}();
|
|
@@ -14,13 +14,7 @@ var defaultState = {};
|
|
|
14
14
|
var _miniRedux = miniRedux({
|
|
15
15
|
namespace: 'state',
|
|
16
16
|
state: defaultState,
|
|
17
|
-
|
|
18
|
-
setStateFn: function setStateFn(state, payload) {
|
|
19
|
-
return _objectSpread(_objectSpread({}, state), payload);
|
|
20
|
-
},
|
|
21
|
-
setState: function setState(state, payload) {
|
|
22
|
-
return _objectSpread(_objectSpread({}, state), payload);
|
|
23
|
-
},
|
|
17
|
+
effects: {
|
|
24
18
|
setClient: function setClient(state, payload) {
|
|
25
19
|
state.setGlobalState({
|
|
26
20
|
client: _objectSpread(_objectSpread({}, state.client), payload)
|
|
@@ -72,6 +66,14 @@ var _miniRedux = miniRedux({
|
|
|
72
66
|
}
|
|
73
67
|
state.setGlobalState(_val);
|
|
74
68
|
}
|
|
69
|
+
},
|
|
70
|
+
reducers: {
|
|
71
|
+
setStateFn: function setStateFn(state, payload) {
|
|
72
|
+
return _objectSpread(_objectSpread({}, state), payload);
|
|
73
|
+
},
|
|
74
|
+
setState: function setState(state, payload) {
|
|
75
|
+
return _objectSpread(_objectSpread({}, state), payload);
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
}),
|
|
77
79
|
Provider = _miniRedux.Provider,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.pisell-lowcode__booking-service-body-edit {
|
|
2
|
-
padding: 24px 32px;
|
|
2
|
+
padding: 24px 32px 100px !important;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
16
|
gap: 12px;
|
|
17
|
+
background-color: #fff;
|
|
17
18
|
|
|
18
19
|
.pisell-lowcode__booking-service-delete-wrap {
|
|
19
20
|
height: 48px;
|
|
@@ -165,6 +165,13 @@ declare const _default: {
|
|
|
165
165
|
"pisell2.text.add-client": string;
|
|
166
166
|
'pisell2.text.variant-client-change': string;
|
|
167
167
|
'pisell2.text.variant-client-no-data': string;
|
|
168
|
+
'page.event.booking.text.duplicate-enrollment': string;
|
|
169
|
+
'page.event.booking.text.duplicate-enrollment-content': ({ customerName, title, list, }: {
|
|
170
|
+
customerName: string;
|
|
171
|
+
title: string;
|
|
172
|
+
list: any[];
|
|
173
|
+
}) => string;
|
|
174
|
+
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
168
175
|
};
|
|
169
176
|
'zh-CN': {
|
|
170
177
|
'pisell2.text.refunded-amount': string;
|
|
@@ -332,6 +339,13 @@ declare const _default: {
|
|
|
332
339
|
"pisell2.text.add-client": string;
|
|
333
340
|
'pisell2.text.variant-client-change': string;
|
|
334
341
|
'pisell2.text.variant-client-no-data': string;
|
|
342
|
+
'page.event.booking.text.duplicate-enrollment': string;
|
|
343
|
+
'page.event.booking.text.duplicate-enrollment-content': ({ customerName, title, list, }: {
|
|
344
|
+
customerName: string;
|
|
345
|
+
title: string;
|
|
346
|
+
list: any[];
|
|
347
|
+
}) => string;
|
|
348
|
+
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
335
349
|
};
|
|
336
350
|
'zh-HK': {
|
|
337
351
|
'pisell2.text.refunded-amount': string;
|
|
@@ -499,6 +513,13 @@ declare const _default: {
|
|
|
499
513
|
"pisell2.text.add-client": string;
|
|
500
514
|
'pisell2.text.variant-client-change': string;
|
|
501
515
|
'pisell2.text.variant-client-no-data': string;
|
|
516
|
+
'page.event.booking.text.duplicate-enrollment': string;
|
|
517
|
+
'page.event.booking.text.duplicate-enrollment-content': ({ customerName, title, list, }: {
|
|
518
|
+
customerName: string;
|
|
519
|
+
title: string;
|
|
520
|
+
list: any[];
|
|
521
|
+
}) => string;
|
|
522
|
+
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
502
523
|
};
|
|
503
524
|
};
|
|
504
525
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
1
2
|
export default {
|
|
2
3
|
"en": {
|
|
3
4
|
'pisell2.text.select-addons': "Select addons",
|
|
@@ -179,7 +180,24 @@ export default {
|
|
|
179
180
|
"pisell2.text.actions": "Actions",
|
|
180
181
|
"pisell2.text.add-client": "Add customer",
|
|
181
182
|
'pisell2.text.variant-client-change': 'Change',
|
|
182
|
-
'pisell2.text.variant-client-no-data': "No record"
|
|
183
|
+
'pisell2.text.variant-client-no-data': "No record",
|
|
184
|
+
'page.event.booking.text.duplicate-enrollment': "Duplicate Enrollment",
|
|
185
|
+
'page.event.booking.text.duplicate-enrollment-content': function pageEventBookingTextDuplicateEnrollmentContent(_ref) {
|
|
186
|
+
var customerName = _ref.customerName,
|
|
187
|
+
title = _ref.title,
|
|
188
|
+
list = _ref.list;
|
|
189
|
+
var listStr = list.map(function (item) {
|
|
190
|
+
if (item.registration_type === 'single') {
|
|
191
|
+
return "(".concat(item.start_time, " ").concat(dayjs(item.start_date).format('DD/MM/YYYY'), ")");
|
|
192
|
+
} else if (item.registration_type === 'extra_include') {
|
|
193
|
+
return "(".concat(item.start_time, " ").concat(dayjs(item.start_date).format('DD/MM/YYYY'), " this and all future events)");
|
|
194
|
+
} else if (item.registration_type === 'all') {
|
|
195
|
+
return "(All events)";
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
return "".concat(customerName || '', " has already enrolled in the ").concat(title, " ").concat(listStr.join(','), ", Are you sure you want to enroll again\uFF1F");
|
|
199
|
+
},
|
|
200
|
+
'page.event.booking.text.duplicate-enrollment-confirm': 'Confirm'
|
|
183
201
|
},
|
|
184
202
|
'zh-CN': {
|
|
185
203
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -366,7 +384,24 @@ export default {
|
|
|
366
384
|
"pisell2.text.actions": "操作选项",
|
|
367
385
|
"pisell2.text.add-client": "添加客户",
|
|
368
386
|
'pisell2.text.variant-client-change': '更改客户',
|
|
369
|
-
'pisell2.text.variant-client-no-data': "暂无数据"
|
|
387
|
+
'pisell2.text.variant-client-no-data': "暂无数据",
|
|
388
|
+
'page.event.booking.text.duplicate-enrollment': "重复报名",
|
|
389
|
+
'page.event.booking.text.duplicate-enrollment-content': function pageEventBookingTextDuplicateEnrollmentContent(_ref2) {
|
|
390
|
+
var customerName = _ref2.customerName,
|
|
391
|
+
title = _ref2.title,
|
|
392
|
+
list = _ref2.list;
|
|
393
|
+
var listStr = list.map(function (item) {
|
|
394
|
+
if (item.registration_type === 'single') {
|
|
395
|
+
return "(".concat(item.start_date, " ").concat(item.start_time, ")");
|
|
396
|
+
} else if (item.registration_type === 'extra_include') {
|
|
397
|
+
return "(".concat(item.start_date, " ").concat(item.start_time, " \u6B64\u6B21\u53CA\u540E\u7EED\u6D3B\u52A8)");
|
|
398
|
+
} else if (item.registration_type === 'all') {
|
|
399
|
+
return "(\u6240\u6709\u6D3B\u52A8)";
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
return "".concat(customerName || '', "\u5DF2\u62A5\u540D").concat(title, " ").concat(listStr.join(','), ", \u786E\u5B9A\u8981\u518D\u6B21\u62A5\u540D\u5417\uFF1F");
|
|
403
|
+
},
|
|
404
|
+
'page.event.booking.text.duplicate-enrollment-confirm': '确认'
|
|
370
405
|
},
|
|
371
406
|
'zh-HK': {
|
|
372
407
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -553,6 +588,23 @@ export default {
|
|
|
553
588
|
"pisell2.text.actions": "操作選項",
|
|
554
589
|
"pisell2.text.add-client": "添加客戶",
|
|
555
590
|
'pisell2.text.variant-client-change': '更改客戶',
|
|
556
|
-
'pisell2.text.variant-client-no-data': "暫無數據"
|
|
591
|
+
'pisell2.text.variant-client-no-data': "暫無數據",
|
|
592
|
+
'page.event.booking.text.duplicate-enrollment': "重複報名",
|
|
593
|
+
'page.event.booking.text.duplicate-enrollment-content': function pageEventBookingTextDuplicateEnrollmentContent(_ref3) {
|
|
594
|
+
var customerName = _ref3.customerName,
|
|
595
|
+
title = _ref3.title,
|
|
596
|
+
list = _ref3.list;
|
|
597
|
+
var listStr = list.map(function (item) {
|
|
598
|
+
if (item.registration_type === 'single') {
|
|
599
|
+
return "(".concat(item.start_date, " ").concat(item.start_time, ")");
|
|
600
|
+
} else if (item.registration_type === 'extra_include') {
|
|
601
|
+
return "(".concat(item.start_date, " ").concat(item.start_time, " \u6B64\u6B21\u53CA\u5F8C\u7E8C\u6D3B\u52D5)");
|
|
602
|
+
} else if (item.registration_type === 'all') {
|
|
603
|
+
return "(\u6240\u6709\u6D3B\u52D5)";
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
return "".concat(customerName || '', "\u5DF2\u5831\u540D").concat(title, " ").concat(listStr.join(','), ", \u78BA\u5B9A\u8981\u518D\u6B21\u5831\u540D\u55CE\uFF1F");
|
|
607
|
+
},
|
|
608
|
+
'page.event.booking.text.duplicate-enrollment-confirm': '確認'
|
|
557
609
|
}
|
|
558
610
|
};
|
|
@@ -96,7 +96,7 @@ export declare const walkInData: {
|
|
|
96
96
|
id: number;
|
|
97
97
|
nickname: string;
|
|
98
98
|
};
|
|
99
|
-
export declare const Provider: (ComponentUi: any) =>
|
|
99
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
100
100
|
state: FormState;
|
|
101
101
|
} & {
|
|
102
102
|
dispatch: (params: {
|
|
@@ -45,6 +45,7 @@ var import_FooterMenus = __toESM(require("./FooterMenus"));
|
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
46
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
47
47
|
var import_icons = require("@ant-design/icons");
|
|
48
|
+
var import_serve = require("./serve");
|
|
48
49
|
var Footer = (props) => {
|
|
49
50
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
50
51
|
const { state, buttons, dispatch, source } = props;
|
|
@@ -240,6 +241,28 @@ var Footer = (props) => {
|
|
|
240
241
|
let callbackData = null;
|
|
241
242
|
let values = (0, import_utils2.formatValues)({ ...state, ...saveOtherValue });
|
|
242
243
|
const api = state.bookingId ? editApi : createApi;
|
|
244
|
+
if (!state.bookingId && state.renderType === "eventBooking") {
|
|
245
|
+
const { data } = await (0, import_serve.eventBookingCheck)(values);
|
|
246
|
+
if (data.list.length) {
|
|
247
|
+
const confirmed = await modal.confirm({
|
|
248
|
+
icon: null,
|
|
249
|
+
title: import_utils.locales.getText(
|
|
250
|
+
"page.event.booking.text.duplicate-enrollment"
|
|
251
|
+
),
|
|
252
|
+
content: import_utils.locales.getText("page.event.booking.text.duplicate-enrollment-content")({
|
|
253
|
+
customerName: data.customer_name,
|
|
254
|
+
title: data.title,
|
|
255
|
+
list: data.list
|
|
256
|
+
}),
|
|
257
|
+
width: 480,
|
|
258
|
+
okText: import_utils.locales.getText("page.event.booking.text.duplicate-enrollment-confirm")
|
|
259
|
+
});
|
|
260
|
+
if (!confirmed) {
|
|
261
|
+
_setLoading(false);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
243
266
|
if (addonsEdit) {
|
|
244
267
|
await handleSaveAddons();
|
|
245
268
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const eventBookingCheck: (params: any) => Promise<any>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/booking/components/footer/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
eventBookingCheck: () => eventBookingCheck
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(serve_exports);
|
|
25
|
+
var import_utils = require("../../utils");
|
|
26
|
+
var eventBookingCheck = async (params) => import_utils.request.getRequest().post(`/shop/eventbookingv2/order/check`, params);
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
eventBookingCheck
|
|
30
|
+
});
|
|
@@ -34,13 +34,7 @@ var defaultState = {};
|
|
|
34
34
|
var { Provider, Context } = (0, import_utils.miniRedux)({
|
|
35
35
|
namespace: "state",
|
|
36
36
|
state: defaultState,
|
|
37
|
-
|
|
38
|
-
setStateFn(state, payload) {
|
|
39
|
-
return { ...state, ...payload };
|
|
40
|
-
},
|
|
41
|
-
setState(state, payload) {
|
|
42
|
-
return { ...state, ...payload };
|
|
43
|
-
},
|
|
37
|
+
effects: {
|
|
44
38
|
setClient(state, payload) {
|
|
45
39
|
state.setGlobalState({ client: { ...state.client, ...payload } });
|
|
46
40
|
},
|
|
@@ -83,6 +77,14 @@ var { Provider, Context } = (0, import_utils.miniRedux)({
|
|
|
83
77
|
}
|
|
84
78
|
state.setGlobalState(_val);
|
|
85
79
|
}
|
|
80
|
+
},
|
|
81
|
+
reducers: {
|
|
82
|
+
setStateFn(state, payload) {
|
|
83
|
+
return { ...state, ...payload };
|
|
84
|
+
},
|
|
85
|
+
setState(state, payload) {
|
|
86
|
+
return { ...state, ...payload };
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
89
|
});
|
|
88
90
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.pisell-lowcode__booking-service-body-edit {
|
|
2
|
-
padding: 24px 32px;
|
|
2
|
+
padding: 24px 32px 100px !important;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
16
|
gap: 12px;
|
|
17
|
+
background-color: #fff;
|
|
17
18
|
|
|
18
19
|
.pisell-lowcode__booking-service-delete-wrap {
|
|
19
20
|
height: 48px;
|
|
@@ -165,6 +165,13 @@ declare const _default: {
|
|
|
165
165
|
"pisell2.text.add-client": string;
|
|
166
166
|
'pisell2.text.variant-client-change': string;
|
|
167
167
|
'pisell2.text.variant-client-no-data': string;
|
|
168
|
+
'page.event.booking.text.duplicate-enrollment': string;
|
|
169
|
+
'page.event.booking.text.duplicate-enrollment-content': ({ customerName, title, list, }: {
|
|
170
|
+
customerName: string;
|
|
171
|
+
title: string;
|
|
172
|
+
list: any[];
|
|
173
|
+
}) => string;
|
|
174
|
+
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
168
175
|
};
|
|
169
176
|
'zh-CN': {
|
|
170
177
|
'pisell2.text.refunded-amount': string;
|
|
@@ -332,6 +339,13 @@ declare const _default: {
|
|
|
332
339
|
"pisell2.text.add-client": string;
|
|
333
340
|
'pisell2.text.variant-client-change': string;
|
|
334
341
|
'pisell2.text.variant-client-no-data': string;
|
|
342
|
+
'page.event.booking.text.duplicate-enrollment': string;
|
|
343
|
+
'page.event.booking.text.duplicate-enrollment-content': ({ customerName, title, list, }: {
|
|
344
|
+
customerName: string;
|
|
345
|
+
title: string;
|
|
346
|
+
list: any[];
|
|
347
|
+
}) => string;
|
|
348
|
+
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
335
349
|
};
|
|
336
350
|
'zh-HK': {
|
|
337
351
|
'pisell2.text.refunded-amount': string;
|
|
@@ -499,6 +513,13 @@ declare const _default: {
|
|
|
499
513
|
"pisell2.text.add-client": string;
|
|
500
514
|
'pisell2.text.variant-client-change': string;
|
|
501
515
|
'pisell2.text.variant-client-no-data': string;
|
|
516
|
+
'page.event.booking.text.duplicate-enrollment': string;
|
|
517
|
+
'page.event.booking.text.duplicate-enrollment-content': ({ customerName, title, list, }: {
|
|
518
|
+
customerName: string;
|
|
519
|
+
title: string;
|
|
520
|
+
list: any[];
|
|
521
|
+
}) => string;
|
|
522
|
+
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
502
523
|
};
|
|
503
524
|
};
|
|
504
525
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/components/booking/locales.ts
|
|
@@ -22,6 +32,7 @@ __export(locales_exports, {
|
|
|
22
32
|
default: () => locales_default
|
|
23
33
|
});
|
|
24
34
|
module.exports = __toCommonJS(locales_exports);
|
|
35
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
25
36
|
var locales_default = {
|
|
26
37
|
"en": {
|
|
27
38
|
"pisell2.text.select-addons": "Select addons",
|
|
@@ -197,7 +208,25 @@ var locales_default = {
|
|
|
197
208
|
"pisell2.text.actions": "Actions",
|
|
198
209
|
"pisell2.text.add-client": "Add customer",
|
|
199
210
|
"pisell2.text.variant-client-change": "Change",
|
|
200
|
-
"pisell2.text.variant-client-no-data": "No record"
|
|
211
|
+
"pisell2.text.variant-client-no-data": "No record",
|
|
212
|
+
"page.event.booking.text.duplicate-enrollment": "Duplicate Enrollment",
|
|
213
|
+
"page.event.booking.text.duplicate-enrollment-content": ({
|
|
214
|
+
customerName,
|
|
215
|
+
title,
|
|
216
|
+
list
|
|
217
|
+
}) => {
|
|
218
|
+
const listStr = list.map((item) => {
|
|
219
|
+
if (item.registration_type === "single") {
|
|
220
|
+
return `(${item.start_time} ${(0, import_dayjs.default)(item.start_date).format("DD/MM/YYYY")})`;
|
|
221
|
+
} else if (item.registration_type === "extra_include") {
|
|
222
|
+
return `(${item.start_time} ${(0, import_dayjs.default)(item.start_date).format("DD/MM/YYYY")} this and all future events)`;
|
|
223
|
+
} else if (item.registration_type === "all") {
|
|
224
|
+
return `(All events)`;
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
return `${customerName || ""} has already enrolled in the ${title} ${listStr.join(",")}, Are you sure you want to enroll again?`;
|
|
228
|
+
},
|
|
229
|
+
"page.event.booking.text.duplicate-enrollment-confirm": "Confirm"
|
|
201
230
|
},
|
|
202
231
|
"zh-CN": {
|
|
203
232
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -378,7 +407,25 @@ var locales_default = {
|
|
|
378
407
|
"pisell2.text.actions": "操作选项",
|
|
379
408
|
"pisell2.text.add-client": "添加客户",
|
|
380
409
|
"pisell2.text.variant-client-change": "更改客户",
|
|
381
|
-
"pisell2.text.variant-client-no-data": "暂无数据"
|
|
410
|
+
"pisell2.text.variant-client-no-data": "暂无数据",
|
|
411
|
+
"page.event.booking.text.duplicate-enrollment": "重复报名",
|
|
412
|
+
"page.event.booking.text.duplicate-enrollment-content": ({
|
|
413
|
+
customerName,
|
|
414
|
+
title,
|
|
415
|
+
list
|
|
416
|
+
}) => {
|
|
417
|
+
const listStr = list.map((item) => {
|
|
418
|
+
if (item.registration_type === "single") {
|
|
419
|
+
return `(${item.start_date} ${item.start_time})`;
|
|
420
|
+
} else if (item.registration_type === "extra_include") {
|
|
421
|
+
return `(${item.start_date} ${item.start_time} 此次及后续活动)`;
|
|
422
|
+
} else if (item.registration_type === "all") {
|
|
423
|
+
return `(所有活动)`;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
return `${customerName || ""}已报名${title} ${listStr.join(",")}, 确定要再次报名吗?`;
|
|
427
|
+
},
|
|
428
|
+
"page.event.booking.text.duplicate-enrollment-confirm": "确认"
|
|
382
429
|
},
|
|
383
430
|
"zh-HK": {
|
|
384
431
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -559,6 +606,24 @@ var locales_default = {
|
|
|
559
606
|
"pisell2.text.actions": "操作選項",
|
|
560
607
|
"pisell2.text.add-client": "添加客戶",
|
|
561
608
|
"pisell2.text.variant-client-change": "更改客戶",
|
|
562
|
-
"pisell2.text.variant-client-no-data": "暫無數據"
|
|
609
|
+
"pisell2.text.variant-client-no-data": "暫無數據",
|
|
610
|
+
"page.event.booking.text.duplicate-enrollment": "重複報名",
|
|
611
|
+
"page.event.booking.text.duplicate-enrollment-content": ({
|
|
612
|
+
customerName,
|
|
613
|
+
title,
|
|
614
|
+
list
|
|
615
|
+
}) => {
|
|
616
|
+
const listStr = list.map((item) => {
|
|
617
|
+
if (item.registration_type === "single") {
|
|
618
|
+
return `(${item.start_date} ${item.start_time})`;
|
|
619
|
+
} else if (item.registration_type === "extra_include") {
|
|
620
|
+
return `(${item.start_date} ${item.start_time} 此次及後續活動)`;
|
|
621
|
+
} else if (item.registration_type === "all") {
|
|
622
|
+
return `(所有活動)`;
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
return `${customerName || ""}已報名${title} ${listStr.join(",")}, 確定要再次報名嗎?`;
|
|
626
|
+
},
|
|
627
|
+
"page.event.booking.text.duplicate-enrollment-confirm": "確認"
|
|
563
628
|
}
|
|
564
629
|
};
|
|
@@ -96,7 +96,7 @@ export declare const walkInData: {
|
|
|
96
96
|
id: number;
|
|
97
97
|
nickname: string;
|
|
98
98
|
};
|
|
99
|
-
export declare const Provider: (ComponentUi: any) =>
|
|
99
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
100
100
|
state: FormState;
|
|
101
101
|
} & {
|
|
102
102
|
dispatch: (params: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.118",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/materials": "3.0.37",
|
|
63
62
|
"@pisell/utils": "1.0.28",
|
|
63
|
+
"@pisell/materials": "3.0.38",
|
|
64
64
|
"@pisell/date-picker": "1.0.97",
|
|
65
65
|
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|