From f698ae8d66deb265dc81e85a61b804b79ae9157a Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Fri, 27 Jun 2025 14:13:26 +0800 Subject: [PATCH] 1.修复报价单新增调用sBackProcess接口报错 --- src/components/QuoQuotation/QuotationPackTableTree/QuotationPackTableTree.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/QuoQuotation/QuotationPackTableTree/QuotationPackTableTree.js b/src/components/QuoQuotation/QuotationPackTableTree/QuotationPackTableTree.js index f2fa296..b25f38f 100644 --- a/src/components/QuoQuotation/QuotationPackTableTree/QuotationPackTableTree.js +++ b/src/components/QuoQuotation/QuotationPackTableTree/QuotationPackTableTree.js @@ -1012,11 +1012,13 @@ class QuotationPackTableTree extends Component { const masterReturn = (await commonServices.postValueService(token, values, url)).data; if (masterReturn.code === 1) { - const sBackProcessDataValue = masterReturn.dataset.rows; - if (isWait) { - return { sBackProcessData: sBackProcessDataValue }; - } else { - this.props.onSaveState({ sBackProcessData: sBackProcessDataValue }); + if(commonUtils.isNotEmptyObject(masterReturn.dataset) && commonUtils.isNotEmptyArr(masterReturn.dataset.rows) ) { + const sBackProcessDataValue = masterReturn.dataset.rows; + if (isWait) { + return { sBackProcessData: sBackProcessDataValue }; + } else { + this.props.onSaveState({ sBackProcessData: sBackProcessDataValue }); + } } } else { message.warn(masterReturn.msg); -- libgit2 0.22.2