import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * 查询要素信息
 */
export const getFinElements = () => {
  return request({
    url: '/bfs/dataElements/quryFinElements',
    method: 'post'
  });
};

export const saveFinElementsMapping = (data: any) => {
  return request({
    url: '/bfs/dataElements/saveFinElementsMapping',
    method: 'post',
    data: data
  });
};

export const getFinElementsMapping = (costId: string, finItemCode: string, finItemType: string) => {
  const data = {
    costId,
    finItemCode,
    finItemType
  };
  return request({
    url: '/bfs/dataElements/getFinElementsMapping',
    method: 'post',
    data: data
  });
};
