2025-03-19 14:46:58 +08:00
|
|
|
import request from '@/utils/axios';
|
|
|
|
|
|
|
|
|
|
/* 获取物资类型 */
|
|
|
|
|
export function getMaterailTypes(params) {
|
2025-03-24 17:21:44 +08:00
|
|
|
return request('/inputGoods/common/getList', {
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-03-27 15:56:05 +08:00
|
|
|
/* ------ 农药 ------ */
|
|
|
|
|
// #region
|
|
|
|
|
|
2025-03-24 17:21:44 +08:00
|
|
|
/* 获取农药列表 */
|
|
|
|
|
export function getPesticideList(params) {
|
2025-06-18 17:14:15 +08:00
|
|
|
return request('/inputGoods/supervise/pesticide/page', {
|
2025-03-19 14:46:58 +08:00
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-03-26 13:37:24 +08:00
|
|
|
/* 新增农药 */
|
|
|
|
|
export function addPesticide(data) {
|
2025-06-19 17:22:26 +08:00
|
|
|
return request('/inputGoods/supervise/pesticide/save', {
|
2025-03-26 13:37:24 +08:00
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-06-19 17:22:26 +08:00
|
|
|
/* 编辑农药 */
|
2025-03-27 15:56:05 +08:00
|
|
|
export function pesticideReportSave(data) {
|
2025-06-19 17:22:26 +08:00
|
|
|
return request('/inputGoods/supervise/pesticide/edit', {
|
2025-03-27 15:56:05 +08:00
|
|
|
data,
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-04-01 17:33:12 +08:00
|
|
|
/* 删除农药 */
|
|
|
|
|
export function delPesticide(ids) {
|
2025-06-19 17:22:26 +08:00
|
|
|
return request(`/inputGoods/supervise/pesticide/delete/${ids}`);
|
|
|
|
|
}
|
|
|
|
|
/* 获取用药地块下拉选项 */
|
|
|
|
|
export function getLandList() {
|
|
|
|
|
return request(`/inputGoods/supervise/pesticide/getLandList`);
|
|
|
|
|
}
|
|
|
|
|
/* 获取农药用药下拉选项 */
|
|
|
|
|
export function getPesticideSelectList() {
|
|
|
|
|
return request(`/inputGoods/pesticide/getPesticideList`);
|
2025-04-01 17:33:12 +08:00
|
|
|
}
|
2025-03-27 15:56:05 +08:00
|
|
|
// #endregion
|
|
|
|
|
|
|
|
|
|
/* ------ 肥料 ------ */
|
|
|
|
|
// #region
|
|
|
|
|
export function getFertilizreList(params) {
|
|
|
|
|
return request('/inputGoods/fertilize/page', {
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function addFertilizer(data) {
|
|
|
|
|
return request('/inputGoods/fertilize/save', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-04-01 17:33:12 +08:00
|
|
|
/* 删除肥料 */
|
|
|
|
|
export function delFretilize(ids) {
|
|
|
|
|
return request(`/inputGoods/fertilize/delete/${ids}`);
|
|
|
|
|
}
|
2025-03-27 15:56:05 +08:00
|
|
|
// #endregion
|
2025-03-31 09:03:19 +08:00
|
|
|
/* ------ 兽药 ------ */
|
|
|
|
|
// #region
|
|
|
|
|
|
|
|
|
|
export function getAnimalMedicineList(params) {
|
|
|
|
|
return request('/inputGoods/animalMedicine/page', {
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function addAnimalMedicine(data) {
|
|
|
|
|
return request('/inputGoods/animalMedicine/save', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-04-01 17:33:12 +08:00
|
|
|
/* 删除兽药 */
|
|
|
|
|
export function delAnimalMedicine(ids) {
|
|
|
|
|
return request(`/inputGoods/animalMedicine/delete/${ids}`);
|
|
|
|
|
}
|
|
|
|
|
// #endregion
|
|
|
|
|
/* ------ 种源 ------ */
|
|
|
|
|
// #region
|
|
|
|
|
/* 查询种源 */
|
|
|
|
|
export function getSeedList(params) {
|
|
|
|
|
return request('/inputGoods/provenance/page', {
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/* 新增种源 */
|
|
|
|
|
export function seedSave(data) {
|
|
|
|
|
return request('/inputGoods/provenance/save', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/* 删除种源 */
|
|
|
|
|
export function delSeed(ids) {
|
|
|
|
|
return request(`/inputGoods/provenance/delete/${ids}`);
|
|
|
|
|
}
|
2025-03-31 09:03:19 +08:00
|
|
|
// #endregion
|
2025-04-03 17:23:48 +08:00
|
|
|
|
|
|
|
|
/* ------ 农机 ------ */
|
|
|
|
|
// #region
|
|
|
|
|
|
|
|
|
|
export function getMachineryList(params) {
|
|
|
|
|
return request('/inputGoods/farmMachine/page', {
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function addMachinery(data) {
|
|
|
|
|
return request('/inputGoods/farmMachine/save', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function delMachinery(ids) {
|
|
|
|
|
return request(`/inputGoods/farmMachine/delete/${ids}`);
|
|
|
|
|
}
|
|
|
|
|
export function machineryReport(data) {
|
|
|
|
|
return request(`/inputGoods/farmMachine/uploadReport`, {
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// #endregion
|