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) }, },