This commit is contained in:
2026-11-03 11:43:56 +08:00
parent 5a1cde6c0f
commit 95fb17c5aa
11 changed files with 102 additions and 16 deletions
@@ -42,6 +42,7 @@ export function createTransportDemandForm(): TransportDemandForm {
}
const requiredText = (kind: TransportDemandKind, form: TransportDemandForm) => ({
...(kind === 'truck' ? { originAddress: '取货地址', destinationAddress: '送达地址' } : {}),
...(kind === 'truck' || form.deliveryMode === 'WAREHOUSE_PICKUP' ? { origin: kind === 'truck' ? '取货地' : '起运地', originContactName: kind === 'truck' ? '取货联系人' : '起运地联系人', originContactPhone: kind === 'truck' ? '取货联系电话' : '起运地联系电话' } : {}),
destination: kind === 'truck' ? '送达地' : '目的地',
destinationContactName: kind === 'truck' ? '送达联系人' : '目的地联系人',