From ca8a5257ac4e838333fdd9ff3a0e90af0a0a765c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 3 Mar 2025 11:39:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(psi):=20=E6=B7=BB=E5=8A=A0=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E7=AE=A1=E7=90=86=E5=92=8C=E4=BB=93=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增仓库信息列表、添加、编辑、删除和详情功能 - 新增仓库存储列表、添加、编辑、删除和详情功能 - 实现仓库产品存储的查询、重置数量和强制校验功能 - 优化查询条件和表格展示 --- src/api/psi/warehouse.ts | 26 ++ src/api/psi/warehouse_storege.ts | 53 ++++ src/views/psi/warehouse/details.vue | 103 ++++++ src/views/psi/warehouse/edit.vue | 160 ++++++++++ src/views/psi/warehouse/index.vue | 159 ++++++++++ src/views/psi/warehouse_storege/details.vue | 99 ++++++ src/views/psi/warehouse_storege/edit.vue | 140 +++++++++ src/views/psi/warehouse_storege/index.vue | 332 ++++++++++++++++++++ 8 files changed, 1072 insertions(+) create mode 100644 src/api/psi/warehouse.ts create mode 100644 src/api/psi/warehouse_storege.ts create mode 100644 src/views/psi/warehouse/details.vue create mode 100644 src/views/psi/warehouse/edit.vue create mode 100644 src/views/psi/warehouse/index.vue create mode 100644 src/views/psi/warehouse_storege/details.vue create mode 100644 src/views/psi/warehouse_storege/edit.vue create mode 100644 src/views/psi/warehouse_storege/index.vue diff --git a/src/api/psi/warehouse.ts b/src/api/psi/warehouse.ts new file mode 100644 index 000000000..4893538fa --- /dev/null +++ b/src/api/psi/warehouse.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 仓库信息列表 +export function apiPsiWarehouseLists(params: any) { + return request.get({ url: '/warehouse/warehouse/lists', params }, { urlPrefix: 'psi' }) +} + +// 添加仓库信息 +export function apiPsiWarehouseAdd(params: any) { + return request.post({ url: '/warehouse/warehouse/add', params }, { urlPrefix: 'psi' }) +} + +// 编辑仓库信息 +export function apiPsiWarehouseEdit(params: any) { + return request.post({ url: '/warehouse/warehouse/edit', params }, { urlPrefix: 'psi' }) +} + +// 删除仓库信息 +export function apiPsiWarehouseDelete(params: any) { + return request.post({ url: '/warehouse/warehouse/delete', params }, { urlPrefix: 'psi' }) +} + +// 仓库信息详情 +export function apiPsiWarehouseDetail(params: any) { + return request.get({ url: '/warehouse/warehouse/detail', params }, { urlPrefix: 'psi' }) +} diff --git a/src/api/psi/warehouse_storege.ts b/src/api/psi/warehouse_storege.ts new file mode 100644 index 000000000..8e0645a7d --- /dev/null +++ b/src/api/psi/warehouse_storege.ts @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 仓库存储列表 +export function apiPsiWarehouseStoregeLists(params: any) { + return request.get( + { url: '/warehouse_storege/warehousestorege/lists', params }, + { urlPrefix: 'psi' } + ) +} + +// 添加仓库存储 +export function apiPsiWarehouseStoregeAdd(params: any) { + return request.post( + { url: '/warehouse_storege/warehousestorege/add', params }, + { urlPrefix: 'psi' } + ) +} + +// 编辑仓库存储 +export function apiPsiWarehouseStoregeEdit(params: any) { + return request.post( + { url: '/warehouse_storege/warehousestorege/edit', params }, + { urlPrefix: 'psi' } + ) +} + +// 删除仓库存储 +export function apiPsiWarehouseStoregeDelete(params: any) { + return request.post( + { url: '/warehouse_storege/warehousestorege/delete', params }, + { urlPrefix: 'psi' } + ) +} + +// 仓库存储详情 +export function apiPsiWarehouseStoregeDetail(params: any) { + return request.get( + { url: '/warehouse_storege/warehousestorege/detail', params }, + { urlPrefix: 'psi' } + ) +} +/** + * 是否强制校验 + * @param params + * @returns + */ +export function apiPsiWarehouseProductStoregeVerify(params: any) { + return request.post({ + url: '/warehouse_storege/warehousestorege/verify', + params + }, + { urlPrefix: 'psi' }) +} diff --git a/src/views/psi/warehouse/details.vue b/src/views/psi/warehouse/details.vue new file mode 100644 index 000000000..e81b52087 --- /dev/null +++ b/src/views/psi/warehouse/details.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/views/psi/warehouse/edit.vue b/src/views/psi/warehouse/edit.vue new file mode 100644 index 000000000..f675fc841 --- /dev/null +++ b/src/views/psi/warehouse/edit.vue @@ -0,0 +1,160 @@ + + + diff --git a/src/views/psi/warehouse/index.vue b/src/views/psi/warehouse/index.vue new file mode 100644 index 000000000..fd33c74c0 --- /dev/null +++ b/src/views/psi/warehouse/index.vue @@ -0,0 +1,159 @@ + + + diff --git a/src/views/psi/warehouse_storege/details.vue b/src/views/psi/warehouse_storege/details.vue new file mode 100644 index 000000000..dde2ede52 --- /dev/null +++ b/src/views/psi/warehouse_storege/details.vue @@ -0,0 +1,99 @@ + + + diff --git a/src/views/psi/warehouse_storege/edit.vue b/src/views/psi/warehouse_storege/edit.vue new file mode 100644 index 000000000..aca6025bb --- /dev/null +++ b/src/views/psi/warehouse_storege/edit.vue @@ -0,0 +1,140 @@ + + + diff --git a/src/views/psi/warehouse_storege/index.vue b/src/views/psi/warehouse_storege/index.vue new file mode 100644 index 000000000..84ff33c19 --- /dev/null +++ b/src/views/psi/warehouse_storege/index.vue @@ -0,0 +1,332 @@ + + +