From 5a4d79d9765dfca8812638b57d5f5fe21f7a06ee Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 16 七月 2024 17:05:25 +0800 Subject: [PATCH] 工单下发更新 --- src/api/tigerapi/mes/wo.ts | 38 +++++++++++++++++++++++++------------- 1 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/api/tigerapi/mes/wo.ts b/src/api/tigerapi/mes/wo.ts index 29dbe90..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,12 +46,35 @@ 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, @@ -69,18 +93,6 @@ { errorMessageMode: 'none', isTransformResponse: false, - }, - ); -}; - -export const MesWoStatus = async () => { - const usParams = genAction('BIZ_MES_WO+STATUSs', ''); - return await defHttp.post( - { url: Api.urlQueryEnum, params: usParams }, - { - errorMessageMode: 'none', - isTransformResponse: false, - //apiUrl: globSetting.taskApiUrl }, ); }; -- Gitblit v1.9.3