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/stock/in/index.ts |   62 +++++++++++++++++++++++++++++++
 1 files changed, 62 insertions(+), 0 deletions(-)

diff --git a/src/api/erp/stock/in/index.ts b/src/api/erp/stock/in/index.ts
new file mode 100644
index 0000000..148b64f
--- /dev/null
+++ b/src/api/erp/stock/in/index.ts
@@ -0,0 +1,62 @@
+import request from '@/config/axios'
+
+// ERP 鍏跺畠鍏ュ簱鍗� VO
+export interface StockInVO {
+  id: number // 鍏ュ簱缂栧彿
+  no: string // 鍏ュ簱鍗曞彿
+  supplierId: number // 渚涘簲鍟嗙紪鍙�
+  inTime: Date // 鍏ュ簱鏃堕棿
+  totalCount: number // 鍚堣鏁伴噺
+  totalPrice: number // 鍚堣閲戦锛屽崟浣嶏細鍏�
+  status: number // 鐘舵��
+  remark: string // 澶囨敞
+}
+
+// ERP 鍏跺畠鍏ュ簱鍗� API
+export const StockInApi = {
+  // 鏌ヨ鍏跺畠鍏ュ簱鍗曞垎椤�
+  getStockInPage: async (params: any) => {
+    return await request.get({ url: `/erp/stock-in/page`, params })
+  },
+
+  // 鏌ヨ鍏跺畠鍏ュ簱鍗曡鎯�
+  getStockIn: async (id: number) => {
+    return await request.get({ url: `/erp/stock-in/get?id=` + id })
+  },
+
+  // 鏂板鍏跺畠鍏ュ簱鍗�
+  createStockIn: async (data: StockInVO) => {
+    return await request.post({ url: `/erp/stock-in/create`, data })
+  },
+
+  // 淇敼鍏跺畠鍏ュ簱鍗�
+  updateStockIn: async (data: StockInVO) => {
+    return await request.put({ url: `/erp/stock-in/update`, data })
+  },
+
+  // 鏇存柊鍏跺畠鍏ュ簱鍗曠殑鐘舵��
+  updateStockInStatus: async (id: number, status: number) => {
+    return await request.put({
+      url: `/erp/stock-in/update-status`,
+      params: {
+        id,
+        status
+      }
+    })
+  },
+
+  // 鍒犻櫎鍏跺畠鍏ュ簱鍗�
+  deleteStockIn: async (ids: number[]) => {
+    return await request.delete({
+      url: `/erp/stock-in/delete`,
+      params: {
+        ids: ids.join(',')
+      }
+    })
+  },
+
+  // 瀵煎嚭鍏跺畠鍏ュ簱鍗� Excel
+  exportStockIn: async (params) => {
+    return await request.download({ url: `/erp/stock-in/export-excel`, params })
+  }
+}

--
Gitblit v1.8.0