修复订单货柜预约与排车维护界面

This commit is contained in:
2026-10-21 23:20:10 +08:00
parent 93a31b3872
commit 2e26477db5
68 changed files with 602 additions and 239 deletions
@@ -1,10 +1,13 @@
import { expect, it } from 'vitest'
import { appointmentFormError, appointmentPayload, createAppointmentForm } from './appointmentForm'
it('allows an undated arrangement without inventing confirmation or loading facts', () => {
it('requires an existing external confirmation for a new platform registration', () => {
const form = createAppointmentForm()
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({ plannedDate: null, plannedAt: null, appointmentAt: null, confirmationNo: null, appointmentStatus: 'PENDING' })
expect(appointmentPayload(form)).not.toHaveProperty('expectedLoadingAt')
})
it('retains an already confirmed repeated local time using its stored UTC instant', () => {