From 47d957a8a6cc2ee3ff8acf70b7fb5f85d40a0fd2 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Sat, 31 May 2025 22:20:43 +0800 Subject: [PATCH] =?UTF-8?q?2025-05-31=20=E6=8A=80=E6=9C=AF=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=8D=A1-=E5=B7=A5=E8=89=BA=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=88=90=E5=8A=9F=E6=89=8D=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E4=BA=86=E5=88=99=E4=B8=8D=E5=88=B7=E6=96=B0=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com_bm_bom.vue | 1 - .../com_bm_demoSlot.vue | 1 - .../com_bm_routing.vue | 24 +++++++++---------- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue index 3bd11cf..f20fb2b 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue @@ -469,7 +469,6 @@ }, searchTable(type){ - getOADetailForBM(this.searchData).then(({data}) => { this.spForm.nodeName = data.row.nodeName this.spForm.sp = data.row.sp==null?'':data.row.sp diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue index d24aedb..ea3215f 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue @@ -396,7 +396,6 @@ }) }, submitData (tempData) { - saveBMPropertiesValue(this.tableData).then(({data}) => { if (data && data.code === 0) { submitChange(tempData).then(({data}) => { diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue index b5dfc67..370e5d6 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue @@ -1585,14 +1585,11 @@ }) }, async submitData (tempData) { - await updateBMProcess(this.sheetData).then(({data}) => { + await updateBMProcess(this.sheetData).then(({data}) => { if (data && data.code === 0) { tsdBasicInformationSearch(this.searchData).then(({data}) => { - if(data.row){ - this.sheetData=data.row - window.location.reload(); - }else { - + if (data.row) { + this.sheetData = data.row } }); } else { @@ -1600,7 +1597,7 @@ return false } }) - await updateBMRoutingDetail(this.dataForm).then(({data}) => { + await updateBMRoutingDetail(this.dataForm).then(({data}) => { if (data && data.code === 0) { } else { this.$message.error(data.msg) @@ -1609,7 +1606,9 @@ }) await submitChange(tempData).then(({data}) => { if (data && data.code === 0) { - this.searchTable(); + // this.searchTable(); + // 2025-05-31 操作成功才刷新界面,如果报错了则不刷新界面 + window.location.reload(); this.submitModalFlag = false this.$message({message: '操作成功', type: 'success'}) } else { @@ -1618,12 +1617,11 @@ }) } }) - - }, - //关闭模态框后刷新下方预览 重新加载组件 - closeItemModel(){ - this.componentKey=Number( this.componentKey)+1 + + // 关闭模态框后刷新下方预览 重新加载组件 + closeItemModel () { + this.componentKey = Number( this.componentKey) + 1 this.chooseRoute(this.nowRoute) }, },