From 4de4def9d1703802d0f8ad69b6ce78f322627e12 Mon Sep 17 00:00:00 2001 From: PQZ Date: Tue, 10 Sep 2024 19:14:35 +0800 Subject: [PATCH] 1 --- src/api/base/warehouse/index.js | 106 +++--- .../conf/warehouse/BaseWarehouseForm.vue | 333 +++++++++-------- src/views/conf/warehouse/index.vue | 348 +++++++++--------- 3 files changed, 402 insertions(+), 385 deletions(-) diff --git a/src/api/base/warehouse/index.js b/src/api/base/warehouse/index.js index 2a29f49..7294f78 100644 --- a/src/api/base/warehouse/index.js +++ b/src/api/base/warehouse/index.js @@ -1,53 +1,53 @@ -import request from '@/utils/request' - -// 创建仓库 -export function createBaseWarehouse(data) { - return request({ - url: '/conf/base-warehouse/create', - method: 'post', - data: data - }) -} - -// 更新仓库 -export function updateBaseWarehouse(data) { - return request({ - url: '/conf/base-warehouse/update', - method: 'put', - data: data - }) -} - -// 删除仓库 -export function deleteBaseWarehouse(id) { - return request({ - url: '/conf/base-warehouse/delete?id=' + id, - method: 'delete' - }) -} - -// 获得仓库 -export function getBaseWarehouse(id) { - return request({ - url: '/conf/base-warehouse/get?id=' + id, - method: 'get' - }) -} - -// 获得仓库列表 -export function getBaseWarehouseList(params) { - return request({ - url: '/conf/base-warehouse/list', - method: 'get', - params - }) -} -// 导出仓库 Excel -export function exportBaseWarehouseExcel(params) { - return request({ - url: '/conf/base-warehouse/export-excel', - method: 'get', - params, - responseType: 'blob' - }) -} \ No newline at end of file +import request from '@/utils/request' + +// 创建仓库 +export function createBaseWarehouse(data) { + return request({ + url: '/conf/baseWarehouse/create', + method: 'post', + data: data + }) +} + +// 更新仓库 +export function updateBaseWarehouse(data) { + return request({ + url: '/conf/baseWarehouse/update', + method: 'put', + data: data + }) +} + +// 删除仓库 +export function deleteBaseWarehouse(id) { + return request({ + url: '/conf/baseWarehouse/delete?id=' + id, + method: 'delete' + }) +} + +// 获得仓库 +export function getBaseWarehouse(id) { + return request({ + url: '/conf/baseWarehouse/get?id=' + id, + method: 'get' + }) +} + +// 获得仓库列表 +export function getBaseWarehouseList(params) { + return request({ + url: '/conf/baseWarehouse/list', + method: 'get', + params + }) +} +// 导出仓库 Excel +export function exportBaseWarehouseExcel(params) { + return request({ + url: '/conf/baseWarehouse/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/views/conf/warehouse/BaseWarehouseForm.vue b/src/views/conf/warehouse/BaseWarehouseForm.vue index 3e9ab05..d7f9a31 100644 --- a/src/views/conf/warehouse/BaseWarehouseForm.vue +++ b/src/views/conf/warehouse/BaseWarehouseForm.vue @@ -1,148 +1,185 @@ - - - \ No newline at end of file + + + diff --git a/src/views/conf/warehouse/index.vue b/src/views/conf/warehouse/index.vue index 2ea483e..284e64c 100644 --- a/src/views/conf/warehouse/index.vue +++ b/src/views/conf/warehouse/index.vue @@ -1,184 +1,164 @@ - - - \ No newline at end of file + + +