From ba878070a51bc1985adb208a1d83277cffdaad6e 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, 24 Oct 2023 18:19:10 +0800 Subject: [PATCH] =?UTF-8?q?hotfix/2.9.42309.01-=E4=B8=AA=E7=A8=8E=20?= =?UTF-8?q?=E4=B8=AA=E7=A8=8E=E7=94=B3=E6=8A=A5=E8=A1=A8=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/declareTablelist/index.js | 38 +++++++++++++++++-- pc4mobx/hrmSalary/pages/declare/declare.js | 3 +- .../components/taxDeclarationInfo.js | 12 +++--- 3 files changed, 43 insertions(+), 10 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js b/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js index e4c3512c..936e9c9f 100644 --- a/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js +++ b/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js @@ -6,8 +6,8 @@ */ import React, { Component } from "react"; import { WeaLocaleProvider, WeaTable } from "ecCom"; -import { message, Modal } from "antd"; -import { getDeclareList, withDrawTaxDeclaration } from "../../../../apis/declare"; +import { message, Modal, Tag } from "antd"; +import { getDeclareList, taxdeclarationUpdateIcon, withDrawTaxDeclaration } from "../../../../apis/declare"; import { sysConfCodeRule } from "../../../../apis/ruleconfig"; const getLabel = WeaLocaleProvider.getLabel; @@ -31,8 +31,9 @@ class Index extends Component { } sysConfCodeRule = () => { + const { showOperateBtn } = this.props; sysConfCodeRule({ code: "WITHDRAW_TAX_DECLARATION" }).then(({ status, data }) => { - if (status && data === "1") this.setState({ showWithDrawBtn: data === "1" }); + if (status && data === "1") this.setState({ showWithDrawBtn: data === "1" && showOperateBtn }); }); }; getDeclareList = (props) => { @@ -50,7 +51,7 @@ class Index extends Component { this.setState({ dataSource, pageInfo: { ...pageInfo, pageNum, pageSize, total }, columns: _.map(columns, o => { - const { dataIndex } = o; + const { dataIndex, displayIcon } = o; let width = ""; switch (dataIndex) { case "taxAgentName": @@ -64,12 +65,41 @@ class Index extends Component { width = "10%"; break; } + if (dataIndex === "taxDeclareStatusDesc") { + return { + ...o, width, + render: (text, record) => { + return (