diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js index 1fe2eab1..40f9fc83 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js @@ -84,7 +84,7 @@ export default class NormalIndex extends Component { const { status, data: sysData } = await this.sysConfCodeRule(); const { data: { sumRow: siaccountSum } } = status && sysData === "1" && selectedKey === "1" ? await this.siaccountDetailCommonListSum() : - status && sysData === "1" && await this.siaccountDetailSupplementaryListSum(); + status && sysData === "1" ? await this.siaccountDetailSupplementaryListSum() : { data: { sumRow: {} } }; this.setState({ showSum: status && sysData === "1", siaccountSum: (status && sysData === "1") ? siaccountSum : {} diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js index 477de105..65f8b835 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js @@ -47,12 +47,12 @@ class RegList extends Component { const { type, payload: { id, params } = {} } = data; if (type === "init") { const { status, data: sysData } = await this.sysConfCodeRule(); - const { data: { sumRow: siaccountSum } } = listType === "regression" ? + const { data: { sumRow: siaccountSum } } = status && sysData === "1" && listType === "regression" ? await this.siaccountDetailRecessionListSum() : - await this.siaccountDetailBalanceListSum(); + status && sysData === "1" ? await this.siaccountDetailBalanceListSum() : { data: { sumRow: {} } }; this.setState({ showSum: status && sysData === "1", - siaccountSum + siaccountSum: (status && sysData === "1") ? siaccountSum : {} }, () => this.postMessageToChild()); } else if (type === "turn") { if (id === "PAGEINFO") { @@ -110,9 +110,9 @@ class RegList extends Component { recessionList = async (module) => { const { type } = this.props; const { status: sysStatus, data: sysData } = await this.sysConfCodeRule(); - const { data: { sumRow: siaccountSum } } = type === "regression" ? + const { data: { sumRow: siaccountSum } } = sysStatus && sysData === "1" && type === "regression" ? await this.siaccountDetailRecessionListSum({ ...module }) : - await this.siaccountDetailBalanceListSum({ ...module }); + sysStatus && sysData === "1" ? await this.siaccountDetailBalanceListSum({ ...module }) : { data: { sumRow: {} } }; const { loading, pageInfo } = this.state; const billMonth = getQueryString("billMonth"); const paymentOrganization = getQueryString("paymentOrganization");