| | |
| | | MesWolistPageParams, |
| | | BIZ_MES_WOPageListGetResultModel, |
| | | BIZ_MES_WO, |
| | | SaveWoBatchInput, |
| | | } from '../model/mesModel'; |
| | | import { genAction, Api, genActionPage } from '../system'; |
| | | import { defHttp } from '/@/utils/http/axios'; |
| | |
| | | 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; |
| | |
| | | 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; |
| | | }; |
| | | |
| | | /* |
| | | * 删除工单 |
| | | */ |