|
@@ -680,11 +680,21 @@ export interface TransportSiteLink {
|
|
|
siteFeedbackTime?: string
|
|
siteFeedbackTime?: string
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface TransportIoOrderBrief {
|
|
|
|
|
+ kind: string
|
|
|
|
|
+ orderId: string
|
|
|
|
|
+ orderNo: string
|
|
|
|
|
+ siteAccessToken?: string
|
|
|
|
|
+ siteUrl?: string
|
|
|
|
|
+ status?: string
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface PlanArrangeInfo {
|
|
export interface PlanArrangeInfo {
|
|
|
driverUrl?: string
|
|
driverUrl?: string
|
|
|
licensePlate?: string
|
|
licensePlate?: string
|
|
|
siteRecords?: TransportSiteLink[]
|
|
siteRecords?: TransportSiteLink[]
|
|
|
inventoryRecords?: TransportInventoryLink[]
|
|
inventoryRecords?: TransportInventoryLink[]
|
|
|
|
|
+ ioOrder?: TransportIoOrderBrief
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface TransportArrangeResult extends Transport {
|
|
export interface TransportArrangeResult extends Transport {
|
|
@@ -692,6 +702,104 @@ export interface TransportArrangeResult extends Transport {
|
|
|
driverUrl?: string
|
|
driverUrl?: string
|
|
|
siteRecords?: TransportSiteLink[]
|
|
siteRecords?: TransportSiteLink[]
|
|
|
inventoryRecords?: TransportInventoryLink[]
|
|
inventoryRecords?: TransportInventoryLink[]
|
|
|
|
|
+ ioOrder?: TransportIoOrderBrief
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface PlIoOrderItem {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ orderId: string
|
|
|
|
|
+ planProductId: string
|
|
|
|
|
+ productId?: string
|
|
|
|
|
+ productNo?: string
|
|
|
|
|
+ productName?: string
|
|
|
|
|
+ specification?: string
|
|
|
|
|
+ unit?: string
|
|
|
|
|
+ unitLabel?: string
|
|
|
|
|
+ planQty?: number
|
|
|
|
|
+ actualQty?: number
|
|
|
|
|
+ qtySource?: string
|
|
|
|
|
+ packageSpec?: string
|
|
|
|
|
+ remark?: string
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface PlIoOrder {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ orderNo: string
|
|
|
|
|
+ planId: string
|
|
|
|
|
+ transportId: string
|
|
|
|
|
+ status: string
|
|
|
|
|
+ partnerCompany?: string
|
|
|
|
|
+ vehicleNo?: string
|
|
|
|
|
+ planNo?: string
|
|
|
|
|
+ planDate?: string
|
|
|
|
|
+ businessType?: string
|
|
|
|
|
+ planRemark?: string
|
|
|
|
|
+ pickupAddress?: string
|
|
|
|
|
+ pickupLng?: number | null
|
|
|
|
|
+ pickupLat?: number | null
|
|
|
|
|
+ pickupTime?: string
|
|
|
|
|
+ pickupNotes?: string
|
|
|
|
|
+ destinationName?: string
|
|
|
|
|
+ destinationAddress?: string
|
|
|
|
|
+ destinationLng?: number | null
|
|
|
|
|
+ destinationLat?: number | null
|
|
|
|
|
+ deliveryTime?: string
|
|
|
|
|
+ destinationNotes?: string
|
|
|
|
|
+ siteAccessToken?: string
|
|
|
|
|
+ siteUrl?: string
|
|
|
|
|
+ siteFeedbackRemark?: string
|
|
|
|
|
+ siteFeedbackImages?: string[]
|
|
|
|
|
+ siteFeedbackTime?: string
|
|
|
|
|
+ siteFirstSubmittedAt?: string
|
|
|
|
|
+ remark?: string
|
|
|
|
|
+ productSummary?: string
|
|
|
|
|
+ actualQtyTotal?: number
|
|
|
|
|
+ kind: string
|
|
|
|
|
+ items?: PlIoOrderItem[]
|
|
|
|
|
+ createTime?: string
|
|
|
|
|
+ updateTime?: string
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface PlIoOrderQuery {
|
|
|
|
|
+ orderNo?: string
|
|
|
|
|
+ planNo?: string
|
|
|
|
|
+ status?: string
|
|
|
|
|
+ partnerCompany?: string
|
|
|
|
|
+ vehicleNo?: string
|
|
|
|
|
+ q?: string
|
|
|
|
|
+ page?: number
|
|
|
|
|
+ pageSize?: number
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface PlIoOrderListResponse {
|
|
|
|
|
+ total: number
|
|
|
|
|
+ list: PlIoOrder[]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export const inboundOrderApi = {
|
|
|
|
|
+ list: (params?: PlIoOrderQuery) =>
|
|
|
|
|
+ request.get<PlIoOrderListResponse>('/transport/inbound/', { params }),
|
|
|
|
|
+ get: (id: string) => request.get<PlIoOrder>(`/transport/inbound/${id}`),
|
|
|
|
|
+ getByPlan: (planId: string) =>
|
|
|
|
|
+ request.get<PlIoOrder | null>(`/transport/inbound/by-plan/${planId}`),
|
|
|
|
|
+ patch: (id: string, data: Record<string, unknown>) =>
|
|
|
|
|
+ request.patch<PlIoOrder>(`/transport/inbound/${id}`, data),
|
|
|
|
|
+ siteUrl: (id: string) =>
|
|
|
|
|
+ request.get<{ siteUrl?: string; siteAccessToken?: string }>(`/transport/inbound/${id}/site-url`)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export const outboundOrderApi = {
|
|
|
|
|
+ list: (params?: PlIoOrderQuery) =>
|
|
|
|
|
+ request.get<PlIoOrderListResponse>('/transport/outbound/', { params }),
|
|
|
|
|
+ get: (id: string) => request.get<PlIoOrder>(`/transport/outbound/${id}`),
|
|
|
|
|
+ getByPlan: (planId: string) =>
|
|
|
|
|
+ request.get<PlIoOrder | null>(`/transport/outbound/by-plan/${planId}`),
|
|
|
|
|
+ patch: (id: string, data: Record<string, unknown>) =>
|
|
|
|
|
+ request.patch<PlIoOrder>(`/transport/outbound/${id}`, data),
|
|
|
|
|
+ siteUrl: (id: string) =>
|
|
|
|
|
+ request.get<{ siteUrl?: string; siteAccessToken?: string }>(
|
|
|
|
|
+ `/transport/outbound/${id}/site-url`
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface TransportQuery {
|
|
export interface TransportQuery {
|