@pisell/private-materials 6.11.28 → 6.11.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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +3 -3
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +1 -1
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/plus/pisellSalesGrid/PisellSalesGrid.js +2 -2
- package/es/plus/pisellSalesGrid/PisellSalesGrid.less +6 -0
- package/es/plus/pisellSalesGrid/serve.d.ts +1 -1
- package/es/plus/pisellSalesGrid/serve.js +7 -7
- package/es/plus/pisellSalesGrid/types.d.ts +2 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +3 -2
- package/es/plus/pisellSalesManagement/config/booking.d.ts +26 -0
- package/es/plus/pisellSalesManagement/config/booking.js +9 -5
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +68 -27
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +38 -22
- package/es/plus/pisellSalesManagement/index.js +3 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +1 -1
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +5 -2
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.less +6 -0
- package/lib/plus/pisellSalesGrid/serve.d.ts +1 -1
- package/lib/plus/pisellSalesGrid/serve.js +6 -6
- package/lib/plus/pisellSalesGrid/types.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +3 -2
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +26 -0
- package/lib/plus/pisellSalesManagement/config/booking.js +9 -5
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +65 -29
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +39 -21
- package/lib/plus/pisellSalesManagement/index.js +1 -1
- package/package.json +4 -4
|
@@ -144,14 +144,21 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
144
144
|
}
|
|
145
145
|
}, {
|
|
146
146
|
title: orderLabels.customer,
|
|
147
|
-
dataIndex: 'customer',
|
|
148
147
|
key: 'customer',
|
|
149
148
|
align: 'center',
|
|
150
149
|
width: 150,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
var guestCode =
|
|
150
|
+
uniformCompare: function uniformCompare(value, record) {
|
|
151
|
+
var customer = record === null || record === void 0 ? void 0 : record.customer;
|
|
152
|
+
if (!customer) return '-';
|
|
153
|
+
var guestCode = customer === null || customer === void 0 ? void 0 : customer.guest_code;
|
|
154
|
+
if (guestCode) return "".concat(guestCode);
|
|
155
|
+
if (customer.user_id === 1) return 'walk-in'; // 返回任意固定值即可
|
|
156
|
+
return customer;
|
|
157
|
+
},
|
|
158
|
+
render: function render(_, record) {
|
|
159
|
+
var customer = record === null || record === void 0 ? void 0 : record.customer;
|
|
160
|
+
if (!customer) return '-';
|
|
161
|
+
var guestCode = customer === null || customer === void 0 ? void 0 : customer.guest_code;
|
|
155
162
|
if (guestCode) {
|
|
156
163
|
return /*#__PURE__*/React.createElement("div", {
|
|
157
164
|
style: {
|
|
@@ -193,6 +200,10 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
193
200
|
key: 'contacts_info',
|
|
194
201
|
align: 'center',
|
|
195
202
|
width: 150,
|
|
203
|
+
uniformCompare: function uniformCompare(value, record) {
|
|
204
|
+
if (!value) return '-';
|
|
205
|
+
return value;
|
|
206
|
+
},
|
|
196
207
|
render: function render(value) {
|
|
197
208
|
if (!value) return '-';
|
|
198
209
|
var info = (value === null || value === void 0 ? void 0 : value.value) || {};
|
|
@@ -219,11 +230,11 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
219
230
|
}
|
|
220
231
|
}, {
|
|
221
232
|
title: orderLabels.paymentInfo,
|
|
222
|
-
dataIndex: 'payment_status',
|
|
223
233
|
key: 'payment_info',
|
|
224
234
|
width: 124,
|
|
225
235
|
align: 'center',
|
|
226
|
-
render: function render(
|
|
236
|
+
render: function render(_, record) {
|
|
237
|
+
var value = record === null || record === void 0 ? void 0 : record.payment_status;
|
|
227
238
|
var currencySymbol = record === null || record === void 0 ? void 0 : record.currency_symbol;
|
|
228
239
|
var totalAmount = Number((record === null || record === void 0 ? void 0 : record.total_amount) || 0);
|
|
229
240
|
var paidAmount = Number((record === null || record === void 0 ? void 0 : record.paid_amount) || 0);
|
|
@@ -333,13 +344,11 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
333
344
|
}
|
|
334
345
|
}, {
|
|
335
346
|
title: orderLabels.items,
|
|
336
|
-
dataIndex: 'product_quantity',
|
|
337
347
|
key: 'product_quantity',
|
|
338
348
|
align: 'center',
|
|
339
349
|
width: 120,
|
|
340
|
-
render: function render(
|
|
341
|
-
var
|
|
342
|
-
var count = Number((_ref = (_ref2 = value !== null && value !== void 0 ? value : record === null || record === void 0 ? void 0 : record.items_count) !== null && _ref2 !== void 0 ? _ref2 : record === null || record === void 0 ? void 0 : record.item_count) !== null && _ref !== void 0 ? _ref : 0) || 0;
|
|
350
|
+
render: function render(_, record) {
|
|
351
|
+
var count = (record === null || record === void 0 ? void 0 : record.product_quantity) || 0;
|
|
343
352
|
return /*#__PURE__*/React.createElement("span", {
|
|
344
353
|
style: _objectSpread(_objectSpread({}, textStyles.text), {}, {
|
|
345
354
|
textAlign: 'center'
|
|
@@ -432,18 +441,18 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
432
441
|
}
|
|
433
442
|
}, {
|
|
434
443
|
title: orderLabels.shippingMethod,
|
|
435
|
-
dataIndex: 'delivery_type',
|
|
436
444
|
key: 'delivery_type',
|
|
437
445
|
align: 'center',
|
|
438
446
|
width: 160,
|
|
439
|
-
render: function render(
|
|
447
|
+
render: function render(_, record) {
|
|
440
448
|
var _record$metadata;
|
|
449
|
+
var deliveryType = record === null || record === void 0 ? void 0 : record.delivery_type;
|
|
441
450
|
var serverType = record === null || record === void 0 || (_record$metadata = record.metadata) === null || _record$metadata === void 0 || (_record$metadata = _record$metadata.shop_service_type) === null || _record$metadata === void 0 ? void 0 : _record$metadata.server_type;
|
|
442
|
-
if (!
|
|
443
|
-
var isShopService =
|
|
444
|
-
var label = isShopService ? SHOP_SERVICE_TYPE_LABEL_MAP[serverType] : DELIVERY_TYPE_LABEL_MAP[
|
|
445
|
-
if (!label || !isShopService &&
|
|
446
|
-
var color = isShopService ? SHOP_SERVICE_TYPE_COLOR_MAP[serverType] : DELIVERY_TYPE_COLOR_MAP[
|
|
451
|
+
if (!deliveryType && !serverType) return '-';
|
|
452
|
+
var isShopService = deliveryType === 'shop_service';
|
|
453
|
+
var label = isShopService ? SHOP_SERVICE_TYPE_LABEL_MAP[serverType] : DELIVERY_TYPE_LABEL_MAP[deliveryType];
|
|
454
|
+
if (!label || !isShopService && deliveryType === 'nil') return '-';
|
|
455
|
+
var color = isShopService ? SHOP_SERVICE_TYPE_COLOR_MAP[serverType] : DELIVERY_TYPE_COLOR_MAP[deliveryType];
|
|
447
456
|
return /*#__PURE__*/React.createElement("div", {
|
|
448
457
|
style: {
|
|
449
458
|
textAlign: 'center'
|
|
@@ -455,6 +464,12 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
455
464
|
},
|
|
456
465
|
color: color
|
|
457
466
|
}, label));
|
|
467
|
+
},
|
|
468
|
+
uniformCompare: function uniformCompare(_, record) {
|
|
469
|
+
var _record$metadata2;
|
|
470
|
+
var deliveryType = (record === null || record === void 0 ? void 0 : record.delivery_type) || '';
|
|
471
|
+
var serverType = (record === null || record === void 0 || (_record$metadata2 = record.metadata) === null || _record$metadata2 === void 0 || (_record$metadata2 = _record$metadata2.shop_service_type) === null || _record$metadata2 === void 0 ? void 0 : _record$metadata2.server_type) || '';
|
|
472
|
+
return "".concat(deliveryType, "|").concat(serverType);
|
|
458
473
|
}
|
|
459
474
|
}, {
|
|
460
475
|
title: orderLabels.orderStatus,
|
|
@@ -500,12 +515,12 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
500
515
|
}
|
|
501
516
|
}, {
|
|
502
517
|
title: orderLabels.updated,
|
|
503
|
-
dataIndex: 'last_edit_account',
|
|
504
518
|
key: 'last_edit_account',
|
|
505
519
|
width: 132,
|
|
506
520
|
align: 'center',
|
|
507
|
-
render: function render(
|
|
508
|
-
var
|
|
521
|
+
render: function render(_, record) {
|
|
522
|
+
var editor = record === null || record === void 0 ? void 0 : record.last_edit_account;
|
|
523
|
+
var time = (editor === null || editor === void 0 ? void 0 : editor.created_at) || (record === null || record === void 0 ? void 0 : record.updated_at);
|
|
509
524
|
var channel = PLATFORM_LABEL_MAP[record === null || record === void 0 ? void 0 : record.order_platform] || (record === null || record === void 0 ? void 0 : record.order_platform);
|
|
510
525
|
var lines = getDisplayLines([channel]);
|
|
511
526
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -515,7 +530,7 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
515
530
|
alignItems: 'flex-start'
|
|
516
531
|
}
|
|
517
532
|
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
518
|
-
dataSource:
|
|
533
|
+
dataSource: editor || record.create_account,
|
|
519
534
|
style: {
|
|
520
535
|
fontSize: 14
|
|
521
536
|
}
|
|
@@ -574,6 +589,7 @@ export var useOrderPerspective = function useOrderPerspective() {
|
|
|
574
589
|
return {
|
|
575
590
|
grid: {
|
|
576
591
|
bordered: true,
|
|
592
|
+
collapseUniformColumns: true,
|
|
577
593
|
columns: buildColumns(ctx),
|
|
578
594
|
defaultHiddenColumnKeys: ['order_origin', 'payment_status', 'delivery_type', 'status', 'shipping_status', 'last_edit_account', 'id'],
|
|
579
595
|
scroll: {
|
|
@@ -71,7 +71,9 @@ var PisellSalesManagement = function PisellSalesManagement(props) {
|
|
|
71
71
|
dateAdapter: AdapterDayjs,
|
|
72
72
|
adapterLocale: adapterLocale
|
|
73
73
|
}, /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
style:
|
|
74
|
+
style: Object.assign({}, {
|
|
75
|
+
height: 0
|
|
76
|
+
}, props === null || props === void 0 ? void 0 : props.style)
|
|
75
77
|
}, /*#__PURE__*/React.createElement(PisellSalesGrid, {
|
|
76
78
|
perspectives: perspectives,
|
|
77
79
|
currentPerspective: perspective,
|
|
@@ -173,10 +173,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
173
173
|
export declare const getDuration: (duration: number | {
|
|
174
174
|
type: string;
|
|
175
175
|
value: number;
|
|
176
|
-
}) => number | {
|
|
176
|
+
}) => number | "flexible" | {
|
|
177
177
|
type: string;
|
|
178
178
|
value: number;
|
|
179
|
-
}
|
|
179
|
+
};
|
|
180
180
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
181
181
|
export declare const getIsEdit: (state: any) => boolean;
|
|
182
182
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare const useCupAction: () => {
|
|
|
8
8
|
* @return {*}
|
|
9
9
|
*/
|
|
10
10
|
export declare const useBatchCupAction: () => {
|
|
11
|
-
run: (this: unknown, eco_cup_ids:
|
|
11
|
+
run: (this: unknown, eco_cup_ids: string[] | number[]) => Promise<boolean>;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
|
|
|
178
178
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
179
179
|
type: EActionTypes;
|
|
180
180
|
payload: {
|
|
181
|
-
status: "
|
|
181
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
/**
|
|
@@ -301,8 +301,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
301
301
|
amount?: string | number | undefined;
|
|
302
302
|
mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
|
|
303
303
|
order_id?: string | number | undefined;
|
|
304
|
-
eftpos?: "
|
|
305
|
-
action?: "
|
|
304
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
306
306
|
key?: number | undefined;
|
|
307
307
|
step?: number | undefined;
|
|
308
308
|
title?: string | undefined;
|
|
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
314
314
|
form?: string | undefined;
|
|
315
|
-
status?: "
|
|
315
|
+
status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
316
316
|
warn?: string | undefined;
|
|
317
317
|
steps?: {
|
|
318
318
|
/** 用于重置当前步骤 */
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -54,7 +54,10 @@ function getDefaultSearchParams(currentPerspective) {
|
|
|
54
54
|
filter: {
|
|
55
55
|
values: {
|
|
56
56
|
order_payment_status: import_booking.defaultPaymentStatusKeys,
|
|
57
|
-
|
|
57
|
+
booking_time_start_between: [
|
|
58
|
+
(0, import_dayjs.default)().startOf("day"),
|
|
59
|
+
(0, import_dayjs.default)().endOf("day")
|
|
60
|
+
]
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
63
|
};
|
|
@@ -126,7 +129,7 @@ var PisellSalesGrid = (props) => {
|
|
|
126
129
|
const [selectedRows, setSelectedRows] = (0, import_react.useState)([]);
|
|
127
130
|
const [pagination, setPagination] = (0, import_react.useState)({
|
|
128
131
|
pageNumber: 1,
|
|
129
|
-
pageSize:
|
|
132
|
+
pageSize: 50
|
|
130
133
|
});
|
|
131
134
|
const [searchParams, setSearchParams] = (0, import_react.useState)(() => {
|
|
132
135
|
if (__id) {
|
|
@@ -79,7 +79,7 @@ var getOrderList = async (params) => {
|
|
|
79
79
|
};
|
|
80
80
|
var formatBookingParams = (params) => {
|
|
81
81
|
const {
|
|
82
|
-
|
|
82
|
+
booking_time_start_between,
|
|
83
83
|
created_at_between,
|
|
84
84
|
updated_at_between,
|
|
85
85
|
number_between,
|
|
@@ -87,14 +87,14 @@ var formatBookingParams = (params) => {
|
|
|
87
87
|
sort,
|
|
88
88
|
...rest
|
|
89
89
|
} = params;
|
|
90
|
-
const bookingTimeRange = Array.isArray(
|
|
91
|
-
(value) => value ? (0, import_dayjs.default)(value).format("YYYY-MM-DD") : void 0
|
|
90
|
+
const bookingTimeRange = Array.isArray(booking_time_start_between) ? booking_time_start_between.map(
|
|
91
|
+
(value) => value ? (0, import_dayjs.default)(value).format("YYYY-MM-DD HH:mm:ss") : void 0
|
|
92
92
|
).filter((value) => value) : void 0;
|
|
93
93
|
const createdRange = Array.isArray(created_at_between) ? created_at_between.map(
|
|
94
|
-
(value) => value ? (0, import_dayjs.default)(value).format("YYYY-MM-DD") : void 0
|
|
94
|
+
(value) => value ? (0, import_dayjs.default)(value).format("YYYY-MM-DD HH:mm:ss") : void 0
|
|
95
95
|
).filter((value) => value) : void 0;
|
|
96
96
|
const updatedRange = Array.isArray(updated_at_between) ? updated_at_between.map(
|
|
97
|
-
(value) => value ? (0, import_dayjs.default)(value).format("YYYY-MM-DD") : void 0
|
|
97
|
+
(value) => value ? (0, import_dayjs.default)(value).format("YYYY-MM-DD HH:mm:ss") : void 0
|
|
98
98
|
).filter((value) => value) : void 0;
|
|
99
99
|
const numberRange = Array.isArray(number_between) ? number_between : (number_between == null ? void 0 : number_between.min) != null || (number_between == null ? void 0 : number_between.max) != null ? [number_between == null ? void 0 : number_between.min, number_between == null ? void 0 : number_between.max] : void 0;
|
|
100
100
|
const amountRange = Array.isArray(total_amount_between) ? total_amount_between : (total_amount_between == null ? void 0 : total_amount_between.min) != null || (total_amount_between == null ? void 0 : total_amount_between.max) != null ? [total_amount_between == null ? void 0 : total_amount_between.min, total_amount_between == null ? void 0 : total_amount_between.max] : void 0;
|
|
@@ -105,7 +105,7 @@ var formatBookingParams = (params) => {
|
|
|
105
105
|
...rest,
|
|
106
106
|
...ext,
|
|
107
107
|
...(bookingTimeRange == null ? void 0 : bookingTimeRange.length) && {
|
|
108
|
-
|
|
108
|
+
booking_time_start_between: bookingTimeRange
|
|
109
109
|
},
|
|
110
110
|
...(createdRange == null ? void 0 : createdRange.length) && { created_at_between: createdRange },
|
|
111
111
|
...(updatedRange == null ? void 0 : updatedRange.length) && { updated_at_between: updatedRange },
|
|
@@ -81,6 +81,8 @@ export interface RecordBoardGridPropsCompat {
|
|
|
81
81
|
columns?: any[];
|
|
82
82
|
/** 默认隐藏的列 key 列表(对应 columns 的 key 或 dataIndex),与列上 hidden: true 合并后由 RecordBoard 初始化列显隐 */
|
|
83
83
|
defaultHiddenColumnKeys?: string[];
|
|
84
|
+
/** 当前页某列全同值/全空时隐藏该列并在表格上方展示总结区;默认 true,传 false 可关闭 */
|
|
85
|
+
collapseUniformColumns?: boolean;
|
|
84
86
|
/** 表格滚动,与 RecordBoard grid.scroll 对齐(含 autoCalc、scrollToFirstRowOnChange) */
|
|
85
87
|
scroll?: {
|
|
86
88
|
x?: number | string;
|
|
@@ -126,7 +126,8 @@ var BookingFormsPreview = (props) => {
|
|
|
126
126
|
{
|
|
127
127
|
style: {
|
|
128
128
|
display: "flex",
|
|
129
|
-
flexDirection: "column"
|
|
129
|
+
flexDirection: "column",
|
|
130
|
+
gap: 10
|
|
130
131
|
}
|
|
131
132
|
},
|
|
132
133
|
tableItems.map((item, idx) => {
|
|
@@ -140,7 +141,7 @@ var BookingFormsPreview = (props) => {
|
|
|
140
141
|
color: clickable ? "#7f56d9" : "#98A2B3",
|
|
141
142
|
textDecoration: clickable ? "underline" : "none",
|
|
142
143
|
whiteSpace: "nowrap",
|
|
143
|
-
lineHeight: "
|
|
144
|
+
lineHeight: "18px",
|
|
144
145
|
cursor: clickable ? "pointer" : "default"
|
|
145
146
|
},
|
|
146
147
|
onClick: (event) => {
|
|
@@ -22,6 +22,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
22
22
|
component?: undefined;
|
|
23
23
|
isSearchServer?: undefined;
|
|
24
24
|
showSearch?: undefined;
|
|
25
|
+
showTime?: undefined;
|
|
25
26
|
};
|
|
26
27
|
sort?: undefined;
|
|
27
28
|
localFilter?: undefined;
|
|
@@ -47,6 +48,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
47
48
|
component?: undefined;
|
|
48
49
|
isSearchServer?: undefined;
|
|
49
50
|
showSearch?: undefined;
|
|
51
|
+
showTime?: undefined;
|
|
50
52
|
};
|
|
51
53
|
sort?: undefined;
|
|
52
54
|
localFilter?: undefined;
|
|
@@ -73,6 +75,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
73
75
|
maxInputNumberProps?: undefined;
|
|
74
76
|
isSearchServer?: undefined;
|
|
75
77
|
showSearch?: undefined;
|
|
78
|
+
showTime?: undefined;
|
|
76
79
|
};
|
|
77
80
|
} | {
|
|
78
81
|
name: string;
|
|
@@ -90,6 +93,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
90
93
|
component?: undefined;
|
|
91
94
|
isSearchServer?: undefined;
|
|
92
95
|
showSearch?: undefined;
|
|
96
|
+
showTime?: undefined;
|
|
93
97
|
};
|
|
94
98
|
sort?: undefined;
|
|
95
99
|
localFilter?: undefined;
|
|
@@ -109,6 +113,7 @@ export declare const getFilterButtonList: () => ({
|
|
|
109
113
|
component?: undefined;
|
|
110
114
|
isSearchServer?: undefined;
|
|
111
115
|
showSearch?: undefined;
|
|
116
|
+
showTime?: undefined;
|
|
112
117
|
};
|
|
113
118
|
sort?: undefined;
|
|
114
119
|
localFilter?: undefined;
|
|
@@ -128,6 +133,27 @@ export declare const getFilterButtonList: () => ({
|
|
|
128
133
|
minInputNumberProps?: undefined;
|
|
129
134
|
maxInputNumberProps?: undefined;
|
|
130
135
|
component?: undefined;
|
|
136
|
+
showTime?: undefined;
|
|
137
|
+
};
|
|
138
|
+
sort?: undefined;
|
|
139
|
+
localFilter?: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
name: string;
|
|
142
|
+
type: string;
|
|
143
|
+
key: string;
|
|
144
|
+
label: any;
|
|
145
|
+
other: {
|
|
146
|
+
placeholder: any;
|
|
147
|
+
showTime: boolean;
|
|
148
|
+
allowClear?: undefined;
|
|
149
|
+
mode?: undefined;
|
|
150
|
+
maxTagCount?: undefined;
|
|
151
|
+
options?: undefined;
|
|
152
|
+
minInputNumberProps?: undefined;
|
|
153
|
+
maxInputNumberProps?: undefined;
|
|
154
|
+
component?: undefined;
|
|
155
|
+
isSearchServer?: undefined;
|
|
156
|
+
showSearch?: undefined;
|
|
131
157
|
};
|
|
132
158
|
sort?: undefined;
|
|
133
159
|
localFilter?: undefined;
|
|
@@ -115,7 +115,9 @@ var getBookingHeaderLabels = () => ({
|
|
|
115
115
|
more: import_utils.locales.getText("pisell2.salesManagement.booking.common.more"),
|
|
116
116
|
createdBy: import_utils.locales.getText(
|
|
117
117
|
"pisell2.salesManagement.booking.common.createdBy"
|
|
118
|
-
)
|
|
118
|
+
),
|
|
119
|
+
guest: import_utils.locales.getText("pisell2.salesManagement.order.common.guest"),
|
|
120
|
+
walkIn: import_utils.locales.getText("pisell2.salesManagement.order.common.walkIn")
|
|
119
121
|
});
|
|
120
122
|
var defaultPaymentStatusKeys = [
|
|
121
123
|
"payment_pending",
|
|
@@ -337,7 +339,7 @@ var getFilterButtonList = () => {
|
|
|
337
339
|
},
|
|
338
340
|
{
|
|
339
341
|
name: "created_at_between",
|
|
340
|
-
type: "
|
|
342
|
+
type: "rangePicker",
|
|
341
343
|
key: "createdAtBetween",
|
|
342
344
|
label: import_utils.locales.getText(
|
|
343
345
|
"pisell2.salesManagement.booking.filter.orderDate.label"
|
|
@@ -345,12 +347,13 @@ var getFilterButtonList = () => {
|
|
|
345
347
|
other: {
|
|
346
348
|
placeholder: import_utils.locales.getText(
|
|
347
349
|
"pisell2.salesManagement.booking.filter.orderDate.placeholder"
|
|
348
|
-
)
|
|
350
|
+
),
|
|
351
|
+
showTime: true
|
|
349
352
|
}
|
|
350
353
|
},
|
|
351
354
|
{
|
|
352
355
|
name: "updated_at_between",
|
|
353
|
-
type: "
|
|
356
|
+
type: "rangePicker",
|
|
354
357
|
key: "updatedAtBetween",
|
|
355
358
|
label: import_utils.locales.getText(
|
|
356
359
|
"pisell2.salesManagement.booking.filter.updatedDate.label"
|
|
@@ -358,7 +361,8 @@ var getFilterButtonList = () => {
|
|
|
358
361
|
other: {
|
|
359
362
|
placeholder: import_utils.locales.getText(
|
|
360
363
|
"pisell2.salesManagement.booking.filter.updatedDate.placeholder"
|
|
361
|
-
)
|
|
364
|
+
),
|
|
365
|
+
showTime: true
|
|
362
366
|
}
|
|
363
367
|
}
|
|
364
368
|
];
|