完善预约确认与排车表单并统一计费和筛选展示

This commit is contained in:
2026-10-28 12:01:43 +08:00
parent 0c3f4ece2a
commit 39b9a6a1a0
27 changed files with 277 additions and 77 deletions
@@ -3,11 +3,11 @@ import { appointmentFormError, appointmentPayload, createAppointmentForm } from
it('requires an existing external confirmation for a new platform registration', () => {
const form = createAppointmentForm()
expect(appointmentFormError(form)).toContain('外部约号与确认时间')
expect(appointmentFormError(form)).toContain('外部约号')
expect(appointmentPayload(form)).toMatchObject({ plannedDate: null, plannedAt: null, appointmentAt: null, confirmationNo: null, appointmentStatus: 'SUCCESS' })
form.confirmationNo = 'EXT-CONFIRMED'
form.appointmentAt = '2026-10-25T09:30:00'
expect(appointmentFormError(form)).toBeNull()
expect(appointmentPayload(form)).toMatchObject({ appointmentAt: null, appointmentEndAt: null, startOffset: null, endOffset: null })
expect(appointmentPayload(form)).not.toHaveProperty('expectedLoadingAt')
})
it('retains an already confirmed repeated local time using its stored UTC instant', () => {