diff --git a/api/dict.js b/api/dict.js index aca8587..5d74a78 100644 --- a/api/dict.js +++ b/api/dict.js @@ -18,3 +18,6 @@ export const animalTypeLists = () => syhttp.get('/common/dict_data_lists_by_type //饲料类型 export const feedingTypeLists = () => syhttp.get('/common/dict_data_lists_by_type_value', {type_value: 'feeding_type'}); +//离栏类型 +export const leaveFenceHouseTypeLists = () => syhttp.get('/common/dict_data_lists_by_type_value', {type_value: 'leave_fence_house_type'}); + diff --git a/api/manage.js b/api/manage.js index 6bee9d2..b13d6d2 100644 --- a/api/manage.js +++ b/api/manage.js @@ -14,6 +14,9 @@ export const fenceHouseDetail = (data) => syhttp.get('/fence_house/detail', data //新增养殖 export const animalInfoAdd = (data) => syhttp.post('/animal_info/add', data); +//养殖详情 +export const animalInfoDetail = (data) => syhttp.get('/animal_info/detail', data); + //新增驱虫 export const dewormingLogAdd = (data) => syhttp.post('/suyuan_operation.operation_deworming_log/add', data); @@ -29,8 +32,36 @@ export const waterLogAdd = (data) => syhttp.post('/suyuan_operation.operation_wa //新增打疫苗 export const vaccinumLogAdd = (data) => syhttp.post('/suyuan_operation.operation_vaccinum_log/add', data); +//驱虫列表 +export const dewormingLogLists = (data) => syhttp.get('/suyuan_operation.operation_deworming_log/lists', data); + +//消毒列表 +export const disinfectLogLists = (data) => syhttp.get('/suyuan_operation.operation_disinfect_log/lists', data); + +//喂食列表 +export const feedingLogLists = (data) => syhttp.get('/suyuan_operation.operation_feeding_log/lists', data); + +//喂水列表 +export const waterLogLists = (data) => syhttp.get('/suyuan_operation.operation_water_log/lists', data); + +//打疫苗列表 +export const vaccinumLogLists = (data) => syhttp.get('/suyuan_operation.operation_vaccinum_log/lists', data); + //养殖列表 export const animalInfoList = (data) => syhttp.get('/animal_info/lists', data); //喂养信息列表 export const operationLogIndex = (data) => syhttp.get('/operation_log/index', data); + +//离栏登记 +export const fenceHouseLeave = (data) => syhttp.post('/fence_house/leave', data); + +//离栏信息列表 +export const fenceHouseLeaveList = (data) => syhttp.get('/fence_house/leaveList', data); + +//转栏登记 +export const fenceHouseExchange = (data) => syhttp.post('/fence_house/exchange', data); + +//转栏信息列表 +export const fenceHouseExchangeList = (data) => syhttp.get('/fence_house/exchangeList', data); + diff --git a/components/plant/breedInfo.vue b/components/plant/breedInfo.vue index e4d4cac..59b34a0 100644 --- a/components/plant/breedInfo.vue +++ b/components/plant/breedInfo.vue @@ -1,47 +1,48 @@