Browse Source

2025-05-31

技术参数卡-工艺信息 操作成功才刷新界面,如果报错了则不刷新界面
master
fengyuan_yang 8 months ago
parent
commit
47d957a8a6
  1. 1
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  2. 1
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue
  3. 20
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

1
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -469,7 +469,6 @@
}, },
searchTable(type){ searchTable(type){
getOADetailForBM(this.searchData).then(({data}) => { getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName this.spForm.nodeName = data.row.nodeName
this.spForm.sp = data.row.sp==null?'':data.row.sp this.spForm.sp = data.row.sp==null?'':data.row.sp

1
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue

@ -396,7 +396,6 @@
}) })
}, },
submitData (tempData) { submitData (tempData) {
saveBMPropertiesValue(this.tableData).then(({data}) => { saveBMPropertiesValue(this.tableData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
submitChange(tempData).then(({data}) => { submitChange(tempData).then(({data}) => {

20
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -1588,11 +1588,8 @@
await updateBMProcess(this.sheetData).then(({data}) => { await updateBMProcess(this.sheetData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
tsdBasicInformationSearch(this.searchData).then(({data}) => { tsdBasicInformationSearch(this.searchData).then(({data}) => {
if(data.row){
this.sheetData=data.row
window.location.reload();
}else {
if (data.row) {
this.sheetData = data.row
} }
}); });
} else { } else {
@ -1609,7 +1606,9 @@
}) })
await submitChange(tempData).then(({data}) => { await submitChange(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.searchTable();
// this.searchTable();
// 2025-05-31
window.location.reload();
this.submitModalFlag = false this.submitModalFlag = false
this.$message({message: '操作成功', type: 'success'}) this.$message({message: '操作成功', type: 'success'})
} else { } else {
@ -1618,12 +1617,11 @@
}) })
} }
}) })
}, },
//
closeItemModel(){
this.componentKey=Number( this.componentKey)+1
//
closeItemModel () {
this.componentKey = Number( this.componentKey) + 1
this.chooseRoute(this.nowRoute) this.chooseRoute(this.nowRoute)
}, },
}, },

Loading…
Cancel
Save