/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-03-03 16:31:27
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2025-02-21 11:35:02
 * @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 { request } from 'umi';

//获取动态表格数据
export const generateTableDataReq = (params: { periodType: string; dataYear: number; name?: string }) => {
  return request('/centerSys/datafill/getMyItemDetail', {
    method: 'GET',
    params: { ...params },
  });
};

//批量保存填报详情
export const applyBatchItemValueReq = (data: any) => {
  return request(`/centerSys/datafill/applyBatchItemValue`, {
    method: 'POST',
    data,
  });
};

//带入上一期数据
export const copyPrePeriodValueReq = (data: any) => {
  return request(`/centerSys/datafill/copyPrePeriodValue`, {
    method: 'POST',
    data,
  });
};
