施工产值
This commit is contained in:
63
src/api/out/constructionValue/index.ts
Normal file
63
src/api/out/constructionValue/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ConstructionValueVO, ConstructionValueForm, ConstructionValueQuery } from '@/api/out/constructionValue/types';
|
||||
|
||||
/**
|
||||
* 查询施工产值列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listConstructionValue = (query?: ConstructionValueQuery): AxiosPromise<ConstructionValueVO[]> => {
|
||||
return request({
|
||||
url: '/out/constructionValue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工产值详细
|
||||
* @param id
|
||||
*/
|
||||
export const getConstructionValue = (id: string | number): AxiosPromise<ConstructionValueVO> => {
|
||||
return request({
|
||||
url: '/out/constructionValue/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增施工产值
|
||||
* @param data
|
||||
*/
|
||||
export const addConstructionValue = (data: ConstructionValueForm) => {
|
||||
return request({
|
||||
url: '/out/constructionValue',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改施工产值
|
||||
* @param data
|
||||
*/
|
||||
export const updateConstructionValue = (data: ConstructionValueForm) => {
|
||||
return request({
|
||||
url: '/out/constructionValue',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除施工产值
|
||||
* @param id
|
||||
*/
|
||||
export const delConstructionValue = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/constructionValue/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
156
src/api/out/constructionValue/types.ts
Normal file
156
src/api/out/constructionValue/types.ts
Normal file
@ -0,0 +1,156 @@
|
||||
export interface ConstructionValueVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId: string | number;
|
||||
|
||||
/**
|
||||
* 分项工程id
|
||||
*/
|
||||
progressCategoryId: string | number;
|
||||
|
||||
/**
|
||||
* 人工填报数量
|
||||
*/
|
||||
artificialNum: number;
|
||||
|
||||
/**
|
||||
* 无人机识别数量
|
||||
*/
|
||||
uavNum: number;
|
||||
|
||||
/**
|
||||
* 确认数量
|
||||
*/
|
||||
confirmNum: number;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
outValue: number;
|
||||
|
||||
/**
|
||||
* 上报日期
|
||||
*/
|
||||
reportDate: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus: string;
|
||||
}
|
||||
|
||||
export interface ConstructionValueForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
planDate?: string;
|
||||
planNum?: number;
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
reportDateId?: string | number;
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId?: string | number;
|
||||
|
||||
/**
|
||||
* 分项工程id
|
||||
*/
|
||||
progressCategoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 人工填报数量
|
||||
*/
|
||||
artificialNum?: number;
|
||||
|
||||
/**
|
||||
* 无人机识别数量
|
||||
*/
|
||||
uavNum?: number;
|
||||
|
||||
/**
|
||||
* 确认数量
|
||||
*/
|
||||
confirmNum?: number;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
outValue?: number;
|
||||
|
||||
/**
|
||||
* 上报日期
|
||||
*/
|
||||
reportDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
}
|
||||
|
||||
export interface ConstructionValueQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId?: string | number;
|
||||
|
||||
/**
|
||||
* 分项工程id
|
||||
*/
|
||||
progressCategoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 人工填报数量
|
||||
*/
|
||||
artificialNum?: number;
|
||||
|
||||
/**
|
||||
* 无人机识别数量
|
||||
*/
|
||||
uavNum?: number;
|
||||
|
||||
/**
|
||||
* 确认数量
|
||||
*/
|
||||
confirmNum?: number;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
outValue?: number;
|
||||
|
||||
/**
|
||||
* 上报日期
|
||||
*/
|
||||
reportDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
63
src/api/out/designCompletion/index.ts
Normal file
63
src/api/out/designCompletion/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DesignCompletionVO, DesignCompletionForm, DesignCompletionQuery } from '@/api/out/designCompletion/types';
|
||||
|
||||
/**
|
||||
* 查询设计完工产值列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDesignCompletion = (query?: DesignCompletionQuery): AxiosPromise<DesignCompletionVO[]> => {
|
||||
return request({
|
||||
url: '/out/designCompletion/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计完工产值详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDesignCompletion = (id: string | number): AxiosPromise<DesignCompletionVO> => {
|
||||
return request({
|
||||
url: '/out/designCompletion/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计完工产值
|
||||
* @param data
|
||||
*/
|
||||
export const addDesignCompletion = (data: DesignCompletionForm) => {
|
||||
return request({
|
||||
url: '/out/designCompletion',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计完工产值
|
||||
* @param data
|
||||
*/
|
||||
export const updateDesignCompletion = (data: DesignCompletionForm) => {
|
||||
return request({
|
||||
url: '/out/designCompletion',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计完工产值
|
||||
* @param id
|
||||
*/
|
||||
export const delDesignCompletion = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/designCompletion/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
86
src/api/out/designCompletion/types.ts
Normal file
86
src/api/out/designCompletion/types.ts
Normal file
@ -0,0 +1,86 @@
|
||||
export interface DesignCompletionVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
outValue: number;
|
||||
|
||||
/**
|
||||
* 完工月份(YYYY-MM)
|
||||
*/
|
||||
completeMonth: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DesignCompletionForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
outValue?: number;
|
||||
|
||||
/**
|
||||
* 完工月份(YYYY-MM)
|
||||
*/
|
||||
completeMonth?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DesignCompletionQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 产值
|
||||
*/
|
||||
outValue?: number;
|
||||
|
||||
/**
|
||||
* 完工月份(YYYY-MM)
|
||||
*/
|
||||
completeMonth?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
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