From 3baaad59171ded6aca17340fcc907acbeeb45b7b Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 08 四月 2025 08:14:43 +0800
Subject: [PATCH] Merge branch 'main' of http://lanpucloud.cn:1111/r/eims-master

---
 eims-ui/apps/web-antd/src/api/eims/spare-inout/index.ts |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/api/eims/spare-inout/index.ts b/eims-ui/apps/web-antd/src/api/eims/spare-inout/index.ts
new file mode 100644
index 0000000..ca8ca0b
--- /dev/null
+++ b/eims-ui/apps/web-antd/src/api/eims/spare-inout/index.ts
@@ -0,0 +1,61 @@
+import type { IDS, PageQuery, PageResult } from '#/api/common';
+import type { SpareInoutVO } from '#/api/eims/spare-inout/model';
+
+import { commonExport } from '#/api/helper';
+import { requestClient } from '#/api/request';
+
+enum Api {
+  root = '/eims/spareInout',
+  spareInoutExport = '/eims/spareInout/export',
+  spareInoutList = '/eims/spareInout/list'
+}
+
+/**
+ * 鏌ヨ銆愬浠跺彴璐︺�戝垪琛�
+ * @param query
+ * @returns {*}
+ */
+
+export function listSpareInout(params?: PageQuery) {
+  return requestClient.get<PageResult<SpareInoutVO>>(Api.spareInoutList, { params });
+}
+
+/**
+ * 鏌ヨ銆愬浠跺彴璐︺�戣缁�
+ * @param spareInoutId
+ */
+export function getSpareInout(spareInoutId: any) {
+  return requestClient.get<SpareInoutVO>(`${Api.root}/${spareInoutId}`);
+}
+
+/**
+ * 鏂板銆愬浠跺彴璐︺��
+ * @param data
+ */
+export function addSpareInout(data: any) {
+  return requestClient.postWithMsg<void>(Api.root, data);
+}
+
+/**
+ * 淇敼銆愬浠跺彴璐︺��
+ * @param data
+ */
+export function updateSpareInout(data: any) {
+  return requestClient.putWithMsg<void>(Api.root, data);
+}
+
+/**
+ * 鍒犻櫎銆愬浠跺彴璐︺��
+ * @param spareInoutIds
+ */
+export function delSpareInout(spareInoutIds: IDS) {
+  return requestClient.deleteWithMsg<void>(`${Api.root}/${spareInoutIds}`);
+}
+
+/**
+ * 瀵煎嚭銆愬浠跺彴璐︺��
+ * @param data
+ */
+export function spareInoutExport(data: any) {
+  return commonExport(Api.spareInoutExport, data);
+}

--
Gitblit v1.9.3