diff --git a/smart-admin-web-typescript/src/api/business/base/item/item-api.ts b/smart-admin-web-typescript/src/api/business/base/item/item-api.ts
index 0510676..49c7b99 100644
--- a/smart-admin-web-typescript/src/api/business/base/item/item-api.ts
+++ b/smart-admin-web-typescript/src/api/business/base/item/item-api.ts
@@ -5,7 +5,7 @@
* @Date: 2024-11-25 17:08:18
* @Copyright 友仓
*/
-import {postRequest, getRequest} from '/@/lib/axios';
+import {postRequest, getRequest, getDownload} from '/@/lib/axios';
export const itemApi = {
@@ -34,8 +34,8 @@ export const itemApi = {
/**
* 删除 @author 霍锦
*/
- delete: (id: number) => {
- return getRequest('/item/delete', {id});
+ delete: (itemId: number) => {
+ return getRequest('/item/delete', {itemId});
},
/**
@@ -52,4 +52,18 @@ export const itemApi = {
return postRequest('/item/queryItem', param);
},
+ /**
+ * 导入 @author hj
+ */
+ importItems: (file: object) => {
+ return postRequest('/item/importItems', file);
+ },
+
+ /**
+ * 导出 @author hj
+ */
+ exportItems: () => {
+ return getDownload('/item/exportItems',{});
+ }
+
};
diff --git a/smart-admin-web-typescript/src/api/business/base/location/location-api.ts b/smart-admin-web-typescript/src/api/business/base/location/location-api.ts
index 35afda2..5b7d153 100644
--- a/smart-admin-web-typescript/src/api/business/base/location/location-api.ts
+++ b/smart-admin-web-typescript/src/api/business/base/location/location-api.ts
@@ -5,7 +5,7 @@
* @Date: 2024-11-18 14:17:31
* @Copyright 友仓
*/
-import {postRequest, getRequest} from '/@/lib/axios';
+import {postRequest, getRequest, getDownload} from '/@/lib/axios';
export const locationApi = {
@@ -69,7 +69,14 @@ export const locationApi = {
/**
* 导入 @author hj
*/
- importLocations: (file: object, config = {}) => {
- return postRequest('/location/importLocations', file, config);
+ importLocations: (file: object) => {
+ return postRequest('/location/importLocations', file);
},
+
+ /**
+ * 导出 @author hj
+ */
+ exportLocations : () =>{
+ return getDownload('/location/exportLocations',{});
+ }
};
diff --git a/smart-admin-web-typescript/src/api/business/base/stock/stock-api.ts b/smart-admin-web-typescript/src/api/business/base/stock/stock-api.ts
new file mode 100644
index 0000000..256370c
--- /dev/null
+++ b/smart-admin-web-typescript/src/api/business/base/stock/stock-api.ts
@@ -0,0 +1,69 @@
+/**
+ * 容器信息 api 封装
+ *
+ * @Author: 霍锦
+ * @Date: 2024-11-26 11:37:48
+ * @Copyright 友仓
+ */
+import {postRequest, getRequest,getDownload} from '/@/lib/axios';
+
+export const stockApi = {
+
+ /**
+ * 分页查询 @author 霍锦
+ */
+ queryPage: (param: object) => {
+ return postRequest('/stock/queryPage', param);
+ },
+
+ /**
+ * 增加 @author 霍锦
+ */
+ add: (param: object) => {
+ return postRequest('/stock/add', param);
+ },
+
+ /**
+ * 修改 @author 霍锦
+ */
+ update: (param: object) => {
+ return postRequest('/stock/update', param);
+ },
+
+
+ /**
+ * 删除 @author 霍锦
+ */
+ delete: (stockId: number) => {
+ return getRequest('/stock/delete', {stockId});
+ },
+
+ /**
+ * 批量删除 @author 霍锦
+ */
+ batchDelete: (idList: number[]) => {
+ return postRequest('/stock/batchDelete', idList);
+ },
+ /**
+ * 下拉查询 @author hj
+ */
+ queryStock: (param: object) => {
+ return postRequest('/stock/queryStock', param);
+ },
+
+ /**
+ * 导入 @author hj
+ */
+ importStocks: (file: object) => {
+ return postRequest('/stock/importStocks', file);
+ },
+
+ /**
+ * 导出 @author hj
+ */
+ exportStocks: () => {
+ return getDownload('/stock/exportStocks', {});
+ }
+
+
+};
diff --git a/smart-admin-web-typescript/src/api/business/base/stock/stock-const.ts b/smart-admin-web-typescript/src/api/business/base/stock/stock-const.ts
new file mode 100644
index 0000000..af16329
--- /dev/null
+++ b/smart-admin-web-typescript/src/api/business/base/stock/stock-const.ts
@@ -0,0 +1,11 @@
+/**
+ * 容器信息 枚举
+ *
+ * @Author: 霍锦
+ * @Date: 2024-11-26 11:37:48
+ * @Copyright 友仓
+ */
+
+
+export default {
+};
\ No newline at end of file
diff --git a/smart-admin-web-typescript/src/constants/support/table-id-const.ts b/smart-admin-web-typescript/src/constants/support/table-id-const.ts
index 9c32c16..2344c68 100644
--- a/smart-admin-web-typescript/src/constants/support/table-id-const.ts
+++ b/smart-admin-web-typescript/src/constants/support/table-id-const.ts
@@ -38,6 +38,7 @@ export const TABLE_ID_CONST = {
AREA:businessBASEInitTableId+1,//库区
LOCATION:businessBASEInitTableId+2,//库位
ITEM:businessBASEInitTableId+3,//商品
+ STOCK:businessBASEInitTableId+4,//容器
}
},
diff --git a/smart-admin-web-typescript/src/lib/axios.ts b/smart-admin-web-typescript/src/lib/axios.ts
index 2b2b226..45f7523 100644
--- a/smart-admin-web-typescript/src/lib/axios.ts
+++ b/smart-admin-web-typescript/src/lib/axios.ts
@@ -146,12 +146,11 @@ export const request = (config) => {
/**
* post请求
*/
-export const postRequest = (url, data,configs = {}) => {
+export const postRequest = (url, data) => {
return request({
data,
url,
- method: 'post',
- ...configs,
+ method: 'post'
});
};
diff --git a/smart-admin-web-typescript/src/views/business/base/area/area-list.vue b/smart-admin-web-typescript/src/views/business/base/area/area-list.vue
index 51ebcdd..2e23f05 100644
--- a/smart-admin-web-typescript/src/views/business/base/area/area-list.vue
+++ b/smart-admin-web-typescript/src/views/business/base/area/area-list.vue
@@ -180,7 +180,7 @@ const columns = ref([
title: '操作',
dataIndex: 'action',
fixed: 'right',
- width: 90,
+ width: 140,
},
]);
diff --git a/smart-admin-web-typescript/src/views/business/base/area/area-select.vue b/smart-admin-web-typescript/src/views/business/base/area/area-select.vue
index 66018e2..4f84f8c 100644
--- a/smart-admin-web-typescript/src/views/business/base/area/area-select.vue
+++ b/smart-admin-web-typescript/src/views/business/base/area/area-select.vue
@@ -49,7 +49,7 @@ const props = defineProps({
default: false,
},
areaNames: {
- type: Array as () => any[],
+ type: Array as () => string[],
default: () => []
},
disabledFlag: {
diff --git a/smart-admin-web-typescript/src/views/business/base/item/item-list.vue b/smart-admin-web-typescript/src/views/business/base/item/item-list.vue
index 8844aec..c60cd50 100644
--- a/smart-admin-web-typescript/src/views/business/base/item/item-list.vue
+++ b/smart-admin-web-typescript/src/views/business/base/item/item-list.vue
@@ -53,6 +53,19 @@
批量删除
+