hotfix/2.9.42310.02

This commit is contained in:
黎永顺 2023-10-30 15:54:25 +08:00
parent 4acdff060c
commit e246e10af7
3 changed files with 8 additions and 6 deletions

View File

@ -634,7 +634,7 @@ class Index extends Component {
});
}}>调薪</Button>);
}
selectedKey !== "stop" && arrList.push(<Button type="primary" onClick={this.handleSave}>保存</Button>);
(showOperateBtn && selectedKey !== "stop") && arrList.push(<Button type="primary" onClick={this.handleSave}>保存</Button>);
return arrList;
};
//切换tab
@ -730,7 +730,7 @@ class Index extends Component {
paysetParams,
extEmpsWitch
} = this.state;
const { payrollFilesStore: { tableStore } } = this.props;
const { payrollFilesStore: { tableStore }, taxAgentStore: { showOperateBtn } } = this.props;
const renderSearch = () => {
const searchItems = [
{ com: this.Input("姓名", "username") },
@ -871,6 +871,7 @@ class Index extends Component {
<SalaryFileViewSlide
id={slideParams.id}
selectedKey={selectedKey}
showOperateBtn={showOperateBtn}
handleSetpay={this.handleSetpay}
paysetParams={paysetParams}
onChangePaySetParams={(res) => {

View File

@ -59,7 +59,7 @@ export default class SalaryItemChangeList extends React.Component {
// 获取Columns
getColumns = () => {
const { salaryFileStore: { singleSalaryItemList }, selectedKey } = this.props;
const { salaryFileStore: { singleSalaryItemList }, selectedKey, showOperateBtn } = this.props;
let columns = [];
if (singleSalaryItemList.columns) {
columns = _.map([...singleSalaryItemList.columns], o => {
@ -83,7 +83,7 @@ export default class SalaryItemChangeList extends React.Component {
}
return { ...o, width, render: text => (<span title={text}>{text}</span>) };
});
if (selectedKey === "fixed") {
if (showOperateBtn && selectedKey === "fixed") {
columns = [...columns, {
dataIndex: "operate", fixed: "right", width: 120, title: "操作",
render: (text, record) => {

View File

@ -80,7 +80,8 @@ export default class SalaryFileViewSlide extends React.Component {
salaryFileStore: { detailForm, adjustSalaryItems, setAdjustSalaryItems },
selectedKey,
handleSetpay,
paysetParams
paysetParams,
showOperateBtn
} = this.props;
const { baseInfo } = detailForm;
const items = [
@ -189,7 +190,7 @@ export default class SalaryFileViewSlide extends React.Component {
>
{
this.state.selectedTab === "0" ?
<SalaryItemChangeList id={this.props.id} selectedKey={selectedKey}/> :
<SalaryItemChangeList id={this.props.id} selectedKey={selectedKey} showOperateBtn={showOperateBtn}/> :
<TaxAgentChangeList id={this.props.id}/>
}
</WeaSearchGroup>