智慧农业大数据平台
xiebin
2022-11-16 3dc278f10a4c3e3db7ce3a445bed710bdc88916e
src/api/farm/farmingrecord.js
@@ -12,7 +12,7 @@
    })
}
// 获取农场
// 获取基地
export const getFarmList = (current, size, params) => {
    return request({
        url: '/farm/getFarmList',
@@ -46,6 +46,17 @@
export const getFarmPlantList = (params) => {
    return request({
        url: '/farmPlant/getFarmPlantList',
        method: 'get',
        params: {
            ...params
        }
    })
}
// 获取种植记录(秧苗)
export const getFarmPlantYMList = (params) => {
    return request({
        url: '/farmPlant/getFarmPlantYMList',
        method: 'get',
        params: {
            ...params
@@ -89,22 +100,22 @@
    })
}
export const getFarmingCount = (deptId) => {
export const getFarmingCount = (farmId) => {
    return request({
        url: '/farmingRecord/getFarmingCount',
        method: 'get',
        params: {
            deptId
            farmId
        }
    })
}
export const getFarmingStatis = (deptId) => {
export const getFarmingStatis = (farmId) => {
    return request({
        url: '/farmingRecord/getFarmingStatis',
        method: 'get',
        params: {
            deptId
            farmId
        }
    })
}
@@ -119,19 +130,22 @@
        }
    })
}
export const SelectCount = () => {
export const SelectCount = (farmId) => {
    return request({
        url: '/farm/SelectCount',
        method: 'get'
        method: 'get',
        params: {
            farmId
        }
    })
}
export const getStockCount = (deptId) => {
export const getStockCount = (farmId) => {
    return request({
        url: '/farmingRecord/getStockCount',
        method: 'get',
        params: {
            deptId
            farmId
        }
    })
}
@@ -168,6 +182,15 @@
export const productsSupervise = (params) => {
    return request({
        url: '/farmProductStock/productsSupervise',
        method: 'get',
        params: {
            ...params
        }
    })
}
export const productsSuperviseList = (params) => {
    return request({
        url: '/recovery/page',
        method: 'get',
        params: {
            ...params
@@ -252,7 +275,7 @@
export const farmingRecords = (params) => {
    return request({
        url: '/farmingRecord/page',
        url: '/farmingRecord/getFarmingRecordList',
        method: 'get',
        params: {
            ...params
@@ -278,3 +301,13 @@
        }
    })
}
export const farmSelectQuery = (params) => {
    return request({
        url: '/farm/page',
        method: 'get',
        params: {
            ...params
        }
    })
}