From 8a81c5cfe08e53da12831dc3d95df1f3e6b8739f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 24 Jun 2025 15:18:29 +0800 Subject: [PATCH] =?UTF-8?q?2025-06-24=20=E6=8A=80=E6=9C=AF=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=8D=A1-=E6=8F=90=E4=BA=A4=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=BF=85=E5=A1=AB=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com_bm_customerInformation.vue | 16 ++++++++++++++++ .../com_bm_demoSlot.vue | 1 + .../com_bm_routing.vue | 8 ++++++++ 3 files changed, 25 insertions(+) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue index c184cdc..7a77572 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue @@ -659,6 +659,22 @@ }, submitData (tempData) { + if (this.plmTechnicalSpecificationSheetArr) { + for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { + if (!this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { + this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') + return + } + } + } + if (this.plmStepRoleBaseBmArr) { + for (let i = 0; i < this.plmStepRoleBaseBmArr.length; i++) { + if (!this.dataForm[this.plmStepRoleBaseBmArr[i].fieldId] && this.plmStepRoleBaseBmArr[i].required === 'Y') { + this.$message.warning(this.plmStepRoleBaseBmArr[i].fieldName + '不能为空!') + return + } + } + } this.submitLoading = true updateBMcustomerInfo(this.dataForm).then(({data}) => { if (data && data.code === 0) { diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue index e9522c7..bd9a661 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue @@ -383,6 +383,7 @@ }, submitData (tempData) { + this.submitLoading = true saveBMPropertiesValue(this.tableData).then(({data}) => { if (data && data.code === 0) { diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue index b9e3ee5..a3f4cb5 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue @@ -1821,6 +1821,14 @@ }, async submitData (tempData) { + if (this.plmTechnicalSpecificationSheetArr) { + for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { + if (!this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { + this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') + return + } + } + } await updateBMProcess(this.sheetData).then(({data}) => { if (data && data.code === 0) { tsdBasicInformationSearch(this.searchData).then(({data}) => {