修改
This commit is contained in:
72
src/api/mechanical/mechanicalrewriting/index.ts
Normal file
72
src/api/mechanical/mechanicalrewriting/index.ts
Normal file
@ -0,0 +1,72 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MechanicalrewritingVO, MechanicalrewritingForm, MechanicalrewritingQuery } from '@/api/mechanical/mechanicalrewriting/types';
|
||||
|
||||
/**
|
||||
* 查询机械台账列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMechanicalrewriting = (query?: MechanicalrewritingQuery): AxiosPromise<MechanicalrewritingVO[]> => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicalrewriting/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询机械台账详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMechanicalrewriting = (id: string | number): AxiosPromise<MechanicalrewritingVO> => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicalrewriting/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增机械台账
|
||||
* @param data
|
||||
*/
|
||||
export const addMechanicalrewriting = (data: MechanicalrewritingForm) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicalrewriting',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改机械台账
|
||||
* @param data
|
||||
*/
|
||||
export const updateMechanicalrewriting = (data: MechanicalrewritingForm) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicalrewriting',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除机械台账
|
||||
* @param id
|
||||
*/
|
||||
export const delMechanicalrewriting = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicalrewriting/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
//获取类型
|
||||
export const getType = (query?: any) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicaltype/getTree',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
306
src/api/mechanical/mechanicalrewriting/types.ts
Normal file
306
src/api/mechanical/mechanicalrewriting/types.ts
Normal file
@ -0,0 +1,306 @@
|
||||
export interface MechanicalrewritingVO {
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 班组名称
|
||||
*/
|
||||
teamName: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
devicename: string;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
deviceType: string;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceNumber: string;
|
||||
|
||||
/**
|
||||
* 入场日期
|
||||
*/
|
||||
entryTime: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 生产能力
|
||||
*/
|
||||
production: string;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
plateNumber: string;
|
||||
|
||||
/**
|
||||
* 设备管理员
|
||||
*/
|
||||
deviceKeeper: string;
|
||||
|
||||
/**
|
||||
* 车辆行驶证
|
||||
*/
|
||||
drivingLicence: string;
|
||||
|
||||
/**
|
||||
* 新旧程度
|
||||
*/
|
||||
degree: string;
|
||||
|
||||
/**
|
||||
* 车辆容量
|
||||
*/
|
||||
vehicleCapacity: string;
|
||||
|
||||
/**
|
||||
* 车辆净重
|
||||
*/
|
||||
suttle: string;
|
||||
|
||||
/**
|
||||
* 铭牌
|
||||
*/
|
||||
nameplate: string;
|
||||
|
||||
/**
|
||||
* 合格证书
|
||||
*/
|
||||
qualification: string;
|
||||
|
||||
/**
|
||||
* 设备照片
|
||||
*/
|
||||
equipmentPhoto: string;
|
||||
|
||||
/**
|
||||
* 检验报告
|
||||
*/
|
||||
verificationReport: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MechanicalrewritingForm extends BaseEntity {
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组名称
|
||||
*/
|
||||
teamName?: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
devicename?: string;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
deviceType?: string;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceNumber?: string;
|
||||
|
||||
/**
|
||||
* 入场日期
|
||||
*/
|
||||
entryTime?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 生产能力
|
||||
*/
|
||||
production?: string;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
plateNumber?: string;
|
||||
|
||||
/**
|
||||
* 设备管理员
|
||||
*/
|
||||
deviceKeeper?: string;
|
||||
|
||||
/**
|
||||
* 车辆行驶证
|
||||
*/
|
||||
drivingLicence?: string;
|
||||
|
||||
/**
|
||||
* 新旧程度
|
||||
*/
|
||||
degree?: string;
|
||||
|
||||
/**
|
||||
* 车辆容量
|
||||
*/
|
||||
vehicleCapacity?: string;
|
||||
|
||||
/**
|
||||
* 车辆净重
|
||||
*/
|
||||
suttle?: string;
|
||||
|
||||
/**
|
||||
* 铭牌
|
||||
*/
|
||||
nameplate?: string;
|
||||
|
||||
/**
|
||||
* 合格证书
|
||||
*/
|
||||
qualification?: string;
|
||||
|
||||
/**
|
||||
* 设备照片
|
||||
*/
|
||||
equipmentPhoto?: string;
|
||||
|
||||
/**
|
||||
* 检验报告
|
||||
*/
|
||||
verificationReport?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MechanicalrewritingQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组名称
|
||||
*/
|
||||
teamName?: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
devicename?: string;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
deviceType?: string;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceNumber?: string;
|
||||
|
||||
/**
|
||||
* 入场日期
|
||||
*/
|
||||
entryTime?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 生产能力
|
||||
*/
|
||||
production?: string;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
plateNumber?: string;
|
||||
|
||||
/**
|
||||
* 设备管理员
|
||||
*/
|
||||
deviceKeeper?: string;
|
||||
|
||||
/**
|
||||
* 车辆行驶证
|
||||
*/
|
||||
drivingLicence?: string;
|
||||
|
||||
/**
|
||||
* 新旧程度
|
||||
*/
|
||||
degree?: string;
|
||||
|
||||
/**
|
||||
* 车辆容量
|
||||
*/
|
||||
vehicleCapacity?: string;
|
||||
|
||||
/**
|
||||
* 车辆净重
|
||||
*/
|
||||
suttle?: string;
|
||||
|
||||
/**
|
||||
* 铭牌
|
||||
*/
|
||||
nameplate?: string;
|
||||
|
||||
/**
|
||||
* 合格证书
|
||||
*/
|
||||
qualification?: string;
|
||||
|
||||
/**
|
||||
* 设备照片
|
||||
*/
|
||||
equipmentPhoto?: string;
|
||||
|
||||
/**
|
||||
* 检验报告
|
||||
*/
|
||||
verificationReport?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
63
src/api/mechanical/mechanicaltype/index.ts
Normal file
63
src/api/mechanical/mechanicaltype/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MechanicaltypeVO, MechanicaltypeForm, MechanicaltypeQuery } from '@/api/mechanical/mechanicaltype/types';
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMechanicaltype = (query?: MechanicaltypeQuery): AxiosPromise<MechanicaltypeVO[]> => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicaltype/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设备类型详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMechanicaltype = (id: string | number): AxiosPromise<MechanicaltypeVO> => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicaltype/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
* @param data
|
||||
*/
|
||||
export const addMechanicaltype = (data: MechanicaltypeForm) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicaltype',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
* @param data
|
||||
*/
|
||||
export const updateMechanicaltype = (data: MechanicaltypeForm) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicaltype',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设备类型
|
||||
* @param id
|
||||
*/
|
||||
export const delMechanicaltype = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/mechanical/mechanicaltype/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
129
src/api/mechanical/mechanicaltype/types.ts
Normal file
129
src/api/mechanical/mechanicaltype/types.ts
Normal file
@ -0,0 +1,129 @@
|
||||
export interface MechanicaltypeVO {
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
code: string;
|
||||
|
||||
/**
|
||||
* 父编码
|
||||
*/
|
||||
pcode: string;
|
||||
|
||||
/**
|
||||
* 大
|
||||
*/
|
||||
largeclass: string;
|
||||
|
||||
/**
|
||||
* 中
|
||||
*/
|
||||
middleclass: string | number;
|
||||
|
||||
/**
|
||||
* 子类
|
||||
*/
|
||||
subclass: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 全名
|
||||
*/
|
||||
fullName: string;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
deviceType?: string;
|
||||
}
|
||||
|
||||
export interface MechanicaltypeForm extends BaseEntity {
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* 父编码
|
||||
*/
|
||||
pcode?: string;
|
||||
|
||||
/**
|
||||
* 大
|
||||
*/
|
||||
largeclass?: string;
|
||||
|
||||
/**
|
||||
* 中
|
||||
*/
|
||||
middleclass?: string | number;
|
||||
|
||||
/**
|
||||
* 子类
|
||||
*/
|
||||
subclass?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 全名
|
||||
*/
|
||||
fullName?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
deviceType?: string;
|
||||
}
|
||||
|
||||
export interface MechanicaltypeQuery extends PageQuery {
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* 父编码
|
||||
*/
|
||||
pcode?: string;
|
||||
|
||||
/**
|
||||
* 大
|
||||
*/
|
||||
largeclass?: string;
|
||||
|
||||
/**
|
||||
* 中
|
||||
*/
|
||||
middleclass?: string | number;
|
||||
|
||||
/**
|
||||
* 子类
|
||||
*/
|
||||
subclass?: string;
|
||||
|
||||
/**
|
||||
* 全名
|
||||
*/
|
||||
fullName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
@ -23,7 +23,7 @@ export const projectProgress = (query?: any): any => {
|
||||
|
||||
export const outpuProgress = (query?: any): any => {
|
||||
return request({
|
||||
url: '/enterprise/big/screen/projectOutputValueComparison',
|
||||
url: '/enterprise/big/screen/projectProgressCapacity',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user