/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-01-04 13:59:26
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2024-11-07 16:14:57
 * @FilePath: /BudgetManaSystem/src/pages/budgetMana/personnelSalaryBudget/service.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { request } from '@@/plugin-request';

export const getData = (params: any, reportCode: string, parameter: any) => {
  return request('/costAccount/report/search', {
    method: 'POST',
    data: {
      ...params,
      reportCode,
      parameter,
    },
  });
};

export const getSearchRowsReq = (code: string) => {
  return request('/costAccount/report/getReportIndex', {
    method: 'GET',
    params: { reportCode: code },
  });
};

//获取跳转报表数据
export const getRedirReportData = (
  params: any,
  reportCode: string,
  parameter: any,
) => {
  return request('/costAccount/report/redirect', {
    method: 'POST',
    data: {
      ...params,
      reportCode,
      parameter,
    },
  });
};
