修改进度管理bug
This commit is contained in:
@ -8,11 +8,10 @@ import { ProgressCategoryVO, ProgressCategoryForm, ProgressCategoryQuery } from
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listProgressCategory = (query?: ProgressCategoryQuery): AxiosPromise<ProgressCategoryVO[]> => {
|
||||
export const listProgressCategory = (id?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
url: '/progress/progressCategory/listByParent/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
@ -70,3 +69,30 @@ export const downloadProgressCategory = (data) => {
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询分项工程单价下拉树结构
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getCategoryTabList = (id?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/listTopBySubProjectId/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询分项工程单价外层结构
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getCategoryList = (id?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
parentId: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -97,6 +97,8 @@ export interface ProgressCategoryForm extends BaseEntity {
|
||||
id?: string | number;
|
||||
constructionPrice?: string | number;
|
||||
ownerPrice?: string | number;
|
||||
relevancyStructure?: string;
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
|
@ -66,9 +66,21 @@ export const delProgressCategoryTemplate = (id: string | number | Array<string |
|
||||
});
|
||||
};
|
||||
|
||||
export const getTabList = () => {
|
||||
export const getTabList = (id: string) => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate/listSystemTop',
|
||||
url: '/progress/progressCategoryTemplate/listSystemTop/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 筛选查询进度类别模版列表
|
||||
* @param parentId
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listProgressCategoryTemplateByParent = (parentId: string | number): AxiosPromise<ProgressCategoryTemplateVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate/listByParent/' + parentId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -12,7 +12,7 @@ export interface ProgressCategoryTemplateVO {
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType: string;
|
||||
|
||||
parentId?: string | number;
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
@ -39,7 +39,9 @@ export interface ProgressCategoryTemplateForm extends BaseEntity {
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
parentId?: string | number;
|
||||
constructionType?: string;
|
||||
relevancyStructure?: string;
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
@ -76,7 +78,8 @@ export interface ProgressCategoryTemplateQuery {
|
||||
* 父类别id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
parentId?: string | number;
|
||||
constructionType?: string;
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
|
Reference in New Issue
Block a user