From 8801015c55c21f1ea2fabeda23a5dc83781f58f3 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Wed, 29 Oct 2025 15:38:50 +0800
Subject: [PATCH] =?UTF-8?q?custom/=E9=92=B1=E6=99=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/dataAcquisition/attendance/index.js | 68 +++++++++++++------
.../dataAcquisition/attendance/index.less | 44 ++++++++----
2 files changed, 77 insertions(+), 35 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js
index 1a2de172..31c95dfb 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js
@@ -7,7 +7,9 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { Button, DatePicker } from "antd";
-import { WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaNewScroll, WeaReqTop } from "ecCom";
+import { WeaInputSearch, WeaLocaleProvider, WeaNewScroll, WeaReqTop } from "ecCom";
+import { postFetch } from "../../../util/request";
+import CustomSelect from "../../../components/CustomSelect";
import AttendanceDataComp from "./components/attendanceDataComp";
import FieldMangComp from "./components/fieldMangComp";
import LogDialog from "../../../components/logViewModal";
@@ -23,11 +25,17 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- fieldName: "", selectedKey: "DATA", salaryMonth: [],
+ fieldName: "", selectedKey: "DATA", salaryMonth: [], taxAgentIds: "", options: [],
logDialogVisible: false, filterConditions: "[]"
};
}
+ componentDidMount() {
+ postFetch("/api/bs/hrmsalary/taxAgent/listAuth", { filterType: "QUERY_DATA" }).then(({ status, data }) => {
+ if (status) this.setState({ options: _.map(data, k => ({ key: k.id + "", showname: k.name })) });
+ });
+ }
+
/*
* Author: 黎永顺
* Description: 考勤数据删选条件
@@ -35,27 +43,43 @@ class Index extends Component {
* Date: 2023/2/24
*/
getAttendanceDataScreen = () => {
- const { salaryMonth } = this.state;
+ const { salaryMonth, taxAgentIds, options } = this.state;
const [value1 = "", value2 = ""] = salaryMonth;
- return
- {
- return current && value2 && current.getTime() > new Date(value2).getTime();
- }}
- onChange={(val) => this.handleChangeSalaryMonth([val ? moment(val).format("YYYY-MM") : "", value2])}
- />
- 至
- {
- return current && value1 && current.getTime() < new Date(value1).getTime();
- }}
- onChange={(val) => this.handleChangeSalaryMonth([value1, val ? moment(val).format("YYYY-MM") : ""])}
- />
- ;
+ return
+
+
{getLabel(111, "薪资所属月")}:
+
+ {
+ return current && value2 && current.getTime() > new Date(value2).getTime();
+ }}
+ onChange={(val) => this.handleChangeSalaryMonth([val ? moment(val).format("YYYY-MM") : "", value2])}
+ />
+ 至
+ {
+ return current && value1 && current.getTime() < new Date(value1).getTime();
+ }}
+ onChange={(val) => this.handleChangeSalaryMonth([value1, val ? moment(val).format("YYYY-MM") : ""])}
+ />
+
+
+
+ {getLabel(111, "个税扣缴义务人")}:
+ this.setState({ taxAgentIds: val }, () => this.attendanceTableRef.getAttendanceList({
+ salaryYearMonth: _.compact(this.state.salaryMonth),
+ taxAgentIds: this.state.taxAgentIds ? this.state.taxAgentIds.split(",") : []
+ }))}/>
+
+
;
};
- handleChangeSalaryMonth = (salaryMonth) => this.setState({ salaryMonth }, () => this.attendanceTableRef.getAttendanceList({ salaryYearMonth: _.compact(this.state.salaryMonth) }));
+ handleChangeSalaryMonth = (salaryMonth) => this.setState({ salaryMonth }, () => this.attendanceTableRef.getAttendanceList({
+ salaryYearMonth: _.compact(this.state.salaryMonth),
+ taxAgentIds: this.state.taxAgentIds ? this.state.taxAgentIds.split(",") : []
+ }));
handleAddAttendFileds = () => this.fieldMangRef.handleTriggerAttendFileds();
handleImportAttendanceData = () => this.attendanceTableRef.handleImportAttendanceData({ visible: true, params: {} });
handleQuoteAttendanceData = () => {
@@ -137,4 +161,4 @@ class Index extends Component {
}
}
-export default Index;
+export default Index;
\ No newline at end of file
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less
index b8713b71..aed02b00 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less
@@ -3,19 +3,38 @@
display: flex;
flex-direction: column;
- .wea-form-item {
- height: 46px;
- line-height: 46px;
- background: #FFF;
- margin: 8px 16px 0 16px;
+ .wea-new-top-req-content {
+ .query-row {
+ background: #FFF;
+ margin: 8px 16px 0 16px;
+ display: flex;
+ align-items: center;
- .wea-form-item-label {
- line-height: 46px !important;
- padding-left: 8px !important;
- }
+ & > div.query-row-item {
+ display: flex;
+ align-items: center;
+ height: 46px;
+ padding: 0 8px;
- .to {
- padding: 0 10px
+ .title {
+ margin-right: 8px;
+ }
+
+ .query-row-item-content {
+ display: flex;
+ align-items: center;
+
+ .to {
+ padding: 0 10px
+ }
+ }
+
+ .customMuiSelect {
+ min-width: 200px;
+ display: flex;
+ align-items: center;
+ }
+ }
}
}
@@ -98,5 +117,4 @@
height: 30px;
border-radius: 0;
}
-}
-
+}
\ No newline at end of file