diff --git a/src/api/wcs/deviceHost/index.ts b/src/api/wcs/deviceHost/index.ts new file mode 100644 index 0000000..1de09f8 --- /dev/null +++ b/src/api/wcs/deviceHost/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DeviceHostVO, DeviceHostForm, DeviceHostId, DeviceHostIds, DeviceHostQuery } from '@/api/wcs/deviceHost/types'; + +/** + * 查询设备主机列表 + * @param query + * @returns {*} + */ + +export const listDeviceHost = (query?: DeviceHostQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceHost/list', + method: 'get', + params: query + }); +}; + +/** + * 查询设备主机详细 + * @param objId + */ +export const getDeviceHost = (objId: DeviceHostId): AxiosPromise => { + return request({ + url: '/wcs/deviceHost/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询设备主机详细 + * @param ids + */ +export const getDeviceHostByIds = (ids: DeviceHostIds): AxiosPromise => { + return request({ + url: '/wcs/deviceHost/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计设备主机数量 + * @param query + */ +export const countDeviceHost = (query?: DeviceHostQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceHost/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的设备主机 + * @param query + */ +export const existsDeviceHost = (query?: DeviceHostQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceHost/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增设备主机 + * @param data + */ +export const addDeviceHost = (data: DeviceHostForm) => { + return request({ + url: '/wcs/deviceHost', + method: 'post', + data: data + }); +}; + +/** + * 修改设备主机 + * @param data + */ +export const updateDeviceHost = (data: DeviceHostForm) => { + return request({ + url: '/wcs/deviceHost', + method: 'put', + data: data + }); +}; + +/** + * 删除设备主机 + * @param objId + */ +export const delDeviceHost = (objId: DeviceHostId | DeviceHostIds) => { + return request({ + url: '/wcs/deviceHost/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/deviceHost/types.ts b/src/api/wcs/deviceHost/types.ts new file mode 100644 index 0000000..e429d12 --- /dev/null +++ b/src/api/wcs/deviceHost/types.ts @@ -0,0 +1,141 @@ +export type DeviceHostId = string | number; +export type DeviceHostIds = DeviceHostId[]; + +export interface DeviceHostVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 主机编号 + */ + hostCode: string; + + /** + * 主机名称 + */ + hostName: string; + + /** + * 主机IP + */ + hostIp: string; + + /** + * 主机端口 + */ + hostPort: number; + + /** + * 主机路径 + */ + hostPath: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface DeviceHostForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 主机编号 + */ + hostCode?: string; + + /** + * 主机名称 + */ + hostName?: string; + + /** + * 主机IP + */ + hostIp?: string; + + /** + * 主机端口 + */ + hostPort?: number; + + /** + * 主机路径 + */ + hostPath?: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface DeviceHostQuery extends PageQuery { + + /** + * 主机编号 + */ + hostCode?: string; + + /** + * 主机名称 + */ + hostName?: string; + + /** + * 主机IP + */ + hostIp?: string; + + /** + * 主机端口 + */ + hostPort?: number; + + /** + * 主机路径 + */ + hostPath?: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/deviceInfo/index.ts b/src/api/wcs/deviceInfo/index.ts new file mode 100644 index 0000000..1c17778 --- /dev/null +++ b/src/api/wcs/deviceInfo/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DeviceInfoVO, DeviceInfoForm, DeviceInfoId, DeviceInfoIds, DeviceInfoQuery } from '@/api/wcs/deviceInfo/types'; + +/** + * 查询设备信息列表 + * @param query + * @returns {*} + */ + +export const listDeviceInfo = (query?: DeviceInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询设备信息详细 + * @param objId + */ +export const getDeviceInfo = (objId: DeviceInfoId): AxiosPromise => { + return request({ + url: '/wcs/deviceInfo/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询设备信息详细 + * @param ids + */ +export const getDeviceInfoByIds = (ids: DeviceInfoIds): AxiosPromise => { + return request({ + url: '/wcs/deviceInfo/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计设备信息数量 + * @param query + */ +export const countDeviceInfo = (query?: DeviceInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceInfo/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的设备信息 + * @param query + */ +export const existsDeviceInfo = (query?: DeviceInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceInfo/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增设备信息 + * @param data + */ +export const addDeviceInfo = (data: DeviceInfoForm) => { + return request({ + url: '/wcs/deviceInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改设备信息 + * @param data + */ +export const updateDeviceInfo = (data: DeviceInfoForm) => { + return request({ + url: '/wcs/deviceInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除设备信息 + * @param objId + */ +export const delDeviceInfo = (objId: DeviceInfoId | DeviceInfoIds) => { + return request({ + url: '/wcs/deviceInfo/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/deviceInfo/types.ts b/src/api/wcs/deviceInfo/types.ts new file mode 100644 index 0000000..c229028 --- /dev/null +++ b/src/api/wcs/deviceInfo/types.ts @@ -0,0 +1,141 @@ +export type DeviceInfoId = string | number; +export type DeviceInfoIds = DeviceInfoId[]; + +export interface DeviceInfoVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 设备编号 + */ + deviceCode: string; + + /** + * 设备名称 + */ + deviceName: string; + + /** + * 所属主机 + */ + hostCode: string; + + /** + * 设备类型:0-输送线;1-AGV;2-提升机 + */ + deviceType: number; + + /** + * 设备状态:0-正常;1-在忙;2-异常 + */ + deviceStatus: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface DeviceInfoForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 设备编号 + */ + deviceCode?: string; + + /** + * 设备名称 + */ + deviceName?: string; + + /** + * 所属主机 + */ + hostCode?: string; + + /** + * 设备类型:0-输送线;1-AGV;2-提升机 + */ + deviceType?: number; + + /** + * 设备状态:0-正常;1-在忙;2-异常 + */ + deviceStatus?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface DeviceInfoQuery extends PageQuery { + + /** + * 设备编号 + */ + deviceCode?: string; + + /** + * 设备名称 + */ + deviceName?: string; + + /** + * 所属主机 + */ + hostCode?: string; + + /** + * 设备类型:0-输送线;1-AGV;2-提升机 + */ + deviceType?: number; + + /** + * 设备状态:0-正常;1-在忙;2-异常 + */ + deviceStatus?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/deviceParam/index.ts b/src/api/wcs/deviceParam/index.ts new file mode 100644 index 0000000..81aec03 --- /dev/null +++ b/src/api/wcs/deviceParam/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DeviceParamVO, DeviceParamForm, DeviceParamId, DeviceParamIds, DeviceParamQuery } from '@/api/wcs/deviceParam/types'; + +/** + * 查询设备参数列表 + * @param query + * @returns {*} + */ + +export const listDeviceParam = (query?: DeviceParamQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceParam/list', + method: 'get', + params: query + }); +}; + +/** + * 查询设备参数详细 + * @param objId + */ +export const getDeviceParam = (objId: DeviceParamId): AxiosPromise => { + return request({ + url: '/wcs/deviceParam/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询设备参数详细 + * @param ids + */ +export const getDeviceParamByIds = (ids: DeviceParamIds): AxiosPromise => { + return request({ + url: '/wcs/deviceParam/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计设备参数数量 + * @param query + */ +export const countDeviceParam = (query?: DeviceParamQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceParam/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的设备参数 + * @param query + */ +export const existsDeviceParam = (query?: DeviceParamQuery): AxiosPromise => { + return request({ + url: '/wcs/deviceParam/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增设备参数 + * @param data + */ +export const addDeviceParam = (data: DeviceParamForm) => { + return request({ + url: '/wcs/deviceParam', + method: 'post', + data: data + }); +}; + +/** + * 修改设备参数 + * @param data + */ +export const updateDeviceParam = (data: DeviceParamForm) => { + return request({ + url: '/wcs/deviceParam', + method: 'put', + data: data + }); +}; + +/** + * 删除设备参数 + * @param objId + */ +export const delDeviceParam = (objId: DeviceParamId | DeviceParamIds) => { + return request({ + url: '/wcs/deviceParam/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/deviceParam/types.ts b/src/api/wcs/deviceParam/types.ts new file mode 100644 index 0000000..13285c2 --- /dev/null +++ b/src/api/wcs/deviceParam/types.ts @@ -0,0 +1,171 @@ +export type DeviceParamId = string | number; +export type DeviceParamIds = DeviceParamId[]; + +export interface DeviceParamVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 参数编号 + */ + paramCode: string; + + /** + * 设备编号 + */ + deviceCode: string; + + /** + * 参数名称 + */ + paramName: string; + + /** + * 参数地址 + */ + paramAddress: string; + + /** + * 参数类型 + */ + paramType: string; + + /** + * 操作类型:1-只读;2-只写;0-默认读写 + */ + operationType: number; + + /** + * 操作频率(毫秒) + */ + operationFrequency: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface DeviceParamForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 参数编号 + */ + paramCode?: string; + + /** + * 设备编号 + */ + deviceCode?: string; + + /** + * 参数名称 + */ + paramName?: string; + + /** + * 参数地址 + */ + paramAddress?: string; + + /** + * 参数类型 + */ + paramType?: string; + + /** + * 操作类型:1-只读;2-只写;0-默认读写 + */ + operationType?: number; + + /** + * 操作频率(毫秒) + */ + operationFrequency?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface DeviceParamQuery extends PageQuery { + + /** + * 参数编号 + */ + paramCode?: string; + + /** + * 设备编号 + */ + deviceCode?: string; + + /** + * 参数名称 + */ + paramName?: string; + + /** + * 参数地址 + */ + paramAddress?: string; + + /** + * 参数类型 + */ + paramType?: string; + + /** + * 操作类型:1-只读;2-只写;0-默认读写 + */ + operationType?: number; + + /** + * 操作频率(毫秒) + */ + operationFrequency?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/locationInfo/index.ts b/src/api/wcs/locationInfo/index.ts new file mode 100644 index 0000000..2420bf7 --- /dev/null +++ b/src/api/wcs/locationInfo/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { LocationInfoVO, LocationInfoForm, LocationInfoId, LocationInfoIds, LocationInfoQuery } from '@/api/wcs/locationInfo/types'; + +/** + * 查询库位信息列表 + * @param query + * @returns {*} + */ + +export const listLocationInfo = (query?: LocationInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/locationInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询库位信息详细 + * @param objId + */ +export const getLocationInfo = (objId: LocationInfoId): AxiosPromise => { + return request({ + url: '/wcs/locationInfo/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询库位信息详细 + * @param ids + */ +export const getLocationInfoByIds = (ids: LocationInfoIds): AxiosPromise => { + return request({ + url: '/wcs/locationInfo/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计库位信息数量 + * @param query + */ +export const countLocationInfo = (query?: LocationInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/locationInfo/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的库位信息 + * @param query + */ +export const existsLocationInfo = (query?: LocationInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/locationInfo/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增库位信息 + * @param data + */ +export const addLocationInfo = (data: LocationInfoForm) => { + return request({ + url: '/wcs/locationInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改库位信息 + * @param data + */ +export const updateLocationInfo = (data: LocationInfoForm) => { + return request({ + url: '/wcs/locationInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除库位信息 + * @param objId + */ +export const delLocationInfo = (objId: LocationInfoId | LocationInfoIds) => { + return request({ + url: '/wcs/locationInfo/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/locationInfo/types.ts b/src/api/wcs/locationInfo/types.ts new file mode 100644 index 0000000..02ebbd4 --- /dev/null +++ b/src/api/wcs/locationInfo/types.ts @@ -0,0 +1,246 @@ +export type LocationInfoId = string | number; +export type LocationInfoIds = LocationInfoId[]; + +export interface LocationInfoVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 库位编号 + */ + locationCode: string; + + /** + * 库位名称 + */ + locationName: string; + + /** + * 库位区域 + */ + locationArea: string; + + /** + * 仓库编号 + */ + storeCode: string; + + /** + * 排 + */ + locationRows: number; + + /** + * 列 + */ + locationColumns: number; + + /** + * 层 + */ + locationLayers: number; + + /** + * AGV定位 + */ + agvPosition: string; + + /** + * 物料信息 + */ + materialCode: string; + + /** + * 托盘条码 + */ + palletBarcode: string; + + /** + * 库存数量 + */ + stackCount: string; + + /** + * 库位状态;0-未使用;1-已使用;2-锁库;3-异常 + */ + locationStatus: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface LocationInfoForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 库位编号 + */ + locationCode?: string; + + /** + * 库位名称 + */ + locationName?: string; + + /** + * 库位区域 + */ + locationArea?: string; + + /** + * 仓库编号 + */ + storeCode?: string; + + /** + * 排 + */ + locationRows?: number; + + /** + * 列 + */ + locationColumns?: number; + + /** + * 层 + */ + locationLayers?: number; + + /** + * AGV定位 + */ + agvPosition?: string; + + /** + * 物料信息 + */ + materialCode?: string; + + /** + * 托盘条码 + */ + palletBarcode?: string; + + /** + * 库存数量 + */ + stackCount?: string; + + /** + * 库位状态;0-未使用;1-已使用;2-锁库;3-异常 + */ + locationStatus?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface LocationInfoQuery extends PageQuery { + + /** + * 库位编号 + */ + locationCode?: string; + + /** + * 库位名称 + */ + locationName?: string; + + /** + * 库位区域 + */ + locationArea?: string; + + /** + * 仓库编号 + */ + storeCode?: string; + + /** + * 排 + */ + locationRows?: number; + + /** + * 列 + */ + locationColumns?: number; + + /** + * 层 + */ + locationLayers?: number; + + /** + * AGV定位 + */ + agvPosition?: string; + + /** + * 物料信息 + */ + materialCode?: string; + + /** + * 托盘条码 + */ + palletBarcode?: string; + + /** + * 库存数量 + */ + stackCount?: string; + + /** + * 库位状态;0-未使用;1-已使用;2-锁库;3-异常 + */ + locationStatus?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/materialInfo/index.ts b/src/api/wcs/materialInfo/index.ts new file mode 100644 index 0000000..dae7a97 --- /dev/null +++ b/src/api/wcs/materialInfo/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MaterialInfoVO, MaterialInfoForm, MaterialInfoId, MaterialInfoIds, MaterialInfoQuery } from '@/api/wcs/materialInfo/types'; + +/** + * 查询物料信息列表 + * @param query + * @returns {*} + */ + +export const listMaterialInfo = (query?: MaterialInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/materialInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询物料信息详细 + * @param objId + */ +export const getMaterialInfo = (objId: MaterialInfoId): AxiosPromise => { + return request({ + url: '/wcs/materialInfo/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询物料信息详细 + * @param ids + */ +export const getMaterialInfoByIds = (ids: MaterialInfoIds): AxiosPromise => { + return request({ + url: '/wcs/materialInfo/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计物料信息数量 + * @param query + */ +export const countMaterialInfo = (query?: MaterialInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/materialInfo/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的物料信息 + * @param query + */ +export const existsMaterialInfo = (query?: MaterialInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/materialInfo/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增物料信息 + * @param data + */ +export const addMaterialInfo = (data: MaterialInfoForm) => { + return request({ + url: '/wcs/materialInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改物料信息 + * @param data + */ +export const updateMaterialInfo = (data: MaterialInfoForm) => { + return request({ + url: '/wcs/materialInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除物料信息 + * @param objId + */ +export const delMaterialInfo = (objId: MaterialInfoId | MaterialInfoIds) => { + return request({ + url: '/wcs/materialInfo/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/materialInfo/types.ts b/src/api/wcs/materialInfo/types.ts new file mode 100644 index 0000000..1f642d0 --- /dev/null +++ b/src/api/wcs/materialInfo/types.ts @@ -0,0 +1,156 @@ +export type MaterialInfoId = string | number; +export type MaterialInfoIds = MaterialInfoId[]; + +export interface MaterialInfoVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 物料编号 + */ + materialCode: string; + + /** + * 物料名称 + */ + materialName: string; + + /** + * 物料类型 + */ + materialType: string; + + /** + * 物料条码 + */ + materialBarcode: string; + + /** + * 最短存放周期 + */ + minStorageCycle: number; + + /** + * 最长存放周期 + */ + maxStorageCycle: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface MaterialInfoForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 物料编号 + */ + materialCode?: string; + + /** + * 物料名称 + */ + materialName?: string; + + /** + * 物料类型 + */ + materialType?: string; + + /** + * 物料条码 + */ + materialBarcode?: string; + + /** + * 最短存放周期 + */ + minStorageCycle?: number; + + /** + * 最长存放周期 + */ + maxStorageCycle?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface MaterialInfoQuery extends PageQuery { + + /** + * 物料编号 + */ + materialCode?: string; + + /** + * 物料名称 + */ + materialName?: string; + + /** + * 物料类型 + */ + materialType?: string; + + /** + * 物料条码 + */ + materialBarcode?: string; + + /** + * 最短存放周期 + */ + minStorageCycle?: number; + + /** + * 最长存放周期 + */ + maxStorageCycle?: number; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/pathDetails/index.ts b/src/api/wcs/pathDetails/index.ts new file mode 100644 index 0000000..d8f5d6b --- /dev/null +++ b/src/api/wcs/pathDetails/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { PathDetailsVO, PathDetailsForm, PathDetailsId, PathDetailsIds, PathDetailsQuery } from '@/api/wcs/pathDetails/types'; + +/** + * 查询路径明细列表 + * @param query + * @returns {*} + */ + +export const listPathDetails = (query?: PathDetailsQuery): AxiosPromise => { + return request({ + url: '/wcs/pathDetails/list', + method: 'get', + params: query + }); +}; + +/** + * 查询路径明细详细 + * @param objId + */ +export const getPathDetails = (objId: PathDetailsId): AxiosPromise => { + return request({ + url: '/wcs/pathDetails/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询路径明细详细 + * @param ids + */ +export const getPathDetailsByIds = (ids: PathDetailsIds): AxiosPromise => { + return request({ + url: '/wcs/pathDetails/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计路径明细数量 + * @param query + */ +export const countPathDetails = (query?: PathDetailsQuery): AxiosPromise => { + return request({ + url: '/wcs/pathDetails/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的路径明细 + * @param query + */ +export const existsPathDetails = (query?: PathDetailsQuery): AxiosPromise => { + return request({ + url: '/wcs/pathDetails/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增路径明细 + * @param data + */ +export const addPathDetails = (data: PathDetailsForm) => { + return request({ + url: '/wcs/pathDetails', + method: 'post', + data: data + }); +}; + +/** + * 修改路径明细 + * @param data + */ +export const updatePathDetails = (data: PathDetailsForm) => { + return request({ + url: '/wcs/pathDetails', + method: 'put', + data: data + }); +}; + +/** + * 删除路径明细 + * @param objId + */ +export const delPathDetails = (objId: PathDetailsId | PathDetailsIds) => { + return request({ + url: '/wcs/pathDetails/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/pathDetails/types.ts b/src/api/wcs/pathDetails/types.ts new file mode 100644 index 0000000..6fa6ba4 --- /dev/null +++ b/src/api/wcs/pathDetails/types.ts @@ -0,0 +1,111 @@ +export type PathDetailsId = string | number; +export type PathDetailsIds = PathDetailsId[]; + +export interface PathDetailsVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 路径编号 + */ + pathCode: string; + + /** + * 起点 + */ + startPoint: string; + + /** + * 终点 + */ + endPoint: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface PathDetailsForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 路径编号 + */ + pathCode?: string; + + /** + * 起点 + */ + startPoint?: string; + + /** + * 终点 + */ + endPoint?: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface PathDetailsQuery extends PageQuery { + + /** + * 路径编号 + */ + pathCode?: string; + + /** + * 起点 + */ + startPoint?: string; + + /** + * 终点 + */ + endPoint?: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/pathInfo/index.ts b/src/api/wcs/pathInfo/index.ts new file mode 100644 index 0000000..9408735 --- /dev/null +++ b/src/api/wcs/pathInfo/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { PathInfoVO, PathInfoForm, PathInfoId, PathInfoIds, PathInfoQuery } from '@/api/wcs/pathInfo/types'; + +/** + * 查询路径信息列表 + * @param query + * @returns {*} + */ + +export const listPathInfo = (query?: PathInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/pathInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询路径信息详细 + * @param objId + */ +export const getPathInfo = (objId: PathInfoId): AxiosPromise => { + return request({ + url: '/wcs/pathInfo/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询路径信息详细 + * @param ids + */ +export const getPathInfoByIds = (ids: PathInfoIds): AxiosPromise => { + return request({ + url: '/wcs/pathInfo/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计路径信息数量 + * @param query + */ +export const countPathInfo = (query?: PathInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/pathInfo/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的路径信息 + * @param query + */ +export const existsPathInfo = (query?: PathInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/pathInfo/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增路径信息 + * @param data + */ +export const addPathInfo = (data: PathInfoForm) => { + return request({ + url: '/wcs/pathInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改路径信息 + * @param data + */ +export const updatePathInfo = (data: PathInfoForm) => { + return request({ + url: '/wcs/pathInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除路径信息 + * @param objId + */ +export const delPathInfo = (objId: PathInfoId | PathInfoIds) => { + return request({ + url: '/wcs/pathInfo/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/pathInfo/types.ts b/src/api/wcs/pathInfo/types.ts new file mode 100644 index 0000000..ac81e5e --- /dev/null +++ b/src/api/wcs/pathInfo/types.ts @@ -0,0 +1,96 @@ +export type PathInfoId = string | number; +export type PathInfoIds = PathInfoId[]; + +export interface PathInfoVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 路径编号 + */ + pathCode: string; + + /** + * 路径名称 + */ + pathName: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface PathInfoForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 路径编号 + */ + pathCode?: string; + + /** + * 路径名称 + */ + pathName?: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface PathInfoQuery extends PageQuery { + + /** + * 路径编号 + */ + pathCode?: string; + + /** + * 路径名称 + */ + pathName?: string; + + /** + * 是否标识:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/wcs/storeInfo/index.ts b/src/api/wcs/storeInfo/index.ts new file mode 100644 index 0000000..c0db636 --- /dev/null +++ b/src/api/wcs/storeInfo/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { StoreInfoVO, StoreInfoForm, StoreInfoId, StoreInfoIds, StoreInfoQuery } from '@/api/wcs/storeInfo/types'; + +/** + * 查询仓库信息列表 + * @param query + * @returns {*} + */ + +export const listStoreInfo = (query?: StoreInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/storeInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询仓库信息详细 + * @param objId + */ +export const getStoreInfo = (objId: StoreInfoId): AxiosPromise => { + return request({ + url: '/wcs/storeInfo/' + objId, + method: 'get' + }); +}; + +/** + * 批量查询仓库信息详细 + * @param ids + */ +export const getStoreInfoByIds = (ids: StoreInfoIds): AxiosPromise => { + return request({ + url: '/wcs/storeInfo/listByIds', + method: 'post', + data: ids + }); +}; + +/** + * 统计仓库信息数量 + * @param query + */ +export const countStoreInfo = (query?: StoreInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/storeInfo/count', + method: 'get', + params: query + }); +}; + +/** + * 判断是否存在符合条件的仓库信息 + * @param query + */ +export const existsStoreInfo = (query?: StoreInfoQuery): AxiosPromise => { + return request({ + url: '/wcs/storeInfo/exists', + method: 'get', + params: query + }); +}; + +/** + * 新增仓库信息 + * @param data + */ +export const addStoreInfo = (data: StoreInfoForm) => { + return request({ + url: '/wcs/storeInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改仓库信息 + * @param data + */ +export const updateStoreInfo = (data: StoreInfoForm) => { + return request({ + url: '/wcs/storeInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除仓库信息 + * @param objId + */ +export const delStoreInfo = (objId: StoreInfoId | StoreInfoIds) => { + return request({ + url: '/wcs/storeInfo/' + objId, + method: 'delete' + }); +}; diff --git a/src/api/wcs/storeInfo/types.ts b/src/api/wcs/storeInfo/types.ts new file mode 100644 index 0000000..6b28c24 --- /dev/null +++ b/src/api/wcs/storeInfo/types.ts @@ -0,0 +1,96 @@ +export type StoreInfoId = string | number; +export type StoreInfoIds = StoreInfoId[]; + +export interface StoreInfoVO { + /** + * 主键标识 + */ + objId: string | number; + + /** + * 仓库编号 + */ + storeCode: string; + + /** + * 仓库名称 + */ + storeName: string; + + /** + * 是否表示:1-是;0-否 + */ + isFlag: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createdTime: string; + +} + +export interface StoreInfoForm extends BaseEntity { + /** + * 主键标识 + */ + objId?: string | number; + + /** + * 仓库编号 + */ + storeCode?: string; + + /** + * 仓库名称 + */ + storeName?: string; + + /** + * 是否表示:1-是;0-否 + */ + isFlag?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + createdTime?: string; + +} + +export interface StoreInfoQuery extends PageQuery { + + /** + * 仓库编号 + */ + storeCode?: string; + + /** + * 仓库名称 + */ + storeName?: string; + + /** + * 是否表示:1-是;0-否 + */ + isFlag?: number; + + /** + * 创建时间 + */ + createdTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/views/wcs/deviceHost/index.vue b/src/views/wcs/deviceHost/index.vue new file mode 100644 index 0000000..d5b957e --- /dev/null +++ b/src/views/wcs/deviceHost/index.vue @@ -0,0 +1,297 @@ + + + diff --git a/src/views/wcs/deviceInfo/index.vue b/src/views/wcs/deviceInfo/index.vue new file mode 100644 index 0000000..42943d9 --- /dev/null +++ b/src/views/wcs/deviceInfo/index.vue @@ -0,0 +1,275 @@ + + + diff --git a/src/views/wcs/deviceParam/index.vue b/src/views/wcs/deviceParam/index.vue new file mode 100644 index 0000000..8a3a821 --- /dev/null +++ b/src/views/wcs/deviceParam/index.vue @@ -0,0 +1,293 @@ + + + diff --git a/src/views/wcs/locationInfo/index.vue b/src/views/wcs/locationInfo/index.vue new file mode 100644 index 0000000..f500d85 --- /dev/null +++ b/src/views/wcs/locationInfo/index.vue @@ -0,0 +1,375 @@ + + + diff --git a/src/views/wcs/materialInfo/index.vue b/src/views/wcs/materialInfo/index.vue new file mode 100644 index 0000000..45f4c9d --- /dev/null +++ b/src/views/wcs/materialInfo/index.vue @@ -0,0 +1,303 @@ + + + diff --git a/src/views/wcs/pathDetails/index.vue b/src/views/wcs/pathDetails/index.vue new file mode 100644 index 0000000..710daf0 --- /dev/null +++ b/src/views/wcs/pathDetails/index.vue @@ -0,0 +1,279 @@ + + + diff --git a/src/views/wcs/pathInfo/index.vue b/src/views/wcs/pathInfo/index.vue new file mode 100644 index 0000000..53a58d4 --- /dev/null +++ b/src/views/wcs/pathInfo/index.vue @@ -0,0 +1,270 @@ + + + diff --git a/src/views/wcs/storeInfo/index.vue b/src/views/wcs/storeInfo/index.vue new file mode 100644 index 0000000..5ad29c0 --- /dev/null +++ b/src/views/wcs/storeInfo/index.vue @@ -0,0 +1,273 @@ + + +