李红攀:小程序新增农事记录
This commit is contained in:
24
src/api/agri/batch.ts
Normal file
24
src/api/agri/batch.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { http } from '@/http/http'
|
||||
|
||||
export interface AgriBatchVO {
|
||||
id: number
|
||||
batchNo: string
|
||||
plotId: number
|
||||
plotName: string
|
||||
cropId: number
|
||||
cropName: string
|
||||
farmerId: number
|
||||
farmerName: string
|
||||
varietyName: string
|
||||
sowingDate?: string
|
||||
transplantDate?: string
|
||||
expectedHarvestDate?: string
|
||||
actualHarvestDate?: string
|
||||
status?: number
|
||||
totalHarvestWeight?: number
|
||||
}
|
||||
|
||||
/** 获取批次简单列表(用于下拉选择) */
|
||||
export function getBatchSimpleList() {
|
||||
return http.get<AgriBatchVO[]>('/agri/batch/simple-list')
|
||||
}
|
||||
Reference in New Issue
Block a user