调整
This commit is contained in:
@@ -4,6 +4,19 @@ import type {
|
||||
TowerEquipment,
|
||||
TowerEquipmentParam
|
||||
} from '@/api/tower/equipment/model';
|
||||
/**
|
||||
* 设备数据
|
||||
*/
|
||||
export async function towerEquipmentData() {
|
||||
const res = await request.get(
|
||||
'/tower/tower-equipment/data'
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询设备
|
||||
*/
|
||||
@@ -134,3 +147,16 @@ export async function removeBatchTowerEquipment(data: (number | undefined)[]) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function towerEquipmentQr(params: TowerEquipmentParam) {
|
||||
const res = await request.get<ApiResult<unknown>>(
|
||||
'/tower/tower-equipment/qr',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -1,55 +1,61 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { PageParam } from "@/api";
|
||||
import { Project } from "@/api/tower/project/model";
|
||||
|
||||
export interface TowerEquipment {
|
||||
equipmentId?: number;
|
||||
name?: string;
|
||||
model?: string;
|
||||
equipmentNo?: string;
|
||||
factoryNo?: string;
|
||||
factoryDate?: string;
|
||||
manufactor?: string;
|
||||
lifeYear?: number;
|
||||
surplusYear?: number;
|
||||
scrapDate?: string;
|
||||
beianNo?: string;
|
||||
licenceNo?: string;
|
||||
company?: string;
|
||||
organization?: string;
|
||||
warehouse?: string;
|
||||
source?: string;
|
||||
filingNo?: string;
|
||||
machineNo?: string;
|
||||
maxLiftingHeight?: string;
|
||||
armLength?: string;
|
||||
isOutOrg?: boolean;
|
||||
buyDate?: string;
|
||||
currentLocation?: string;
|
||||
designHeight?: number;
|
||||
height?: number;
|
||||
ratedLoad?: string;
|
||||
files?: string;
|
||||
file1?: string;
|
||||
file2?: string;
|
||||
file3?: string;
|
||||
file4?: string;
|
||||
file5?: string;
|
||||
file6?: string;
|
||||
file7?: string;
|
||||
users?: string;
|
||||
status?: number;
|
||||
comments?: string;
|
||||
userId?: number;
|
||||
deleted?: number;
|
||||
tenantId?: number;
|
||||
createTime?: number;
|
||||
maxRatedLoad?: string;
|
||||
equipmentId?: number;
|
||||
name?: string;
|
||||
model?: string;
|
||||
equipmentNo?: string;
|
||||
factoryNo?: string;
|
||||
factoryDate?: string;
|
||||
manufactor?: string;
|
||||
lifeYear?: any;
|
||||
surplusYear?: number;
|
||||
scrapDate?: string;
|
||||
beianNo?: string;
|
||||
licenceNo?: string;
|
||||
company?: string;
|
||||
organization?: string;
|
||||
warehouse?: string;
|
||||
source?: string;
|
||||
filingNo?: string;
|
||||
machineNo?: string;
|
||||
maxLiftingHeight?: string;
|
||||
armLength?: string;
|
||||
isOutOrg?: boolean;
|
||||
buyDate?: string;
|
||||
currentLocation?: string;
|
||||
designHeight?: number;
|
||||
height?: number;
|
||||
ratedLoad?: string;
|
||||
files?: string;
|
||||
file1?: string;
|
||||
file2?: string;
|
||||
file3?: string;
|
||||
file4?: string;
|
||||
file5?: string;
|
||||
file6?: string;
|
||||
file7?: string;
|
||||
users?: string;
|
||||
status?: number;
|
||||
comments?: string;
|
||||
userId?: number;
|
||||
deleted?: number;
|
||||
tenantId?: number;
|
||||
createTime?: number;
|
||||
maxRatedLoad?: string;
|
||||
securityStatus?: string;
|
||||
projectName?: string;
|
||||
competentDepartment?: string;
|
||||
projectList?: Project[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface TowerEquipmentParam extends PageParam {
|
||||
equipmentId?: number;
|
||||
name?: string;
|
||||
status?: number;
|
||||
equipmentId?: number;
|
||||
name?: string;
|
||||
status?: number;
|
||||
yearFilter?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user