From 50111114eb8254fe4d6fc15e9781f2c47e3db74a Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 24 七月 2024 00:12:52 +0800
Subject: [PATCH] 删除工艺路线绑定

---
 src/api/tigerapi/mes/wo.ts |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/src/api/tigerapi/mes/wo.ts b/src/api/tigerapi/mes/wo.ts
index b1298ed..b3faa28 100644
--- a/src/api/tigerapi/mes/wo.ts
+++ b/src/api/tigerapi/mes/wo.ts
@@ -4,6 +4,7 @@
   MesWolistPageParams,
   BIZ_MES_WOPageListGetResultModel,
   BIZ_MES_WO,
+  SaveWoBatchInput,
 } from '../model/mesModel';
 import { genAction, Api, genActionPage } from '../system';
 import { defHttp } from '/@/utils/http/axios';
@@ -45,7 +46,11 @@
   return model;
 }
 
-//淇濆瓨
+/**
+ * @description: 淇濆瓨宸ュ崟鏅�氭柟娉�
+ * @param {BIZ_MES_WO} params
+ * @return {*}
+ */
 export const SaveMesWo = async (params: BIZ_MES_WO) => {
   params.CREATE_USER = useUserStore().getUserInfo.userId as string;
   params.UPDATE_USER = useUserStore().getUserInfo.userId as string;
@@ -59,6 +64,25 @@
   return data;
 };
 
+/**
+ * @description: 涓嬪彂淇濆瓨鎵规宸ュ崟淇℃伅
+ * @param {SaveWoBatchInput} params
+ * @return {*}
+ */
+export const SaveMesBatchWo = async (params: SaveWoBatchInput) => {
+  params.Wo.UPDATE_USER = useUserStore().getUserInfo.userId as string;
+  params.WoBatch.CREATE_USER = useUserStore().getUserInfo.userId as string;
+  params.WoBatch.UPDATE_USER = useUserStore().getUserInfo.userId as string;
+  const data = await defHttp.post(
+    { url: mesApi.SaveMesBatchWo, params: genAction('BIZ_MES_WO_BATCH', params) },
+    {
+      errorMessageMode: 'none',
+      isTransformResponse: false,
+    },
+  );
+  return data;
+};
+
 /*
  * 鍒犻櫎宸ュ崟
  */

--
Gitblit v1.9.3