diff --git a/src/api/mes/baseEqualMaterialInfo/index.ts b/src/api/mes/baseEqualMaterialInfo/index.ts new file mode 100644 index 0000000..048e3b1 --- /dev/null +++ b/src/api/mes/baseEqualMaterialInfo/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseEqualMaterialInfoVO, BaseEqualMaterialInfoForm, BaseEqualMaterialInfoQuery } from '@/api/mes/baseEqualMaterialInfo/types'; + +/** + * 查询等同物料信息列表 + * @param query + * @returns {*} + */ + +export const listBaseEqualMaterialInfo = (query?: BaseEqualMaterialInfoQuery): AxiosPromise => { + return request({ + url: '/mes/baseEqualMaterialInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询等同物料信息详细 + * @param equalMaterialInfoId + */ +export const getBaseEqualMaterialInfo = (equalMaterialInfoId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseEqualMaterialInfo/' + equalMaterialInfoId, + method: 'get' + }); +}; + +/** + * 新增等同物料信息 + * @param data + */ +export const addBaseEqualMaterialInfo = (data: BaseEqualMaterialInfoForm) => { + return request({ + url: '/mes/baseEqualMaterialInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改等同物料信息 + * @param data + */ +export const updateBaseEqualMaterialInfo = (data: BaseEqualMaterialInfoForm) => { + return request({ + url: '/mes/baseEqualMaterialInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除等同物料信息 + * @param equalMaterialInfoId + */ +export const delBaseEqualMaterialInfo = (equalMaterialInfoId: string | number | Array) => { + return request({ + url: '/mes/baseEqualMaterialInfo/' + equalMaterialInfoId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询等同物料信息列表 + * @param query + * @returns {*} + */ +export function getBaseEqualMaterialInfoList (query) { + return request({ + url: '/mes/baseEqualMaterialInfo/getBaseEqualMaterialInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/baseEqualMaterialInfo/types.ts b/src/api/mes/baseEqualMaterialInfo/types.ts new file mode 100644 index 0000000..e9c04c4 --- /dev/null +++ b/src/api/mes/baseEqualMaterialInfo/types.ts @@ -0,0 +1,116 @@ +export interface BaseEqualMaterialInfoVO { + /** + * 主键标识 + */ + equalMaterialInfoId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 物料ID + */ + materialId: string | number; + + /** + * 等同物料ID + */ + equalMaterialId: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface BaseEqualMaterialInfoForm extends BaseEntity { + /** + * 主键标识 + */ + equalMaterialInfoId?: string | number; + + /** + * 物料ID + */ + materialId?: string | number; + + /** + * 等同物料ID + */ + equalMaterialId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface BaseEqualMaterialInfoQuery extends PageQuery { + + /** + * 主键标识 + */ + equalMaterialInfoId?: string | number; + + /** + * 物料ID + */ + materialId?: string | number; + + /** + * 等同物料ID + */ + equalMaterialId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/baseMaterialType/index.ts b/src/api/mes/baseMaterialType/index.ts new file mode 100644 index 0000000..cb8cede --- /dev/null +++ b/src/api/mes/baseMaterialType/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseMaterialTypeVO, BaseMaterialTypeForm, BaseMaterialTypeQuery } from '@/api/mes/baseMaterialType/types'; + +/** + * 查询物料类型信息列表 + * @param query + * @returns {*} + */ + +export const listBaseMaterialType = (query?: BaseMaterialTypeQuery): AxiosPromise => { + return request({ + url: '/mes/baseMaterialType/list', + method: 'get', + params: query + }); +}; + +/** + * 查询物料类型信息详细 + * @param matrialTypeId + */ +export const getBaseMaterialType = (matrialTypeId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseMaterialType/' + matrialTypeId, + method: 'get' + }); +}; + +/** + * 新增物料类型信息 + * @param data + */ +export const addBaseMaterialType = (data: BaseMaterialTypeForm) => { + return request({ + url: '/mes/baseMaterialType', + method: 'post', + data: data + }); +}; + +/** + * 修改物料类型信息 + * @param data + */ +export const updateBaseMaterialType = (data: BaseMaterialTypeForm) => { + return request({ + url: '/mes/baseMaterialType', + method: 'put', + data: data + }); +}; + +/** + * 删除物料类型信息 + * @param matrialTypeId + */ +export const delBaseMaterialType = (matrialTypeId: string | number | Array) => { + return request({ + url: '/mes/baseMaterialType/' + matrialTypeId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询物料类型信息列表 + * @param query + * @returns {*} + */ +export function getBaseMaterialTypeList (query) { + return request({ + url: '/mes/baseMaterialType/getBaseMaterialTypeList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/baseMaterialType/types.ts b/src/api/mes/baseMaterialType/types.ts new file mode 100644 index 0000000..7b8cf5f --- /dev/null +++ b/src/api/mes/baseMaterialType/types.ts @@ -0,0 +1,195 @@ +export interface BaseMaterialTypeVO { + /** + * 物料类型ID + */ + matrialTypeId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 父级标识 + */ + parentId: string | number; + + /** + * 物料类型编号 + */ + matrialTypeCode: string; + + /** + * 物料类型名称 + */ + matrialTypeName: string; + + /** + * 祖级列表 + */ + ancestors: string; + + /** + * 物料大类(1原材料 2半成品 3成品) + */ + materialCategories: string; + + /** + * 物料小类 + */ + materialSubclass: string; + + /** + * 工序ID + */ + processId: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + + /** + * 子对象 + */ + children: BaseMaterialTypeVO[]; +} + +export interface BaseMaterialTypeForm extends BaseEntity { + /** + * 物料类型ID + */ + matrialTypeId?: string | number; + + /** + * 父级标识 + */ + parentId?: string | number; + + /** + * 物料类型编号 + */ + matrialTypeCode?: string; + + /** + * 物料类型名称 + */ + matrialTypeName?: string; + + /** + * 祖级列表 + */ + ancestors?: string; + + /** + * 物料大类(1原材料 2半成品 3成品) + */ + materialCategories?: string; + + /** + * 物料小类 + */ + materialSubclass?: string; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface BaseMaterialTypeQuery { + + /** + * 物料类型ID + */ + matrialTypeId?: string | number; + + /** + * 父级标识 + */ + parentId?: string | number; + + /** + * 物料类型编号 + */ + matrialTypeCode?: string; + + /** + * 物料类型名称 + */ + matrialTypeName?: string; + + /** + * 祖级列表 + */ + ancestors?: string; + + /** + * 物料大类(1原材料 2半成品 3成品) + */ + materialCategories?: string; + + /** + * 物料小类 + */ + materialSubclass?: string; + + /** + * 工序ID + */ + processId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/baseMeasurementUnitInfo/index.ts b/src/api/mes/baseMeasurementUnitInfo/index.ts new file mode 100644 index 0000000..d8c9198 --- /dev/null +++ b/src/api/mes/baseMeasurementUnitInfo/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseMeasurementUnitInfoVO, BaseMeasurementUnitInfoForm, BaseMeasurementUnitInfoQuery } from '@/api/mes/baseMeasurementUnitInfo/types'; + +/** + * 查询计量单位信息列表 + * @param query + * @returns {*} + */ + +export const listBaseMeasurementUnitInfo = (query?: BaseMeasurementUnitInfoQuery): AxiosPromise => { + return request({ + url: '/mes/baseMeasurementUnitInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询计量单位信息详细 + * @param unitId + */ +export const getBaseMeasurementUnitInfo = (unitId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseMeasurementUnitInfo/' + unitId, + method: 'get' + }); +}; + +/** + * 新增计量单位信息 + * @param data + */ +export const addBaseMeasurementUnitInfo = (data: BaseMeasurementUnitInfoForm) => { + return request({ + url: '/mes/baseMeasurementUnitInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改计量单位信息 + * @param data + */ +export const updateBaseMeasurementUnitInfo = (data: BaseMeasurementUnitInfoForm) => { + return request({ + url: '/mes/baseMeasurementUnitInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除计量单位信息 + * @param unitId + */ +export const delBaseMeasurementUnitInfo = (unitId: string | number | Array) => { + return request({ + url: '/mes/baseMeasurementUnitInfo/' + unitId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询计量单位信息列表 + * @param query + * @returns {*} + */ +export function getBaseMeasurementUnitInfoList (query) { + return request({ + url: '/mes/baseMeasurementUnitInfo/getBaseMeasurementUnitInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/baseMeasurementUnitInfo/types.ts b/src/api/mes/baseMeasurementUnitInfo/types.ts new file mode 100644 index 0000000..504b23d --- /dev/null +++ b/src/api/mes/baseMeasurementUnitInfo/types.ts @@ -0,0 +1,175 @@ +export interface BaseMeasurementUnitInfoVO { + /** + * 主键标识 + */ + unitId: string | number; + + /** + * 父级标识 + */ + parentId: string | number; + + /** + * 计量单位编号 + */ + unitCode: string; + + /** + * 计量单位名称 + */ + unitName: string; + + /** + * 计量单位转换(与最顶级转换关系,最顶级是1) + */ + unitConversion: number; + + /** + * 祖级列表 + */ + ancestors: string; + + /** + * 单位类型(1长度 2质量 3时间 4面积 5体积) + */ + unitType: string; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + + /** + * 子对象 + */ + children: BaseMeasurementUnitInfoVO[]; +} + +export interface BaseMeasurementUnitInfoForm extends BaseEntity { + /** + * 主键标识 + */ + unitId?: string | number; + + /** + * 父级标识 + */ + parentId?: string | number; + + /** + * 计量单位编号 + */ + unitCode?: string; + + /** + * 计量单位名称 + */ + unitName?: string; + + /** + * 计量单位转换(与最顶级转换关系,最顶级是1) + */ + unitConversion?: number; + + /** + * 祖级列表 + */ + ancestors?: string; + + /** + * 单位类型(1长度 2质量 3时间 4面积 5体积) + */ + unitType?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface BaseMeasurementUnitInfoQuery { + + /** + * 主键标识 + */ + unitId?: string | number; + + /** + * 父级标识 + */ + parentId?: string | number; + + /** + * 计量单位编号 + */ + unitCode?: string; + + /** + * 计量单位名称 + */ + unitName?: string; + + /** + * 计量单位转换(与最顶级转换关系,最顶级是1) + */ + unitConversion?: number; + + /** + * 祖级列表 + */ + ancestors?: string; + + /** + * 单位类型(1长度 2质量 3时间 4面积 5体积) + */ + unitType?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/mes/baseSupplierInfo/index.ts b/src/api/mes/baseSupplierInfo/index.ts new file mode 100644 index 0000000..4815bd5 --- /dev/null +++ b/src/api/mes/baseSupplierInfo/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseSupplierInfoVO, BaseSupplierInfoForm, BaseSupplierInfoQuery } from '@/api/mes/baseSupplierInfo/types'; + +/** + * 查询供应商信息列表 + * @param query + * @returns {*} + */ + +export const listBaseSupplierInfo = (query?: BaseSupplierInfoQuery): AxiosPromise => { + return request({ + url: '/mes/baseSupplierInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询供应商信息详细 + * @param supplierId + */ +export const getBaseSupplierInfo = (supplierId: string | number): AxiosPromise => { + return request({ + url: '/mes/baseSupplierInfo/' + supplierId, + method: 'get' + }); +}; + +/** + * 新增供应商信息 + * @param data + */ +export const addBaseSupplierInfo = (data: BaseSupplierInfoForm) => { + return request({ + url: '/mes/baseSupplierInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改供应商信息 + * @param data + */ +export const updateBaseSupplierInfo = (data: BaseSupplierInfoForm) => { + return request({ + url: '/mes/baseSupplierInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除供应商信息 + * @param supplierId + */ +export const delBaseSupplierInfo = (supplierId: string | number | Array) => { + return request({ + url: '/mes/baseSupplierInfo/' + supplierId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询供应商信息列表 + * @param query + * @returns {*} + */ +export function getBaseSupplierInfoList (query) { + return request({ + url: '/mes/baseSupplierInfo/getBaseSupplierInfoList', + method: 'get', + params: query + }); +}; diff --git a/src/api/mes/baseSupplierInfo/types.ts b/src/api/mes/baseSupplierInfo/types.ts new file mode 100644 index 0000000..c76c7f6 --- /dev/null +++ b/src/api/mes/baseSupplierInfo/types.ts @@ -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; +} + + + diff --git a/src/views/mes/baseClassTeamInfo/index.vue b/src/views/mes/baseClassTeamInfo/index.vue index 9e5875a..655c639 100644 --- a/src/views/mes/baseClassTeamInfo/index.vue +++ b/src/views/mes/baseClassTeamInfo/index.vue @@ -153,7 +153,7 @@ - + +
+ +
+ + + + + + + + + + + 搜索 + 重置 + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{dict.label}} + + + + + + + + +
+ + + diff --git a/src/views/mes/baseMaterialType/index.vue b/src/views/mes/baseMaterialType/index.vue new file mode 100644 index 0000000..58172ba --- /dev/null +++ b/src/views/mes/baseMaterialType/index.vue @@ -0,0 +1,404 @@ + + + diff --git a/src/views/mes/baseMeasurementUnitInfo/index.vue b/src/views/mes/baseMeasurementUnitInfo/index.vue new file mode 100644 index 0000000..a4a1004 --- /dev/null +++ b/src/views/mes/baseMeasurementUnitInfo/index.vue @@ -0,0 +1,339 @@ + + + diff --git a/src/views/mes/baseSupplierInfo/index.vue b/src/views/mes/baseSupplierInfo/index.vue new file mode 100644 index 0000000..14a52f4 --- /dev/null +++ b/src/views/mes/baseSupplierInfo/index.vue @@ -0,0 +1,361 @@ + + +