Ben Lin
2024-07-16 5a4d79d9765dfca8812638b57d5f5fe21f7a06ee
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;
};
/*
 * 删除工单
 */