This commit is contained in:
zlwu committed 2026-08-21 13:45:35 +08:00
1 parent 88da74d72a
commit 9fcb9270e6
53 files changed
+612846 -3438

No files matched your search

+3
View File
@@ -292,6 +292,7 @@ export const transportAddressApi = {
list: (params?: TransportAddressQuery) =>
request.get<PlListResponse<TransportAddress>>('/transport/address', { params }),
listAll: (params?: { q?: string }) =>
/** 选择器:仅按地址名称、详细地址模糊检索(不含联系人/电话) */
request.get<PlListResponse<TransportAddress>>('/transport/address/all', { params }),
get: (id: string) => request.get<TransportAddress>(`/transport/address/${id}`),
create: (data: TransportAddressPayload) =>
@@ -708,6 +709,8 @@ export const planApi = {
waitNotice: (id: string) => request.post<Plan>(`/transport/plan/${id}/wait-notice`),
cancelWaitNotice: (id: string) =>
request.post<Plan>(`/transport/plan/${id}/cancel-wait-notice`),
forceFollowStatus: (id: string, followStatus: string) =>
request.post<Plan>(`/transport/plan/${id}/force-follow-status`, { followStatus }),
getArrangeInfo: (id: string) => request.get<PlanArrangeInfo>(`/transport/plan/${id}/arrange-info`),
archive: (id: string, data?: PlanArchiveBody) =>
request.post<Plan>(`/transport/plan/${id}/archive`, data),
+44
View File
@@ -55,10 +55,54 @@ export interface PublicIoOrderPage {
items: PublicIoOrderItem[]
}
export interface PublicIoOrderHistoryRecord {
kind: 'inbound' | 'outbound' | string
orderId: string
orderNo: string
planId?: string | null
planNo?: string | null
planDate?: string | null
partnerCompany?: string | null
supplierName?: string | null
customerName?: string | null
vehicleNo?: string | null
siteAccessToken?: string | null
siteUrl?: string | null
status?: string | null
orderVoided?: boolean
planArchived?: boolean
statusLabel?: string
}
export interface PublicIoOrderHistoryPage {
date: string
keyword?: string | null
page: number
pageSize: number
total: number
records: PublicIoOrderHistoryRecord[]
}
export function createPublicIoOrderApi(kind: 'inbound' | 'outbound') {
const base = `/public/pl/${kind}`
return {
getPage: (token: string) => publicPlGet<PublicIoOrderPage>(`${base}/${token}`),
getHistory: (
token: string,
date: string,
q?: string,
page = 1,
pageSize = 20
) => {
const params = new URLSearchParams({
date,
page: String(page),
pageSize: String(pageSize)
})
const keyword = (q || '').trim()
if (keyword) params.set('q', keyword)
return publicPlGet<PublicIoOrderHistoryPage>(`${base}/${token}/history?${params.toString()}`)
},
saveFeedback: (
token: string,
data: {