李红攀:V2.0.001小程序的农业溯源
This commit is contained in:
45
src/api/agri/trace/snapshot.ts
Normal file
45
src/api/agri/trace/snapshot.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import type { PageParam, PageResult } from '@/http/types'
|
||||
import { http } from '@/http/http'
|
||||
|
||||
export interface AgriTraceSnapshotVO {
|
||||
id: number
|
||||
traceCode: string
|
||||
batchId: number
|
||||
batchNo: string
|
||||
productName?: string
|
||||
plotName?: string
|
||||
harvestTime?: string
|
||||
harvestOperatorId?: number
|
||||
harvestOperatorName?: string
|
||||
packingTime?: string
|
||||
packingOperatorId?: number
|
||||
packingOperatorName?: string
|
||||
warehouseTime?: string
|
||||
warehouseOperatorId?: number
|
||||
warehouseOperatorName?: string
|
||||
shipmentTime?: string
|
||||
shipmentOperatorId?: number
|
||||
shipmentOperatorName?: string
|
||||
vehicleNo?: string
|
||||
invoiceStatus?: string
|
||||
snapshotJson?: string
|
||||
}
|
||||
|
||||
export interface AgriTraceSnapshotPageReqVO extends PageParam {
|
||||
batchId?: number
|
||||
batchNo?: string
|
||||
traceCode?: string
|
||||
productName?: string
|
||||
}
|
||||
|
||||
export function getAgriTraceSnapshotPage(params: AgriTraceSnapshotPageReqVO) {
|
||||
return http.get<PageResult<AgriTraceSnapshotVO>>('/agri/trace/snapshot/page', params)
|
||||
}
|
||||
|
||||
export function getAgriTraceSnapshot(id: number) {
|
||||
return http.get<AgriTraceSnapshotVO>(`/agri/trace/snapshot/get?id=${id}`)
|
||||
}
|
||||
|
||||
export function getAgriTraceSnapshotByTraceCode(traceCode: string) {
|
||||
return http.get<AgriTraceSnapshotVO>('/agri/trace/snapshot/get-by-trace-code', { traceCode })
|
||||
}
|
||||
Reference in New Issue
Block a user