From c3ea99d974edcab52df680011b69fb334e4a8f98 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Mon, 6 Jan 2025 16:09:02 +0800
Subject: [PATCH] =?UTF-8?q?custom-=E6=97=AD=E5=8C=96=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/custom-apis/xhc.js | 6 +++++
.../pages/custom-pages/xhc/conditions.js | 8 +++---
.../custom-pages/xhc/departmentReport.js | 27 +++++++++++++++++--
.../pages/custom-pages/xhc/index.less | 10 +++++++
4 files changed, 45 insertions(+), 6 deletions(-)
create mode 100644 pc4mobx/hrmSalary/apis/custom-apis/xhc.js
diff --git a/pc4mobx/hrmSalary/apis/custom-apis/xhc.js b/pc4mobx/hrmSalary/apis/custom-apis/xhc.js
new file mode 100644
index 00000000..07651b9f
--- /dev/null
+++ b/pc4mobx/hrmSalary/apis/custom-apis/xhc.js
@@ -0,0 +1,6 @@
+import { postFetch } from "../../util/request";
+
+// 旭化成-报表查询
+export const getxhcDepartmentReport = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/xhcDepartmentReport/list", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js b/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js
index e7dcf93f..0d77632a 100644
--- a/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js
+++ b/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js
@@ -18,13 +18,13 @@ export const xhcConditions = [
pageSize: 10,
quickSearchName: "",
replaceDatas: [],
- title: getLabel(111, "分部"),
+ title: "所属公司",
type: "164",
viewAttr: 2
},
colSpan: 2,
conditionType: "BROWSER",
- domkey: ["subCompany"],
+ domkey: ["subCompanyIds"],
fieldcol: 18,
isQuickSearch: false,
label: "所属公司",
@@ -48,13 +48,13 @@ export const xhcConditions = [
pageSize: 10,
quickSearchName: "",
replaceDatas: [],
- title: getLabel(111, "部门"),
+ title: "所属部门",
type: "57",
viewAttr: 2
},
colSpan: 2,
conditionType: "BROWSER",
- domkey: ["department"],
+ domkey: ["departmentIds"],
fieldcol: 18,
isQuickSearch: false,
label: "所属部门",
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js b/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js
index 790bab41..32254bbd 100644
--- a/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js
+++ b/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js
@@ -1,6 +1,9 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaLocaleProvider, WeaSearchGroup, WeaTop } from "ecCom";
+import { WeaLocaleProvider, WeaTop } from "ecCom";
+import FormInfo from "../../../components/FormInfo";
+import { xhcConditions } from "./conditions";
+import * as API from "../../../apis/custom-apis/xhc";
import { Button } from "antd";
import "./index.less";
@@ -9,12 +12,32 @@ const getLabel = WeaLocaleProvider.getLabel;
@inject("XHCStore")
@observer
class DepartmentReport extends Component {
+ componentDidMount() {
+ const { XHCStore: { form } } = this.props;
+ form.initFormFields(xhcConditions);
+ this.getxhcDepartmentReport();
+ }
+
+ getxhcDepartmentReport = () => {
+ const { XHCStore: { form } } = this.props, { subCompanyIds, departmentIds } = form.getFormParams();
+ const payload = {
+ subCompanyIds: subCompanyIds ? subCompanyIds.split(",") : [],
+ departmentIds: departmentIds ? departmentIds.split(",") : []
+ };
+ API.getxhcDepartmentReport(payload).then(({ status, data }) => {
+ if (status) {
+ console.log(data);
+ }
+ });
+ };
+
render() {
+ const { XHCStore: { form } } = this.props;
return (} iconBgcolor="#F14A2D"
buttons={[]}>
-
+
);
}
}
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less b/pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less
index e69de29b..4483c6eb 100644
--- a/pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less
+++ b/pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less
@@ -0,0 +1,10 @@
+.xhc_report {
+ .wea-new-top-content {
+ background: #f6f6f6;
+ padding: 8px 16px 0 16px;
+ }
+
+ .wea-search-group {
+ margin-bottom: 8px;
+ }
+}