Commit 24c52a3e85feff4043cb2a7361038101785eb3fe

Authored by Min
1 parent b43082e9

1.处理BtnEvent后,subbill不触发问题

src/components/Common/CommonSubBillEvent.js
@@ -2095,6 +2095,7 @@ export default (ChildComponent) => { @@ -2095,6 +2095,7 @@ export default (ChildComponent) => {
2095 } else { 2095 } else {
2096 await this.handleGetData(masterConfig, slaveConfig, checkConfig); 2096 await this.handleGetData(masterConfig, slaveConfig, checkConfig);
2097 if(commonUtils.isNotEmptyArr(slaveInfoList)) { 2097 if(commonUtils.isNotEmptyArr(slaveInfoList)) {
  2098 + console.log('slaveInfoList', slaveInfoList);
2098 slaveInfoList.forEach( async(name, index) => { 2099 slaveInfoList.forEach( async(name, index) => {
2099 const tbName = name.replace('Config', ''); 2100 const tbName = name.replace('Config', '');
2100 const {[`${tbName}Config`]: tableConfig } = this.props; 2101 const {[`${tbName}Config`]: tableConfig } = this.props;
@@ -5756,8 +5757,29 @@ export default (ChildComponent) => { @@ -5756,8 +5757,29 @@ export default (ChildComponent) => {
5756 if (this.props.app.currentPane.refresh !== undefined) { 5757 if (this.props.app.currentPane.refresh !== undefined) {
5757 this.props.app.currentPane.refresh(); 5758 this.props.app.currentPane.refresh();
5758 } 5759 }
5759 - const { masterConfig, slaveConfig, checkConfig } = this.props; 5760 + const { masterConfig, slaveConfig, checkConfig,slaveInfoList, slaveChildInfoList } = this.props;
5760 this.handleGetData(masterConfig, slaveConfig, checkConfig); 5761 this.handleGetData(masterConfig, slaveConfig, checkConfig);
  5762 + if(commonUtils.isNotEmptyArr(slaveInfoList)) {
  5763 + console.log('slaveInfoList', slaveInfoList);
  5764 + slaveInfoList.forEach( async(name, index) => {
  5765 + const tbName = name.replace('Config', '');
  5766 + const {[`${tbName}Config`]: tableConfig } = this.props;
  5767 + if (tableConfig && tableConfig.sTbName && tableConfig.sSqlStr !== "noQuery") {
  5768 + await this.handleGetOneMemoData(tbName, tableConfig);
  5769 + }
  5770 + });
  5771 + }
  5772 + if(commonUtils.isNotEmptyArr(slaveChildInfoList)) {
  5773 + console.log('slaveChildInfoList', slaveChildInfoList);
  5774 + slaveChildInfoList.forEach( async(name, index) => {
  5775 + const tbName = name.replace('Config', '');
  5776 + console.log('111', tbName);
  5777 + const {[`${tbName}Config`]: tableConfig } = this.props;
  5778 + if (tableConfig && tableConfig.sTbName && tableConfig.sSqlStr !== "noQuery") {
  5779 + await this.handleGetOneMemoData(tbName, tableConfig);
  5780 + }
  5781 + });
  5782 + }
5761 } 5783 }
5762 const { sModelsType } = this.props; 5784 const { sModelsType } = this.props;
5763 // 收付款分摊 5785 // 收付款分摊