diff --git a/src/views/enterpriseLibrary/finance/components/child/FinanceReportUpload.vue b/src/views/enterpriseLibrary/finance/components/child/FinanceReportUpload.vue index 65c0e07..ad8386a 100644 --- a/src/views/enterpriseLibrary/finance/components/child/FinanceReportUpload.vue +++ b/src/views/enterpriseLibrary/finance/components/child/FinanceReportUpload.vue @@ -289,7 +289,7 @@ export default { if (firstFile.response?.ocrResult) { const ocrResult = firstFile.response.ocrResult if (ocrResult.status_code === 200) { - const chat_res = ocrResult.data?.chat_res + const chat_res = ocrResult.data if (chat_res && typeof chat_res === 'object') { Object.keys(chat_res).forEach(key => { const formField = this.ocrResultParams[key] diff --git a/src/views/enterpriseLibrary/finance/components/child/FinancialStatement.vue b/src/views/enterpriseLibrary/finance/components/child/FinancialStatement.vue index 8ac7ef0..3bfd2d2 100644 --- a/src/views/enterpriseLibrary/finance/components/child/FinancialStatement.vue +++ b/src/views/enterpriseLibrary/finance/components/child/FinancialStatement.vue @@ -398,7 +398,7 @@ export default { if (firstFile.response?.ocrResult) { const ocrResult = firstFile.response.ocrResult if (ocrResult.status_code === 200) { - const chat_res = ocrResult.data?.chat_res + const chat_res = ocrResult.data if (chat_res && typeof chat_res === 'object') { Object.keys(chat_res).forEach(key => { const formField = this.ocrResultParams[key] diff --git a/src/views/enterpriseLibrary/performance/components/child/CompletionAndBidInfo.vue b/src/views/enterpriseLibrary/performance/components/child/CompletionAndBidInfo.vue index b8cdabe..96c1272 100644 --- a/src/views/enterpriseLibrary/performance/components/child/CompletionAndBidInfo.vue +++ b/src/views/enterpriseLibrary/performance/components/child/CompletionAndBidInfo.vue @@ -232,7 +232,7 @@ export default { try { const firstFile = files[0] if (firstFile.response?.ocrResult?.status_code === 200) { - const chatRes = firstFile.response.ocrResult.data?.chat_res + const chatRes = firstFile.response.ocrResult.data if (chatRes) { Object.keys(chatRes).forEach(key => { const field = this.ocrResultParams[key] diff --git a/src/views/enterpriseLibrary/performance/components/child/ContractInfo.vue b/src/views/enterpriseLibrary/performance/components/child/ContractInfo.vue index 416dc86..2ce9eeb 100644 --- a/src/views/enterpriseLibrary/performance/components/child/ContractInfo.vue +++ b/src/views/enterpriseLibrary/performance/components/child/ContractInfo.vue @@ -273,7 +273,7 @@ export default { try { const firstFile = files[0] if (firstFile.response?.ocrResult?.status_code === 200) { - const chatRes = firstFile.response.ocrResult.data?.chat_res + const chatRes = firstFile.response.ocrResult.data if (chatRes && typeof chatRes === 'object') { Object.keys(chatRes).forEach(key => { const formField = this.ocrResultParams[key] diff --git a/src/views/enterpriseLibrary/qualification/components/child/QualificationFormChild.vue b/src/views/enterpriseLibrary/qualification/components/child/QualificationFormChild.vue index ee1023a..7991f7d 100644 --- a/src/views/enterpriseLibrary/qualification/components/child/QualificationFormChild.vue +++ b/src/views/enterpriseLibrary/qualification/components/child/QualificationFormChild.vue @@ -361,7 +361,7 @@ export default { if (firstFile.response?.ocrResult) { const ocrResult = firstFile.response.ocrResult; if (ocrResult.status_code === 200) { - const chat_res = ocrResult.data?.chat_res; + const chat_res = ocrResult.data; if (chat_res && typeof chat_res === 'object') { // 映射识别结果到表单字段 Object.keys(chat_res).forEach(key => {