From c1fa670c8fcafb1a4ed17c5e7b7251b92762a7d1 Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Thu, 7 Aug 2025 16:55:13 +0800 Subject: [PATCH] 2025/8/7 --- .../projectInfo/com_project_info_part.vue | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/views/modules/project/projectInfo/com_project_info_part.vue b/src/views/modules/project/projectInfo/com_project_info_part.vue index d447be5..27ee78b 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -3598,15 +3598,27 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ formData.append("orderRef3", this.searchData.customerId) formData.append("searchType", this.searchData.searchType) formData.append("partNos", this.searchData.partNos) - formData.append("limit", this.searchData.limit) - formData.append("page", this.searchData.page) this.isLoading = true readPartFromFile(formData).then(({data}) => { if (data && data.code === 0) { - data.rows.list.forEach(item => { - item.partNo = item.plmPartNo - this.partList2.push(item) - }) + if (data.rows.list.length > 0) { + if(typeof data.rows.list[0] ==='string'){ + let exceptionString = data.rows.list.join("") + this.$message({ + message: exceptionString, + type: 'warning', + dangerouslyUseHTMLString: true + }); + } else { + data.rows.list.forEach(item => { + item.partNo = item.plmPartNo + this.partList2.push(item) + }) + } + } else { + this.$message.success('文件中没有数据') + } + this.isLoading = false this.uploadVisible = false } else { @@ -3620,5 +3632,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/