|
|
|
|
@ -351,7 +351,7 @@ function formatBookingAudienceBadge(audRaw: string, minP: number, maxP: number):
|
|
|
|
|
|
|
|
|
|
const form = reactive({
|
|
|
|
|
venue_id: undefined as number | undefined,
|
|
|
|
|
/** 活动性质 online=公益性需预约 / none=公益性无需预约 / paid_study=收费科普研学 */
|
|
|
|
|
/** 活动性质 online=公益性需预约 / none=无需平台预约公益性科普 / paid_study=收费科普研学 */
|
|
|
|
|
reservation_type: 'online',
|
|
|
|
|
is_hot: false,
|
|
|
|
|
booking_method_note: '',
|
|
|
|
|
@ -609,7 +609,7 @@ function validateBookingFormInternal(): boolean {
|
|
|
|
|
const rt = normalizeReservationKind(form.reservation_type)
|
|
|
|
|
const aud =
|
|
|
|
|
rt === 'none' || rt === 'paid_study' ? 'individual' : bookingForm.booking_audience
|
|
|
|
|
if (bookingForm.days.length === 0) {
|
|
|
|
|
if (bookingForm.days.length === 0 && rt === 'online') {
|
|
|
|
|
Message.warning('请至少添加一个场次')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
@ -1546,7 +1546,7 @@ function confirmMapPick() {
|
|
|
|
|
function reservationTypeLabel(t?: string | null) {
|
|
|
|
|
const s = String(t || '').trim()
|
|
|
|
|
if (s === 'online') return '公益性需预约活动'
|
|
|
|
|
if (s === 'none') return '公益性无需预约活动'
|
|
|
|
|
if (s === 'none') return '无需平台预约公益性科普活动'
|
|
|
|
|
if (s === 'paid_study') return '收费科普研学活动'
|
|
|
|
|
if (s === 'phone') return '电话预约'
|
|
|
|
|
if (s === 'wechat_mp') return '公众号预约'
|
|
|
|
|
@ -2015,7 +2015,7 @@ async function removeActivity(row: Activity) {
|
|
|
|
|
style="width: 210px"
|
|
|
|
|
>
|
|
|
|
|
<a-option value="online">公益性需预约活动</a-option>
|
|
|
|
|
<a-option value="none">公益性无需预约活动</a-option>
|
|
|
|
|
<a-option value="none">无需平台预约公益性科普活动</a-option>
|
|
|
|
|
<a-option value="paid_study">收费科普研学活动</a-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
<a-select v-model="filters.is_active" allow-clear placeholder="上架状态" style="width: 130px">
|
|
|
|
|
@ -2475,7 +2475,7 @@ async function removeActivity(row: Activity) {
|
|
|
|
|
<a-form-item label="活动性质" required :help="formErrors.reservation_type">
|
|
|
|
|
<a-select v-model="form.reservation_type" placeholder="请选择活动性质">
|
|
|
|
|
<a-option value="online">公益性需预约活动</a-option>
|
|
|
|
|
<a-option value="none">公益性无需预约活动</a-option>
|
|
|
|
|
<a-option value="none">无需平台预约公益性科普活动</a-option>
|
|
|
|
|
<a-option value="paid_study">收费科普研学活动</a-option>
|
|
|
|
|
<a-option
|
|
|
|
|
v-if="
|
|
|
|
|
|