feat(qms/api): 新增qms专用物料、工序、工位和供应商相关接口及类型定义

- 新增物料信息相关接口和类型定义
- 新增工序信息相关接口和类型定义
- 新增工位信息相关接口和类型定义
- 新增供应商信息相关接口和类型定义
master
zch 4 weeks ago
parent 918e263f5b
commit ecdc504d08

@ -0,0 +1,78 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { BaseMaterialInfoVO, BaseMaterialInfoForm, BaseMaterialInfoQuery } from '@/api/qms/baseMaterialInfo/types';
/**
*
* @param query
* @returns {*}
*/
export const listBaseMaterialInfo = (query?: BaseMaterialInfoQuery): AxiosPromise<BaseMaterialInfoVO[]> => {
return request({
url: '/qms/baseMaterialInfo/list',
method: 'get',
params: query
});
};
/**
*
* @param materialId
*/
export const getBaseMaterialInfo = (materialId: string | number): AxiosPromise<BaseMaterialInfoVO> => {
return request({
url: '/qms/baseMaterialInfo/' + materialId,
method: 'get'
});
};
/**
*
* @param data
*/
export const addBaseMaterialInfo = (data: BaseMaterialInfoForm) => {
return request({
url: '/qms/baseMaterialInfo',
method: 'post',
data: data
});
};
/**
*
* @param data
*/
export const updateBaseMaterialInfo = (data: BaseMaterialInfoForm) => {
return request({
url: '/qms/baseMaterialInfo',
method: 'put',
data: data
});
};
/**
*
* @param materialId
*/
export const delBaseMaterialInfo = (materialId: string | number | Array<string | number>) => {
return request({
url: '/qms/baseMaterialInfo/' + materialId,
method: 'delete'
});
};
/**
*
* @param query
* @returns {*}
*/
export function getBaseMaterialInfoList (query) {
return request({
url: '/qms/baseMaterialInfo/getBaseMaterialInfoList',
method: 'get',
params: query
});
};

@ -0,0 +1,801 @@
export interface BaseMaterialInfoVO {
/**
*
*/
materialId: string | number;
/**
*
*/
tenantId: string | number;
/**
* ERP
*/
erpId: string | number;
/**
*
*/
materialCode: string;
/**
*
*/
oldMaterialCode: string;
/**
*
*/
materialName: string;
/**
* ID
*/
materialTypeId: string | number;
/**
* ()
*/
materialCategoryId: string;
/**
*
*/
materialSubclass: string;
/**
* (0 1)
*/
batchFlag: string;
/**
*
*/
batchAmount: number;
/**
* ID
*/
materialUnitId: string | number;
/**
*
*/
materialUnit: string;
/**
*
*/
materialMatkl: string;
/**
*
*/
materialSpec: string;
/**
*
*/
netWeight: number;
/**
*
*/
grossWeight: number;
/**
* (1 0)
*/
alwaysFlag: string;
/**
*
*/
factoryId: string | number;
/**
*
*/
createOrgId: string | number;
/**
* 使
*/
useOrgId: string | number;
/**
* 线
*/
prodLineId: string | number;
/**
* 1 0
*/
activeFlag: string;
/**
* (0 1)
*/
deletedFlag: string;
/**
*
*/
purchasePriceUnitId: string | number;
/**
*
*/
approveDate: string;
/**
* erp
*/
erpModifyDate: string;
/**
*
*/
maxStockAmount: number;
/**
*
*/
minStockAmount: number;
/**
*
*/
safeStockAmount: number;
/**
* (1 0)
*/
applyFlag: string;
/**
* 1ERP 2 3MES
*/
materialClassfication: string;
/**
* (1 0)
*/
autoOutstockFlag: string;
/**
* (1 0)
*/
accessoriesFlag: string;
/**
* (1 0)
*/
lowValueConsumableFlag: string;
/**
*
*/
brand: string;
/**
*
*/
plyrating: string;
/**
*
*/
pattern: string;
/**
*
*/
speedLevel: string;
/**
*
*/
load: string;
/**
* 1 2 3
*/
tireMarkings: string;
/**
*
*/
minParkingTime: number;
/**
*
*/
maxParkingTime: number;
/**
*
*/
standardWeight: number;
/**
*
*/
weightUpperLimit: number;
/**
*
*/
weightLowerLimit: number;
/**
* (0 1)
*/
innerTubeFlag: string;
/**
* (0 1)
*/
saleType: string;
/**
*
*/
remark: string;
/**
*
*/
createDept: number;
/**
*
*/
createBy: number;
/**
*
*/
createTime: string;
/**
*
*/
updateBy: number;
/**
*
*/
updateTime: string;
/**
*
*/
factoryName: string;//连表查询映射字段
//注意"e":以下两个物料类型名称BaseMaterialType实体类中为matrialTypeIdBaseMaterialInfo实体类中为materialTypeId
/**
*
*/
matrialTypeName: string;//连表查询映射字段
/**
*
*/
materialTypeName: string;//连表查询映射字段
/**
*
*/
materialCategoryName: string;
}
export interface BaseMaterialInfoForm extends BaseEntity {
/**
*
*/
materialId?: string | number;
/**
* ERP
*/
erpId?: string | number;
/**
*
*/
materialCode?: string;
/**
*
*/
oldMaterialCode?: string;
/**
*
*/
materialName?: string;
/**
* ID
*/
materialTypeId?: string | number;
/**
* ()
*/
materialCategoryId: string;
/**
*
*/
materialSubclass?: string;
/**
* (0 1)
*/
batchFlag?: string;
/**
*
*/
batchAmount?: number;
/**
* ID
*/
materialUnitId?: string | number;
/**
*
*/
materialUnit?: string;
/**
*
*/
materialMatkl?: string;
/**
*
*/
materialSpec?: string;
/**
*
*/
netWeight?: number;
/**
*
*/
grossWeight?: number;
/**
* (1 0)
*/
alwaysFlag?: string;
/**
*
*/
factoryId?: string | number;
/**
*
*/
createOrgId?: string | number;
/**
* 使
*/
useOrgId?: string | number;
/**
* 线
*/
prodLineId?: string | number;
/**
* 1 0
*/
activeFlag?: string;
/**
* (0 1)
*/
deletedFlag?: string;
/**
*
*/
purchasePriceUnitId?: string | number;
/**
*
*/
approveDate?: string;
/**
* erp
*/
erpModifyDate?: string;
/**
*
*/
maxStockAmount?: number;
/**
*
*/
minStockAmount?: number;
/**
*
*/
safeStockAmount?: number;
/**
* (1 0)
*/
applyFlag?: string;
/**
* 1ERP 2 3MES
*/
materialClassfication?: string;
/**
* (1 0)
*/
autoOutstockFlag?: string;
/**
* (1 0)
*/
accessoriesFlag?: string;
/**
* (1 0)
*/
lowValueConsumableFlag?: string;
/**
*
*/
brand?: string;
/**
*
*/
plyrating?: string;
/**
*
*/
pattern?: string;
/**
*
*/
speedLevel?: string;
/**
*
*/
load?: string;
/**
* 1 2 3
*/
tireMarkings?: string;
/**
*
*/
minParkingTime?: number;
/**
*
*/
maxParkingTime?: number;
/**
*
*/
standardWeight?: number;
/**
*
*/
weightUpperLimit?: number;
/**
*
*/
weightLowerLimit?: number;
/**
* (0 1)
*/
innerTubeFlag?: string;
/**
* (0 1)
*/
saleType?: string;
/**
*
*/
remark?: string;
minParkingDays?: number;
minParkingHours?: number;
minParkingMinutes?: number;
maxParkingDays?: number;
maxParkingHours?: number;
maxParkingMinutes?: number;
/**
*
*/
materialCategoryName: string;
}
export interface BaseMaterialInfoQuery extends PageQuery {
/**
*
*/
materialId?: string | number;
/**
* ERP
*/
erpId?: string | number;
/**
*
*/
materialCode?: string;
/**
*
*/
oldMaterialCode?: string;
/**
*
*/
materialName?: string;
/**
* ID
*/
materialTypeId?: string | number;
/**
* ()
*/
materialCategoryId: string;
/**
*
*/
materialSubclass?: string;
/**
* (0 1)
*/
batchFlag?: string;
/**
*
*/
batchAmount?: number;
/**
* ID
*/
materialUnitId?: string | number;
/**
*
*/
materialUnit?: string;
/**
*
*/
materialMatkl?: string;
/**
*
*/
materialSpec?: string;
/**
*
*/
netWeight?: number;
/**
*
*/
grossWeight?: number;
/**
* (1 0)
*/
alwaysFlag?: string;
/**
*
*/
factoryId?: string | number;
/**
*
*/
createOrgId?: string | number;
/**
* 使
*/
useOrgId?: string | number;
/**
* 线
*/
prodLineId?: string | number;
/**
* 1 0
*/
activeFlag?: string;
/**
* (0 1)
*/
deletedFlag?: string;
/**
*
*/
purchasePriceUnitId?: string | number;
/**
*
*/
approveDate?: string;
/**
* erp
*/
erpModifyDate?: string;
/**
*
*/
maxStockAmount?: number;
/**
*
*/
minStockAmount?: number;
/**
*
*/
safeStockAmount?: number;
/**
* (1 0)
*/
applyFlag?: string;
/**
* 1ERP 2 3MES
*/
materialClassfication?: string;
/**
* (1 0)
*/
autoOutstockFlag?: string;
/**
* (1 0)
*/
accessoriesFlag?: string;
/**
* (1 0)
*/
lowValueConsumableFlag?: string;
/**
*
*/
brand?: string;
/**
*
*/
plyrating?: string;
/**
*
*/
pattern?: string;
/**
*
*/
speedLevel?: string;
/**
*
*/
load?: string;
/**
* 1 2 3
*/
tireMarkings?: string;
/**
*
*/
minParkingTime?: number;
/**
*
*/
maxParkingTime?: number;
/**
*
*/
standardWeight?: number;
/**
*
*/
weightUpperLimit?: number;
/**
*
*/
weightLowerLimit?: number;
/**
* (0 1)
*/
innerTubeFlag?: string;
/**
* (0 1)
*/
saleType?: string;
/**
*
*/
params?: any;
/**
*
*/
materialCategoryName: string;
}

@ -0,0 +1,88 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { BaseProcessInfoVO, BaseProcessInfoForm, BaseProcessInfoQuery } from '@/api/qms/baseProcessInfo/types';
/**
*
* @param query
* @returns {*}
*/
export const listBaseProcessInfo = (query?: BaseProcessInfoQuery): AxiosPromise<BaseProcessInfoVO[]> => {
return request({
url: '/qms/baseProcessInfo/list',
method: 'get',
params: query
});
};
/**
*
* @param processId
*/
export const getBaseProcessInfo = (processId: string | number): AxiosPromise<BaseProcessInfoVO> => {
return request({
url: '/qms/baseProcessInfo/' + processId,
method: 'get'
});
};
/**
*
* @param data
*/
export const addBaseProcessInfo = (data: BaseProcessInfoForm) => {
return request({
url: '/qms/baseProcessInfo',
method: 'post',
data: data
});
};
/**
*
* @param data
*/
export const updateBaseProcessInfo = (data: BaseProcessInfoForm) => {
return request({
url: '/qms/baseProcessInfo/edit',
method: 'put',
data: data
});
};
/**
*
* @param data
*/
export const updateBaseProcessInfoUser = (data: BaseProcessInfoForm) => {
return request({
url: '/qms/baseProcessInfo/editUser',
method: 'put',
data: data
});
};
/**
*
* @param processId
*/
export const delBaseProcessInfo = (processId: string | number | Array<string | number>) => {
return request({
url: '/qms/baseProcessInfo/' + processId,
method: 'delete'
});
};
/**
*
* @param query
* @returns {*}
*/
export function getProcessInfoList(query) {
return request({
url: '/qms/baseProcessInfo/getProcessInfoList',
method: 'get',
params: query
});
};

@ -0,0 +1,439 @@
import { BaseProcessResourceVO } from "../baseProcessResource/types";
export interface BaseProcessInfoVO {
/**
*
*/
processId: string | number;
/**
*
*/
processCode: string;
/**
*
*/
processName: string;
/**
* 1 2
*/
processType: string;
/**
*
*/
processQueue: number;
/**
* ;
*/
productionTime: number;
/**
* ID
*/
workshopId: string | number;
/**
* 1 2
*/
outsourcingFlag: string;
/**
* 1 2 3
*/
processProductionType: string;
/**
* %/
*/
defaultYieldRate: number;
/**
* %/
*/
lossRate: number;
/**
* %/
*/
reworkRate: number;
/**
* 1 2 3
*/
materialMethod: string;
/**
*
*/
leadTime: number;
/**
*
*/
setupTime: number;
/**
*
*/
processingTime: number;
/**
*
*/
disassemblyTime: number;
/**
* /
*/
theoreticalCycleTime: number;
/**
* 1 2 3
*/
inspectionMethod: string;
/**
* (1 0)
*/
activeFlag: string;
/**
*
*/
remark: string;
/**
*
*/
createDept: number;
/**
*
*/
createBy: number;
/**
*
*/
createTime: string;
/**
*
*/
updateBy: number;
/**
*
*/
updateTime: string;
prodBaseProcessProdlineVoList?: ProdBaseProcessProdLine[];
prodBaseProcessUserVoList?: ProdBaseProcessUser[];
prodBaseProcessProdlineBoList?: ProdBaseProcessProdLine[];
prodBaseProcessUserBoList?: ProdBaseProcessUser[];
}
export interface BaseProcessInfoForm extends BaseEntity {
/**
*
*/
processId?: string | number;
/**
*
*/
processCode?: string;
/**
*
*/
processName?: string;
/**
* 1 2
*/
processType?: string;
/**
*
*/
processQueue?: number;
/**
* ;
*/
productionTime?: number;
/**
* ID
*/
workshopId?: string | number;
/**
* 1 2
*/
outsourcingFlag?: string;
/**
* 1 2 3
*/
processProductionType?: string;
/**
* %/
*/
defaultYieldRate?: number;
/**
* %/
*/
lossRate?: number;
/**
* %/
*/
reworkRate?: number;
/**
* 1 2 3
*/
materialMethod?: string;
/**
*
*/
leadTime?: number;
/**
*
*/
setupTime?: number;
/**
*
*/
processingTime?: number;
/**
*
*/
disassemblyTime?: number;
/**
* /
*/
theoreticalCycleTime?: number;
/**
* 1 2 3
*/
inspectionMethod?: string;
/**
* (1 0)
*/
activeFlag?: string;
/**
*
*/
remark?: string;
productionTimeDays?: number;
productionTimeHours?: number;
productionTimeMinutes?: number;
prodBaseProcessProdlineVoList?: ProdBaseProcessProdLine[];
prodBaseProcessUserVoList?: ProdBaseProcessUser[];
prodBaseProcessProdlineBoList?: ProdBaseProcessProdLine[];
prodBaseProcessUserBoList?: ProdBaseProcessUser[];
prodBaseProcessResourceList?: BaseProcessResourceVO[];
}
export interface BaseProcessInfoQuery extends PageQuery {
/**
*
*/
processId?: string | number;
/**
*
*/
processCode?: string;
/**
*
*/
processName?: string;
/**
* 1 2
*/
processType?: string;
/**
*
*/
processQueue?: number;
/**
* ;
*/
productionTime?: number;
/**
* ID
*/
workshopId?: string | number;
/**
* 1 2
*/
outsourcingFlag?: string;
/**
* 1 2 3
*/
processProductionType?: string;
/**
* %/
*/
defaultYieldRate?: number;
/**
* %/
*/
lossRate?: number;
/**
* %/
*/
reworkRate?: number;
/**
* 1 2 3
*/
materialMethod?: string;
/**
*
*/
leadTime?: number;
/**
*
*/
setupTime?: number;
/**
*
*/
processingTime?: number;
/**
*
*/
disassemblyTime?: number;
/**
* /
*/
theoreticalCycleTime?: number;
/**
* 1 2 3
*/
inspectionMethod?: string;
/**
* (1 0)
*/
activeFlag?: string;
/**
*
*/
params?: any;
prodBaseProcessProdlineV0List?: ProdBaseProcessProdLine[];
prodBaseProcessUserV0List?: ProdBaseProcessUser[];
prodBaseProcessProdlineBoList?: ProdBaseProcessProdLine[];
prodBaseProcessUserBoList?: ProdBaseProcessUser[];
}
export interface ProdBaseProcessProdLine {
/**
* ID
*/
processId: string | number;
/**
* 线ID
*/
prodLineId: string | number;
/**
*
*/
tenantId: string | number;
/**
*
*/
createBy: string;
/**
*
*/
createTime: string;
}
export interface ProdBaseProcessUser {
/**
* ID
*/
processId: string | number;
/**
* ID
*/
userId: string | number;
/**
*
*/
tenantId: string | number;
/**
*
*/
userName: string;
/**
*
*/
createBy: string;
/**
*
*/
createTime: string;
}

@ -0,0 +1,76 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { BaseStationInfoVO, BaseStationInfoForm, BaseStationInfoQuery } from '@/api/qms/baseStationInfo/types';
/**
*
* @param query
* @returns {*}
*/
export const listBaseStationInfo = (query?: BaseStationInfoQuery): AxiosPromise<BaseStationInfoVO[]> => {
return request({
url: '/qms/baseStationInfo/list',
method: 'get',
params: query
});
};
/**
*
* @param stationId
*/
export const getBaseStationInfo = (stationId: string | number): AxiosPromise<BaseStationInfoVO> => {
return request({
url: '/qms/baseStationInfo/' + stationId,
method: 'get'
});
};
/**
*
* @param data
*/
export const addBaseStationInfo = (data: BaseStationInfoForm) => {
return request({
url: '/qms/baseStationInfo',
method: 'post',
data: data
});
};
/**
*
* @param data
*/
export const updateBaseStationInfo = (data: BaseStationInfoForm) => {
return request({
url: '/qms/baseStationInfo',
method: 'put',
data: data
});
};
/**
*
* @param stationId
*/
export const delBaseStationInfo = (stationId: string | number | Array<string | number>) => {
return request({
url: '/qms/baseStationInfo/' + stationId,
method: 'delete'
});
};
/**
*
* @param query
* @returns {*}
*/
export function getStationInfoList(query) {
return request({
url: '/qms/baseStationInfo/getStationInfoList',
method: 'get',
params: query
});
};

@ -0,0 +1,201 @@
export interface BaseStationInfoVO {
/**
*
*/
stationId: string | number;
/**
*
*/
tenantId: string | number;
/**
*
*/
stationCode: string;
/**
*
*/
stationName: string;
/**
* (1 2)
*/
stationType: string;
/**
*
*/
processId: string | number;
/**
*
*/
productionTime: number;
/**
* AGV
*/
agvCode: string;
/**
* IP
*/
ipAddress: string;
/**
* (1 0)
*/
activeFlag: string;
/**
*
*/
remark: string;
/**
*
*/
createDept: number;
/**
*
*/
createBy: number;
/**
*
*/
createTime: string;
/**
*
*/
updateBy: number;
/**
*
*/
updateTime: string;
}
export interface BaseStationInfoForm extends BaseEntity {
/**
*
*/
stationId?: string | number;
/**
*
*/
stationCode?: string;
/**
*
*/
stationName?: string;
/**
* (1 2)
*/
stationType?: string;
/**
*
*/
processId?: string | number;
/**
*
*/
productionTime?: number;
/**
* AGV
*/
agvCode?: string;
/**
* IP
*/
ipAddress?: string;
/**
* (1 0)
*/
activeFlag?: string;
/**
*
*/
remark?: string;
/**
* Id
*/
machineId?: string | number;
productionTimeDays?: number;
productionTimeHours?: number;
productionTimeMinutes?: number;
prodBaseStationMaterialtypeList?: [];
}
export interface BaseStationInfoQuery extends PageQuery {
/**
*
*/
stationId?: string | number;
/**
*
*/
stationCode?: string;
/**
*
*/
stationName?: string;
/**
* (1 2)
*/
stationType?: string;
/**
*
*/
processId?: string | number;
/**
*
*/
productionTime?: number;
/**
* AGV
*/
agvCode?: string;
/**
* IP
*/
ipAddress?: string;
/**
* (1 0)
*/
activeFlag?: string;
/**
*
*/
params?: any;
}

@ -0,0 +1,77 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { BaseSupplierInfoVO, BaseSupplierInfoForm, BaseSupplierInfoQuery } from '@/api/qms/baseSupplierInfo/types';
/**
*
* @param query
* @returns {*}
*/
export const listBaseSupplierInfo = (query?: BaseSupplierInfoQuery): AxiosPromise<BaseSupplierInfoVO[]> => {
return request({
url: '/qms/baseSupplierInfo/list',
method: 'get',
params: query
});
};
/**
*
* @param supplierId
*/
export const getBaseSupplierInfo = (supplierId: string | number): AxiosPromise<BaseSupplierInfoVO> => {
return request({
url: '/qms/baseSupplierInfo/' + supplierId,
method: 'get'
});
};
/**
*
* @param data
*/
export const addBaseSupplierInfo = (data: BaseSupplierInfoForm) => {
return request({
url: '/qms/baseSupplierInfo',
method: 'post',
data: data
});
};
/**
*
* @param data
*/
export const updateBaseSupplierInfo = (data: BaseSupplierInfoForm) => {
return request({
url: '/qms/baseSupplierInfo',
method: 'put',
data: data
});
};
/**
*
* @param supplierId
*/
export const delBaseSupplierInfo = (supplierId: string | number | Array<string | number>) => {
return request({
url: '/qms/baseSupplierInfo/' + supplierId,
method: 'delete'
});
};
/**
*
* @param query
* @returns {*}
*/
export function getBaseSupplierInfoList (query) {
return request({
url: '/qms/baseSupplierInfo/getBaseSupplierInfoList',
method: 'get',
params: query
});
};

@ -0,0 +1,161 @@
export interface BaseSupplierInfoVO {
/**
*
*/
supplierId: string | number;
/**
*
*/
tenantId: string | number;
/**
*
*/
supplierCode: string;
/**
*
*/
supplierName: string;
/**
* erp
*/
erpId: string | number;
/**
* 1 0
*/
supplierStatus: string;
/**
*
*/
auditDate: string;
/**
* erp
*/
erpModifyDate: string;
/**
*
*/
remark: string;
/**
*
*/
createDept: number;
/**
*
*/
createBy: number;
/**
*
*/
createTime: string;
/**
*
*/
updateBy: number;
/**
*
*/
updateTime: string;
}
export interface BaseSupplierInfoForm extends BaseEntity {
/**
*
*/
supplierId?: string | number;
/**
*
*/
supplierCode?: string;
/**
*
*/
supplierName?: string;
/**
* erp
*/
erpId?: string | number;
/**
* 1 0
*/
supplierStatus?: string;
/**
*
*/
auditDate?: string;
/**
* erp
*/
erpModifyDate?: string;
/**
*
*/
remark?: string;
}
export interface BaseSupplierInfoQuery extends PageQuery {
/**
*
*/
supplierId?: string | number;
/**
*
*/
supplierCode?: string;
/**
*
*/
supplierName?: string;
/**
* erp
*/
erpId?: string | number;
/**
* 1 0
*/
supplierStatus?: string;
/**
*
*/
auditDate?: string;
/**
* erp
*/
erpModifyDate?: string;
/**
*
*/
params?: any;
}
Loading…
Cancel
Save