custom/领悦
This commit is contained in:
parent
ebd228c496
commit
9fd9860e4a
|
|
@ -22,18 +22,33 @@ export const exportSalaryReport = (params) => {
|
|||
export const generateSIReport = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/SIReport/generate", params);
|
||||
};
|
||||
export const generateFundReport = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/FundReport/generate", params);
|
||||
};
|
||||
export const getLYSIReportList = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/SIReport/list", params);
|
||||
};
|
||||
export const getLYFundReportList = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/FundReport/list", params);
|
||||
};
|
||||
export const getLYSIReportGenerateListSum = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/SIReport/sum", params);
|
||||
};
|
||||
export const getLYFundReportGenerateListSum = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/FundReport/sum", params);
|
||||
};
|
||||
export const batchDeleteSIReport = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/SIReport/batchDelete", params);
|
||||
};
|
||||
export const batchDeleteFundReport = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/FundReport/batchDelete", params);
|
||||
};
|
||||
export const exportSIReport = (params) => {
|
||||
return postExportFetch("/api/bs/hrmsalary/ly/socialReport/export", params);
|
||||
};
|
||||
export const exportFundReport = (params) => {
|
||||
return postExportFetch("/api/bs/hrmsalary/ly/fundReport/export", params);
|
||||
};
|
||||
export const genAndPreveiw = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/PZ/genAndPreveiw", params);
|
||||
};
|
||||
|
|
@ -55,3 +70,6 @@ export const getSalaryReportFFgsList = (params) => {
|
|||
export const getSIReportGmgsList = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/SIReport/gmgsList", params);
|
||||
};
|
||||
export const getFundReportGmgsList = (params) => {
|
||||
return postFetch("/api/bs/hrmsalary/ly/FundReport/gmgsList", params);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,15 +1,18 @@
|
|||
import React from "react";
|
||||
import Route from "react-router/lib/Route";
|
||||
import CustomSalarySummary from "./lingyue/salarySummary";
|
||||
import CustomSocialFundSummary from "./lingyue/socialFundSummary";
|
||||
import CustomSISummary from "./lingyue/socialSummary";
|
||||
import CustomFundSummary from "./lingyue/fundSummary";
|
||||
import VouncherSummary from "./lingyue/vouncherSummary";
|
||||
import HistoryVouncherSummary from "./lingyue/historyVouncherSummary";
|
||||
|
||||
const CustomRoutes = [
|
||||
<Route key="customPage_salarySummary_lingyue" path="customPage_salarySummary_lingyue"
|
||||
component={CustomSalarySummary}/>,
|
||||
<Route key="customPage_socailFundSummary_lingyue" path="customPage_socailFundSummary_lingyue"
|
||||
component={CustomSocialFundSummary}/>,
|
||||
<Route key="customPage_siSummary_lingyue" path="customPage_siSummary_lingyue"
|
||||
component={CustomSISummary}/>,
|
||||
<Route key="customPage_fundSummary_lingyue" path="customPage_fundSummary_lingyue"
|
||||
component={CustomFundSummary}/>,
|
||||
<Route key="customPage_vouchers_lingyue" path="customPage_vouchers_lingyue" component={VouncherSummary}/>,
|
||||
<Route key="customPage_historyVouchers_lingyue" path="customPage_historyVouchers_lingyue"
|
||||
component={HistoryVouncherSummary}/>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,13 @@ import { Button, message } from "antd";
|
|||
import { getSearchs } from "../../../../util";
|
||||
import * as API from "../../../../apis/custom-apis/lingyue";
|
||||
import { dataConditions } from "./conditions";
|
||||
import { generateFundReport } from "../../../../apis/custom-apis/lingyue";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
const APIFOX = {
|
||||
"salarySum": API.generateSalaryReport,
|
||||
"socialFundSum": API.generateSIReport
|
||||
"socialFundSum": API.generateSIReport,
|
||||
"fundSum": API.generateFundReport
|
||||
};
|
||||
|
||||
@inject("LYStore")
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ class GenerateVouchersDialog extends Component {
|
|||
commonEnumList({ enumClass: "com.engine.salary.enums.ly.LyPZTypeEnum" })
|
||||
.then(({ status, data }) => {
|
||||
type === "salarySum" && (data = data.filter(item => !["SBJTPZ", "SBFFPZ", "GJJJTPZ", "GJJFFPZ"].includes(item.enum)));
|
||||
type === "socialFundSum" && (data = data.filter(item => !["XZJTPZ", "XZFFPZ"].includes(item.enum)));
|
||||
type === "socialFundSum" && (data = data.filter(item => !["XZJTPZ", "XZFFPZ", "GJJJTPZ", "GJJFFPZ"].includes(item.enum)));
|
||||
type === "fundSum" && (data = data.filter(item => !["XZJTPZ", "XZFFPZ", "SBJTPZ", "SBFFPZ"].includes(item.enum)));
|
||||
if (status) {
|
||||
this.setState({
|
||||
conditions: _.map(vouchersConditions, item => ({
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ const interfaceType = {
|
|||
sum: API.getLYSIReportGenerateListSum,
|
||||
export: API.exportSIReport,
|
||||
batchDel: API.batchDeleteSIReport
|
||||
},
|
||||
"fundSum": {
|
||||
list: API.getLYFundReportList,
|
||||
sum: API.getLYFundReportGenerateListSum,
|
||||
export: API.exportFundReport,
|
||||
batchDel: API.batchDeleteFundReport
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
*
|
||||
* 公积金汇总表
|
||||
* @Author: 黎永顺
|
||||
* @Date: 2024/8/28
|
||||
* @Wechat:
|
||||
* @Email: 971387674@qq.com
|
||||
* @description:
|
||||
*/
|
||||
import React, { Component } from "react";
|
||||
import { WeaLocaleProvider } from "ecCom";
|
||||
import Layout from "../layout";
|
||||
import List from "../components/list";
|
||||
import * as API from "../../../../apis/custom-apis/lingyue";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
class Index extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
query: { salaryMonth: moment().format("YYYY-MM"), ffgsqc: "" }, isQuery: false, lyAuth: false,
|
||||
companyOpts: []
|
||||
};
|
||||
this.listRef = null;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
API.getLYPermission().then(({ status, data }) => this.setState({ lyAuth: !!status && !!data }));
|
||||
this.getSIReportGmgsList();
|
||||
}
|
||||
|
||||
getSIReportGmgsList = () => {
|
||||
const { query } = this.state;
|
||||
const { salaryMonth } = query;
|
||||
API.getFundReportGmgsList({ salaryMonth }).then(({ status, data }) => {
|
||||
if (status) this.setState({ companyOpts: _.map(data, o => ({ ...o, name: o.content })) });
|
||||
});
|
||||
};
|
||||
|
||||
handleLayoutChange = ({ isQuery, ...val }) => this.setState({ query: { ...this.state.query, ...val } },
|
||||
() => {
|
||||
this.getSIReportGmgsList();
|
||||
this.setState({ isQuery });
|
||||
});
|
||||
|
||||
render() {
|
||||
const { query, isQuery, lyAuth, companyOpts } = this.state;
|
||||
return (
|
||||
<Layout title={getLabel(111, "公积金汇总表")} query={query} onChange={this.handleLayoutChange}
|
||||
companyOpts={companyOpts} listRef={this.listRef}
|
||||
isQuery={isQuery} lyAuth={lyAuth} ffgsqcLabel={getLabel(111, "购买公司全称")}>
|
||||
<List query={query} isQuery={isQuery} type="fundSum" ref={dom => this.listRef = dom}
|
||||
onInit={() => this.forceUpdate()} ffgsqcLabel={getLabel(111, "购买公司全称")}/>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Index;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*
|
||||
* 社保公积金汇总表
|
||||
* 社保汇总表
|
||||
* @Author: 黎永顺
|
||||
* @Date: 2024/8/28
|
||||
* @Wechat:
|
||||
|
|
@ -47,7 +47,7 @@ class Index extends Component {
|
|||
render() {
|
||||
const { query, isQuery, lyAuth, companyOpts } = this.state;
|
||||
return (
|
||||
<Layout title={getLabel(111, "社保公积金汇总表")} query={query} onChange={this.handleLayoutChange}
|
||||
<Layout title={getLabel(111, "社保汇总表")} query={query} onChange={this.handleLayoutChange}
|
||||
companyOpts={companyOpts} listRef={this.listRef}
|
||||
isQuery={isQuery} lyAuth={lyAuth} ffgsqcLabel={getLabel(111, "购买公司全称")}>
|
||||
<List query={query} isQuery={isQuery} type="socialFundSum" ref={dom => this.listRef = dom}
|
||||
Loading…
Reference in New Issue