package com.ffii.fpsms.modules.deliveryOrder.web.models

import java.time.LocalDateTime
import com.fasterxml.jackson.annotation.JsonFormat
data class DoDetailResponse(
    val id: Long,
    val code: String,
    val supplierCode: String?,
    val shopCode: String?,
    val shopName: String?,
    val currencyCode: String?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val orderDate: LocalDateTime?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val estimatedArrivalDate: LocalDateTime?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val completeDate: LocalDateTime?,
    val status: String?,
    val deliveryOrderLines: List<DoDetailLineResponse>
)

data class DoDetailLineResponse(
    val id: Long,
    val itemNo: String?,
    val qty: java.math.BigDecimal?,
    val price: java.math.BigDecimal?,
    val status: String?,
    val itemName: String?,
    val uom: String?,
    val uomCode: String?,
    val shortUom: String?,
)
data class StoreLaneSummary(
    val storeId: String,
    val rows: List<LaneRow>
)

data class LaneRow(
    val truckDepartureTime: String,
    val lanes: List<LaneBtn>
)

data class LaneBtn(
    val truckLanceCode: String,
    val unassigned: Int,
    val total: Int
)
data class AssignByLaneRequest(
    val userId: Long,
    val storeId: String,
    val truckDepartureTime: String?,  // 可选：限定出车时间
    val truckLanceCode: String        // 必填：车道编号
)