diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js index 0866b9d8..30af75d9 100644 --- a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js +++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js @@ -5,6 +5,7 @@ * Date: 2023/10/12 */ import React, { Component } from "react"; +import { inject, observer } from "mobx-react"; import { WeaLocaleProvider, WeaTable } from "ecCom"; import { Dropdown, Menu, Tag } from "antd"; import { getPayrollList } from "../../../../apis/payroll"; @@ -12,6 +13,8 @@ import moment from "moment"; const getLabel = WeaLocaleProvider.getLabel; +@inject("taxAgentStore") +@observer class Index extends Component { constructor(props) { super(props); @@ -80,6 +83,7 @@ class Index extends Component { render() { const { loading, dataSource, columns, pageInfo } = this.state; + const { taxAgentStore: { showOperateBtn } } = this.props; const pagination = { ...pageInfo, showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`, @@ -106,17 +110,29 @@ class Index extends Component { { dataIndex: "operate", title: getLabel(30585, "操作"), width: 170, render: (__, record) => { + const { canSeeDetail, sendNum, sendTotal, haveBackCalc, salaryAcctType } = record; + //显示更新模板 + const showGrant = haveBackCalc === 1 && salaryAcctType === 0; return - {getLabel(542702, "发放")} - {getLabel(83110, "查看详情")} - - {getLabel(543603, "更新模板")} - - } - > - - + { + showOperateBtn && + {getLabel(542702, "发放")} + } + { + canSeeDetail && + {getLabel(83110, "查看详情")} + } + { + sendNum !== sendTotal && !showGrant && + + {getLabel(543603, "更新模板")} + + } + > + + + } ; } }