diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js index c288edd4..c27a6439 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js @@ -252,18 +252,15 @@ export default class Archives extends React.Component { }; // 导入 - handleBtnImport(runStatus) { + handleBtnImport = (runStatus) => { this.setState({ importVisible: true, runStatus }); - } + }; // 模板点击 handleTemplateLinkClick = (exportData) => { const { selectedKey } = this.state; - const { archivesStore: { exportTempateDownload } } = this.props; - exportTempateDownload({ - exportData, - runStatuses: selectedKey === "pending" ? ["1"] : ["2", "3"] - }); + let url = `/api/bs/hrmsalary/scheme/template/export?exportData=${exportData}&runStatuses=${selectedKey === "pending" ? "1" : "2,3"}`; + window.open(`${window.location.origin}${url}`); }; // 导入预览 diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js index c85b5dab..9887e3f9 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js @@ -440,7 +440,21 @@ export default class NormalIndex extends Component { this.setState({ returnEditPersonSlide: { ...returnEditPersonSlide, visible: false, title: "", editId: "" } }, () => { - refreshList && this.getNormalList(); + if (refreshList) { + const { current } = this.state; + const { billMonth, selectedKey, paymentOrganization } = this.props; + selectedKey === "1" + ? this.getNormalList({ + billMonth, + paymentOrganization, + current + }) + : this.getSupplementaryList({ + billMonth, + paymentOrganization, + current + }); + } }); }; @@ -515,14 +529,11 @@ export default class NormalIndex extends Component { render: (text, record) => { return (