From 234b6cf8944ef95c415c4898f19b8fb4d12e898f Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期日, 13 十月 2024 22:44:46 +0800
Subject: [PATCH] 工艺路线增加完工节点

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

diff --git a/src/api/tigerapi/mes/wo.ts b/src/api/tigerapi/mes/wo.ts
index b1298ed..7a685fe 100644
--- a/src/api/tigerapi/mes/wo.ts
+++ b/src/api/tigerapi/mes/wo.ts
@@ -4,6 +4,9 @@
   MesWolistPageParams,
   BIZ_MES_WOPageListGetResultModel,
   BIZ_MES_WO,
+  SaveWoBatchInput,
+  BizMesWoInput,
+  BAS_LABEL_VAR_WO,
 } from '../model/mesModel';
 import { genAction, Api, genActionPage } from '../system';
 import { defHttp } from '/@/utils/http/axios';
@@ -45,12 +48,67 @@
   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;
   const data = await defHttp.post(
     { url: mesApi.SaveMesWo, params: genAction('BIZ_MES_WO', params) },
+    {
+      errorMessageMode: 'none',
+      isTransformResponse: false,
+    },
+  );
+  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;
+};
+
+/**
+ * @description: 宸ュ崟鐘舵�佹洿鏂�
+ * @param {BizMesWoInput} params
+ * @return {*}
+ */
+export const UpdateWoStatus = async (params: BizMesWoInput) => {
+  const data = await defHttp.post(
+    { url: mesApi.UpdateWoStatus, params: genAction('', params) },
+    {
+      errorMessageMode: 'none',
+      isTransformResponse: false,
+    },
+  );
+  return data;
+};
+
+/**
+ * @description: 宸ュ崟鎵规鐘舵�佹洿鏂�
+ * @param {BizMesWoInput} params
+ * @return {*}
+ */
+export const UpdateWoBatchStatus = async (params: BizMesWoInput) => {
+  const data = await defHttp.post(
+    { url: mesApi.UpdateWoBatchStatus, params: genAction('', params) },
     {
       errorMessageMode: 'none',
       isTransformResponse: false,
@@ -72,3 +130,19 @@
     },
   );
 };
+
+/**
+ * @description: 淇敼宸ュ崟妯℃澘鍙橀噺
+ * @param {BAS_LABEL_VAR_WO} params
+ * @return {*}
+ */
+export const AddOrEditLabelVarByWorkOrder = async (params: BAS_LABEL_VAR_WO) => {
+  const data = await defHttp.post(
+    { url: mesApi.AddOrEditLabelVarByWorkOrder, params: genAction('', params) },
+    {
+      errorMessageMode: 'none',
+      isTransformResponse: false,
+    },
+  );
+  return data;
+};

--
Gitblit v1.9.3