From e249b7d4a033d27d97f2a36e4607732a7ae77812 Mon Sep 17 00:00:00 2001 From: wanghao Date: Mon, 27 Oct 2025 10:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20wms=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/baseLocation/index.ts | 76 ++++++ src/api/wms/baseLocation/types.ts | 91 ++++++++ src/api/wms/warehouseInfo/index.ts | 76 ++++++ src/api/wms/warehouseInfo/types.ts | 139 +++++++++++ src/views/wms/baseLocation/index.vue | 273 ++++++++++++++++++++++ src/views/wms/warehouseInfo/index.vue | 321 ++++++++++++++++++++++++++ 6 files changed, 976 insertions(+) create mode 100644 src/api/wms/baseLocation/index.ts create mode 100644 src/api/wms/baseLocation/types.ts create mode 100644 src/api/wms/warehouseInfo/index.ts create mode 100644 src/api/wms/warehouseInfo/types.ts create mode 100644 src/views/wms/baseLocation/index.vue create mode 100644 src/views/wms/warehouseInfo/index.vue diff --git a/src/api/wms/baseLocation/index.ts b/src/api/wms/baseLocation/index.ts new file mode 100644 index 0000000..bf79e96 --- /dev/null +++ b/src/api/wms/baseLocation/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseLocationVO, BaseLocationForm, BaseLocationQuery } from '@/api/wms/baseLocation/types'; + +/** + * 查询库位信息列表 + * @param query + * @returns {*} + */ + +export const listBaseLocation = (query?: BaseLocationQuery): AxiosPromise => { + return request({ + url: '/wms/baseLocation/list', + method: 'get', + params: query + }); +}; + +/** + * 查询库位信息详细 + * @param locationId + */ +export const getBaseLocation = (locationId: string | number): AxiosPromise => { + return request({ + url: '/wms/baseLocation/' + locationId, + method: 'get' + }); +}; + +/** + * 新增库位信息 + * @param data + */ +export const addBaseLocation = (data: BaseLocationForm) => { + return request({ + url: '/wms/baseLocation', + method: 'post', + data: data + }); +}; + +/** + * 修改库位信息 + * @param data + */ +export const updateBaseLocation = (data: BaseLocationForm) => { + return request({ + url: '/wms/baseLocation', + method: 'put', + data: data + }); +}; + +/** + * 删除库位信息 + * @param locationId + */ +export const delBaseLocation = (locationId: string | number | Array) => { + return request({ + url: '/wms/baseLocation/' + locationId, + method: 'delete' + }); +}; + +/** + * 下拉框查询库位信息列表 + * @param query + * @returns {*} + */ +export function getWmsBaseLocationList (query) { + return request({ + url: '/wms/baseLocation/getWmsBaseLocationList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/baseLocation/types.ts b/src/api/wms/baseLocation/types.ts new file mode 100644 index 0000000..3ef7c4f --- /dev/null +++ b/src/api/wms/baseLocation/types.ts @@ -0,0 +1,91 @@ +export interface BaseLocationVO { + /** + * 库位ID + */ + locationId: string | number; + + /** + * 所属仓库 + */ + warehouseId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 库位编码 + */ + locationCode: string; + + /** + * 库位状态(1启用 0禁用) + */ + activeFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface BaseLocationForm extends BaseEntity { + /** + * 库位ID + */ + locationId?: string | number; + + /** + * 所属仓库 + */ + warehouseId?: string | number; + + /** + * 库位编码 + */ + locationCode?: string; + + /** + * 库位状态(1启用 0禁用) + */ + activeFlag?: string; + +} + +export interface BaseLocationQuery extends PageQuery { + + /** + * 所属仓库 + */ + warehouseId?: string | number; + + /** + * 库位编码 + */ + locationCode?: string; + + /** + * 库位状态(1启用 0禁用) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/wms/warehouseInfo/index.ts b/src/api/wms/warehouseInfo/index.ts new file mode 100644 index 0000000..b556827 --- /dev/null +++ b/src/api/wms/warehouseInfo/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WarehouseInfoForm, WarehouseInfoQuery, WarehouseInfoVO } from '@/api/wms/warehouseInfo/types'; + +/** + * 查询仓库信息列表 + * @param query + * @returns {*} + */ + +export const listWarehouseInfo = (query?: WarehouseInfoQuery): AxiosPromise => { + return request({ + url: '/wms/warehouseInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询仓库信息详细 + * @param warehouseId + */ +export const getWarehouseInfo = (warehouseId: string | number): AxiosPromise => { + return request({ + url: '/wms/warehouseInfo/' + warehouseId, + method: 'get' + }); +}; + +/** + * 新增仓库信息 + * @param data + */ +export const addWarehouseInfo = (data: WarehouseInfoForm) => { + return request({ + url: '/wms/warehouseInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改仓库信息 + * @param data + */ +export const updateWarehouseInfo = (data: WarehouseInfoForm) => { + return request({ + url: '/wms/warehouseInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除仓库信息 + * @param warehouseId + */ +export const delWarehouseInfo = (warehouseId: string | number | Array) => { + return request({ + url: '/wms/warehouseInfo/' + warehouseId, + method: 'delete' + }); +}; + +/** + * 下拉框查询仓库信息列表 + * @param query + * @returns {*} + */ +export function getWmsWarehouseInfoList(query) { + return request({ + url: '/wms/warehouseInfo/getWmsWarehouseInfoList', + method: 'get', + params: query + }); +} diff --git a/src/api/wms/warehouseInfo/types.ts b/src/api/wms/warehouseInfo/types.ts new file mode 100644 index 0000000..5ee8298 --- /dev/null +++ b/src/api/wms/warehouseInfo/types.ts @@ -0,0 +1,139 @@ +export interface WarehouseInfoVO { + /** + * 仓库ID + */ + warehouseId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 仓库编码 + */ + warehouseCode: string; + + /** + * 仓库名称 + */ + warehouseName: string; + + /** + * 仓库类型(1原材料 8样品 9成品) + */ + warehouseType: string; + + /** + * 所属部门ID + */ + deptId: string | number; + + /** + * 仓库负责人 + */ + warehouseManager: string; + + /** + * 备注 + */ + remark: string; + + /** + * 仓库状态(1启用 0禁用) + */ + activeFlag: string; + + /** + * 删除标志(0代表存在 1代表删除) + */ + delFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; +} + +export interface WarehouseInfoForm extends BaseEntity { + /** + * 仓库ID + */ + warehouseId: string | number; + /** + * 仓库编码 + */ + warehouseCode?: string; + + /** + * 仓库名称 + */ + warehouseName?: string; + + /** + * 仓库类型(1原材料 8样品 9成品) + */ + warehouseType?: string; + + /** + * 所属部门ID + */ + deptId?: string | number; + + /** + * 仓库负责人 + */ + warehouseManager?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 仓库状态(1启用 0禁用) + */ + activeFlag?: string; +} + +export interface WarehouseInfoQuery extends PageQuery { + /** + * 仓库名称 + */ + warehouseName?: string; + + /** + * 仓库类型(1原材料 8样品 9成品) + */ + warehouseType?: string; + + /** + * 仓库状态(1启用 0禁用) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/views/wms/baseLocation/index.vue b/src/views/wms/baseLocation/index.vue new file mode 100644 index 0000000..19f0a39 --- /dev/null +++ b/src/views/wms/baseLocation/index.vue @@ -0,0 +1,273 @@ + + + diff --git a/src/views/wms/warehouseInfo/index.vue b/src/views/wms/warehouseInfo/index.vue new file mode 100644 index 0000000..69e394f --- /dev/null +++ b/src/views/wms/warehouseInfo/index.vue @@ -0,0 +1,321 @@ + + +