From 47943f74e39ac7a9578b3da4e1a0a16698533354 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Fri, 25 Oct 2024 17:53:49 +0800
Subject: [PATCH] =?UTF-8?q?custom/=E6=B1=87=E9=80=9A=E5=BB=BA=E8=AE=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/apis/custom-apis/huitong/index.js | 4 ++++
.../custom-pages/huitong/dataDetail/index.js | 15 ++++++++++-----
pc4mobx/hrmSalary/pages/custom-pages/index.js | 2 +-
3 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/custom-apis/huitong/index.js b/pc4mobx/hrmSalary/apis/custom-apis/huitong/index.js
index ab6baa58..9e7ebc91 100644
--- a/pc4mobx/hrmSalary/apis/custom-apis/huitong/index.js
+++ b/pc4mobx/hrmSalary/apis/custom-apis/huitong/index.js
@@ -4,3 +4,7 @@ import { postFetch } from "../../../util/request";
export const getXcssDataDetail = params => {
return postFetch("/api/bs/hrmsalary/salaryacct/htjs/xcssDataDetail", params);
};
+//汇通建设-薪酬送审数据穿透(分页)
+export const getXczfsqDataDetail = params => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/htjs/xczfsqDataDetail", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js b/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js
index ada36826..de48ea23 100644
--- a/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js
@@ -13,6 +13,10 @@ import * as API from "../../../../apis/custom-apis/huitong";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
+const APIFox = {
+ submit: API.getXcssDataDetail,
+ payment: API.getXczfsqDataDetail
+};
class Index extends Component {
constructor(props) {
@@ -28,9 +32,9 @@ class Index extends Component {
}
getXcssDataDetail = () => {
- const { pageInfo } = this.state, { params } = this.props;
+ const { pageInfo } = this.state, { params: { type, ...payload } } = this.props;
this.setState({ loading: true });
- API.getXcssDataDetail({ ...params, ...pageInfo }).then(({ status, data }) => {
+ APIFox[type]({ ...payload, ...pageInfo }).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
const { pageInfo: pageParams, columns } = data;
@@ -45,6 +49,8 @@ class Index extends Component {
render() {
const { dataSource, columns, pageInfo, loading } = this.state;
+ const { params: { type } } = this.props;
+ const title = type === "submit" ? getLabel(111, "薪酬送审数据") : getLabel(112, "薪酬支付数据");
const pagination = {
...pageInfo,
showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
@@ -60,9 +66,8 @@ class Index extends Component {
};
const height = !_.isEmpty(columns) ? document.querySelector(".wea-new-top-content").style.height : "500px";
return (
-