From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/erp/product/unit/index.ts |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/src/api/erp/product/unit/index.ts b/src/api/erp/product/unit/index.ts
new file mode 100644
index 0000000..1e1c8ac
--- /dev/null
+++ b/src/api/erp/product/unit/index.ts
@@ -0,0 +1,46 @@
+import request from '@/config/axios'
+
+// ERP 浜у搧鍗曚綅 VO
+export interface ProductUnitVO {
+  id: number // 鍗曚綅缂栧彿
+  name: string // 鍗曚綅鍚嶅瓧
+  status: number // 鍗曚綅鐘舵��
+}
+
+// ERP 浜у搧鍗曚綅 API
+export const ProductUnitApi = {
+  // 鏌ヨ浜у搧鍗曚綅鍒嗛〉
+  getProductUnitPage: async (params: any) => {
+    return await request.get({ url: `/erp/product-unit/page`, params })
+  },
+
+  // 鏌ヨ浜у搧鍗曚綅绮剧畝鍒楄〃
+  getProductUnitSimpleList: async () => {
+    return await request.get({ url: `/erp/product-unit/simple-list` })
+  },
+
+  // 鏌ヨ浜у搧鍗曚綅璇︽儏
+  getProductUnit: async (id: number) => {
+    return await request.get({ url: `/erp/product-unit/get?id=` + id })
+  },
+
+  // 鏂板浜у搧鍗曚綅
+  createProductUnit: async (data: ProductUnitVO) => {
+    return await request.post({ url: `/erp/product-unit/create`, data })
+  },
+
+  // 淇敼浜у搧鍗曚綅
+  updateProductUnit: async (data: ProductUnitVO) => {
+    return await request.put({ url: `/erp/product-unit/update`, data })
+  },
+
+  // 鍒犻櫎浜у搧鍗曚綅
+  deleteProductUnit: async (id: number) => {
+    return await request.delete({ url: `/erp/product-unit/delete?id=` + id })
+  },
+
+  // 瀵煎嚭浜у搧鍗曚綅 Excel
+  exportProductUnit: async (params) => {
+    return await request.download({ url: `/erp/product-unit/export-excel`, params })
+  }
+}

--
Gitblit v1.8.0