@pisell/private-materials 6.11.143 → 6.11.145
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +5 -2
- package/es/components/checkout/PaymentModal.d.ts +1 -1
- package/es/components/checkout/PaymentModal.js +10 -5
- package/es/plus/pisellReservation/PisellReservation.js +16 -3
- package/es/plus/pisellReservation/floorMap/reservationMock.d.ts +2 -0
- package/es/plus/pisellReservation/floorMap/reservationMock.js +17 -5
- package/es/plus/pisellReservation/floorMap/useReservationFloorMapMerged.js +1 -2
- package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.js +12 -17
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +8 -2
- package/lib/components/checkout/PaymentModal.d.ts +1 -1
- package/lib/components/checkout/PaymentModal.js +10 -5
- package/lib/plus/pisellReservation/PisellReservation.js +4 -3
- package/lib/plus/pisellReservation/floorMap/reservationMock.d.ts +2 -0
- package/lib/plus/pisellReservation/floorMap/reservationMock.js +10 -1
- package/lib/plus/pisellReservation/floorMap/useReservationFloorMapMerged.js +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.js +2 -13
- package/package.json +4 -4
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/pay/toB/paymentMethods/index.d.ts +0 -11
- package/es/components/pay/toB/types/index.d.ts +0 -82
- package/es/plus/pisellReservation/PisellReservation.d.ts +0 -11
- package/es/plus/pisellReservation/components/BucketButtonGroup.d.ts +0 -33
- package/es/plus/pisellReservation/components/PisellReservationSubcomponents.d.ts +0 -80
- package/es/plus/pisellReservation/components/ReservationBookingStatusButtonFilter.d.ts +0 -21
- package/es/plus/pisellReservation/components/ReservationHudDrawerQuickFilters.d.ts +0 -7
- package/es/plus/pisellReservation/components/ReservationHudDrawerResourceRail.d.ts +0 -19
- package/es/plus/pisellReservation/components/ReservationPaymentStatusButtonFilter.d.ts +0 -19
- package/es/plus/pisellReservation/data/hudDrawerLocalListQuery.d.ts +0 -20
- package/es/plus/pisellReservation/data/reservationTablesMerge.d.ts +0 -27
- package/es/plus/pisellReservation/floorMap/ReservationFloorMapHud.d.ts +0 -49
- package/es/plus/pisellReservation/floorMap/ReservationHudDrawerHandle.d.ts +0 -30
- package/es/plus/pisellReservation/floorMap/reservationHudResourceRootBuckets.d.ts +0 -16
- package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +0 -17
- package/es/plus/pisellReservation/floorRoomCard/floorRoomCardUtils.d.ts +0 -110
- package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +0 -65
- package/es/plus/pisellReservation/hooks/useReservationSalesHostData.d.ts +0 -37
- package/es/plus/pisellReservation/locales/locales-ja.d.ts +0 -150
- package/es/plus/pisellReservation/locales/locales-pt.d.ts +0 -150
- package/es/plus/pisellReservation/locales/locales.d.ts +0 -743
- package/es/plus/pisellReservation/reservationConstants.d.ts +0 -1190
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/pay/toB/paymentMethods/index.d.ts +0 -11
- package/lib/components/pay/toB/types/index.d.ts +0 -82
- package/lib/plus/pisellReservation/PisellReservation.d.ts +0 -11
- package/lib/plus/pisellReservation/components/BucketButtonGroup.d.ts +0 -33
- package/lib/plus/pisellReservation/components/PisellReservationSubcomponents.d.ts +0 -80
- package/lib/plus/pisellReservation/components/ReservationBookingStatusButtonFilter.d.ts +0 -21
- package/lib/plus/pisellReservation/components/ReservationHudDrawerQuickFilters.d.ts +0 -7
- package/lib/plus/pisellReservation/components/ReservationHudDrawerResourceRail.d.ts +0 -19
- package/lib/plus/pisellReservation/components/ReservationPaymentStatusButtonFilter.d.ts +0 -19
- package/lib/plus/pisellReservation/data/hudDrawerLocalListQuery.d.ts +0 -20
- package/lib/plus/pisellReservation/data/reservationTablesMerge.d.ts +0 -27
- package/lib/plus/pisellReservation/floorMap/ReservationFloorMapHud.d.ts +0 -49
- package/lib/plus/pisellReservation/floorMap/ReservationHudDrawerHandle.d.ts +0 -30
- package/lib/plus/pisellReservation/floorMap/reservationHudResourceRootBuckets.d.ts +0 -16
- package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +0 -17
- package/lib/plus/pisellReservation/floorRoomCard/floorRoomCardUtils.d.ts +0 -110
- package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +0 -65
- package/lib/plus/pisellReservation/hooks/useReservationSalesHostData.d.ts +0 -37
- package/lib/plus/pisellReservation/locales/locales-ja.d.ts +0 -150
- package/lib/plus/pisellReservation/locales/locales-pt.d.ts +0 -150
- package/lib/plus/pisellReservation/locales/locales.d.ts +0 -743
- package/lib/plus/pisellReservation/reservationConstants.d.ts +0 -1190
|
@@ -2577,7 +2577,7 @@ var Footer = function Footer(props) {
|
|
|
2577
2577
|
},
|
|
2578
2578
|
onChangeOrderNote: handleNoteConfirm,
|
|
2579
2579
|
onDeleteOrderNote: handleNoteDelete,
|
|
2580
|
-
onClose: function onClose(reset) {
|
|
2580
|
+
onClose: function onClose(reset, options) {
|
|
2581
2581
|
var _state$dialogCallback2;
|
|
2582
2582
|
console.log('🔄 Footer: Closing PaymentModal', reset);
|
|
2583
2583
|
setIsPaymentModalOpen(false);
|
|
@@ -2593,7 +2593,10 @@ var Footer = function Footer(props) {
|
|
|
2593
2593
|
// 编辑模式弹窗回调(由 TicketBookingDialog 传入)
|
|
2594
2594
|
state === null || state === void 0 || (_state$dialogCallback2 = state.dialogCallback) === null || _state$dialogCallback2 === void 0 || _state$dialogCallback2.call(state, {
|
|
2595
2595
|
type: 'paymentClose',
|
|
2596
|
-
reset: reset
|
|
2596
|
+
reset: reset,
|
|
2597
|
+
data: {
|
|
2598
|
+
order_id: options === null || options === void 0 ? void 0 : options.order_id
|
|
2599
|
+
}
|
|
2597
2600
|
});
|
|
2598
2601
|
// 清除编辑模式
|
|
2599
2602
|
setEditOrderId(0);
|
|
@@ -25,7 +25,7 @@ interface PaymentModalProps {
|
|
|
25
25
|
onDeleteOrderNote?: () => void;
|
|
26
26
|
}
|
|
27
27
|
interface PaymentModalMainProps extends PaymentModalProps {
|
|
28
|
-
onClose?: (reset?: boolean) => void;
|
|
28
|
+
onClose?: (reset?: boolean, options?: any) => void;
|
|
29
29
|
onSetLocalOrderId?: (order_id: number) => void;
|
|
30
30
|
setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
|
|
31
31
|
editOrderId?: number;
|
|
@@ -1581,7 +1581,7 @@ var PaymentModal = function PaymentModal(_ref19) {
|
|
|
1581
1581
|
// 重试处理函数(逻辑由用户自己实现)
|
|
1582
1582
|
var handleRetry = /*#__PURE__*/function () {
|
|
1583
1583
|
var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
1584
|
-
var checkoutModule, res, _res$response;
|
|
1584
|
+
var checkoutModule, res, _res$response, _res$response2;
|
|
1585
1585
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
1586
1586
|
while (1) switch (_context15.prev = _context15.next) {
|
|
1587
1587
|
case 0:
|
|
@@ -1610,7 +1610,9 @@ var PaymentModal = function PaymentModal(_ref19) {
|
|
|
1610
1610
|
case 9:
|
|
1611
1611
|
// 如果是整单支付,则调用 onClose 让外面清空购物车
|
|
1612
1612
|
if ((res === null || res === void 0 || (_res$response = res.response) === null || _res$response === void 0 || (_res$response = _res$response.data) === null || _res$response === void 0 ? void 0 : _res$response.payment_status) === 'paid') {
|
|
1613
|
-
onClose === null || onClose === void 0 || onClose(true
|
|
1613
|
+
onClose === null || onClose === void 0 || onClose(true, {
|
|
1614
|
+
order_id: res === null || res === void 0 || (_res$response2 = res.response) === null || _res$response2 === void 0 || (_res$response2 = _res$response2.data) === null || _res$response2 === void 0 ? void 0 : _res$response2.order_id
|
|
1615
|
+
});
|
|
1614
1616
|
}
|
|
1615
1617
|
// if (res.data.payment_status)
|
|
1616
1618
|
// setShowRetryModal(false);
|
|
@@ -2063,9 +2065,12 @@ var PaymentModal = function PaymentModal(_ref19) {
|
|
|
2063
2065
|
};
|
|
2064
2066
|
|
|
2065
2067
|
// 专门用于关闭PaymentModal的函数
|
|
2066
|
-
var handleModalClose = function handleModalClose() {
|
|
2068
|
+
var handleModalClose = function handleModalClose(res) {
|
|
2069
|
+
var _res$response3;
|
|
2067
2070
|
console.log('PaymentModal - Modal closing independently');
|
|
2068
|
-
onClose === null || onClose === void 0 || onClose(true
|
|
2071
|
+
onClose === null || onClose === void 0 || onClose(true, {
|
|
2072
|
+
order_id: res === null || res === void 0 || (_res$response3 = res.response) === null || _res$response3 === void 0 || (_res$response3 = _res$response3.data) === null || _res$response3 === void 0 ? void 0 : _res$response3.order_id
|
|
2073
|
+
});
|
|
2069
2074
|
};
|
|
2070
2075
|
var handlePaymentCancel = function handlePaymentCancel(reset, notCancelOrder) {
|
|
2071
2076
|
var _paymentContentRef$cu, _paymentContentRef$cu2;
|
|
@@ -2353,7 +2358,7 @@ var PaymentModal = function PaymentModal(_ref19) {
|
|
|
2353
2358
|
|
|
2354
2359
|
// 当支付状态为 paid 时,关闭 paymentModal
|
|
2355
2360
|
if (paymentStatus === 'paid') {
|
|
2356
|
-
handleModalClose();
|
|
2361
|
+
handleModalClose(data);
|
|
2357
2362
|
}
|
|
2358
2363
|
|
|
2359
2364
|
// 将支付结果信息传递给回调处理
|
|
@@ -79,6 +79,13 @@ import { queryProductsByIds } from "./serve/productQuery";
|
|
|
79
79
|
import { collectLinkProductIdsFromReservationRules, pickFirstDurationProduct } from "./data/reservationRuleProducts";
|
|
80
80
|
import { mapAssociatedMenusToMenuListIds } from "./data/associatedMenuListIdsFromOpenData";
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* 临时:HUD 抽屉打开时,隐藏抽屉内的 Today 统计条(ShellFrame `belowToolbar`)
|
|
84
|
+
* 与右侧资源快筛竖栏(`ReservationHudDrawerResourceRail`)。
|
|
85
|
+
* 关闭抽屉仍可用 mask / 顶抓手 / ESC。恢复时改为 `false`。
|
|
86
|
+
*/
|
|
87
|
+
var TEMP_HIDE_HUD_DRAWER_INNER_STATS_AND_RESOURCE_RAIL = true;
|
|
88
|
+
|
|
82
89
|
/** 日历浮点小时 → dayjs(与 RecordBoard `dayAndHourToDayjs` 一致) */
|
|
83
90
|
function dayjsFromCalendarHour(dateStr, hourFloat) {
|
|
84
91
|
var h = Math.floor(hourFloat);
|
|
@@ -357,7 +364,6 @@ export var PisellReservationCore = function PisellReservationCore(props) {
|
|
|
357
364
|
|
|
358
365
|
var isInternalListData = shouldUseBuiltinReservationList(dataProp, totalProp, paginationProp, onPageChangeProp);
|
|
359
366
|
var resolvedFloorPlanId = floorPlanIdProp === null ? null : floorPlanIdProp === undefined ? RESERVATION_DEFAULT_FLOOR_PLAN_ID : floorPlanIdProp;
|
|
360
|
-
var effectiveFloorPlanCode = floorPlanCode !== null && floorPlanCode !== void 0 ? floorPlanCode : PISELL_RESERVATION_FLOOR_PLAN_CODE;
|
|
361
367
|
|
|
362
368
|
// --- 引擎:locale、request、路由(新建预约)、勿将 pisellos 作 effect 依赖 ---
|
|
363
369
|
|
|
@@ -381,6 +387,13 @@ export var PisellReservationCore = function PisellReservationCore(props) {
|
|
|
381
387
|
business_code: s
|
|
382
388
|
};
|
|
383
389
|
}, [BIZ]);
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* effectiveFloorPlanCode:用作按 code 拉/创建店铺平面图的 code。
|
|
393
|
+
* 优先级:路由 business_code → props.floorPlanCode → 兜底常量。
|
|
394
|
+
* 当 GET 404 时 `ensureShopFloorPlanByCode` 会用同一 code 走 POST 兜底创建。
|
|
395
|
+
*/
|
|
396
|
+
var effectiveFloorPlanCode = BIZ || floorPlanCode || PISELL_RESERVATION_FLOOR_PLAN_CODE;
|
|
384
397
|
var muiDatePickerAdapterLocale = useMemo(function () {
|
|
385
398
|
var loc = String(engineLocale).toLowerCase();
|
|
386
399
|
if (loc.startsWith('zh-cn')) return 'zh-cn';
|
|
@@ -2129,7 +2142,7 @@ export var PisellReservationCore = function PisellReservationCore(props) {
|
|
|
2129
2142
|
bodyViewSwitchable: false,
|
|
2130
2143
|
lockedBodyView: "grid"
|
|
2131
2144
|
}, /*#__PURE__*/React.createElement(PisellRecordBoard.ShellFrame, {
|
|
2132
|
-
belowToolbar: /*#__PURE__*/React.createElement(ReservationFloorMapHudTitleBar, {
|
|
2145
|
+
belowToolbar: TEMP_HIDE_HUD_DRAWER_INNER_STATS_AND_RESOURCE_RAIL ? undefined : /*#__PURE__*/React.createElement(ReservationFloorMapHudTitleBar, {
|
|
2133
2146
|
items: hudMapItems,
|
|
2134
2147
|
dataSources: dataSources,
|
|
2135
2148
|
actionMode: "collapse",
|
|
@@ -2137,7 +2150,7 @@ export var PisellReservationCore = function PisellReservationCore(props) {
|
|
|
2137
2150
|
embedded: true,
|
|
2138
2151
|
className: "pisell-reservation-hud-drawer-stats-inner"
|
|
2139
2152
|
})
|
|
2140
|
-
}, /*#__PURE__*/React.createElement(PisellRecordBoard.GridLayout, null)))), floorMapHudTableDrawer ? /*#__PURE__*/React.createElement(ReservationHudDrawerResourceRail, {
|
|
2153
|
+
}, /*#__PURE__*/React.createElement(PisellRecordBoard.GridLayout, null)))), floorMapHudTableDrawer && !TEMP_HIDE_HUD_DRAWER_INNER_STATS_AND_RESOURCE_RAIL ? /*#__PURE__*/React.createElement(ReservationHudDrawerResourceRail, {
|
|
2141
2154
|
className: "pisell-reservation-hud-drawer-resource-rail",
|
|
2142
2155
|
buckets: hudDrawerResourceRootBuckets,
|
|
2143
2156
|
value: extractFilterFormRecordIds(hudDrawerLocalSearchParams),
|
|
@@ -4,6 +4,8 @@ import type { PisellReservationTableRow } from '../types';
|
|
|
4
4
|
* 父级/接口 elementKinds 与预约默认合并:
|
|
5
5
|
* - 去掉与 Story 图片图元重复的旧版种类;
|
|
6
6
|
* - 远程若已有 `floorMapImage` 也先去掉,统一用 defaults 里那份(避免两套「图片底图」并存)。
|
|
7
|
+
* - 对**同一 value**:用 `{ ...default, ...remote }` 合并,避免远程 JSON 只存了精简字段时
|
|
8
|
+
* 把预约默认里的 `nameAsTitleConfigurable` 等能力位整段丢掉(否则编辑面板不显示「图元名作为标题」勾选)。
|
|
7
9
|
*/
|
|
8
10
|
export declare function mergeFloorMapElementKindsWithDefaults(defaults: FloorMapElementKindConfig[], remote: FloorMapElementKindConfig[] | undefined): FloorMapElementKindConfig[];
|
|
9
11
|
/** 同上,补全图元分类(如「底图」),避免调色板分组缺失 */
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
2
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
8
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -11,6 +6,11 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
11
6
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
7
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
13
8
|
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; }
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
+
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; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
import { FLOOR_MAP_IMAGE_ELEMENT_KIND } from '@pisell/materials';
|
|
15
15
|
import { locales } from '@pisell/utils';
|
|
16
16
|
import reservationLocales from "../locales/locales";
|
|
@@ -52,13 +52,25 @@ function dedupeElementKindsByValue(kinds) {
|
|
|
52
52
|
* 父级/接口 elementKinds 与预约默认合并:
|
|
53
53
|
* - 去掉与 Story 图片图元重复的旧版种类;
|
|
54
54
|
* - 远程若已有 `floorMapImage` 也先去掉,统一用 defaults 里那份(避免两套「图片底图」并存)。
|
|
55
|
+
* - 对**同一 value**:用 `{ ...default, ...remote }` 合并,避免远程 JSON 只存了精简字段时
|
|
56
|
+
* 把预约默认里的 `nameAsTitleConfigurable` 等能力位整段丢掉(否则编辑面板不显示「图元名作为标题」勾选)。
|
|
55
57
|
*/
|
|
56
58
|
export function mergeFloorMapElementKindsWithDefaults(defaults, remote) {
|
|
57
59
|
if (!(remote !== null && remote !== void 0 && remote.length)) return defaults;
|
|
60
|
+
var defaultByValue = new Map(defaults.map(function (d) {
|
|
61
|
+
return [d.value, d];
|
|
62
|
+
}));
|
|
58
63
|
var base = dedupeElementKindsByValue(stripConflictingImageElementKinds(remote)).filter(function (k) {
|
|
59
64
|
return k.value !== FLOOR_MAP_IMAGE_ELEMENT_KIND;
|
|
60
65
|
}).filter(function (k) {
|
|
61
66
|
return !LEGACY_RESERVATION_TABLE_KIND_VALUES.has(k.value);
|
|
67
|
+
}).map(function (k) {
|
|
68
|
+
var _k$nameAsTitleConfigu;
|
|
69
|
+
var d = defaultByValue.get(k.value);
|
|
70
|
+
if (!d) return k;
|
|
71
|
+
return _objectSpread(_objectSpread(_objectSpread({}, d), k), {}, {
|
|
72
|
+
nameAsTitleConfigurable: (_k$nameAsTitleConfigu = k.nameAsTitleConfigurable) !== null && _k$nameAsTitleConfigu !== void 0 ? _k$nameAsTitleConfigu : d.nameAsTitleConfigurable
|
|
73
|
+
});
|
|
62
74
|
});
|
|
63
75
|
var seen = new Set(base.map(function (k) {
|
|
64
76
|
return k.value;
|
|
@@ -121,8 +121,7 @@ export function useReservationFloorMapMerged(params) {
|
|
|
121
121
|
showZoom: true,
|
|
122
122
|
showReset: true,
|
|
123
123
|
showFitBounds: true,
|
|
124
|
-
showGridToggle: true
|
|
125
|
-
horizontalAlign: 'end'
|
|
124
|
+
showGridToggle: true
|
|
126
125
|
}, floorRest.controls),
|
|
127
126
|
pan: _objectSpread({
|
|
128
127
|
enabled: true,
|
|
@@ -2,13 +2,13 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
|
|
|
2
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
4
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5
|
+
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); }
|
|
5
6
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
7
|
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."); }
|
|
7
8
|
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); }
|
|
8
9
|
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; }
|
|
9
10
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
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); }
|
|
12
12
|
/**
|
|
13
13
|
* 由 {@link FloorRoomCardData} 渲染 RoomCard 内容(Shell + HeaderView + BodyView),
|
|
14
14
|
* 不含根节点 `pisell-res-floor-room-card`、不含每分钟 tick;平面图容器与弹窗分别外包。
|
|
@@ -29,7 +29,6 @@ var I18N_STATUS_LOCK = 'pisell-reservation.room-status-locked';
|
|
|
29
29
|
var I18N_VIEW_ALL = 'pisell-reservation.room-view-all';
|
|
30
30
|
var I18N_MODAL_BOOKINGS = 'pisell-reservation.room-modal-bookings';
|
|
31
31
|
var I18N_NEXT = 'pisell-reservation.room-next-prefix';
|
|
32
|
-
var I18N_EMPTY_BODY = 'pisell-reservation.room-empty-body';
|
|
33
32
|
function i18nN(key, n) {
|
|
34
33
|
return locales.getText(key).replace(/\{n\}/g, String(n));
|
|
35
34
|
}
|
|
@@ -219,11 +218,12 @@ function StandardCard(props) {
|
|
|
219
218
|
}
|
|
220
219
|
function EmptyCard(props) {
|
|
221
220
|
var data = props.data,
|
|
222
|
-
_props$shellShape3 = props.shellShape,
|
|
223
|
-
shellShape = _props$shellShape3 === void 0 ? 'rect' : _props$shellShape3,
|
|
224
221
|
hideHeaderCapacity = props.hideHeaderCapacity,
|
|
225
222
|
headerMainFieldOverride = props.headerMainFieldOverride;
|
|
226
|
-
|
|
223
|
+
/**
|
|
224
|
+
* 空态卡片仅保留顶部信息条 + 空态轮廓;方桌 / 圆桌都不再展示「暂无预约」正文 chip
|
|
225
|
+
* (早前圆桌已先行移除,方桌按 260415 反馈一并去掉,避免空白区域里的冗余文案)。
|
|
226
|
+
*/
|
|
227
227
|
return /*#__PURE__*/React.createElement(RoomCardShellView, {
|
|
228
228
|
className: "rc rc--empty",
|
|
229
229
|
header: /*#__PURE__*/React.createElement(CardHeader, {
|
|
@@ -231,17 +231,12 @@ function EmptyCard(props) {
|
|
|
231
231
|
hideCapacity: hideHeaderCapacity,
|
|
232
232
|
headerMainFieldOverride: headerMainFieldOverride
|
|
233
233
|
})
|
|
234
|
-
}
|
|
235
|
-
className: "rc-body rc-body--center",
|
|
236
|
-
"data-pisell-floor-room-scroll-surface": ""
|
|
237
|
-
}, floorCardStopCanvasPanHandlers), /*#__PURE__*/React.createElement("span", {
|
|
238
|
-
className: "rc-empty-text"
|
|
239
|
-
}, locales.getText(I18N_EMPTY_BODY))));
|
|
234
|
+
});
|
|
240
235
|
}
|
|
241
236
|
function MultiOccupiedCard(props) {
|
|
242
237
|
var data = props.data,
|
|
243
|
-
_props$
|
|
244
|
-
shellShape = _props$
|
|
238
|
+
_props$shellShape3 = props.shellShape,
|
|
239
|
+
shellShape = _props$shellShape3 === void 0 ? 'rect' : _props$shellShape3,
|
|
245
240
|
elementLayoutHeightPx = props.elementLayoutHeightPx,
|
|
246
241
|
hideHeaderCapacity = props.hideHeaderCapacity,
|
|
247
242
|
headerMainFieldOverride = props.headerMainFieldOverride;
|
|
@@ -324,8 +319,8 @@ function MultiOccupiedCard(props) {
|
|
|
324
319
|
}
|
|
325
320
|
function MultiReservedCard(props) {
|
|
326
321
|
var data = props.data,
|
|
327
|
-
_props$
|
|
328
|
-
shellShape = _props$
|
|
322
|
+
_props$shellShape4 = props.shellShape,
|
|
323
|
+
shellShape = _props$shellShape4 === void 0 ? 'rect' : _props$shellShape4,
|
|
329
324
|
elementLayoutHeightPx = props.elementLayoutHeightPx,
|
|
330
325
|
hideHeaderCapacity = props.hideHeaderCapacity,
|
|
331
326
|
headerMainFieldOverride = props.headerMainFieldOverride;
|
|
@@ -457,8 +452,8 @@ var SPECIAL_RENDERERS = {
|
|
|
457
452
|
*/
|
|
458
453
|
export function FloorRoomCardFromData(props) {
|
|
459
454
|
var data = props.data,
|
|
460
|
-
_props$
|
|
461
|
-
shellShape = _props$
|
|
455
|
+
_props$shellShape5 = props.shellShape,
|
|
456
|
+
shellShape = _props$shellShape5 === void 0 ? 'rect' : _props$shellShape5,
|
|
462
457
|
elementLayoutHeightPx = props.elementLayoutHeightPx,
|
|
463
458
|
_props$hideHeaderCapa2 = props.hideHeaderCapacity,
|
|
464
459
|
hideHeaderCapacity = _props$hideHeaderCapa2 === void 0 ? false : _props$hideHeaderCapa2,
|
|
@@ -1804,7 +1804,7 @@ var Footer = (props) => {
|
|
|
1804
1804
|
},
|
|
1805
1805
|
onChangeOrderNote: handleNoteConfirm,
|
|
1806
1806
|
onDeleteOrderNote: handleNoteDelete,
|
|
1807
|
-
onClose: (reset) => {
|
|
1807
|
+
onClose: (reset, options) => {
|
|
1808
1808
|
var _a2;
|
|
1809
1809
|
console.log("🔄 Footer: Closing PaymentModal", reset);
|
|
1810
1810
|
setIsPaymentModalOpen(false);
|
|
@@ -1814,7 +1814,13 @@ var Footer = (props) => {
|
|
|
1814
1814
|
if (reset) {
|
|
1815
1815
|
handleClearAllAndReset();
|
|
1816
1816
|
}
|
|
1817
|
-
(_a2 = state == null ? void 0 : state.dialogCallback) == null ? void 0 : _a2.call(state, {
|
|
1817
|
+
(_a2 = state == null ? void 0 : state.dialogCallback) == null ? void 0 : _a2.call(state, {
|
|
1818
|
+
type: "paymentClose",
|
|
1819
|
+
reset,
|
|
1820
|
+
data: {
|
|
1821
|
+
order_id: options == null ? void 0 : options.order_id
|
|
1822
|
+
}
|
|
1823
|
+
});
|
|
1818
1824
|
setEditOrderId(0);
|
|
1819
1825
|
},
|
|
1820
1826
|
onSetLocalOrderId: (e) => {
|
|
@@ -25,7 +25,7 @@ interface PaymentModalProps {
|
|
|
25
25
|
onDeleteOrderNote?: () => void;
|
|
26
26
|
}
|
|
27
27
|
interface PaymentModalMainProps extends PaymentModalProps {
|
|
28
|
-
onClose?: (reset?: boolean) => void;
|
|
28
|
+
onClose?: (reset?: boolean, options?: any) => void;
|
|
29
29
|
onSetLocalOrderId?: (order_id: number) => void;
|
|
30
30
|
setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
|
|
31
31
|
editOrderId?: number;
|
|
@@ -1191,7 +1191,7 @@ var PaymentModal = ({
|
|
|
1191
1191
|
const { nativePrint } = (0, import_printer.default)();
|
|
1192
1192
|
const businessCode = (0, import_OsKeyContext.useBusinessCode)();
|
|
1193
1193
|
const handleRetry = async () => {
|
|
1194
|
-
var _a2, _b2;
|
|
1194
|
+
var _a2, _b2, _c2, _d2;
|
|
1195
1195
|
const checkoutModule = pisellos == null ? void 0 : pisellos.getModule("checkout");
|
|
1196
1196
|
const res = await (checkoutModule == null ? void 0 : checkoutModule.manualSyncOrderAsync());
|
|
1197
1197
|
console.log(res);
|
|
@@ -1199,7 +1199,9 @@ var PaymentModal = ({
|
|
|
1199
1199
|
setShowRetryModal(false);
|
|
1200
1200
|
await (showSuccessToast == null ? void 0 : showSuccessToast(res));
|
|
1201
1201
|
if (((_b2 = (_a2 = res == null ? void 0 : res.response) == null ? void 0 : _a2.data) == null ? void 0 : _b2.payment_status) === "paid") {
|
|
1202
|
-
onClose == null ? void 0 : onClose(true
|
|
1202
|
+
onClose == null ? void 0 : onClose(true, {
|
|
1203
|
+
order_id: (_d2 = (_c2 = res == null ? void 0 : res.response) == null ? void 0 : _c2.data) == null ? void 0 : _d2.order_id
|
|
1204
|
+
});
|
|
1203
1205
|
}
|
|
1204
1206
|
}
|
|
1205
1207
|
};
|
|
@@ -1467,9 +1469,12 @@ var PaymentModal = ({
|
|
|
1467
1469
|
callback == null ? void 0 : callback({ ...currentPaymentResultRef.current, isCallbackFromToast: true });
|
|
1468
1470
|
}
|
|
1469
1471
|
};
|
|
1470
|
-
const handleModalClose = () => {
|
|
1472
|
+
const handleModalClose = (res) => {
|
|
1473
|
+
var _a2, _b2;
|
|
1471
1474
|
console.log("PaymentModal - Modal closing independently");
|
|
1472
|
-
onClose == null ? void 0 : onClose(true
|
|
1475
|
+
onClose == null ? void 0 : onClose(true, {
|
|
1476
|
+
order_id: (_b2 = (_a2 = res == null ? void 0 : res.response) == null ? void 0 : _a2.data) == null ? void 0 : _b2.order_id
|
|
1477
|
+
});
|
|
1473
1478
|
};
|
|
1474
1479
|
const handlePaymentCancel = (reset, notCancelOrder) => {
|
|
1475
1480
|
var _a2, _b2;
|
|
@@ -1663,7 +1668,7 @@ var PaymentModal = ({
|
|
|
1663
1668
|
);
|
|
1664
1669
|
console.log("paymentStatus>>>>", paymentStatus);
|
|
1665
1670
|
if (paymentStatus === "paid") {
|
|
1666
|
-
handleModalClose();
|
|
1671
|
+
handleModalClose(data2);
|
|
1667
1672
|
}
|
|
1668
1673
|
const paymentResult = {
|
|
1669
1674
|
...data2,
|
|
@@ -87,6 +87,7 @@ var import_formResourcePage = require("./serve/formResourcePage");
|
|
|
87
87
|
var import_productQuery = require("./serve/productQuery");
|
|
88
88
|
var import_reservationRuleProducts = require("./data/reservationRuleProducts");
|
|
89
89
|
var import_associatedMenuListIdsFromOpenData = require("./data/associatedMenuListIdsFromOpenData");
|
|
90
|
+
var TEMP_HIDE_HUD_DRAWER_INNER_STATS_AND_RESOURCE_RAIL = true;
|
|
90
91
|
function dayjsFromCalendarHour(dateStr, hourFloat) {
|
|
91
92
|
const h = Math.floor(hourFloat);
|
|
92
93
|
const m = Math.round((hourFloat - h) * 60);
|
|
@@ -316,7 +317,6 @@ var PisellReservationCore = (props) => {
|
|
|
316
317
|
onPageChangeProp
|
|
317
318
|
);
|
|
318
319
|
const resolvedFloorPlanId = floorPlanIdProp === null ? null : floorPlanIdProp === void 0 ? import_floorPlanApi.RESERVATION_DEFAULT_FLOOR_PLAN_ID : floorPlanIdProp;
|
|
319
|
-
const effectiveFloorPlanCode = floorPlanCode ?? import_floorPlanApi.PISELL_RESERVATION_FLOOR_PLAN_CODE;
|
|
320
320
|
const engineCtx = (0, import_useEngineContext.default)();
|
|
321
321
|
const pisellos = (0, import_useEngineContext.usePisellOS)();
|
|
322
322
|
const pisellosRef = (0, import_react.useRef)(pisellos);
|
|
@@ -332,6 +332,7 @@ var PisellReservationCore = (props) => {
|
|
|
332
332
|
if (!s) return {};
|
|
333
333
|
return { business_code: s };
|
|
334
334
|
}, [BIZ]);
|
|
335
|
+
const effectiveFloorPlanCode = BIZ || floorPlanCode || import_floorPlanApi.PISELL_RESERVATION_FLOOR_PLAN_CODE;
|
|
335
336
|
const muiDatePickerAdapterLocale = (0, import_react.useMemo)(() => {
|
|
336
337
|
const loc = String(engineLocale).toLowerCase();
|
|
337
338
|
if (loc.startsWith("zh-cn")) return "zh-cn";
|
|
@@ -1992,7 +1993,7 @@ var PisellReservationCore = (props) => {
|
|
|
1992
1993
|
/* @__PURE__ */ import_react.default.createElement(
|
|
1993
1994
|
import_materials.PisellRecordBoard.ShellFrame,
|
|
1994
1995
|
{
|
|
1995
|
-
belowToolbar: /* @__PURE__ */ import_react.default.createElement(
|
|
1996
|
+
belowToolbar: TEMP_HIDE_HUD_DRAWER_INNER_STATS_AND_RESOURCE_RAIL ? void 0 : /* @__PURE__ */ import_react.default.createElement(
|
|
1996
1997
|
import_ReservationFloorMapHud.ReservationFloorMapHudTitleBar,
|
|
1997
1998
|
{
|
|
1998
1999
|
items: hudMapItems,
|
|
@@ -2006,7 +2007,7 @@ var PisellReservationCore = (props) => {
|
|
|
2006
2007
|
},
|
|
2007
2008
|
/* @__PURE__ */ import_react.default.createElement(import_materials.PisellRecordBoard.GridLayout, null)
|
|
2008
2009
|
)
|
|
2009
|
-
)), floorMapHudTableDrawer ? /* @__PURE__ */ import_react.default.createElement(
|
|
2010
|
+
)), floorMapHudTableDrawer && !TEMP_HIDE_HUD_DRAWER_INNER_STATS_AND_RESOURCE_RAIL ? /* @__PURE__ */ import_react.default.createElement(
|
|
2010
2011
|
import_ReservationHudDrawerResourceRail.ReservationHudDrawerResourceRail,
|
|
2011
2012
|
{
|
|
2012
2013
|
className: "pisell-reservation-hud-drawer-resource-rail",
|
|
@@ -4,6 +4,8 @@ import type { PisellReservationTableRow } from '../types';
|
|
|
4
4
|
* 父级/接口 elementKinds 与预约默认合并:
|
|
5
5
|
* - 去掉与 Story 图片图元重复的旧版种类;
|
|
6
6
|
* - 远程若已有 `floorMapImage` 也先去掉,统一用 defaults 里那份(避免两套「图片底图」并存)。
|
|
7
|
+
* - 对**同一 value**:用 `{ ...default, ...remote }` 合并,避免远程 JSON 只存了精简字段时
|
|
8
|
+
* 把预约默认里的 `nameAsTitleConfigurable` 等能力位整段丢掉(否则编辑面板不显示「图元名作为标题」勾选)。
|
|
7
9
|
*/
|
|
8
10
|
export declare function mergeFloorMapElementKindsWithDefaults(defaults: FloorMapElementKindConfig[], remote: FloorMapElementKindConfig[] | undefined): FloorMapElementKindConfig[];
|
|
9
11
|
/** 同上,补全图元分类(如「底图」),避免调色板分组缺失 */
|
|
@@ -82,9 +82,18 @@ function dedupeElementKindsByValue(kinds) {
|
|
|
82
82
|
}
|
|
83
83
|
function mergeFloorMapElementKindsWithDefaults(defaults, remote) {
|
|
84
84
|
if (!(remote == null ? void 0 : remote.length)) return defaults;
|
|
85
|
+
const defaultByValue = new Map(defaults.map((d) => [d.value, d]));
|
|
85
86
|
const base = dedupeElementKindsByValue(
|
|
86
87
|
stripConflictingImageElementKinds(remote)
|
|
87
|
-
).filter((k) => k.value !== import_materials.FLOOR_MAP_IMAGE_ELEMENT_KIND).filter((k) => !LEGACY_RESERVATION_TABLE_KIND_VALUES.has(k.value))
|
|
88
|
+
).filter((k) => k.value !== import_materials.FLOOR_MAP_IMAGE_ELEMENT_KIND).filter((k) => !LEGACY_RESERVATION_TABLE_KIND_VALUES.has(k.value)).map((k) => {
|
|
89
|
+
const d = defaultByValue.get(k.value);
|
|
90
|
+
if (!d) return k;
|
|
91
|
+
return {
|
|
92
|
+
...d,
|
|
93
|
+
...k,
|
|
94
|
+
nameAsTitleConfigurable: k.nameAsTitleConfigurable ?? d.nameAsTitleConfigurable
|
|
95
|
+
};
|
|
96
|
+
});
|
|
88
97
|
const seen = new Set(base.map((k) => k.value));
|
|
89
98
|
const out = [...base];
|
|
90
99
|
for (const d of defaults) {
|
|
@@ -48,7 +48,6 @@ var I18N_STATUS_LOCK = "pisell-reservation.room-status-locked";
|
|
|
48
48
|
var I18N_VIEW_ALL = "pisell-reservation.room-view-all";
|
|
49
49
|
var I18N_MODAL_BOOKINGS = "pisell-reservation.room-modal-bookings";
|
|
50
50
|
var I18N_NEXT = "pisell-reservation.room-next-prefix";
|
|
51
|
-
var I18N_EMPTY_BODY = "pisell-reservation.room-empty-body";
|
|
52
51
|
function i18nN(key, n) {
|
|
53
52
|
return import_utils.locales.getText(key).replace(/\{n\}/g, String(n));
|
|
54
53
|
}
|
|
@@ -213,8 +212,7 @@ function StandardCard(props) {
|
|
|
213
212
|
);
|
|
214
213
|
}
|
|
215
214
|
function EmptyCard(props) {
|
|
216
|
-
const { data,
|
|
217
|
-
const isCircle = shellShape === "circle";
|
|
215
|
+
const { data, hideHeaderCapacity, headerMainFieldOverride } = props;
|
|
218
216
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
219
217
|
import_RoomCardShellView.RoomCardShellView,
|
|
220
218
|
{
|
|
@@ -227,16 +225,7 @@ function EmptyCard(props) {
|
|
|
227
225
|
headerMainFieldOverride
|
|
228
226
|
}
|
|
229
227
|
)
|
|
230
|
-
}
|
|
231
|
-
isCircle ? null : /* @__PURE__ */ import_react.default.createElement(
|
|
232
|
-
"div",
|
|
233
|
-
{
|
|
234
|
-
className: "rc-body rc-body--center",
|
|
235
|
-
"data-pisell-floor-room-scroll-surface": "",
|
|
236
|
-
...floorCardStopCanvasPanHandlers
|
|
237
|
-
},
|
|
238
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: "rc-empty-text" }, import_utils.locales.getText(I18N_EMPTY_BODY))
|
|
239
|
-
)
|
|
228
|
+
}
|
|
240
229
|
);
|
|
241
230
|
}
|
|
242
231
|
function MultiOccupiedCard(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.145",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"react-infinite-scroll-component": "^6.1.0",
|
|
68
68
|
"react-resizable": "^3.0.5",
|
|
69
69
|
"styled-components": "^6.0.0-rc.3",
|
|
70
|
-
"@pisell/
|
|
71
|
-
"@pisell/materials": "6.11.45",
|
|
70
|
+
"@pisell/date-picker": "3.0.8",
|
|
72
71
|
"@pisell/icon": "0.0.11",
|
|
73
|
-
"@pisell/
|
|
72
|
+
"@pisell/utils": "3.0.2",
|
|
73
|
+
"@pisell/materials": "6.11.46"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^18.0.0",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const getGroupTotalPrice: (items: any[]) => any;
|
|
2
|
-
/**
|
|
3
|
-
* @title: 创建一个虚拟的组
|
|
4
|
-
* @description:
|
|
5
|
-
* @param {any} items
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: zhiwei.Wang
|
|
8
|
-
*/
|
|
9
|
-
export declare const concatBookings: (items: any[]) => any;
|
|
10
|
-
export declare const createBookingItemsByGroup: (item: any, isBatchEdit?: any) => any[];
|
|
11
|
-
export declare const isGroupBooking: (_id: any) => boolean;
|
|
12
|
-
export declare const getProductByGroupId: (groupId: string, items: any[]) => any[];
|
|
13
|
-
export declare const getGroupBooking: (groupId: string, items: any[]) => any;
|
|
14
|
-
export declare const filterItemByGroupId: (groupId: string, items: any[]) => any[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ToBPayParams } from '../types';
|
|
3
|
-
export interface PaymentMethodsRef {
|
|
4
|
-
onPay: (type: 'eftpos' | 'mx51', params: ToBPayParams) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface PaymentMethodsProps {
|
|
7
|
-
dynamicMaxHeight?: string;
|
|
8
|
-
isWebPos?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<PaymentMethodsRef>>;
|
|
11
|
-
export default _default;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export * from './storeTypes';
|
|
2
|
-
export interface ToBPayParams {
|
|
3
|
-
source?: 'normal' | 'restore';
|
|
4
|
-
data: {
|
|
5
|
-
type?: string;
|
|
6
|
-
payMethod: {
|
|
7
|
-
id: string;
|
|
8
|
-
code: string;
|
|
9
|
-
type: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
params: {
|
|
13
|
-
orderId?: string | number;
|
|
14
|
-
symbol?: string;
|
|
15
|
-
amount: string;
|
|
16
|
-
surcharge?: string;
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
mode: 'pay' | 'refund';
|
|
20
|
-
};
|
|
21
|
-
callback: ToBPayCallback;
|
|
22
|
-
}
|
|
23
|
-
export declare type ToBPayCallback = (res: {
|
|
24
|
-
status: string;
|
|
25
|
-
data: {
|
|
26
|
-
amount: number;
|
|
27
|
-
surPercentRate?: number;
|
|
28
|
-
surMoney?: number;
|
|
29
|
-
surcharge?: number;
|
|
30
|
-
uniquePaymentNumber?: string;
|
|
31
|
-
/**
|
|
32
|
-
* @description
|
|
33
|
-
* 支付组件返回的额外动作指令(例如:取消订单并开始新订单)
|
|
34
|
-
* PaymentModal 里会根据该字段执行对应流程。
|
|
35
|
-
*/
|
|
36
|
-
action?: 'cancel_order' | string;
|
|
37
|
-
};
|
|
38
|
-
msg?: string;
|
|
39
|
-
}) => void;
|
|
40
|
-
/**
|
|
41
|
-
* @title: 支付打开参数
|
|
42
|
-
*/
|
|
43
|
-
export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
|
|
44
|
-
payCallback: (res: EftposPayResult | MX51PayResult) => void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @title: eftpos支付结果
|
|
48
|
-
*/
|
|
49
|
-
export interface EftposPayResult {
|
|
50
|
-
status: 'success' | 'fail';
|
|
51
|
-
params: {
|
|
52
|
-
amount: number;
|
|
53
|
-
surPercentRate: number;
|
|
54
|
-
surMoney: number;
|
|
55
|
-
uniquePaymentNumber: string;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @title: MX51支付结果
|
|
60
|
-
*/
|
|
61
|
-
export interface MX51PayResult {
|
|
62
|
-
result: boolean;
|
|
63
|
-
msg?: string;
|
|
64
|
-
amount: number;
|
|
65
|
-
surcharge: number;
|
|
66
|
-
uniquePaymentNumber: string;
|
|
67
|
-
nativeTxId: string;
|
|
68
|
-
action?: 'cancel_order' | string;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* @title 原生MX51支付结果
|
|
72
|
-
*/
|
|
73
|
-
export interface NativeMX51PayResult {
|
|
74
|
-
action?: 'cancel_order' | string;
|
|
75
|
-
code: string;
|
|
76
|
-
msg?: string;
|
|
77
|
-
data: {
|
|
78
|
-
amount: number;
|
|
79
|
-
surcharge: number;
|
|
80
|
-
};
|
|
81
|
-
uuid: string;
|
|
82
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'dayjs/locale/zh-cn';
|
|
3
|
-
import 'dayjs/locale/en';
|
|
4
|
-
import 'dayjs/locale/zh-tw';
|
|
5
|
-
import type { PisellReservationProps } from './types';
|
|
6
|
-
import './PisellReservation.less';
|
|
7
|
-
/**
|
|
8
|
-
* 预约看板 Core:内置 Sales 预约列表 + 时间轴 + 平面图。
|
|
9
|
-
* 页面壳 {@link PisellReservationBookingPage} / {@link PisellVenueControlPage} / PisellVenueWallPage 通过 props 组合默认行为。
|
|
10
|
-
*/
|
|
11
|
-
export declare const PisellReservationCore: React.FC<PisellReservationProps>;
|