Commit 913bc0f4c351c80247cdd3eeaed3e5871d8688eb
1 parent
8ebfdee3
优化新增后查询逻辑;
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Common/CommonNewBillEvent.js
| ... | ... | @@ -414,8 +414,8 @@ export default (ChildComponent) => { |
| 414 | 414 | /** 获取主表、从表、审核表数据 */ |
| 415 | 415 | handleGetData = async (masterConfig, slaveConfig, slave0Config, slave1Config, slave2Config, slave3Config, slave4Config, bEditClick, slave5Config, slave6Config, slave7Config, slave8Config, slave9Config, slave10Config) => { |
| 416 | 416 | const { currentId, app } = this.props; /* 当前页签数据 */ |
| 417 | - const sId = currentId !== undefined ? currentId : ''; | |
| 418 | 417 | const { sModelsId, masterData, sModelsType, slaveSelectedRowKeys } = this.props; |
| 418 | + const sId = currentId || masterData.sId || ""; | |
| 419 | 419 | await this.props.handleGetDataOne({ name: 'master', configData: masterConfig, condition: { sId, pageSize: '', pageNum: '' }, bEditClick }); |
| 420 | 420 | let addStateSlave = {}; |
| 421 | 421 | if (!commonUtils.isEmptyObject(slaveConfig)) { | ... | ... |