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) {
|
|
|
|
|
return request('/inputGoods/pesticide/page', {
|
2025-03-19 14:46:58 +08:00
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-03-26 13:37:24 +08:00
|
|
|
/* 新增农药 */
|
|
|
|
|
export function addPesticide(data) {
|
|
|
|
|
return request('/inputGoods/pesticide/save', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-03-27 15:56:05 +08:00
|
|
|
/* 农药检测报告 */
|
|
|
|
|
export function pesticideReportSave(data) {
|
|
|
|
|
return request('/inputGoods/pesticide/uploadReport', {
|
|
|
|
|
data,
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// #endregion
|
|
|
|
|
|
|
|
|
|
/* ------ 肥料 ------ */
|
|
|
|
|
// #region
|
|
|
|
|
export function getFertilizreList(params) {
|
|
|
|
|
return request('/inputGoods/fertilize/page', {
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function addFertilizer(data) {
|
|
|
|
|
return request('/inputGoods/fertilize/save', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// #endregion
|
|
|
|
|
//
|