/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-03-03 16:31:27
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2024-09-27 15:05:45
 * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/service.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { Key } from 'react';
import { request } from 'umi';

//获取table列表数据
export const getReportProjectSettingList = (params: any) => {
  return request('/costAccount/costdepartmentprofit/getMedicalProfit', {
    method: 'GET',
    params: { ...params },
  });
};

//获取执行责任中心
export const getResponsibleCenters = (
  reportType: string,
  computeDate: string,
) => {
  return request('/costAccount/costdepartmentprofit/getMedicalResponsibility', {
    method: 'GET',
    params: { reportType, computeDate },
  });
};

//损益计算

export const computeProfitReq = (computeDate: string, reportType: string) => {
  return request('/costAccount/costdepartmentprofit/calcMedicalProfit', {
    method: 'POST',
    params: { computeDate, reportType },
  });
};
