Merge projectA into B with conflict resolution
This commit is contained in:
31
src/api/bidding/appointment/index.ts
Normal file
31
src/api/bidding/appointment/index.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 查询招标人员列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const biddingGetUser = (query) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/getUser',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 新增招投标人员
|
||||
export const AddbiddingUser = (data) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 查询招投标人员
|
||||
export const biddingUserList = (projectId) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/list',
|
||||
method: 'get',
|
||||
params: { projectId }
|
||||
});
|
||||
};
|
70
src/api/bidding/biddingLimit/index.ts
Normal file
70
src/api/bidding/biddingLimit/index.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 导入成本-投标excel
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const BiddingImportExcelFile = (params?, data?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/importExcelFile',
|
||||
method: 'post',
|
||||
params,
|
||||
data
|
||||
});
|
||||
};
|
||||
// 导出成本-投标excel
|
||||
export const biddingLimitListExport = (data?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/export',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 获取成本-投标详细信息
|
||||
export const biddingLimitList = (id?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 查询成本-投标列表
|
||||
export const getTreeLimit = (params?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/getTree',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 修改成本-投标
|
||||
export const biddingLimitListUpdate = (data?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const sheetList = (query) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/sheetList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const obtainAllVersionNumbers = (query) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/obtainAllVersionNumbers',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const getVersionDetail = (id) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/getVersionDetail/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
63
src/api/bidding/biddingLimitList/index.ts
Normal file
63
src/api/bidding/biddingLimitList/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { BiddingLimitListVO, BiddingLimitListForm, BiddingLimitListQuery } from '@/api/bidding/biddingLimitList/types';
|
||||
|
||||
/**
|
||||
* 查询成本-投标列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listBiddingLimitList = (query?: BiddingLimitListQuery): AxiosPromise<BiddingLimitListVO[]> => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询成本-投标详细
|
||||
* @param id
|
||||
*/
|
||||
export const getBiddingLimitList = (id: string | number): AxiosPromise<BiddingLimitListVO> => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增成本-投标
|
||||
* @param data
|
||||
*/
|
||||
export const addBiddingLimitList = (data: BiddingLimitListForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改成本-投标
|
||||
* @param data
|
||||
*/
|
||||
export const updateBiddingLimitList = (data: BiddingLimitListForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除成本-投标
|
||||
* @param id
|
||||
*/
|
||||
export const delBiddingLimitList = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
201
src/api/bidding/biddingLimitList/types.ts
Normal file
201
src/api/bidding/biddingLimitList/types.ts
Normal file
@ -0,0 +1,201 @@
|
||||
export interface BiddingLimitListVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目Id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
versions: string;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
sheet: string;
|
||||
|
||||
/**
|
||||
* 子ID
|
||||
*/
|
||||
sid: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pid: string | number;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
num: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
quantity: number;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
unitPrice: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingLimitListForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目Id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
versions?: string;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
sheet?: string;
|
||||
|
||||
/**
|
||||
* 子ID
|
||||
*/
|
||||
sid?: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
num?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
quantity?: number;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingLimitListQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目Id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
versions?: string;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
sheet?: string;
|
||||
|
||||
/**
|
||||
* 子ID
|
||||
*/
|
||||
sid?: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
num?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
quantity?: number;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/bidding/biddingUser/index.ts
Normal file
63
src/api/bidding/biddingUser/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { BiddingUserVO, BiddingUserForm, BiddingUserQuery } from '@/api/bidding/biddingUser/types';
|
||||
|
||||
/**
|
||||
* 查询招投标人员列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listBiddingUser = (query?: BiddingUserQuery): AxiosPromise<BiddingUserVO[]> => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询招投标人员详细
|
||||
* @param id
|
||||
*/
|
||||
export const getBiddingUser = (id: string | number): AxiosPromise<BiddingUserVO> => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增招投标人员
|
||||
* @param data
|
||||
*/
|
||||
export const addBiddingUser = (data: BiddingUserForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改招投标人员
|
||||
* @param data
|
||||
*/
|
||||
export const updateBiddingUser = (data: BiddingUserForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除招投标人员
|
||||
* @param id
|
||||
*/
|
||||
export const delBiddingUser = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
71
src/api/bidding/biddingUser/types.ts
Normal file
71
src/api/bidding/biddingUser/types.ts
Normal file
@ -0,0 +1,71 @@
|
||||
export interface BiddingUserVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员id
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员姓名
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingUserForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingUserQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/bidding/listOfWinningBids/index.ts
Normal file
63
src/api/bidding/listOfWinningBids/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ListOfWinningBidsVO, ListOfWinningBidsForm, ListOfWinningBidsQuery } from '@/api/bidding/listOfWinningBids/types';
|
||||
|
||||
/**
|
||||
* 查询中标项目一览列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listListOfWinningBids = (query) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询中标项目一览详细
|
||||
* @param id
|
||||
*/
|
||||
export const getListOfWinningBids = (id: string | number): AxiosPromise<ListOfWinningBidsVO> => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增中标项目一览
|
||||
* @param data
|
||||
*/
|
||||
export const addListOfWinningBids = (data: ListOfWinningBidsForm) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改中标项目一览
|
||||
* @param data
|
||||
*/
|
||||
export const updateListOfWinningBids = (data: ListOfWinningBidsForm) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除中标项目一览
|
||||
* @param id
|
||||
*/
|
||||
export const delListOfWinningBids = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
296
src/api/bidding/listOfWinningBids/types.ts
Normal file
296
src/api/bidding/listOfWinningBids/types.ts
Normal file
@ -0,0 +1,296 @@
|
||||
export interface ListOfWinningBidsVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 项目状态
|
||||
*/
|
||||
projectStatus: string;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
projectName: string;
|
||||
|
||||
/**
|
||||
* 中标价(原币)
|
||||
*/
|
||||
winningBidOriginal: string | number;
|
||||
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
exchangeRate: number;
|
||||
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
currency: string;
|
||||
|
||||
/**
|
||||
* 所属主体
|
||||
*/
|
||||
subject: string;
|
||||
|
||||
/**
|
||||
* 中标价
|
||||
*/
|
||||
winningBid: string | number;
|
||||
|
||||
/**
|
||||
* 中标日期
|
||||
*/
|
||||
bidWinningDate: string | number;
|
||||
|
||||
/**
|
||||
* 投标保证金
|
||||
*/
|
||||
bidDeposit: string | number;
|
||||
|
||||
/**
|
||||
* 是否退还
|
||||
*/
|
||||
whetherSendBack: string;
|
||||
|
||||
/**
|
||||
* 建设单位(客户)
|
||||
*/
|
||||
construction: string;
|
||||
|
||||
/**
|
||||
* 总造价
|
||||
*/
|
||||
totalCost: number;
|
||||
|
||||
/**
|
||||
* 立项申请人
|
||||
*/
|
||||
projectApplicant: string;
|
||||
|
||||
/**
|
||||
* 立项部门
|
||||
*/
|
||||
projectApplicantDept: string;
|
||||
|
||||
/**
|
||||
* 立项申请日期
|
||||
*/
|
||||
projectApplicantTime: string;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
processStatus: string;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
projectNumbering: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfWinningBidsForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目状态
|
||||
*/
|
||||
projectStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
projectName?: string;
|
||||
|
||||
/**
|
||||
* 中标价(原币)
|
||||
*/
|
||||
winningBidOriginal?: string | number;
|
||||
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
exchangeRate?: number;
|
||||
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
currency?: string;
|
||||
|
||||
/**
|
||||
* 所属主体
|
||||
*/
|
||||
subject?: string;
|
||||
|
||||
/**
|
||||
* 中标价
|
||||
*/
|
||||
winningBid?: string | number;
|
||||
|
||||
/**
|
||||
* 中标日期
|
||||
*/
|
||||
bidWinningDate?: string | number;
|
||||
|
||||
/**
|
||||
* 投标保证金
|
||||
*/
|
||||
bidDeposit?: string | number;
|
||||
|
||||
/**
|
||||
* 是否退还
|
||||
*/
|
||||
whetherSendBack?: string;
|
||||
|
||||
/**
|
||||
* 建设单位(客户)
|
||||
*/
|
||||
construction?: string;
|
||||
|
||||
/**
|
||||
* 总造价
|
||||
*/
|
||||
totalCost?: number;
|
||||
|
||||
/**
|
||||
* 立项申请人
|
||||
*/
|
||||
projectApplicant?: string;
|
||||
|
||||
/**
|
||||
* 立项部门
|
||||
*/
|
||||
projectApplicantDept?: string;
|
||||
|
||||
/**
|
||||
* 立项申请日期
|
||||
*/
|
||||
projectApplicantTime?: string;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
processStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
projectNumbering?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfWinningBidsQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目状态
|
||||
*/
|
||||
projectStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
projectName?: string;
|
||||
|
||||
/**
|
||||
* 中标价(原币)
|
||||
*/
|
||||
winningBidOriginal?: string | number;
|
||||
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
exchangeRate?: number;
|
||||
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
currency?: string;
|
||||
|
||||
/**
|
||||
* 所属主体
|
||||
*/
|
||||
subject?: string;
|
||||
|
||||
/**
|
||||
* 中标价
|
||||
*/
|
||||
winningBid?: string | number;
|
||||
|
||||
/**
|
||||
* 中标日期
|
||||
*/
|
||||
bidWinningDate?: string | number;
|
||||
|
||||
/**
|
||||
* 投标保证金
|
||||
*/
|
||||
bidDeposit?: string | number;
|
||||
|
||||
/**
|
||||
* 是否退还
|
||||
*/
|
||||
whetherSendBack?: string;
|
||||
|
||||
/**
|
||||
* 建设单位(客户)
|
||||
*/
|
||||
construction?: string;
|
||||
|
||||
/**
|
||||
* 总造价
|
||||
*/
|
||||
totalCost?: number;
|
||||
|
||||
/**
|
||||
* 立项申请人
|
||||
*/
|
||||
projectApplicant?: string;
|
||||
|
||||
/**
|
||||
* 立项部门
|
||||
*/
|
||||
projectApplicantDept?: string;
|
||||
|
||||
/**
|
||||
* 立项申请日期
|
||||
*/
|
||||
projectApplicantTime?: string;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
processStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
projectNumbering?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
101
src/api/contract/index.ts
Normal file
101
src/api/contract/index.ts
Normal file
@ -0,0 +1,101 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
//获取版本
|
||||
export const obtainAllVersionNumbers = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/obtainAllVersionNumbers',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const sheetList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/sheetList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//获取一览表
|
||||
export const listBillofquantitiesLimitList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取一览数据树
|
||||
export const treeList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/getTree',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//修改单价
|
||||
export const updatePrice = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList',
|
||||
method: 'put',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
//查询分标策划
|
||||
export const getPlanningList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//新增分标策划
|
||||
export const segmentedIndicatorPlanning = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning',
|
||||
method: 'post',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
//编辑分标策划
|
||||
export const updatePlanning = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning',
|
||||
method: 'put',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
//编辑分标策划
|
||||
export const delPlanning = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/' + query.ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
//导出分标
|
||||
export const importExcelFile = (params: any, data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/importExcelFile',
|
||||
method: 'post',
|
||||
params,
|
||||
data
|
||||
});
|
||||
};
|
||||
//获取详情
|
||||
export const getDetailsList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/getMore',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//获取版本详情
|
||||
export const getVersionDetails = (id: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/tenderPlanLimitList/getVersionDetail/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
@ -8,6 +8,7 @@ export interface ContactnoticeVO {
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 模板类型
|
||||
|
83
src/api/ctr/expensesContract/index.ts
Normal file
83
src/api/ctr/expensesContract/index.ts
Normal file
@ -0,0 +1,83 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ExpensesContractVO, ExpensesContractForm, ExpensesContractQuery } from '@/api/ctr/expensesContract/types';
|
||||
|
||||
/**
|
||||
* 查询支出合同列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listExpensesContract = (query?: ExpensesContractQuery): AxiosPromise<ExpensesContractVO[]> => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询支出合同详细
|
||||
* @param id
|
||||
*/
|
||||
export const getExpensesContract = (id: string | number): AxiosPromise<ExpensesContractVO> => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增支出合同
|
||||
* @param data
|
||||
*/
|
||||
export const addExpensesContract = (data: ExpensesContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改支出合同
|
||||
* @param data
|
||||
*/
|
||||
export const updateExpensesContract = (data: ExpensesContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除支出合同
|
||||
* @param id
|
||||
*/
|
||||
export const delExpensesContract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查看支出合同附件列表
|
||||
* @param id
|
||||
*/
|
||||
export const getFileList = (data) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/file/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取招标计划
|
||||
export const getTenderPlan = (data) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/tender/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
141
src/api/ctr/expensesContract/types.ts
Normal file
141
src/api/ctr/expensesContract/types.ts
Normal file
@ -0,0 +1,141 @@
|
||||
export interface ExpensesContractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
contractSupplier: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
contractedContent: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* 招标Id
|
||||
*/
|
||||
tenderId: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ExpensesContractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
contractSupplier?: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 招标Id
|
||||
*/
|
||||
tenderId?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ExpensesContractQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
contractSupplier?: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 招标Id
|
||||
*/
|
||||
tenderId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
86
src/api/ctr/incomeContract/index.ts
Normal file
86
src/api/ctr/incomeContract/index.ts
Normal file
@ -0,0 +1,86 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { IncomeContractVO, IncomeContractForm, IncomeContractQuery } from '@/api/ctr/incomeContract/types';
|
||||
|
||||
/**
|
||||
* 查询收入合同列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listIncomeContract = (query?: IncomeContractQuery): AxiosPromise<IncomeContractVO[]> => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询收入合同详细
|
||||
* @param id
|
||||
*/
|
||||
export const getIncomeContract = (id: string | number): AxiosPromise<IncomeContractVO> => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增收入合同
|
||||
* @param data
|
||||
*/
|
||||
export const addIncomeContract = (data: IncomeContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改收入合同
|
||||
* @param data
|
||||
*/
|
||||
export const updateIncomeContract = (data: IncomeContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除收入合同
|
||||
* @param id
|
||||
*/
|
||||
export const delIncomeContract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查看收入合同附件列表
|
||||
* @param id
|
||||
*/
|
||||
export const getFileList = (data) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/file/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看收入合同附件列表
|
||||
* @param id
|
||||
*/
|
||||
export const getInfoByProjectId = (data) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/getInfoByProjectId',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
126
src/api/ctr/incomeContract/types.ts
Normal file
126
src/api/ctr/incomeContract/types.ts
Normal file
@ -0,0 +1,126 @@
|
||||
export interface IncomeContractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType: string;
|
||||
|
||||
/**
|
||||
* 业主单位
|
||||
*/
|
||||
contractOwner: string;
|
||||
|
||||
/**
|
||||
* 承包内容
|
||||
*/
|
||||
contractedContent: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface IncomeContractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 业主单位
|
||||
*/
|
||||
contractOwner?: string;
|
||||
|
||||
/**
|
||||
* 承包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface IncomeContractQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 业主单位
|
||||
*/
|
||||
contractOwner?: string;
|
||||
|
||||
/**
|
||||
* 承包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
41
src/api/design/Professional/index.ts
Normal file
41
src/api/design/Professional/index.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 提资计划
|
||||
// 批量新增或修改
|
||||
export const extractBatch = (data) => {
|
||||
return request({
|
||||
url: '/design/extract/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 批量新增或修改
|
||||
export const extractList = (params) => {
|
||||
return request({
|
||||
url: '/design/extract/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 获取提资清单详细信息
|
||||
export const extractDetail = (id) => {
|
||||
return request({
|
||||
url: '/design/extract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取提取资料
|
||||
export const getFileList = (id) => {
|
||||
return request({
|
||||
url: '/design/extract/fileList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取专业
|
||||
export const extractUserMajor = (params) => {
|
||||
return request({
|
||||
url: '/design/extract/userMajor',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
37
src/api/design/appointment/index.ts
Normal file
37
src/api/design/appointment/index.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 设计人员
|
||||
// 新增
|
||||
export const designUserAdd = (data) => {
|
||||
return request({
|
||||
url: '/design/user/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const designUserList = (query) => {
|
||||
return request({
|
||||
url: '/design/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const systemUserList = (query) => {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 查询
|
||||
export const desUserList = (query) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/desUser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
73
src/api/design/billofQuantities/index.ts
Normal file
73
src/api/design/billofQuantities/index.ts
Normal file
@ -0,0 +1,73 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
/**
|
||||
* 获取所有版本号
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const obtainAllVersionNumbers = (query:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/obtainAllVersionNumbers',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 导入excel
|
||||
* @param data
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const importExcelFile = (params:any,data:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/importExcelFile',
|
||||
method: 'post',
|
||||
params,
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
/**
|
||||
* 获取指定版本的sheet
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const obtainTheList = (query:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/obtainTheList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* 获取指定版本的sheet
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const sheetList = (query:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/sheetList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 物资设备清单审批详情
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const detailsMaterialAndEquipmentApproval = (versions:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/detailsMaterialAndEquipmentApproval/'+versions,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
27
src/api/design/condition/index.ts
Normal file
27
src/api/design/condition/index.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 收资计划
|
||||
// 查询收资清单目录列表
|
||||
export const collectCatalogueList = (data) => {
|
||||
return request({
|
||||
url: '/design/collectCatalogue/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
};
|
||||
|
||||
// 查询收资文件列表
|
||||
export const collectFileList = (params) => {
|
||||
return request({
|
||||
url: '/design/collectFile/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
// 获取收资文件详细信息
|
||||
export const getCollectFile = (id) => {
|
||||
return request({
|
||||
url: '/design/collectFile/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
@ -31,7 +31,7 @@ export const getDesignChange = (id: string | number): AxiosPromise<DesignChangeV
|
||||
* 新增设计变更管理
|
||||
* @param data
|
||||
*/
|
||||
export const addDesignChange = (data: DesignChangeForm) => {
|
||||
export const addDesignChange = (data) => {
|
||||
return request({
|
||||
url: '/design/designChange',
|
||||
method: 'post',
|
||||
@ -61,3 +61,23 @@ export const delDesignChange = (id: string | number | Array<string | number>) =>
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取卷册号
|
||||
* @param id
|
||||
*/
|
||||
export const blueprintList = (id) => {
|
||||
return request({
|
||||
url: '/design/designChange/blueprint/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取卷册列表
|
||||
* @param id
|
||||
*/
|
||||
export const catalogList = (id) => {
|
||||
return request({
|
||||
url: '/design/designChange/catalogList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -61,3 +61,35 @@ export const delDrawing = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查阅
|
||||
* @param id
|
||||
*/
|
||||
export const volumeFileViewer = (data) => {
|
||||
return request({
|
||||
url: '/design/volumeFileViewer',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查阅记录列表
|
||||
* @param id
|
||||
*/
|
||||
export const volumeFileViewerList = (id) => {
|
||||
return request({
|
||||
url: '/design/volumeFileViewer/list?volumeFileId=' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查阅图纸列表
|
||||
* @param id
|
||||
*/
|
||||
export const joinList = (params) => {
|
||||
return request({
|
||||
url: '/design/volumeFile/joinList',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
105
src/api/design/drawingreview/index.ts
Normal file
105
src/api/design/drawingreview/index.ts
Normal file
@ -0,0 +1,105 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
// 查询设计-图纸评审列表
|
||||
export const listDrawingreview = (query) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/listOfDesignDrawingsReview',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//查询设计-图纸评审详细
|
||||
export const getDrawingreview = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
//查询设计-图纸评审详细
|
||||
export const drawingreviewzQuery = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/zQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
//新增设计-图纸评审
|
||||
export const addDrawingreview = (params, data) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/drawingReviewUpload',
|
||||
method: 'post',
|
||||
params: params,
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 修改设计-图纸评审
|
||||
export const updateDrawingreview = (data) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/anewDrawingReviewUpload',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 设计验证表
|
||||
export const fillOutTheDesignVerificationForm = (data) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/fillOutTheDesignVerificationForm',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 设计验证表
|
||||
export const drawingreviewReceipts = (data) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 设计验证表
|
||||
export const subProjectListAll = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/subProjectList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取历史设计图纸评审
|
||||
export const ObtainHistoricalDesignDrawingsForReview = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/ObtainHistoricalDesignDrawingsForReview/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取详情
|
||||
export const drawingreviewReceiptsList = (params) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 根据历史设计图纸评审查询详情
|
||||
export const drawingreviewReceiptsDetail = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 根据历史设计图纸评审查询详情
|
||||
export const drawingreview = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取单据
|
||||
export const getDrawingreviewReceipts = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/review/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
63
src/api/design/prelimScheme/index.ts
Normal file
63
src/api/design/prelimScheme/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PrelimSchemeVO, PrelimSchemeForm, PrelimSchemeQuery } from '@/api/design/prelimScheme/types';
|
||||
|
||||
/**
|
||||
* 查询设计初步方案列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPrelimScheme = (query?: PrelimSchemeQuery): AxiosPromise<PrelimSchemeVO[]> => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计初步方案详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPrelimScheme = (id: string | number): AxiosPromise<PrelimSchemeVO> => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const addPrelimScheme = (data: PrelimSchemeForm) => {
|
||||
return request({
|
||||
url: '/design/prelimScheme',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const updatePrelimScheme = (data: PrelimSchemeForm) => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/update/' + data.id,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计初步方案
|
||||
* @param id
|
||||
*/
|
||||
export const delPrelimScheme = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
101
src/api/design/prelimScheme/types.ts
Normal file
101
src/api/design/prelimScheme/types.ts
Normal file
@ -0,0 +1,101 @@
|
||||
export interface PrelimSchemeVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PrelimSchemeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PrelimSchemeQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
26
src/api/design/received/index.ts
Normal file
26
src/api/design/received/index.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 收资计划
|
||||
// 批量新增或修改
|
||||
export const collectBatch = (data) => {
|
||||
return request({
|
||||
url: '/design/collect/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 获取收资清单详细信息
|
||||
export const byProjectId = (ProjectId) => {
|
||||
return request({
|
||||
url: '/design/collect/byProjectId/' + ProjectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 导出收资清单
|
||||
export const exportWord = (params) => {
|
||||
return request({
|
||||
url: '/design/collect/exportWord?id=' + params.id,
|
||||
method: 'post'
|
||||
});
|
||||
};
|
63
src/api/design/scheme/index.ts
Normal file
63
src/api/design/scheme/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SchemeVO, SchemeForm, SchemeQuery } from '@/api/design/scheme/types';
|
||||
|
||||
/**
|
||||
* 查询设计初步方案列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listScheme = (query?: SchemeQuery): AxiosPromise<SchemeVO[]> => {
|
||||
return request({
|
||||
url: '/design/scheme/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计初步方案详细
|
||||
* @param id
|
||||
*/
|
||||
export const getScheme = (id: string | number): AxiosPromise<SchemeVO> => {
|
||||
return request({
|
||||
url: '/design/scheme/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const addScheme = (data: SchemeForm) => {
|
||||
return request({
|
||||
url: '/design/scheme',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const updateScheme = (data: SchemeForm) => {
|
||||
return request({
|
||||
url: '/design/scheme/update/' + data.id,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计初步方案
|
||||
* @param id
|
||||
*/
|
||||
export const delScheme = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/scheme/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
101
src/api/design/scheme/types.ts
Normal file
101
src/api/design/scheme/types.ts
Normal file
@ -0,0 +1,101 @@
|
||||
export interface SchemeVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SchemeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SchemeQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/design/subcontract/index.ts
Normal file
63
src/api/design/subcontract/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SubcontractVO, SubcontractForm, SubcontractQuery } from '@/api/design/subcontract/types';
|
||||
|
||||
/**
|
||||
* 查询设计分包列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSubcontract = (query?: SubcontractQuery): AxiosPromise<SubcontractVO[]> => {
|
||||
return request({
|
||||
url: '/design/subcontract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计分包详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSubcontract = (id: string | number): AxiosPromise<SubcontractVO> => {
|
||||
return request({
|
||||
url: '/design/subcontract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计分包
|
||||
* @param data
|
||||
*/
|
||||
export const addSubcontract = (data: SubcontractForm) => {
|
||||
return request({
|
||||
url: '/design/subcontract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计分包
|
||||
* @param data
|
||||
*/
|
||||
export const updateSubcontract = (data: SubcontractForm) => {
|
||||
return request({
|
||||
url: '/design/subcontract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计分包
|
||||
* @param id
|
||||
*/
|
||||
export const delSubcontract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/subcontract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
56
src/api/design/subcontract/types.ts
Normal file
56
src/api/design/subcontract/types.ts
Normal file
@ -0,0 +1,56 @@
|
||||
export interface SubcontractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subContent: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SubcontractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subContent?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SubcontractQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subContent?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
143
src/api/design/volumeCatalog/index.ts
Normal file
143
src/api/design/volumeCatalog/index.ts
Normal file
@ -0,0 +1,143 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { VolumeCatalogVO, VolumeCatalogForm, VolumeCatalogQuery } from '@/api/design/volumeCatalog/types';
|
||||
|
||||
/**
|
||||
* 查询卷册目录列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listVolumeCatalog = (query) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询卷册目录详细
|
||||
* @param id
|
||||
*/
|
||||
export const getVolumeCatalog = (id: string | number): AxiosPromise<VolumeCatalogVO> => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询卷册目录文件列表
|
||||
* @param id
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getVolumeCatafileList = (id: string | number): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/listFileById/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查阅卷册目录文件
|
||||
* @param id
|
||||
*/
|
||||
export const lookViewerFile = (id: string | number): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/viewerFile/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 新增卷册目录
|
||||
* @param data
|
||||
*/
|
||||
export const addVolumeCatalog = (data: VolumeCatalogForm) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改卷册目录
|
||||
* @param data
|
||||
*/
|
||||
export const updateVolumeCatalog = (data) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除卷册目录
|
||||
* @param id
|
||||
*/
|
||||
export const delVolumeCatalog = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 上传卷册文件
|
||||
* @param query
|
||||
*/
|
||||
export const uploadVolumeFile = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/volumeFile',
|
||||
method: 'POST',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取文件列表
|
||||
* @param query
|
||||
*/
|
||||
export const volumeFileList = (params) => {
|
||||
return request({
|
||||
url: '/design/volumeFile/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取文件详情
|
||||
* @param query
|
||||
*/
|
||||
export const getileDetail = (id) => {
|
||||
return request({
|
||||
url: '/design/volumeFile/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取专业列表
|
||||
* @param query
|
||||
*/
|
||||
export const majorList = (params) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/majorList',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取二维码信息
|
||||
* @param query
|
||||
*/
|
||||
export const codeInfo = (id) => {
|
||||
const config: any = {
|
||||
url: '/design/volumeFile/codeInfo?id=' + id,
|
||||
method: 'get'
|
||||
};
|
||||
config.headers = {
|
||||
Authorization: '1'
|
||||
};
|
||||
return request(config);
|
||||
};
|
90
src/api/design/volumeCatalog/types.ts
Normal file
90
src/api/design/volumeCatalog/types.ts
Normal file
@ -0,0 +1,90 @@
|
||||
export interface VolumeCatalogVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
design: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设计子项ID
|
||||
*/
|
||||
designSubitemId: string | number;
|
||||
|
||||
/**
|
||||
* 卷册号
|
||||
*/
|
||||
volumeNumber: string;
|
||||
|
||||
/**
|
||||
* 资料名称
|
||||
*/
|
||||
documentName: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface VolumeCatalogForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
design?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计子项ID
|
||||
*/
|
||||
designSubitemId?: string | number;
|
||||
|
||||
/**
|
||||
* 卷册号
|
||||
*/
|
||||
volumeNumber?: string;
|
||||
|
||||
/**
|
||||
* 资料名称
|
||||
*/
|
||||
documentName?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface VolumeCatalogQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计子项ID
|
||||
*/
|
||||
designSubitemId?: string | number;
|
||||
|
||||
/**
|
||||
* 卷册号
|
||||
*/
|
||||
volumeNumber?: string;
|
||||
|
||||
/**
|
||||
* 资料名称
|
||||
*/
|
||||
documentName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
118
src/api/formalities/formalitiesAreConsolidated/index.ts
Normal file
118
src/api/formalities/formalitiesAreConsolidated/index.ts
Normal file
@ -0,0 +1,118 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
FormalitiesAreConsolidatedVO,
|
||||
FormalitiesAreConsolidatedForm,
|
||||
FormalitiesAreConsolidatedQuery
|
||||
} from '@/api/formalities/formalitiesAreConsolidated/types';
|
||||
import { ListOfFormalitiesQuery, ListOfFormalitiesVO } from '../listOfFormalities/types';
|
||||
|
||||
/**
|
||||
* 查询合规性手续合账列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listFormalitiesAreConsolidated = (query?: FormalitiesAreConsolidatedQuery): AxiosPromise<FormalitiesAreConsolidatedVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询合规性手续合账详细
|
||||
* @param id
|
||||
*/
|
||||
export const getFormalitiesAreConsolidated = (id: string | number): AxiosPromise<FormalitiesAreConsolidatedVO> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增合规性手续合账
|
||||
* @param data
|
||||
*/
|
||||
export const addFormalitiesAreConsolidated = (data: FormalitiesAreConsolidatedForm) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改合规性手续合账
|
||||
* @param data
|
||||
*/
|
||||
export const updateFormalitiesAreConsolidated = (data: FormalitiesAreConsolidatedForm) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/edit',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除合规性手续合账
|
||||
* @param id
|
||||
*/
|
||||
export const delFormalitiesAreConsolidated = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 编辑状态
|
||||
* @param data
|
||||
*/
|
||||
export const editStatus = (data: FormalitiesAreConsolidatedForm) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/editStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询合规性手续合账文件列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listFormalitiesAnnex = (query?: any): AxiosPromise<FormalitiesAreConsolidatedVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAnnex/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除合规性手续合账文件
|
||||
* @param id
|
||||
*/
|
||||
export const delFormalitiesAnnex = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAnnex/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板属性列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getTemplateTreeList = (query?: any): AxiosPromise<ListOfFormalitiesVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/getTree',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
160
src/api/formalities/formalitiesAreConsolidated/types.ts
Normal file
160
src/api/formalities/formalitiesAreConsolidated/types.ts
Normal file
@ -0,0 +1,160 @@
|
||||
export interface FormalitiesAreConsolidatedVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
planTheEndTime: string;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板父id
|
||||
*/
|
||||
formalitiesPid: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板id
|
||||
*/
|
||||
formalitiesId: string | number;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
planTheStartTime: string;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
actualCompletionTime: string;
|
||||
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
processingStatus: string;
|
||||
|
||||
/**
|
||||
* 手续材料
|
||||
*/
|
||||
formalitiesUrl: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface FormalitiesAreConsolidatedForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
planTheEndTime?: string;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板父id
|
||||
*/
|
||||
formalitiesPid?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板id
|
||||
*/
|
||||
formalitiesId?: string | number;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
planTheStartTime?: string;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
actualCompletionTime?: string;
|
||||
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
processingStatus?: string;
|
||||
|
||||
/**
|
||||
* 手续材料
|
||||
*/
|
||||
formalitiesUrl?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface FormalitiesAreConsolidatedQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板父id
|
||||
*/
|
||||
formalitiesPid?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板id
|
||||
*/
|
||||
formalitiesId?: string | number;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
planTheStartTime?: string;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
actualCompletionTime?: string;
|
||||
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
processingStatus?: string;
|
||||
|
||||
/**
|
||||
* 手续材料
|
||||
*/
|
||||
formalitiesUrl?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
86
src/api/formalities/listOfFormalities/index.ts
Normal file
86
src/api/formalities/listOfFormalities/index.ts
Normal file
@ -0,0 +1,86 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ListOfFormalitiesVO, ListOfFormalitiesForm, ListOfFormalitiesQuery } from '@/api/formalities/listOfFormalities/types';
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listListOfFormalities = (query?: ListOfFormalitiesQuery): AxiosPromise<ListOfFormalitiesVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板详细
|
||||
* @param id
|
||||
*/
|
||||
export const getListOfFormalities = (id: string | number): AxiosPromise<ListOfFormalitiesVO> => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增手续办理清单模板
|
||||
* @param data
|
||||
*/
|
||||
export const addListOfFormalities = (data: ListOfFormalitiesForm) => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改手续办理清单模板
|
||||
* @param data
|
||||
*/
|
||||
export const updateListOfFormalities = (data: ListOfFormalitiesForm) => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除手续办理清单模板
|
||||
* @param id
|
||||
*/
|
||||
export const delListOfFormalities = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板是否存在
|
||||
* @param id
|
||||
*/
|
||||
export const getWhetherItExists = (id: string | number): AxiosPromise<ListOfFormalitiesVO> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/getWhetherItExists',
|
||||
method: 'get',
|
||||
params: {
|
||||
projectId: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
//模版新增
|
||||
export const addFormalities = (data: any): AxiosPromise<ListOfFormalitiesVO> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/addFormalities',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
56
src/api/formalities/listOfFormalities/types.ts
Normal file
56
src/api/formalities/listOfFormalities/types.ts
Normal file
@ -0,0 +1,56 @@
|
||||
export interface ListOfFormalitiesVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
pid: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfFormalitiesForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfFormalitiesQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
100
src/api/largeScreen/index.ts
Normal file
100
src/api/largeScreen/index.ts
Normal file
@ -0,0 +1,100 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/types';
|
||||
/**
|
||||
* 合同金额
|
||||
*
|
||||
*/
|
||||
export const totalAmount = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/totalAmount',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目位置列表
|
||||
*
|
||||
*/ export const projectGis = (clientid?: any) => {
|
||||
return request({
|
||||
url: '/money/big/screen/project/gis',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 应收实收
|
||||
*
|
||||
*/ export const incomePay = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/income/pay',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 收入合同分析
|
||||
*
|
||||
*/ export const incomeAnalyze = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/income/analyze',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 应付实付
|
||||
*
|
||||
*/ export const expensesPay = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/expenses/pay',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 支出合同分析
|
||||
*
|
||||
*/
|
||||
export const expensesAnalyze = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/expenses/analyze',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 成本
|
||||
*
|
||||
*/ export const cost = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/cost',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
|
||||
// 资金KPI
|
||||
export const monthMoney = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/monthMoney',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 现金流
|
||||
export const monthCash = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/monthCash',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 现金流总和
|
||||
|
||||
export const cashTotal = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/cashTotal',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
28
src/api/materials/appointment/index.ts
Normal file
28
src/api/materials/appointment/index.ts
Normal file
@ -0,0 +1,28 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 设计人员
|
||||
// 新增
|
||||
export const designUserAdd = (data) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseUser/addOrUpdate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const designUserDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/cailiaoshebei/purchaseUser/byProject/${projectId}`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const systemUserList = (query) => {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
172
src/api/materials/batchPlan/index.ts
Normal file
172
src/api/materials/batchPlan/index.ts
Normal file
@ -0,0 +1,172 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (query: any) => {
|
||||
const config: any = {
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
};
|
||||
|
||||
// 如果 query.token 存在,就覆盖请求头里的 token
|
||||
if (query.token) {
|
||||
config.headers = {
|
||||
Authorization: query.token
|
||||
};
|
||||
}
|
||||
|
||||
return request(config);
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/spQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备选择列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listSelectCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/masterDataList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询字典数据
|
||||
* @param dictType
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getDictList = (query: any): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/engineeringList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
export const coryEngineeringList = (query: any): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/coryEngineeringList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取到物资状态为已完成的版本
|
||||
*/
|
||||
export const obtainTheVersion = (query: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/obtainTheVersion',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取到物资剩余量
|
||||
*/
|
||||
export const mrpBaseRemaining = (query: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/remaining',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
229
src/api/materials/batchPlan/types.ts
Normal file
229
src/api/materials/batchPlan/types.ts
Normal file
@ -0,0 +1,229 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
cailiaoshebeiId?: string | number;
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
addDataList?: any[];
|
||||
approvalProject?: string;
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
110
src/api/materials/cailiaoshebei/index.ts
Normal file
110
src/api/materials/cailiaoshebei/index.ts
Normal file
@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/spQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
231
src/api/materials/cailiaoshebei/types.ts
Normal file
231
src/api/materials/cailiaoshebei/types.ts
Normal file
@ -0,0 +1,231 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
approvalDesign?: string;
|
||||
bo: any;
|
||||
file: string;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@ -61,3 +61,17 @@ export const delMaterialIssue = (id: string | number | Array<string | number>) =
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
//获取一起名称
|
||||
export const getMaterialName = (id: any) => {
|
||||
return request({
|
||||
url: '/materials/materials/inventoryNumber/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
//获取出库记录
|
||||
export const inventoryList = (id: any) => {
|
||||
return request({
|
||||
url: '/materials/materialIssue/inventory/list/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -61,3 +61,16 @@ export const delMaterialReceive = (id: string | number | Array<string | number>)
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取合同列表数据
|
||||
* @param id
|
||||
*/
|
||||
export const getContractNameList = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/materials/materialReceive/ctrList',
|
||||
params: {
|
||||
projectId: id
|
||||
},
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -82,7 +82,10 @@ export interface MaterialsInventoryForm extends BaseEntity {
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart?: string;
|
||||
/**
|
||||
* 材料id
|
||||
*/
|
||||
|
70
src/api/materials/materialsUseRecord/index.ts
Normal file
70
src/api/materials/materialsUseRecord/index.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MaterialsUseRecordVO, MaterialsUseRecordForm, MaterialsUseRecordQuery } from '@/api/materials/materialsUseRecord/types';
|
||||
|
||||
/**
|
||||
* 查询材料使用登记列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMaterialsUseInventory = (query?: MaterialsUseRecordQuery): AxiosPromise<MaterialsUseRecordVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materialsInventory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
export const listMaterialsUseRecord = (query?: MaterialsUseRecordQuery): AxiosPromise<MaterialsUseRecordVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询材料使用登记详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMaterialsUseRecord = (id: string | number): AxiosPromise<MaterialsUseRecordVO> => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增材料使用登记
|
||||
* @param data
|
||||
*/
|
||||
export const addMaterialsUseRecord = (data: MaterialsUseRecordForm) => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改材料使用登记
|
||||
* @param data
|
||||
*/
|
||||
export const updateMaterialsUseRecord = (data: MaterialsUseRecordForm) => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除材料使用登记
|
||||
* @param id
|
||||
*/
|
||||
export const delMaterialsUseRecord = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
111
src/api/materials/materialsUseRecord/types.ts
Normal file
111
src/api/materials/materialsUseRecord/types.ts
Normal file
@ -0,0 +1,111 @@
|
||||
export interface MaterialsUseRecordVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
inventoryId: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart: string;
|
||||
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
useNumber: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
residueNumber: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaterialsUseRecordForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
inventoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart?: string;
|
||||
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
useNumber?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
residueNumber?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaterialsUseRecordQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
inventoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart?: string;
|
||||
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
useNumber?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
residueNumber?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
110
src/api/materials/orderEquipment/index.ts
Normal file
110
src/api/materials/orderEquipment/index.ts
Normal file
@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/modifyTheOrderForm',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/pcPlanList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/spQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
229
src/api/materials/orderEquipment/types.ts
Normal file
229
src/api/materials/orderEquipment/types.ts
Normal file
@ -0,0 +1,229 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
addDataList?: any[];
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
102
src/api/materials/orderMaterials/index.ts
Normal file
102
src/api/materials/orderMaterials/index.ts
Normal file
@ -0,0 +1,102 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/planExecutionTrackingList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/changeTheStatusOfTheMaterials',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
},
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/changeTheStatusOfTheMaterials',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/trackPcPlanList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
43
src/api/materials/overallPlanMaterialSupply/index.ts
Normal file
43
src/api/materials/overallPlanMaterialSupply/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 获取主数据列表
|
||||
export const obtainMasterDataList = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/queryList',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 总供应计划列表
|
||||
export const totalsupplyplan = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
// 总供应计划详细信息
|
||||
export const totalSupplyplanDetails = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 修改物资-总供应计划
|
||||
export const materialChangeSupplyplan = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
// 总供应计划-批量编辑
|
||||
export const totalSupplyplanBatchEdit = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/batchEdit',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
130
src/api/materials/purchaseDoc/index.ts
Normal file
130
src/api/materials/purchaseDoc/index.ts
Normal file
@ -0,0 +1,130 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PurchaseDocVO, PurchaseDocForm, PurchaseDocQuery } from '@/api/cailiaoshebei/purchaseDoc/types';
|
||||
|
||||
/**
|
||||
* 查询物资-采购联系单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPurchaseDoc = (query?: PurchaseDocQuery): AxiosPromise<PurchaseDocVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-采购联系单详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPurchaseDoc = (id: string | number): AxiosPromise<PurchaseDocVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-采购联系单
|
||||
* @param data
|
||||
*/
|
||||
export const addPurchaseDoc = (data: PurchaseDocForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-采购联系单
|
||||
* @param data
|
||||
*/
|
||||
export const updatePurchaseDoc = (data: PurchaseDocForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-采购联系单
|
||||
* @param id
|
||||
*/
|
||||
export const delPurchaseDoc = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
export const uploadCode = (data: any) => {
|
||||
const config: any = {
|
||||
url: '/cailiaoshebei/ltn/link',
|
||||
method: 'post',
|
||||
data: data
|
||||
};
|
||||
// 如果 query.token 存在,就覆盖请求头里的 token
|
||||
if (data.token) {
|
||||
config.headers = {
|
||||
Authorization: data.token
|
||||
};
|
||||
}
|
||||
|
||||
return request(config);
|
||||
};
|
||||
|
||||
// 获取物流单号
|
||||
export const ltnList = (data: any) => {
|
||||
const config: any = {
|
||||
url: '/cailiaoshebei/ltn/list?docId=' + data.docId,
|
||||
method: 'get'
|
||||
};
|
||||
// 如果 query.token 存在,就覆盖请求头里的 token
|
||||
if (data.token) {
|
||||
config.headers = {
|
||||
Authorization: data.token
|
||||
};
|
||||
}
|
||||
|
||||
return request(config);
|
||||
};
|
||||
|
||||
export const listLink = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/ltn/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 通过采购单获取需求
|
||||
* @param id
|
||||
*/
|
||||
export const purchaseDocPlanList = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/planList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 通过物流单号 物流详情
|
||||
* @param id
|
||||
*/
|
||||
export const logisticsDetial = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/ltn/logistics/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetailBASE = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/pdf/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
296
src/api/materials/purchaseDoc/types.ts
Normal file
296
src/api/materials/purchaseDoc/types.ts
Normal file
@ -0,0 +1,296 @@
|
||||
export interface PurchaseDocVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PurchaseDocForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate?: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress?: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts?: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector?: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent?: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate?: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl?: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit?: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson?: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PurchaseDocQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate?: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress?: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts?: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector?: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent?: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate?: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl?: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit?: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson?: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/materials/repertory/index.ts
Normal file
63
src/api/materials/repertory/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepertoryVO, RepertoryForm, RepertoryQuery } from '@/api/materials/repertory/types';
|
||||
|
||||
/**
|
||||
* 查询物资-库存详情列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRepertory = (query?: RepertoryQuery): AxiosPromise<RepertoryVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-库存详情详细
|
||||
* @param id
|
||||
*/
|
||||
export const getRepertory = (id: string | number): AxiosPromise<RepertoryVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-库存详情
|
||||
* @param data
|
||||
*/
|
||||
export const addRepertory = (data: RepertoryForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-库存详情
|
||||
* @param data
|
||||
*/
|
||||
export const updateRepertory = (data: RepertoryForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-库存详情
|
||||
* @param id
|
||||
*/
|
||||
export const delRepertory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
81
src/api/materials/repertory/types.ts
Normal file
81
src/api/materials/repertory/types.ts
Normal file
@ -0,0 +1,81 @@
|
||||
export interface RepertoryVO {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RepertoryForm extends BaseEntity {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RepertoryQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/materials/repertoryDetails/index.ts
Normal file
63
src/api/materials/repertoryDetails/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepertoryDetailsVO, RepertoryDetailsForm, RepertoryDetailsQuery } from '@/api/materials/repertoryDetails/types';
|
||||
|
||||
/**
|
||||
* 查询物资-库存列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRepertoryDetails = (query?: RepertoryDetailsQuery): AxiosPromise<RepertoryDetailsVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-库存详细
|
||||
* @param id
|
||||
*/
|
||||
export const getRepertoryDetails = (id: string | number): AxiosPromise<RepertoryDetailsVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-库存
|
||||
* @param data
|
||||
*/
|
||||
export const addRepertoryDetails = (data: RepertoryDetailsForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-库存
|
||||
* @param data
|
||||
*/
|
||||
export const updateRepertoryDetails = (data: RepertoryDetailsForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-库存
|
||||
* @param id
|
||||
*/
|
||||
export const delRepertoryDetails = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
187
src/api/materials/repertoryDetails/types.ts
Normal file
187
src/api/materials/repertoryDetails/types.ts
Normal file
@ -0,0 +1,187 @@
|
||||
export interface RepertoryDetailsVO {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
repertoryId: string | number;
|
||||
|
||||
/**
|
||||
* 数据来源ID
|
||||
*/
|
||||
materialsorderId: string | number;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 原始数量
|
||||
*/
|
||||
originalQuantity: number;
|
||||
|
||||
/**
|
||||
* 变更原因
|
||||
*/
|
||||
changeReasons: string;
|
||||
|
||||
/**
|
||||
* 变更数量
|
||||
*/
|
||||
changeQuantity: number;
|
||||
|
||||
/**
|
||||
* 最终数量
|
||||
*/
|
||||
finalNumber: number;
|
||||
|
||||
/**
|
||||
* 操作状态(字典)
|
||||
*/
|
||||
operationStatus: string;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
operationName: string;
|
||||
|
||||
/**
|
||||
* 操作人联系电话
|
||||
*/
|
||||
operationPhone: string;
|
||||
}
|
||||
|
||||
export interface RepertoryDetailsForm extends BaseEntity {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
repertoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 数据来源ID
|
||||
*/
|
||||
materialsorderId?: string | number;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 原始数量
|
||||
*/
|
||||
originalQuantity?: number;
|
||||
|
||||
/**
|
||||
* 变更原因
|
||||
*/
|
||||
changeReasons?: string;
|
||||
|
||||
/**
|
||||
* 变更数量
|
||||
*/
|
||||
changeQuantity?: number;
|
||||
|
||||
/**
|
||||
* 最终数量
|
||||
*/
|
||||
finalNumber?: number;
|
||||
|
||||
/**
|
||||
* 操作状态(字典)
|
||||
*/
|
||||
operationStatus?: string;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
operationName?: string;
|
||||
|
||||
/**
|
||||
* 操作人联系电话
|
||||
*/
|
||||
operationPhone?: string;
|
||||
}
|
||||
|
||||
export interface RepertoryDetailsQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
id?: string | number;
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
repertoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 数据来源ID
|
||||
*/
|
||||
materialsorderId?: string | number;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 原始数量
|
||||
*/
|
||||
originalQuantity?: number;
|
||||
|
||||
/**
|
||||
* 变更原因
|
||||
*/
|
||||
changeReasons?: string;
|
||||
|
||||
/**
|
||||
* 变更数量
|
||||
*/
|
||||
changeQuantity?: number;
|
||||
|
||||
/**
|
||||
* 最终数量
|
||||
*/
|
||||
finalNumber?: number;
|
||||
|
||||
/**
|
||||
* 操作状态(字典)
|
||||
*/
|
||||
operationStatus?: string;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
operationName?: string;
|
||||
|
||||
/**
|
||||
* 操作人联系电话
|
||||
*/
|
||||
operationPhone?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
110
src/api/materials/suppliesprice/index.ts
Normal file
110
src/api/materials/suppliesprice/index.ts
Normal file
@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/listPlan',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/getInfoPlanSon/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/editPlanSon',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcPlanList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/spQueryPlan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
228
src/api/materials/suppliesprice/types.ts
Normal file
228
src/api/materials/suppliesprice/types.ts
Normal file
@ -0,0 +1,228 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
81
src/api/materials/usageMaterials/index.ts
Normal file
81
src/api/materials/usageMaterials/index.ts
Normal file
@ -0,0 +1,81 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 查询物资-使用情况列表
|
||||
export const useMaterialsQueryList = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 新增物资
|
||||
export const newMaterialsAdd = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 修改物资
|
||||
export const materialsEdit = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 删除物资
|
||||
export const materialsDel = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply/' + id,
|
||||
method: 'delete',
|
||||
});
|
||||
};
|
||||
// 获取物资详情
|
||||
export const queryMaterialsInfo = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// 查询物资子数据列表
|
||||
export const materialsUsageDetails = (query: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 获取物资-使用情况子数据详细信息
|
||||
export const materialsSonDetails = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
// 新增物资-使用情况子数据
|
||||
export const materialsSonAdd = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
//修改物资-使用情况子数据
|
||||
export const materialsSonEdit = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 删除物资-使用情况子数据
|
||||
export const materialsSonDel = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon/' + id,
|
||||
method: 'delete',
|
||||
});
|
||||
};
|
@ -3,9 +3,9 @@ import { AxiosPromise } from 'axios';
|
||||
import { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
// 获取路由
|
||||
export function getRouters(): AxiosPromise<RouteRecordRaw[]> {
|
||||
export function getRouters(id: string): AxiosPromise<RouteRecordRaw[]> {
|
||||
return request({
|
||||
url: '/system/menu/getRouters',
|
||||
url: '/system/menu/getRouters/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
72
src/api/message/config/index.ts
Normal file
72
src/api/message/config/index.ts
Normal file
@ -0,0 +1,72 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ConfigVO, ConfigForm, ConfigQuery } from '@/api/message/config/types';
|
||||
|
||||
/**
|
||||
* 查询消息配置列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listConfig = (query?: ConfigQuery): AxiosPromise<ConfigVO[]> => {
|
||||
return request({
|
||||
url: '/message/config/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询消息配置详细
|
||||
* @param id
|
||||
*/
|
||||
export const getConfig = (id: string | number): AxiosPromise<ConfigVO> => {
|
||||
return request({
|
||||
url: '/message/config/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增消息配置
|
||||
* @param data
|
||||
*/
|
||||
export const addConfig = (data: ConfigForm) => {
|
||||
return request({
|
||||
url: '/message/config',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改消息配置
|
||||
* @param data
|
||||
*/
|
||||
export const updateConfig = (data: ConfigForm) => {
|
||||
return request({
|
||||
url: '/message/config',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除消息配置
|
||||
* @param id
|
||||
*/
|
||||
export const delConfig = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/message/config/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/** 获取用户列表 */
|
||||
export const listUsers = (query?: any) => {
|
||||
return request({
|
||||
url: '/message/config/allUsersOfTheDepartment',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
113
src/api/message/config/types.ts
Normal file
113
src/api/message/config/types.ts
Normal file
@ -0,0 +1,113 @@
|
||||
export interface ConfigVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 消息名称
|
||||
*/
|
||||
msgName: number;
|
||||
|
||||
/**
|
||||
* 消息模板
|
||||
*/
|
||||
msgContent: string;
|
||||
|
||||
/**
|
||||
* 消息标识
|
||||
*/
|
||||
msgKey: string;
|
||||
|
||||
/**
|
||||
* 跳转路由
|
||||
*/
|
||||
route: string;
|
||||
|
||||
/**
|
||||
* 通知人
|
||||
*/
|
||||
userId: string | number;
|
||||
}
|
||||
|
||||
export interface ConfigForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 通知部门
|
||||
*/
|
||||
deptId?: string | number;
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 消息名称
|
||||
*/
|
||||
msgName?: number;
|
||||
|
||||
/**
|
||||
* 消息模板
|
||||
*/
|
||||
msgContent?: string;
|
||||
|
||||
/**
|
||||
* 消息标识
|
||||
*/
|
||||
msgKey?: string;
|
||||
|
||||
/**
|
||||
* 跳转路由
|
||||
*/
|
||||
route?: string;
|
||||
|
||||
/**
|
||||
* 通知人
|
||||
*/
|
||||
userId?: string | number;
|
||||
}
|
||||
|
||||
export interface ConfigQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 消息名称
|
||||
*/
|
||||
msgName?: number;
|
||||
|
||||
/**
|
||||
* 消息模板
|
||||
*/
|
||||
msgContent?: string;
|
||||
|
||||
/**
|
||||
* 消息标识
|
||||
*/
|
||||
msgKey?: string;
|
||||
|
||||
/**
|
||||
* 跳转路由
|
||||
*/
|
||||
route?: string;
|
||||
|
||||
/**
|
||||
* 通知人
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
63
src/api/message/notice/index.ts
Normal file
63
src/api/message/notice/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { NoticeVO, NoticeForm, NoticeQuery } from '@/api/message/notice/types';
|
||||
|
||||
/**
|
||||
* 查询消息列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listNotice = (query?: NoticeQuery): AxiosPromise<NoticeVO[]> => {
|
||||
return request({
|
||||
url: '/message/notice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询消息详细
|
||||
* @param id
|
||||
*/
|
||||
export const getNotice = (id: string | number): AxiosPromise<NoticeVO> => {
|
||||
return request({
|
||||
url: '/message/notice/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增消息
|
||||
* @param data
|
||||
*/
|
||||
export const addNotice = (data: NoticeForm) => {
|
||||
return request({
|
||||
url: '/message/notice',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改消息
|
||||
* @param data
|
||||
*/
|
||||
export const updateNotice = (data: NoticeForm) => {
|
||||
return request({
|
||||
url: '/message/notice',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除消息
|
||||
* @param id
|
||||
*/
|
||||
export const delNotice = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/message/notice/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
156
src/api/message/notice/types.ts
Normal file
156
src/api/message/notice/types.ts
Normal file
@ -0,0 +1,156 @@
|
||||
export interface NoticeVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 接收通知的用户ID
|
||||
*/
|
||||
recipientId: string | number;
|
||||
|
||||
/**
|
||||
* 发送通知的用户ID(系统通知 0)
|
||||
*/
|
||||
senderId: string | number;
|
||||
|
||||
/**
|
||||
* 配置id
|
||||
*/
|
||||
configId: string | number;
|
||||
|
||||
/**
|
||||
* 详情id
|
||||
*/
|
||||
detailId: string | number;
|
||||
|
||||
/**
|
||||
* 通知内容
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* 查看状态(0未读 1已读)
|
||||
*/
|
||||
viewStatus: string;
|
||||
|
||||
/**
|
||||
* 查看时间
|
||||
*/
|
||||
viewTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface NoticeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 接收通知的用户ID
|
||||
*/
|
||||
recipientId?: string | number;
|
||||
|
||||
/**
|
||||
* 发送通知的用户ID(系统通知 0)
|
||||
*/
|
||||
senderId?: string | number;
|
||||
|
||||
/**
|
||||
* 配置id
|
||||
*/
|
||||
configId?: string | number;
|
||||
|
||||
/**
|
||||
* 详情id
|
||||
*/
|
||||
detailId?: string | number;
|
||||
|
||||
/**
|
||||
* 通知内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 查看状态(0未读 1已读)
|
||||
*/
|
||||
viewStatus?: string;
|
||||
|
||||
/**
|
||||
* 查看时间
|
||||
*/
|
||||
viewTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface NoticeQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 接收通知的用户ID
|
||||
*/
|
||||
recipientId?: string | number;
|
||||
|
||||
/**
|
||||
* 发送通知的用户ID(系统通知 0)
|
||||
*/
|
||||
senderId?: string | number;
|
||||
|
||||
/**
|
||||
* 配置id
|
||||
*/
|
||||
configId?: string | number;
|
||||
|
||||
/**
|
||||
* 详情id
|
||||
*/
|
||||
detailId?: string | number;
|
||||
|
||||
/**
|
||||
* 通知内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 查看状态(0未读 1已读)
|
||||
*/
|
||||
viewStatus?: string;
|
||||
|
||||
/**
|
||||
* 查看时间
|
||||
*/
|
||||
viewTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
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;
|
||||
}
|
||||
|
||||
|
||||
|
123
src/api/out/monthPlan/index.ts
Normal file
123
src/api/out/monthPlan/index.ts
Normal file
@ -0,0 +1,123 @@
|
||||
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'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取月度产值计划
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getMonth = (query: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/out/monthPlan/info',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 检查月度产值计划是否提交
|
||||
* @param id
|
||||
* @returns {*}
|
||||
*/
|
||||
export const isSubmit = (id): AxiosPromise => {
|
||||
return request({
|
||||
url: '/out/monthPlan/isSubmit/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询月度产值计划详细(审批)
|
||||
* @param id
|
||||
*/
|
||||
export const getMonthInfo = (query): AxiosPromise<MonthPlanVO> => {
|
||||
return request({
|
||||
url: '/out/monthPlan/monthInfo',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 修改采购完工产值对甲
|
||||
|
||||
* @param id
|
||||
*/
|
||||
export const purchaseValueAup = (query) => {
|
||||
return request({
|
||||
url: '/out/monthPlan/purchaseValueAup',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 采购完工产值对甲
|
||||
* @param id
|
||||
*/
|
||||
export const purchaseValueA = (query) => {
|
||||
return request({
|
||||
url: '/out/monthPlan/purchaseValueA',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
144
src/api/out/monthPlan/types.ts
Normal file
144
src/api/out/monthPlan/types.ts
Normal file
@ -0,0 +1,144 @@
|
||||
export interface MonthPlanVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 计划产值
|
||||
*/
|
||||
planValue: number;
|
||||
|
||||
/**
|
||||
* 完成产值
|
||||
*/
|
||||
completeValue: number;
|
||||
|
||||
/**
|
||||
* 差额
|
||||
*/
|
||||
differenceValue: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth: string;
|
||||
|
||||
/**
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
valueType: string;
|
||||
|
||||
/**
|
||||
* 计划审核状态
|
||||
*/
|
||||
planAuditStatus: string;
|
||||
|
||||
/**
|
||||
* 完成审核状态
|
||||
*/
|
||||
completeAuditStatus: string;
|
||||
}
|
||||
|
||||
export interface MonthPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 是否设计
|
||||
*/
|
||||
isDesign?: boolean;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 计划产值
|
||||
*/
|
||||
planValue?: number;
|
||||
|
||||
/**
|
||||
* 完成产值
|
||||
*/
|
||||
completeValue?: number;
|
||||
|
||||
/**
|
||||
* 差额
|
||||
*/
|
||||
differenceValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
valueType?: string;
|
||||
|
||||
/**
|
||||
* 计划审核状态
|
||||
*/
|
||||
planAuditStatus?: string;
|
||||
|
||||
/**
|
||||
* 完成审核状态
|
||||
*/
|
||||
completeAuditStatus?: string;
|
||||
}
|
||||
|
||||
export interface MonthPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 计划产值
|
||||
*/
|
||||
planValue?: number;
|
||||
|
||||
/**
|
||||
* 完成产值
|
||||
*/
|
||||
completeValue?: number;
|
||||
|
||||
/**
|
||||
* 差额
|
||||
*/
|
||||
differenceValue?: number;
|
||||
|
||||
/**
|
||||
* 计划月份(YYYY-MM)
|
||||
*/
|
||||
planMonth?: string;
|
||||
|
||||
/**
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
valueType?: string;
|
||||
|
||||
/**
|
||||
* 计划审核状态
|
||||
*/
|
||||
planAuditStatus?: string;
|
||||
|
||||
/**
|
||||
* 完成审核状态
|
||||
*/
|
||||
completeAuditStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
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;
|
||||
}
|
||||
|
||||
|
||||
|
9
src/api/out/outDesignTable/index.ts
Normal file
9
src/api/out/outDesignTable/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
export function listOutTable(query: any) {
|
||||
return request({
|
||||
url: '/out/table/monthlyPurchase',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
25
src/api/out/outDesignTableVS/index.ts
Normal file
25
src/api/out/outDesignTableVS/index.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
export function listOutTable(query: any) {
|
||||
return request({
|
||||
url: '/out/table/comparisonOfCompletionAndSettlement',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 对甲产值和对乙产值
|
||||
export function comparisonOfOutputValue(query: any) {
|
||||
return request({
|
||||
url: '/out/table/outCompare',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 对甲结算和对乙结算
|
||||
export function comparisonOfSettlementValue(query: any) {
|
||||
return request({
|
||||
url: '/out/table/comparisonOfOwnerAndSub',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
9
src/api/out/outTable/index.ts
Normal file
9
src/api/out/outTable/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
export function listOutTable(query: any) {
|
||||
return request({
|
||||
url: '/out/table/monthlyConstruct',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
9
src/api/out/ownerSettlement/index.ts
Normal file
9
src/api/out/ownerSettlement/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
export function listOutTable(query: any) {
|
||||
return request({
|
||||
url: '/out/table/comparisonOfOwnerAndSub',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
24
src/api/out/purchase/index.ts
Normal file
24
src/api/out/purchase/index.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import request from '@/utils/request';
|
||||
/**
|
||||
* 修改采购完工产值对甲
|
||||
|
||||
* @param id
|
||||
*/
|
||||
export const purchaseValueAup = (query) => {
|
||||
return request({
|
||||
url: '/out/monthPlan/purchaseValueAup',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 采购完工产值对甲
|
||||
* @param id
|
||||
*/
|
||||
export const purchaseValueA = (query) => {
|
||||
return request({
|
||||
url: '/out/monthPlan/purchaseValueA',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
63
src/api/out/settlementValueOwner/index.ts
Normal file
63
src/api/out/settlementValueOwner/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SettlementValueOwnerVO, SettlementValueOwnerForm, SettlementValueOwnerQuery } from '@/api/out/settlementValueOwner/types';
|
||||
|
||||
/**
|
||||
* 查询结算产值登记(对甲)列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSettlementValueOwner = (query?: SettlementValueOwnerQuery): AxiosPromise<SettlementValueOwnerVO[]> => {
|
||||
return request({
|
||||
url: '/out/settlementValueOwner/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询结算产值登记(对甲)详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSettlementValueOwner = (id: string | number): AxiosPromise<SettlementValueOwnerVO> => {
|
||||
return request({
|
||||
url: '/out/settlementValueOwner/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增结算产值登记(对甲)
|
||||
* @param data
|
||||
*/
|
||||
export const addSettlementValueOwner = (data: SettlementValueOwnerForm) => {
|
||||
return request({
|
||||
url: '/out/settlementValueOwner',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改结算产值登记(对甲)
|
||||
* @param data
|
||||
*/
|
||||
export const updateSettlementValueOwner = (data: SettlementValueOwnerForm) => {
|
||||
return request({
|
||||
url: '/out/settlementValueOwner',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除结算产值登记(对甲)
|
||||
* @param id
|
||||
*/
|
||||
export const delSettlementValueOwner = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/settlementValueOwner/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
96
src/api/out/settlementValueOwner/types.ts
Normal file
96
src/api/out/settlementValueOwner/types.ts
Normal file
@ -0,0 +1,96 @@
|
||||
export interface SettlementValueOwnerVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 结算产值
|
||||
*/
|
||||
settlementValue: number;
|
||||
|
||||
/**
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
valueType: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
settlementDate: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SettlementValueOwnerForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 结算产值
|
||||
*/
|
||||
settlementValue?: number;
|
||||
|
||||
/**
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
valueType?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
settlementDate?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SettlementValueOwnerQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 结算产值
|
||||
*/
|
||||
settlementValue?: number;
|
||||
|
||||
/**
|
||||
* 1-设计 2-采购 3-施工
|
||||
*/
|
||||
valueType?: string;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
settlementDate?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/out/settlementValueSubcontract/index.ts
Normal file
63
src/api/out/settlementValueSubcontract/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SettlementValueSubcontractVO, SettlementValueSubcontractForm, SettlementValueSubcontractQuery } from '@/api/out/settlementValueSubcontract/types';
|
||||
|
||||
/**
|
||||
* 查询结算产值登记(对乙)列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSettlementValueSubcontract = (query?: SettlementValueSubcontractQuery): AxiosPromise<SettlementValueSubcontractVO[]> => {
|
||||
return request({
|
||||
url: '/out/settlementValueSubcontract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询结算产值登记(对乙)详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSettlementValueSubcontract = (id: string | number): AxiosPromise<SettlementValueSubcontractVO> => {
|
||||
return request({
|
||||
url: '/out/settlementValueSubcontract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增结算产值登记(对乙)
|
||||
* @param data
|
||||
*/
|
||||
export const addSettlementValueSubcontract = (data: SettlementValueSubcontractForm) => {
|
||||
return request({
|
||||
url: '/out/settlementValueSubcontract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改结算产值登记(对乙)
|
||||
* @param data
|
||||
*/
|
||||
export const updateSettlementValueSubcontract = (data: SettlementValueSubcontractForm) => {
|
||||
return request({
|
||||
url: '/out/settlementValueSubcontract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除结算产值登记(对乙)
|
||||
* @param id
|
||||
*/
|
||||
export const delSettlementValueSubcontract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/settlementValueSubcontract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
201
src/api/out/settlementValueSubcontract/types.ts
Normal file
201
src/api/out/settlementValueSubcontract/types.ts
Normal file
@ -0,0 +1,201 @@
|
||||
export interface SettlementValueSubcontractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 单据编码
|
||||
*/
|
||||
documentCode: string;
|
||||
|
||||
/**
|
||||
* 结算说明
|
||||
*/
|
||||
settlementDescribe: string;
|
||||
|
||||
/**
|
||||
* 结算周期(YYYY-MM)
|
||||
*/
|
||||
settlementMonth: string;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
settlementDate: string;
|
||||
|
||||
/**
|
||||
* 分包单位ID
|
||||
*/
|
||||
contractorId: string | number;
|
||||
|
||||
/**
|
||||
* 分包单位名
|
||||
*/
|
||||
contractorName: string;
|
||||
|
||||
/**
|
||||
* 结算产值
|
||||
*/
|
||||
settlementValue: number;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 合同编码
|
||||
*/
|
||||
contractCode: string;
|
||||
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
contractName: string;
|
||||
|
||||
/**
|
||||
* 合同地址
|
||||
*/
|
||||
contractUrl: string;
|
||||
}
|
||||
|
||||
export interface SettlementValueSubcontractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 产值类型
|
||||
*/
|
||||
valueType?: string;
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 单据编码
|
||||
*/
|
||||
documentCode?: string;
|
||||
|
||||
/**
|
||||
* 结算说明
|
||||
*/
|
||||
settlementDescribe?: string;
|
||||
|
||||
/**
|
||||
* 结算周期(YYYY-MM)
|
||||
*/
|
||||
settlementMonth?: string;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
settlementDate?: string;
|
||||
|
||||
/**
|
||||
* 分包单位ID
|
||||
*/
|
||||
contractorId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包单位名
|
||||
*/
|
||||
contractorName?: string;
|
||||
|
||||
/**
|
||||
* 结算产值
|
||||
*/
|
||||
settlementValue?: number;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 合同编码
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
contractName?: string;
|
||||
|
||||
/**
|
||||
* 合同地址
|
||||
*/
|
||||
contractUrl?: string;
|
||||
}
|
||||
|
||||
export interface SettlementValueSubcontractQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
/**
|
||||
* 产值类型
|
||||
*/
|
||||
valueType?: string;
|
||||
/**
|
||||
* 单据编码
|
||||
*/
|
||||
documentCode?: string;
|
||||
|
||||
/**
|
||||
* 结算说明
|
||||
*/
|
||||
settlementDescribe?: string;
|
||||
|
||||
/**
|
||||
* 结算周期(YYYY-MM)
|
||||
*/
|
||||
settlementMonth?: string;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
settlementDate?: string;
|
||||
|
||||
/**
|
||||
* 分包单位ID
|
||||
*/
|
||||
contractorId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包单位名
|
||||
*/
|
||||
contractorName?: string;
|
||||
|
||||
/**
|
||||
* 结算产值
|
||||
*/
|
||||
settlementValue?: number;
|
||||
|
||||
/**
|
||||
* 合同编码
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
contractName?: string;
|
||||
|
||||
/**
|
||||
* 合同地址
|
||||
*/
|
||||
contractUrl?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
63
src/api/out/valueAllocation/index.ts
Normal file
63
src/api/out/valueAllocation/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ValueAllocationVO, ValueAllocationForm, ValueAllocationQuery } from '@/api/out/valueAllocation/types';
|
||||
|
||||
/**
|
||||
* 查询项目总产值分配列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listValueAllocation = (query?: ValueAllocationQuery): AxiosPromise<ValueAllocationVO[]> => {
|
||||
return request({
|
||||
url: '/out/valueAllocation/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目总产值分配详细
|
||||
* @param id
|
||||
*/
|
||||
export const getValueAllocation = (id: string | number): AxiosPromise<ValueAllocationVO> => {
|
||||
return request({
|
||||
url: '/out/valueAllocation/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增项目总产值分配
|
||||
* @param data
|
||||
*/
|
||||
export const addValueAllocation = (data: ValueAllocationForm) => {
|
||||
return request({
|
||||
url: '/out/valueAllocation',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改项目总产值分配
|
||||
* @param data
|
||||
*/
|
||||
export const updateValueAllocation = (data: ValueAllocationForm) => {
|
||||
return request({
|
||||
url: '/out/valueAllocation',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除项目总产值分配
|
||||
* @param id
|
||||
*/
|
||||
export const delValueAllocation = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/out/valueAllocation/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
155
src/api/out/valueAllocation/types.ts
Normal file
155
src/api/out/valueAllocation/types.ts
Normal file
@ -0,0 +1,155 @@
|
||||
export interface ValueAllocationVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 对甲设计产值
|
||||
*/
|
||||
ownerDesignValue: number;
|
||||
|
||||
/**
|
||||
* 对甲采购产值
|
||||
*/
|
||||
ownerPurchaseValue: number;
|
||||
|
||||
/**
|
||||
* 对甲施工产值
|
||||
*/
|
||||
ownerConstructionValue: number;
|
||||
|
||||
/**
|
||||
* 对甲总产值
|
||||
*/
|
||||
ownerTotalValue: number;
|
||||
|
||||
/**
|
||||
* 对乙设计产值
|
||||
*/
|
||||
subDesignValue: number;
|
||||
|
||||
/**
|
||||
* 对乙采购产值
|
||||
*/
|
||||
subPurchaseValue: number;
|
||||
|
||||
/**
|
||||
* 对乙施工产值
|
||||
*/
|
||||
subConstructionValue: number;
|
||||
|
||||
/**
|
||||
* 对乙总产值
|
||||
*/
|
||||
subTotalValue: number;
|
||||
}
|
||||
|
||||
export interface ValueAllocationForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
valueType?: number;
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 对甲设计产值
|
||||
*/
|
||||
ownerDesignValue?: number;
|
||||
|
||||
/**
|
||||
* 对甲采购产值
|
||||
*/
|
||||
ownerPurchaseValue?: number;
|
||||
|
||||
/**
|
||||
* 对甲施工产值
|
||||
*/
|
||||
ownerConstructionValue?: number;
|
||||
|
||||
/**
|
||||
* 对甲总产值
|
||||
*/
|
||||
ownerTotalValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙设计产值
|
||||
*/
|
||||
subDesignValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙采购产值
|
||||
*/
|
||||
subPurchaseValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙施工产值
|
||||
*/
|
||||
subConstructionValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙总产值
|
||||
*/
|
||||
subTotalValue?: number;
|
||||
}
|
||||
|
||||
export interface ValueAllocationQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
valueType?: number;
|
||||
/**
|
||||
* 对甲设计产值
|
||||
*/
|
||||
ownerDesignValue?: number;
|
||||
|
||||
/**
|
||||
* 对甲采购产值
|
||||
*/
|
||||
ownerPurchaseValue?: number;
|
||||
|
||||
/**
|
||||
* 对甲施工产值
|
||||
*/
|
||||
ownerConstructionValue?: number;
|
||||
|
||||
/**
|
||||
* 对甲总产值
|
||||
*/
|
||||
ownerTotalValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙设计产值
|
||||
*/
|
||||
subDesignValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙采购产值
|
||||
*/
|
||||
subPurchaseValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙施工产值
|
||||
*/
|
||||
subConstructionValue?: number;
|
||||
|
||||
/**
|
||||
* 对乙总产值
|
||||
*/
|
||||
subTotalValue?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
107
src/api/patch/index.ts
Normal file
107
src/api/patch/index.ts
Normal file
@ -0,0 +1,107 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/types';
|
||||
|
||||
/**
|
||||
* 查询派单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMaster = (query?: MasterQuery): AxiosPromise<MasterVO[]> => {
|
||||
return request({
|
||||
url: '/patch/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询派单详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMaster = (id: string | number): AxiosPromise<MasterVO> => {
|
||||
return request({
|
||||
url: '/patch/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增派单
|
||||
* @param data
|
||||
*/
|
||||
export const addMaster = (data: MasterForm) => {
|
||||
return request({
|
||||
url: '/patch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改派单
|
||||
* @param data
|
||||
*/
|
||||
export const updateMaster = (data: MasterForm) => {
|
||||
return request({
|
||||
url: '/patch',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除派单
|
||||
* @param id
|
||||
*/
|
||||
export const delMaster = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/patch/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 完成进度
|
||||
* @param masterId
|
||||
*/
|
||||
export function getProgressDetail(masterId: string | number) {
|
||||
return request({
|
||||
url: `/patch/getProgressList/${masterId}`, // 你的后端进度详情接口地址
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 弹窗新增进度
|
||||
export const addProgress = (data) => {
|
||||
return request({
|
||||
url: '/patch/progress',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
// 弹窗修改进度
|
||||
export const editProgress = (data) => {
|
||||
return request({
|
||||
url: '/patch/editProgress',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
// 删除进度
|
||||
export const deleteProgress = (id) => {
|
||||
return request({
|
||||
url: `/patch/removeProgress/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserName = () => {
|
||||
return request({
|
||||
url: `/patch/findThis`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
141
src/api/patch/types.ts
Normal file
141
src/api/patch/types.ts
Normal file
@ -0,0 +1,141 @@
|
||||
export interface MasterVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName: string;
|
||||
|
||||
/**
|
||||
* 任务描述
|
||||
*/
|
||||
describe: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
pcd: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
act: string;
|
||||
|
||||
/**
|
||||
* 完成进度
|
||||
*/
|
||||
completionProgress: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MasterForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName?: string;
|
||||
|
||||
/**
|
||||
* 任务描述
|
||||
*/
|
||||
describe?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
pcd?: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
act?: string;
|
||||
|
||||
/**
|
||||
* 完成进度
|
||||
*/
|
||||
completionProgress?: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MasterQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName?: string;
|
||||
|
||||
/**
|
||||
* 任务描述
|
||||
*/
|
||||
describe?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
pcd?: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
act?: string;
|
||||
|
||||
/**
|
||||
* 完成进度
|
||||
*/
|
||||
completionProgress?: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
59
src/api/plan/plan/index.ts
Normal file
59
src/api/plan/plan/index.ts
Normal file
@ -0,0 +1,59 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PlanVO, PlanForm, PlanQuery } from '@/api/plan/plan/types';
|
||||
|
||||
/**
|
||||
* 查询招标计划列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPlan = (query?: PlanQuery): AxiosPromise<PlanVO[]> => {
|
||||
return request({
|
||||
url: '/plan/plan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询招标计划详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPlan = (id: string | number): AxiosPromise<PlanVO> => {
|
||||
return request({
|
||||
url: '/plan/plan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增招标计划
|
||||
* @param data
|
||||
*/
|
||||
export const addPlan = (data: PlanForm) => {
|
||||
return request({
|
||||
url: '/plan/plan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改招标计划
|
||||
* @param data
|
||||
*/
|
||||
export const updatePlan = (data: PlanForm) => {
|
||||
return request({
|
||||
url: '/plan/plan',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export const getSegmentedIndicatorPlanning = (id) => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
161
src/api/plan/plan/types.ts
Normal file
161
src/api/plan/plan/types.ts
Normal file
@ -0,0 +1,161 @@
|
||||
export interface PlanVO {
|
||||
/**
|
||||
* 招标计划ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 分包类型
|
||||
*/
|
||||
subpackageType: string;
|
||||
|
||||
/**
|
||||
* 分包名称
|
||||
*/
|
||||
subpackageName: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subpackageContext: string;
|
||||
|
||||
/**
|
||||
* 限价
|
||||
*/
|
||||
limitPrice: number;
|
||||
|
||||
/**
|
||||
* 计划招标时间
|
||||
*/
|
||||
planTenderTime: string;
|
||||
|
||||
/**
|
||||
* 招标方式
|
||||
*/
|
||||
tenderMethod: string;
|
||||
|
||||
/**
|
||||
* 招标文件(多个)
|
||||
*/
|
||||
tenderFile: string;
|
||||
|
||||
/**
|
||||
* 中标文件(单个)
|
||||
*/
|
||||
bidFile: string | number;
|
||||
|
||||
/**
|
||||
* 合同额
|
||||
*/
|
||||
contract: number;
|
||||
|
||||
}
|
||||
|
||||
export interface PlanForm extends BaseEntity {
|
||||
/**
|
||||
* 招标计划ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 分包类型
|
||||
*/
|
||||
subpackageType?: string;
|
||||
|
||||
/**
|
||||
* 分包名称
|
||||
*/
|
||||
subpackageName?: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subpackageContext?: string;
|
||||
|
||||
/**
|
||||
* 限价
|
||||
*/
|
||||
limitPrice?: number;
|
||||
|
||||
/**
|
||||
* 计划招标时间
|
||||
*/
|
||||
planTenderTime?: string;
|
||||
|
||||
/**
|
||||
* 招标方式
|
||||
*/
|
||||
tenderMethod?: string;
|
||||
|
||||
/**
|
||||
* 招标文件(多个)
|
||||
*/
|
||||
tenderFile?: string;
|
||||
|
||||
/**
|
||||
* 中标文件(单个)
|
||||
*/
|
||||
bidFile?: string | number;
|
||||
|
||||
/**
|
||||
* 合同额
|
||||
*/
|
||||
contract?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface PlanQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 分包类型
|
||||
*/
|
||||
subpackageType?: string;
|
||||
|
||||
/**
|
||||
* 分包名称
|
||||
*/
|
||||
subpackageName?: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subpackageContext?: string;
|
||||
|
||||
/**
|
||||
* 限价
|
||||
*/
|
||||
limitPrice?: number;
|
||||
|
||||
/**
|
||||
* 计划招标时间
|
||||
*/
|
||||
planTenderTime?: string;
|
||||
|
||||
/**
|
||||
* 招标方式
|
||||
*/
|
||||
tenderMethod?: string;
|
||||
|
||||
/**
|
||||
* 招标文件(多个)
|
||||
*/
|
||||
tenderFile?: string;
|
||||
|
||||
/**
|
||||
* 中标文件(单个)
|
||||
*/
|
||||
bidFile?: string | number;
|
||||
|
||||
/**
|
||||
* 合同额
|
||||
*/
|
||||
contract?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
73
src/api/progress/constructionSchedulePlan/index.ts
Normal file
73
src/api/progress/constructionSchedulePlan/index.ts
Normal file
@ -0,0 +1,73 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ConstructionSchedulePlanVO, ConstructionSchedulePlanForm, ConstructionSchedulePlanQuery } from '@/api/progress/constructionSchedulePlan/types';
|
||||
|
||||
/**
|
||||
* 查询施工进度计划列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listConstructionSchedulePlan = (query?: ConstructionSchedulePlanQuery): AxiosPromise<ConstructionSchedulePlanVO[]> => {
|
||||
return request({
|
||||
url: '/progress/constructionSchedulePlan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工进度计划详细
|
||||
* @param id
|
||||
*/
|
||||
export const getConstructionSchedulePlan = (id: string | number): AxiosPromise<ConstructionSchedulePlanVO> => {
|
||||
return request({
|
||||
url: '/progress/constructionSchedulePlan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增施工进度计划
|
||||
* @param data
|
||||
*/
|
||||
export const addConstructionSchedulePlan = (data: ConstructionSchedulePlanForm) => {
|
||||
return request({
|
||||
url: '/progress/constructionSchedulePlan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改施工进度计划
|
||||
* @param data
|
||||
*/
|
||||
export const updateConstructionSchedulePlan = (data: ConstructionSchedulePlanForm) => {
|
||||
return request({
|
||||
url: '/progress/constructionSchedulePlan',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除施工进度计划
|
||||
* @param id
|
||||
*/
|
||||
export const delConstructionSchedulePlan = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/progress/constructionSchedulePlan/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取项目结构
|
||||
* @param id
|
||||
*/
|
||||
export const getProjectStructure = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/project/projectStructure/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
145
src/api/progress/constructionSchedulePlan/types.ts
Normal file
145
src/api/progress/constructionSchedulePlan/types.ts
Normal file
@ -0,0 +1,145 @@
|
||||
export interface ConstructionSchedulePlanVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
parentId: string | number;
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
nodeName: string;
|
||||
|
||||
/**
|
||||
* 对应项目结构
|
||||
*/
|
||||
projectStructure: number;
|
||||
|
||||
/**
|
||||
* 预计开始时间
|
||||
*/
|
||||
planStartDate: string;
|
||||
|
||||
/**
|
||||
* 预计结束时间
|
||||
*/
|
||||
planEndDate: string;
|
||||
|
||||
/**
|
||||
* 实际开始时间
|
||||
*/
|
||||
practicalStartDate: string;
|
||||
|
||||
/**
|
||||
* 实际结束时间
|
||||
*/
|
||||
practicalEndDate: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 子对象
|
||||
*/
|
||||
children: ConstructionSchedulePlanVO[];
|
||||
}
|
||||
|
||||
export interface ConstructionSchedulePlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
parentId?: string | number;
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pId?: string | number;
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
nodeName?: string;
|
||||
|
||||
/**
|
||||
* 对应项目结构
|
||||
*/
|
||||
projectStructure?: number;
|
||||
|
||||
/**
|
||||
* 预计开始时间
|
||||
*/
|
||||
planStartDate?: string;
|
||||
|
||||
/**
|
||||
* 预计结束时间
|
||||
*/
|
||||
planEndDate?: string;
|
||||
|
||||
/**
|
||||
* 实际开始时间
|
||||
*/
|
||||
practicalStartDate?: string;
|
||||
|
||||
/**
|
||||
* 实际结束时间
|
||||
*/
|
||||
practicalEndDate?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ConstructionSchedulePlanQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
nodeName?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@ -119,6 +119,18 @@ export const workScheduleList = (query: workScheduleListQuery): AxiosPromise<wor
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度计划详细详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const workScheduleListDetail = (id: string): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/list',
|
||||
method: 'get',
|
||||
params: { progressCategoryId: id }
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度类别坐标信息
|
||||
* @param params
|
||||
|
98
src/api/progress/progressCategory/index.ts
Normal file
98
src/api/progress/progressCategory/index.ts
Normal file
@ -0,0 +1,98 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ProgressCategoryVO, ProgressCategoryForm, ProgressCategoryQuery } from '@/api/progress/progressCategory/types';
|
||||
|
||||
/**
|
||||
* 查询分项工程单价列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listProgressCategory = (id?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/listByParent/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询分项工程单价详细
|
||||
* @param id
|
||||
*/
|
||||
export const getProgressCategory = (id: string | number): AxiosPromise<ProgressCategoryVO> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增分项工程单价
|
||||
* @param data
|
||||
*/
|
||||
export const addProgressCategory = (data: ProgressCategoryForm) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改分项工程单价
|
||||
* @param data
|
||||
*/
|
||||
export const updateProgressCategory = (data: ProgressCategoryForm) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/price',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除分项工程单价
|
||||
* @param id
|
||||
*/
|
||||
export const delProgressCategory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
//下载
|
||||
export const downloadProgressCategory = (data) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/export',
|
||||
method: 'post',
|
||||
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
|
||||
}
|
||||
});
|
||||
};
|
263
src/api/progress/progressCategory/types.ts
Normal file
263
src/api/progress/progressCategory/types.ts
Normal file
@ -0,0 +1,263 @@
|
||||
export interface ProgressCategoryVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
parentId: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId: string | number;
|
||||
|
||||
/**
|
||||
* 方阵名称
|
||||
*/
|
||||
matrixName: string;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 综合单价
|
||||
*/
|
||||
unitPrice: number;
|
||||
|
||||
/**
|
||||
* 产值金额
|
||||
*/
|
||||
outputValue: number;
|
||||
|
||||
/**
|
||||
* 总数量/百分比
|
||||
*/
|
||||
total: number;
|
||||
|
||||
/**
|
||||
* 已完成数量/百分比
|
||||
*/
|
||||
completed: number;
|
||||
|
||||
/**
|
||||
* 计划总数量/百分比
|
||||
*/
|
||||
planTotal: number;
|
||||
|
||||
/**
|
||||
* 是否超期(0否 1是)
|
||||
*/
|
||||
isDelay: string;
|
||||
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
workType: string;
|
||||
|
||||
/**
|
||||
* 完成状态(0未开始 1进行中 2已完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 子对象
|
||||
*/
|
||||
children: ProgressCategoryVO[];
|
||||
}
|
||||
|
||||
export interface ProgressCategoryForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
constructionPrice?: string | number;
|
||||
ownerPrice?: string | number;
|
||||
relevancyStructure?: string;
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId?: string | number;
|
||||
|
||||
/**
|
||||
* 方阵名称
|
||||
*/
|
||||
matrixName?: string;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 综合单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 产值金额
|
||||
*/
|
||||
outputValue?: number;
|
||||
|
||||
/**
|
||||
* 总数量/百分比
|
||||
*/
|
||||
total?: number;
|
||||
|
||||
/**
|
||||
* 已完成数量/百分比
|
||||
*/
|
||||
completed?: number;
|
||||
|
||||
/**
|
||||
* 计划总数量/百分比
|
||||
*/
|
||||
planTotal?: number;
|
||||
|
||||
/**
|
||||
* 是否超期(0否 1是)
|
||||
*/
|
||||
isDelay?: string;
|
||||
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
workType?: string;
|
||||
|
||||
/**
|
||||
* 完成状态(0未开始 1进行中 2已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ProgressCategoryQuery {
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId?: string | number;
|
||||
|
||||
/**
|
||||
* 方阵名称
|
||||
*/
|
||||
matrixName?: string;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 综合单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 产值金额
|
||||
*/
|
||||
outputValue?: number;
|
||||
|
||||
/**
|
||||
* 总数量/百分比
|
||||
*/
|
||||
total?: number;
|
||||
|
||||
/**
|
||||
* 已完成数量/百分比
|
||||
*/
|
||||
completed?: number;
|
||||
|
||||
/**
|
||||
* 计划总数量/百分比
|
||||
*/
|
||||
planTotal?: number;
|
||||
|
||||
/**
|
||||
* 是否超期(0否 1是)
|
||||
*/
|
||||
isDelay?: string;
|
||||
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
workType?: string;
|
||||
|
||||
/**
|
||||
* 完成状态(0未开始 1进行中 2已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@ -1,6 +1,10 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ProgressCategoryTemplateVO, ProgressCategoryTemplateForm, ProgressCategoryTemplateQuery } from '@/api/progress/progressCategoryTemplate/types';
|
||||
import {
|
||||
ProgressCategoryTemplateVO,
|
||||
ProgressCategoryTemplateForm,
|
||||
ProgressCategoryTemplateQuery
|
||||
} from '@/api/progress/progressCategoryTemplate/types';
|
||||
|
||||
/**
|
||||
* 查询进度类别模版列表
|
||||
@ -61,3 +65,22 @@ export const delProgressCategoryTemplate = (id: string | number | Array<string |
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
export const getTabList = (id: string) => {
|
||||
return request({
|
||||
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;
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
|
@ -28,10 +28,10 @@ export interface ContractorVO {
|
||||
* 管理人联系电话
|
||||
*/
|
||||
custodianPhone: string;
|
||||
/**
|
||||
/**
|
||||
* 分包类型
|
||||
*/
|
||||
contractorType?: string;
|
||||
contractorType?: string;
|
||||
|
||||
/**
|
||||
* 公司相关文件
|
||||
@ -54,6 +54,14 @@ export interface ContractorForm extends BaseEntity {
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
@ -127,10 +135,10 @@ export interface ContractorQuery extends PageQuery {
|
||||
* 管理人联系电话
|
||||
*/
|
||||
custodianPhone?: string;
|
||||
/**
|
||||
/**
|
||||
* 分包类型
|
||||
*/
|
||||
contractorType?: string;
|
||||
contractorType?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
|
@ -97,8 +97,6 @@ export const addProjectFacilities = (data: any) => {
|
||||
* @param data
|
||||
*/
|
||||
export const addProjectPilePoint = (data: any) => {
|
||||
console.log('🚀 ~ addProjectPilePoint ~ data:', data);
|
||||
|
||||
return request({
|
||||
url: '/facility/photovoltaicPanelPoint/parts/geoJson',
|
||||
method: 'post',
|
||||
@ -175,3 +173,26 @@ export const getChildProject = (id: string | number): AxiosPromise<childProjectQ
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 上传项目文件
|
||||
* @param data
|
||||
*/
|
||||
export const uploadProjectFile = (data: any) => {
|
||||
return request({
|
||||
url: '/project/project/save/tender/file',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 切换项目
|
||||
* @param id
|
||||
*/
|
||||
export const changeProject = (id: string | number) => {
|
||||
return request({
|
||||
url: '/project/project/changeProject/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -8,6 +8,7 @@ export interface ProjectVO {
|
||||
* 项目名称
|
||||
*/
|
||||
projectName: string;
|
||||
tenderFiles: string;
|
||||
|
||||
/**
|
||||
* 项目简称
|
||||
@ -128,10 +129,10 @@ export interface locationType {
|
||||
projectSite: string;
|
||||
}
|
||||
|
||||
export interface childProjectQuery{
|
||||
projectName:string;
|
||||
pid:string;
|
||||
id?:string
|
||||
export interface childProjectQuery {
|
||||
projectName: string;
|
||||
pid: string;
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export interface ProjectForm extends BaseEntity {
|
||||
|
@ -53,6 +53,7 @@ export interface QualityInspectionForm extends BaseEntity {
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
rectificationUnit?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
|
@ -140,7 +140,10 @@ export interface SafetyInspectionForm extends BaseEntity {
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 整改单位类型
|
||||
*/
|
||||
rectificationUnit?: string;
|
||||
/**
|
||||
* 父id(默认为0)
|
||||
*/
|
||||
|
63
src/api/supplierInput/supplierInput/index.ts
Normal file
63
src/api/supplierInput/supplierInput/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SupplierInputVO, SupplierInputForm, SupplierInputQuery } from '@/api/supplierInput/supplierInput/types';
|
||||
|
||||
/**
|
||||
* 查询供应商入库列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSupplierInput = (query?: any): AxiosPromise<SupplierInputVO[]> => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询供应商入库详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSupplierInput = (id: string | number): AxiosPromise<SupplierInputVO> => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增供应商入库
|
||||
* @param data
|
||||
*/
|
||||
export const addSupplierInput = (data: SupplierInputForm) => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改供应商入库
|
||||
* @param data
|
||||
*/
|
||||
export const updateSupplierInput = (data: SupplierInputForm) => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除供应商入库
|
||||
* @param id
|
||||
*/
|
||||
export const delSupplierInput = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/supplierInput/supplierInput/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
55
src/api/supplierInput/supplierInput/types.ts
Normal file
55
src/api/supplierInput/supplierInput/types.ts
Normal file
@ -0,0 +1,55 @@
|
||||
export interface SupplierInputVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 供应商类型
|
||||
*/
|
||||
supplierType: string;
|
||||
|
||||
/**
|
||||
* 入库资料
|
||||
*/
|
||||
inputFile: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SupplierInputForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 供应商类型
|
||||
*/
|
||||
supplierType?: string;
|
||||
|
||||
/**
|
||||
* 入库资料
|
||||
*/
|
||||
inputFile?: string;
|
||||
}
|
||||
|
||||
export interface SupplierInputQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 供应商类型
|
||||
*/
|
||||
supplierType?: string;
|
||||
|
||||
/**
|
||||
* 入库资料
|
||||
*/
|
||||
inputFile?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user