|
@ -57,7 +57,7 @@ |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 添加或修改配置对话框 --> |
|
|
<!-- 添加或修改配置对话框 --> |
|
|
<el-dialog :title="title" :visible.sync="open" fullscreen> |
|
|
|
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" v-if="open" fullscreen> |
|
|
<el-tabs type="border-card"> |
|
|
<el-tabs type="border-card"> |
|
|
<el-tab-pane label="当前字段"> |
|
|
<el-tab-pane label="当前字段"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
|
@ -427,8 +427,10 @@ export default { |
|
|
this.formBom['ME_BomLst-TimeUom'] = undefined |
|
|
this.formBom['ME_BomLst-TimeUom'] = undefined |
|
|
this.formBom['ME_BomLst-LossRate'] = undefined |
|
|
this.formBom['ME_BomLst-LossRate'] = undefined |
|
|
this.formBom1 = {} |
|
|
this.formBom1 = {} |
|
|
getBomhead(bomid).then(response => { |
|
|
|
|
|
this.form = response.data |
|
|
|
|
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
|
getBomhead(bomid).then(response => { |
|
|
|
|
|
this.form = response.data |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.msgSuccess('删除成功') |
|
|
this.msgSuccess('删除成功') |
|
|
}).catch(function() {}) |
|
|
}).catch(function() {}) |
|
@ -457,8 +459,10 @@ export default { |
|
|
updateBomlst(this.formBom).then(res => { |
|
|
updateBomlst(this.formBom).then(res => { |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
this.msgSuccess('修改成功') |
|
|
this.msgSuccess('修改成功') |
|
|
getBomhead(bomid).then(response => { |
|
|
|
|
|
this.form = response.data |
|
|
|
|
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
|
getBomhead(bomid).then(response => { |
|
|
|
|
|
this.form = response.data |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.msgError(res.msg) |
|
|
this.msgError(res.msg) |
|
@ -473,8 +477,10 @@ export default { |
|
|
this.formBom['ME_BomLst-BackFlushItem'] = false |
|
|
this.formBom['ME_BomLst-BackFlushItem'] = false |
|
|
this.formBom['ME_BomLst-CriticalItem'] = false |
|
|
this.formBom['ME_BomLst-CriticalItem'] = false |
|
|
this.formBom1 = {} |
|
|
this.formBom1 = {} |
|
|
getBomhead(bomid).then(response => { |
|
|
|
|
|
this.form = response.data |
|
|
|
|
|
|
|
|
this.$nextTick(()=>{ |
|
|
|
|
|
getBomhead(bomid).then(response => { |
|
|
|
|
|
this.form = response.data |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.msgError(res.msg) |
|
|
this.msgError(res.msg) |
|
@ -539,12 +545,14 @@ export default { |
|
|
/** 修改按钮操作 */ |
|
|
/** 修改按钮操作 */ |
|
|
handleUpdate(row) { |
|
|
handleUpdate(row) { |
|
|
this.reset() |
|
|
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() { |
|
|
submitForm: function() { |
|
|