From de094ef03ee8db90bbddb0d5d419bd84fdf2ab32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Tue, 23 Jan 2024 11:22:20 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.10.1.2401.01-=E4=B8=AA=E7=A8=8E?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=AF=B9=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/declareOnlineComparison/index.js | 89 +++++++++++-------- 1 file changed, 53 insertions(+), 36 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js b/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js index 49082e64..a0006990 100644 --- a/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js +++ b/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js @@ -5,7 +5,7 @@ * Date: 2024/1/22 */ import React, { Component } from "react"; -import { WeaLocaleProvider, WeaTable, WeaTop } from "ecCom"; +import { WeaCheckbox, WeaLocaleProvider, WeaTable, WeaTop } from "ecCom"; import { getTaxdeclarationContrastList } from "../../apis/declare"; import "./index.less"; @@ -16,7 +16,8 @@ class Index extends Component { super(props); this.state = { loading: false, dataSource: [], columns: [], - pageInfo: { current: 1, pageSize: 10, total: 0 } + pageInfo: { current: 1, pageSize: 10, total: 0 }, + queryParams: { onlyShowDiffEmp: true, onlyShowDiffItem: true } }; } @@ -25,45 +26,53 @@ class Index extends Component { } getTaxdeclarationContrastList = () => { - const { pageInfo } = this.state; + const { pageInfo, queryParams } = this.state; const { params: { taxDeclarationId } } = this.props; this.setState({ loading: true }); - getTaxdeclarationContrastList({ taxDeclarationId, ...pageInfo }).then(({ status, data }) => { - this.setState({ loading: false }); - if (status) { - const { columns, pageInfo: result } = data; - const { list: dataSource, pageNum: current, pageSize, total } = result; - this.setState({ - dataSource, pageInfo: { ...pageInfo, current, pageSize, total }, - columns: _.map(columns, o => ({ - dataIndex: o, title: o, width: 150, - render: (__, record) => { - return