From b22933bd02cbf27ef9476b86ea0687a747c9b68b Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Fri, 14 Mar 2025 09:59:05 +0800 Subject: [PATCH] =?UTF-8?q?custom-=E8=89=BE=E5=BF=97=E5=B7=A5=E4=B8=9A-?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=AA=E7=A8=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/apis/custom-apis/azInterface.js | 10 +++++ .../az/salaryFileReports/index.js | 45 ++++++++++++++++--- .../az/salaryFileReports/index.less | 5 +++ 3 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 pc4mobx/hrmSalary/apis/custom-apis/azInterface.js create mode 100644 pc4mobx/hrmSalary/pages/custom-pages/az/salaryFileReports/index.less diff --git a/pc4mobx/hrmSalary/apis/custom-apis/azInterface.js b/pc4mobx/hrmSalary/apis/custom-apis/azInterface.js new file mode 100644 index 00000000..5d97fcd5 --- /dev/null +++ b/pc4mobx/hrmSalary/apis/custom-apis/azInterface.js @@ -0,0 +1,10 @@ +import { postExportFetch, postFetch } from "../../util/request"; + +// 艾志-薪资档案报表 +export const getAZAdjustList = params => { + return postFetch("/api/bs/hrmsalary/salaryArchive/azAdjustList", params); +}; +// 艾志-导出薪资档案报表 +export const exportAzAdjustList = params => { + return postExportFetch("/api/bs/hrmsalary/salaryArchive/exportAzAdjustList", params); +}; diff --git a/pc4mobx/hrmSalary/pages/custom-pages/az/salaryFileReports/index.js b/pc4mobx/hrmSalary/pages/custom-pages/az/salaryFileReports/index.js index fbed35f0..c19b7a98 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/az/salaryFileReports/index.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/az/salaryFileReports/index.js @@ -8,17 +8,52 @@ * @description: */ import React, { Component } from "react"; -import { WeaLocaleProvider } from "ecCom"; +import { WeaLoadingGlobal, WeaLocaleProvider, WeaRangePicker, WeaTop } from "ecCom"; +import * as API from "../../../../apis/custom-apis/azInterface"; +import { Button } from "antd"; +import "./index.less"; const getLabel = WeaLocaleProvider.getLabel; class Index extends Component { + constructor(props) { + super(props); + this.state = { + dataSource: [], columns: [], loading: false, pageInfo: { current: 1, pageSize: 10, total: 0 }, + effectiveTime: [] + }; + } + + componentDidMount() { + this.getAZAdjustList(); + } + + getAZAdjustList = () => { + const payload = { + ...this.state.pageInfo, effectiveTime: this.state.effectiveTime + }; + API.getAZAdjustList(payload).then(({ status, data }) => { + if (status) { + console.log(data); + } + }); + }; + handleExport = () => { + WeaLoadingGlobal.start(); + const payload = { effectiveTime: this.state.effectiveTime }; + const promise = API.exportAzAdjustList(payload); + }; + render() { + const { effectiveTime } = this.state; return ( -