进度管理产值管理
This commit is contained in:
@ -61,3 +61,16 @@ export const delMonthPlan = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取月度产值计划
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getMonth = (query: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/out/monthPlan/info',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
@ -10,24 +10,19 @@ export interface MonthPlanVO {
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
* 计划产值
|
||||
*/
|
||||
designValue: number;
|
||||
planValue: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
* 完成产值
|
||||
*/
|
||||
procurementValue: number;
|
||||
completeValue: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
* 差额
|
||||
*/
|
||||
constructionValue: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue: number;
|
||||
differenceValue: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
@ -35,9 +30,19 @@ export interface MonthPlanVO {
|
||||
planMonth: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
auditStatus: string;
|
||||
valueType: string;
|
||||
|
||||
/**
|
||||
* 计划审核状态
|
||||
*/
|
||||
planAuditStatus: string;
|
||||
|
||||
/**
|
||||
* 完成审核状态
|
||||
*/
|
||||
completeAuditStatus: string;
|
||||
|
||||
}
|
||||
|
||||
@ -53,24 +58,19 @@ export interface MonthPlanForm extends BaseEntity {
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
* 计划产值
|
||||
*/
|
||||
designValue?: number;
|
||||
planValue?: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
* 完成产值
|
||||
*/
|
||||
procurementValue?: number;
|
||||
completeValue?: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
* 差额
|
||||
*/
|
||||
constructionValue?: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue?: number;
|
||||
differenceValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
@ -78,9 +78,19 @@ export interface MonthPlanForm extends BaseEntity {
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
auditStatus?: string;
|
||||
valueType?: string;
|
||||
|
||||
/**
|
||||
* 计划审核状态
|
||||
*/
|
||||
planAuditStatus?: string;
|
||||
|
||||
/**
|
||||
* 完成审核状态
|
||||
*/
|
||||
completeAuditStatus?: string;
|
||||
|
||||
}
|
||||
|
||||
@ -92,24 +102,19 @@ export interface MonthPlanQuery extends PageQuery {
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
* 计划产值
|
||||
*/
|
||||
designValue?: number;
|
||||
planValue?: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
* 完成产值
|
||||
*/
|
||||
procurementValue?: number;
|
||||
completeValue?: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
* 差额
|
||||
*/
|
||||
constructionValue?: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue?: number;
|
||||
differenceValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
@ -117,9 +122,19 @@ export interface MonthPlanQuery extends PageQuery {
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
auditStatus?: string;
|
||||
valueType?: string;
|
||||
|
||||
/**
|
||||
* 计划审核状态
|
||||
*/
|
||||
planAuditStatus?: string;
|
||||
|
||||
/**
|
||||
* 完成审核状态
|
||||
*/
|
||||
completeAuditStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
|
63
src/api/out/monthPlanAudit/index.ts
Normal file
63
src/api/out/monthPlanAudit/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MonthPlanAuditVO, MonthPlanAuditForm, MonthPlanAuditQuery } from '@/api/out/monthPlanAudit/types';
|
||||
|
||||
/**
|
||||
* 查询审核通过月度产值计划列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMonthPlanAudit = (query?: MonthPlanAuditQuery): AxiosPromise<MonthPlanAuditVO[]> => {
|
||||
return request({
|
||||
url: '/out/monthPlanAudit/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询审核通过月度产值计划详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMonthPlanAudit = (id: string | number): AxiosPromise<MonthPlanAuditVO> => {
|
||||
return request({
|
||||
url: '/out/monthPlanAudit/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增审核通过月度产值计划
|
||||
* @param data
|
||||
*/
|
||||
export const addMonthPlanAudit = (data: MonthPlanAuditForm) => {
|
||||
return request({
|
||||
url: '/out/monthPlanAudit',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改审核通过月度产值计划
|
||||
* @param data
|
||||
*/
|
||||
export const updateMonthPlanAudit = (data: MonthPlanAuditForm) => {
|
||||
return request({
|
||||
url: '/out/monthPlanAudit',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除审核通过月度产值计划
|
||||
* @param id
|
||||
*/
|
||||
export const delMonthPlanAudit = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/monthPlanAudit/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
116
src/api/out/monthPlanAudit/types.ts
Normal file
116
src/api/out/monthPlanAudit/types.ts
Normal file
@ -0,0 +1,116 @@
|
||||
export interface MonthPlanAuditVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
*/
|
||||
designValue: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
*/
|
||||
purchaseValue: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
*/
|
||||
constructionValue: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MonthPlanAuditForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
*/
|
||||
designValue?: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
*/
|
||||
purchaseValue?: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
*/
|
||||
constructionValue?: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MonthPlanAuditQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计产值
|
||||
*/
|
||||
designValue?: number;
|
||||
|
||||
/**
|
||||
* 采购产值
|
||||
*/
|
||||
purchaseValue?: number;
|
||||
|
||||
/**
|
||||
* 施工产值
|
||||
*/
|
||||
constructionValue?: number;
|
||||
|
||||
/**
|
||||
* 总产值
|
||||
*/
|
||||
totalValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user