From cdb8dc43cd065614db4bbce34ed3ff038d81ba30 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Tue, 23 Sep 2025 11:09:34 +0800 Subject: [PATCH] 1.处理报表无数据时新增报错 2.处理单据审批不掉原来的审批弹窗 --- src/components/Common/CommonBillEvent.js | 2 +- src/components/CommonElementEvent/StatementInfo.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Common/CommonBillEvent.js b/src/components/Common/CommonBillEvent.js index 041887e..bee8802 100644 --- a/src/components/Common/CommonBillEvent.js +++ b/src/components/Common/CommonBillEvent.js @@ -2176,7 +2176,7 @@ export default (ChildComponent) => { if (commonUtils.isNotEmptyObject(returnData.dataset)) { outData = returnData.dataset.rows[0].dataSet.outData; } - if (commonUtils.isNotEmptyStr(outData[0].sReturn)) { + if (false && commonUtils.isNotEmptyStr(outData[0].sReturn)) { const sReturnArray = outData[0].sReturn.split('|'); if (outData[0].sReturn.split('-').length < 2) { // 正常业务提示,非审核模板 diff --git a/src/components/CommonElementEvent/StatementInfo.js b/src/components/CommonElementEvent/StatementInfo.js index 8ce9e0a..cbc58b8 100644 --- a/src/components/CommonElementEvent/StatementInfo.js +++ b/src/components/CommonElementEvent/StatementInfo.js @@ -127,7 +127,7 @@ export default class StatementInfo extends Component { }; handleBtnAdd = async (name) => { const { - sModelsId, [`${name}Data`]: tableData, + sModelsId, [`${name}Data`]: tableData = [], } = this.props; let tableDataRow = await this.props.onDataRowAdd(name, true); if (commonUtils.isEmptyObject(tableDataRow)) { -- libgit2 0.22.2