diff --git a/src/components/Common/CommonSubBillEvent.js b/src/components/Common/CommonSubBillEvent.js index aaff444..78c7c03 100644 --- a/src/components/Common/CommonSubBillEvent.js +++ b/src/components/Common/CommonSubBillEvent.js @@ -2095,6 +2095,7 @@ export default (ChildComponent) => { } else { await this.handleGetData(masterConfig, slaveConfig, checkConfig); if(commonUtils.isNotEmptyArr(slaveInfoList)) { + console.log('slaveInfoList', slaveInfoList); slaveInfoList.forEach( async(name, index) => { const tbName = name.replace('Config', ''); const {[`${tbName}Config`]: tableConfig } = this.props; @@ -5756,8 +5757,29 @@ export default (ChildComponent) => { if (this.props.app.currentPane.refresh !== undefined) { this.props.app.currentPane.refresh(); } - const { masterConfig, slaveConfig, checkConfig } = this.props; + const { masterConfig, slaveConfig, checkConfig,slaveInfoList, slaveChildInfoList } = this.props; this.handleGetData(masterConfig, slaveConfig, checkConfig); + if(commonUtils.isNotEmptyArr(slaveInfoList)) { + console.log('slaveInfoList', slaveInfoList); + slaveInfoList.forEach( async(name, index) => { + const tbName = name.replace('Config', ''); + const {[`${tbName}Config`]: tableConfig } = this.props; + if (tableConfig && tableConfig.sTbName && tableConfig.sSqlStr !== "noQuery") { + await this.handleGetOneMemoData(tbName, tableConfig); + } + }); + } + if(commonUtils.isNotEmptyArr(slaveChildInfoList)) { + console.log('slaveChildInfoList', slaveChildInfoList); + slaveChildInfoList.forEach( async(name, index) => { + const tbName = name.replace('Config', ''); + console.log('111', tbName); + const {[`${tbName}Config`]: tableConfig } = this.props; + if (tableConfig && tableConfig.sTbName && tableConfig.sSqlStr !== "noQuery") { + await this.handleGetOneMemoData(tbName, tableConfig); + } + }); + } } const { sModelsType } = this.props; // 收付款分摊