service.js 805 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-07-26 08:54:08
  4. * @LastEditTime: 2021-08-20 08:58:28
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: /TracerMethodology_PC/src/pages/DepartmentMana/service.js
  8. */
  9. import { request } from 'umi';
  10. //获取 成本分摊前查询列表
  11. export async function getBeforeCostShareSearchList(params, options) {
  12. return request('/api/costAccount/costcostinggroup/queryStartAllocation', {
  13. method: 'GET',
  14. params:{...params},
  15. ...(options || {}),
  16. });
  17. }
  18. //导入数据
  19. export async function addIncomeCostDataImport(body, options) {
  20. const {fileFormData} = body;
  21. return request('/api/costAccount/excel/importDataByFileType', {
  22. method: 'POST',
  23. data:fileFormData,
  24. ...(options || {}),
  25. });
  26. }