From 7c9edd509712aae05c47bbb869f29a88ec3fb2c0 Mon Sep 17 00:00:00 2001 From: liwei Date: Tue, 2 Nov 2021 13:38:13 +0800 Subject: [PATCH] jjjjjj --- src/views/plant/material/maintainbom.vue | 34 +++++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/views/plant/material/maintainbom.vue b/src/views/plant/material/maintainbom.vue index 875cda3..dbf21b6 100644 --- a/src/views/plant/material/maintainbom.vue +++ b/src/views/plant/material/maintainbom.vue @@ -57,7 +57,7 @@ /> - + @@ -427,8 +427,10 @@ export default { this.formBom['ME_BomLst-TimeUom'] = undefined this.formBom['ME_BomLst-LossRate'] = undefined this.formBom1 = {} - getBomhead(bomid).then(response => { - this.form = response.data + this.$nextTick(()=>{ + getBomhead(bomid).then(response => { + this.form = response.data + }) }) this.msgSuccess('删除成功') }).catch(function() {}) @@ -457,8 +459,10 @@ export default { updateBomlst(this.formBom).then(res => { if (res.code === 200) { this.msgSuccess('修改成功') - getBomhead(bomid).then(response => { - this.form = response.data + this.$nextTick(()=>{ + getBomhead(bomid).then(response => { + this.form = response.data + }) }) } else { this.msgError(res.msg) @@ -473,8 +477,10 @@ export default { this.formBom['ME_BomLst-BackFlushItem'] = false this.formBom['ME_BomLst-CriticalItem'] = false this.formBom1 = {} - getBomhead(bomid).then(response => { - this.form = response.data + this.$nextTick(()=>{ + getBomhead(bomid).then(response => { + this.form = response.data + }) }) } else { this.msgError(res.msg) @@ -539,12 +545,14 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset() - this.isAdd = false - getBomhead(row['ME_BomHead-BomId']).then(response => { - this.form = response.data - this.open = true - this.title = '修改' - }) + this.isAdd = false; + this.$nextTick(()=>{ + getBomhead(row['ME_BomHead-BomId']).then(({data={}}) => { + this.form = data; + this.open = true; + this.title = '修改' + }) + }); }, /** 提交按钮 */ submitForm: function() {