参与人数

master
lion 17 hours ago
parent ca933ae25f
commit e7f95f303a

@ -53,7 +53,7 @@ const COLS = [
'报名人', '报名人',
'手机号', '手机号',
'预约类型', '预约类型',
'预约票数', '参与人数',
'场次名称', '场次名称',
'活动时间', '活动时间',
'状态', '状态',
@ -70,7 +70,7 @@ export function downloadActivityRegistrationsListXlsx(rows: ActivityRegistration
: r.visitor_name, : r.visitor_name,
: r.visitor_phone ?? '', : r.visitor_phone ?? '',
: bookingTypeLabel(r.booking_type, r.ticket_count), : bookingTypeLabel(r.booking_type, r.ticket_count),
: r.ticket_count ?? 1, : r.ticket_count ?? 1,
: (r.activity_day?.session_name || '').trim() || '-', : (r.activity_day?.session_name || '').trim() || '-',
: formatActivitySessionTime(r.activity_day), : formatActivitySessionTime(r.activity_day),
: reservationStatusLabel(r.status), : reservationStatusLabel(r.status),

@ -54,6 +54,7 @@ const COLS = [
'报名人', '报名人',
'手机号', '手机号',
'预约类型', '预约类型',
'参与人数',
'预约场次', '预约场次',
'场次时间', '场次时间',
'状态', '状态',
@ -69,6 +70,7 @@ export function downloadActivityVerifyListXlsx(rows: ActivityVerifyExportRow[])
: r.visitor_name ?? '', : r.visitor_name ?? '',
: r.visitor_phone ?? '', : r.visitor_phone ?? '',
: bookingTypeLabel(r.booking_type, r.ticket_count), : bookingTypeLabel(r.booking_type, r.ticket_count),
: r.ticket_count ?? 1,
: (((r.activity_day?.session_name ?? '') as string).trim() || '-') as string, : (((r.activity_day?.session_name ?? '') as string).trim() || '-') as string,
: formatActivitySessionTime(r.activity_day ?? null), : formatActivitySessionTime(r.activity_day ?? null),
: reservationStatusLabel(r.status ?? ''), : reservationStatusLabel(r.status ?? ''),

@ -322,7 +322,7 @@ function onPageChange(p: number) {
:body-cell-style="registrationInactiveBodyCellStyle"> :body-cell-style="registrationInactiveBodyCellStyle">
<template #cell="{ record }">{{ bookingTypeLabel(record.booking_type, record.ticket_count) }}</template> <template #cell="{ record }">{{ bookingTypeLabel(record.booking_type, record.ticket_count) }}</template>
</a-table-column> </a-table-column>
<a-table-column title="预约票数" :width="110" :body-cell-class="registrationInactiveBodyCellClass" <a-table-column title="参与人数" :width="110" :body-cell-class="registrationInactiveBodyCellClass"
:body-cell-style="registrationInactiveBodyCellStyle"> :body-cell-style="registrationInactiveBodyCellStyle">
<template #cell="{ record }">{{ record.ticket_count ?? 1 }}</template> <template #cell="{ record }">{{ record.ticket_count ?? 1 }}</template>
</a-table-column> </a-table-column>

@ -8,7 +8,7 @@ import { listTableRowIndex } from '../../utils/listTableRowIndex'
import { reservationStatusLabel } from '../../utils/reservationStatus' import { reservationStatusLabel } from '../../utils/reservationStatus'
import { downloadActivityVerifyListXlsx } from '../../utils/exportActivityVerifyListXlsx' import { downloadActivityVerifyListXlsx } from '../../utils/exportActivityVerifyListXlsx'
const ACTIVITY_VERIFY_LIST_SCROLL_X = 2140 const ACTIVITY_VERIFY_LIST_SCROLL_X = 2240
type ActivityDayRef = { type ActivityDayRef = {
id: number id: number
@ -312,6 +312,9 @@ onMounted(async () => {
<a-table-column title="预约类型" :width="100"> <a-table-column title="预约类型" :width="100">
<template #cell="{ record }">{{ bookingTypeLabel(record.booking_type, record.ticket_count) }}</template> <template #cell="{ record }">{{ bookingTypeLabel(record.booking_type, record.ticket_count) }}</template>
</a-table-column> </a-table-column>
<a-table-column title="参与人数" :width="100">
<template #cell="{ record }">{{ record.ticket_count ?? 1 }}</template>
</a-table-column>
<a-table-column title="预约场次" :width="160" :ellipsis="true" :tooltip="true"> <a-table-column title="预约场次" :width="160" :ellipsis="true" :tooltip="true">
<template #cell="{ record }">{{ (record.activity_day?.session_name || '').trim() || '-' }}</template> <template #cell="{ record }">{{ (record.activity_day?.session_name || '').trim() || '-' }}</template>
</a-table-column> </a-table-column>

Loading…
Cancel
Save