李红攀:V2.0.001小程序的农业溯源
This commit is contained in:
74
src/api/agri/biz/flow.ts
Normal file
74
src/api/agri/biz/flow.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
import { http } from '@/http/http'
|
||||
|
||||
export interface AgriHarvestSubmitReqVO {
|
||||
batchType: string
|
||||
productId?: number
|
||||
productName?: string
|
||||
plotId?: number
|
||||
plotName?: string
|
||||
farmerId?: number
|
||||
quantity?: number
|
||||
unit?: string
|
||||
harvestTime?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface AgriSortingSubmitReqVO {
|
||||
batchId: number
|
||||
weightResult?: number
|
||||
unqualifiedCategory?: string
|
||||
imageUrl?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface AgriPackingSubmitReqVO {
|
||||
batchId: number
|
||||
netWeight?: number
|
||||
labelCode?: string
|
||||
packingTime?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface AgriWarehouseInReqVO {
|
||||
batchId: number
|
||||
inMode?: string
|
||||
warehouseTime?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface AgriShipmentDispatchReqVO {
|
||||
batchId: number
|
||||
vehicleNo: string
|
||||
boxCount?: number
|
||||
shipmentTime?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface AgriShipmentSignReqVO {
|
||||
batchId: number
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export function submitHarvest(data: AgriHarvestSubmitReqVO) {
|
||||
return http.post<number>('/agri/biz/flow/harvest', data)
|
||||
}
|
||||
|
||||
export function submitSorting(data: AgriSortingSubmitReqVO) {
|
||||
return http.post<void>('/agri/biz/flow/sorting', data)
|
||||
}
|
||||
|
||||
export function submitPacking(data: AgriPackingSubmitReqVO) {
|
||||
return http.post<void>('/agri/biz/flow/packing', data)
|
||||
}
|
||||
|
||||
export function submitWarehouseIn(data: AgriWarehouseInReqVO) {
|
||||
return http.post<void>('/agri/biz/flow/warehouse-in', data)
|
||||
}
|
||||
|
||||
export function dispatchShipment(data: AgriShipmentDispatchReqVO) {
|
||||
return http.post<void>('/agri/biz/flow/shipment-dispatch', data)
|
||||
}
|
||||
|
||||
export function signShipment(data: AgriShipmentSignReqVO) {
|
||||
return http.post<void>('/agri/biz/flow/shipment-sign', data)
|
||||
}
|
||||
Reference in New Issue
Block a user