From f8b02c12740325665ee6d282a9bcb6647578c218 Mon Sep 17 00:00:00 2001 From: "maxw@mesnac.com" Date: Mon, 6 Jan 2025 10:17:27 +0800 Subject: [PATCH] wms configuration --- src/api/wms/configuration/index.ts | 63 +++++ src/api/wms/configuration/types.ts | 136 +++++++++++ src/views/wms/configuration/index.vue | 317 ++++++++++++++++++++++++++ 3 files changed, 516 insertions(+) create mode 100644 src/api/wms/configuration/index.ts create mode 100644 src/api/wms/configuration/types.ts create mode 100644 src/views/wms/configuration/index.vue diff --git a/src/api/wms/configuration/index.ts b/src/api/wms/configuration/index.ts new file mode 100644 index 0000000..53b8a5b --- /dev/null +++ b/src/api/wms/configuration/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ConfigurationVO, ConfigurationForm, ConfigurationQuery } from '@/api/wms/configuration/types'; + +/** + * 查询仓库模块配置列表 + * @param query + * @returns {*} + */ + +export const listConfiguration = (query?: ConfigurationQuery): AxiosPromise => { + return request({ + url: '/wms/configuration/list', + method: 'get', + params: query + }); +}; + +/** + * 查询仓库模块配置详细 + * @param configurationId + */ +export const getConfiguration = (configurationId: string | number): AxiosPromise => { + return request({ + url: '/wms/configuration/' + configurationId, + method: 'get' + }); +}; + +/** + * 新增仓库模块配置 + * @param data + */ +export const addConfiguration = (data: ConfigurationForm) => { + return request({ + url: '/wms/configuration', + method: 'post', + data: data + }); +}; + +/** + * 修改仓库模块配置 + * @param data + */ +export const updateConfiguration = (data: ConfigurationForm) => { + return request({ + url: '/wms/configuration', + method: 'put', + data: data + }); +}; + +/** + * 删除仓库模块配置 + * @param configurationId + */ +export const delConfiguration = (configurationId: string | number | Array) => { + return request({ + url: '/wms/configuration/' + configurationId, + method: 'delete' + }); +}; diff --git a/src/api/wms/configuration/types.ts b/src/api/wms/configuration/types.ts new file mode 100644 index 0000000..5f8bd6f --- /dev/null +++ b/src/api/wms/configuration/types.ts @@ -0,0 +1,136 @@ +export interface ConfigurationVO { + /** + * 表主键 + */ + configurationId: string | number; + + /** + * 节点代码 + */ + nodeCode: string; + + /** + * 节点名称 + */ + nodeName: string; + + /** + * 审批是否 + */ + approveYesNo: string; + + /** + * 审批类型(0人员审批,1角色审批,2流程审批) + */ + approveType: string; + + /** + * 审批代码 + */ + approveRoleCode: string; + + /** + * 仓库ID + */ + warehouseId: string | number; + + /** + * 审批范围(0所有仓库,1仓库) + */ + approveRange: string; + +} + +export interface ConfigurationForm extends BaseEntity { + /** + * 表主键 + */ + configurationId?: string | number; + + /** + * 节点代码 + */ + nodeCode?: string; + + /** + * 节点名称 + */ + nodeName?: string; + + /** + * 审批是否 + */ + approveYesNo?: string; + + /** + * 审批类型(0人员审批,1角色审批,2流程审批) + */ + approveType?: string; + + /** + * 审批代码 + */ + approveRoleCode?: string; + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 审批范围(0所有仓库,1仓库) + */ + approveRange?: string; + +} + +export interface ConfigurationQuery extends PageQuery { + + /** + * 表主键 + */ + configurationId?: string | number; + + /** + * 节点代码 + */ + nodeCode?: string; + + /** + * 节点名称 + */ + nodeName?: string; + + /** + * 审批是否 + */ + approveYesNo?: string; + + /** + * 审批类型(0人员审批,1角色审批,2流程审批) + */ + approveType?: string; + + /** + * 审批代码 + */ + approveRoleCode?: string; + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 审批范围(0所有仓库,1仓库) + */ + approveRange?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/configuration/index.vue b/src/views/wms/configuration/index.vue new file mode 100644 index 0000000..46c111f --- /dev/null +++ b/src/views/wms/configuration/index.vue @@ -0,0 +1,317 @@ + + +