施工产值
This commit is contained in:
63
src/api/out/monthPlan/index.ts
Normal file
63
src/api/out/monthPlan/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MonthPlanVO, MonthPlanForm, MonthPlanQuery } from '@/api/out/monthPlan/types';
|
||||
|
||||
/**
|
||||
* 查询月度产值计划列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMonthPlan = (query?: MonthPlanQuery): AxiosPromise<MonthPlanVO[]> => {
|
||||
return request({
|
||||
url: '/out/monthPlan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询月度产值计划详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMonthPlan = (id: string | number): AxiosPromise<MonthPlanVO> => {
|
||||
return request({
|
||||
url: '/out/monthPlan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增月度产值计划
|
||||
* @param data
|
||||
*/
|
||||
export const addMonthPlan = (data: MonthPlanForm) => {
|
||||
return request({
|
||||
url: '/out/monthPlan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改月度产值计划
|
||||
* @param data
|
||||
*/
|
||||
export const updateMonthPlan = (data: MonthPlanForm) => {
|
||||
return request({
|
||||
url: '/out/monthPlan',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除月度产值计划
|
||||
* @param id
|
||||
*/
|
||||
export const delMonthPlan = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/monthPlan/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user