From 8b96e77069666b72e9cf6f6a8391a04e4c4352e9 Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Fri, 8 Aug 2025 12:25:55 +0800 Subject: [PATCH] 2025/8/8 --- .../projectInfo/com_project_info_part.vue | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 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 27ee78b..05b408b 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -899,6 +899,26 @@ + +
+
+ {{ message }} +
+
+ + 确 定 + +
+ @@ -986,11 +1006,20 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ if (newVal === false){ this.refreshDetailList(); } + }, + 'uploadMessageDialogVisible': { + deep: true, + handler: (val, oldVal) => { + if (val === false) { + this.messages = [] + } + } } }, data() { return { dataList: [], + messages: [], searchData: { site: '', username: this.$store.state.user.name, @@ -1729,6 +1758,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ ], characteristicSelections: [], saveItemModelFlag: false, + uploadMessageDialogVisible: false, partItemList: [], columnUnitCostList: [ { @@ -3603,12 +3633,8 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ if (data && data.code === 0) { 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 - }); + this.messages = data.rows.list + this.uploadMessageDialogVisible = true } else { data.rows.list.forEach(item => { item.partNo = item.plmPartNo