From 24c52a3e85feff4043cb2a7361038101785eb3fe Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Thu, 28 May 2026 11:51:02 +0800 Subject: [PATCH] 1.处理BtnEvent后,subbill不触发问题 --- src/components/Common/CommonSubBillEvent.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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; // 收付款分摊 -- libgit2 0.22.2