施工产值
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'
|
||||
});
|
||||
};
|
131
src/api/out/monthPlan/types.ts
Normal file
131
src/api/out/monthPlan/types.ts
Normal file
@ -0,0 +1,131 @@
|
||||
export interface MonthPlanVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
*/
|
||||
designValue: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
*/
|
||||
procurementValue: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
*/
|
||||
constructionValue: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MonthPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
*/
|
||||
designValue?: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
*/
|
||||
procurementValue?: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
*/
|
||||
constructionValue?: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MonthPlanQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
*/
|
||||
designValue?: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
*/
|
||||
procurementValue?: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
*/
|
||||
constructionValue?: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user