合并
This commit is contained in:
63
src/api/patch/index.ts
Normal file
63
src/api/patch/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/master/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'
|
||||
});
|
||||
};
|
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;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/plan/plan/index.ts
Normal file
63
src/api/plan/plan/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
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
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除招标计划
|
||||
* @param id
|
||||
*/
|
||||
export const delPlan = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/plan/plan/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
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;
|
||||
}
|
||||
|
||||
|
||||
|
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?: SupplierInputQuery): 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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user