|
|
@ -453,7 +453,7 @@ export default { |
|
|
|
if (this.formBom['ME_BomLst-LossRate']) { |
|
|
|
this.formBom['ME_BomLst-LossRate'] = parseFloat(this.formBom['ME_BomLst-LossRate']) |
|
|
|
} |
|
|
|
if (this.editType === '编辑模式') { |
|
|
|
if (this.editType == '编辑模式') { |
|
|
|
updateBomlst(this.formBom).then(res => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.msgSuccess('修改成功') |
|
|
@ -464,8 +464,7 @@ export default { |
|
|
|
this.msgError(res.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if (this.editType === '新增模式') { |
|
|
|
} else if (this.editType == '新增模式') { |
|
|
|
addBomlst(this.formBom).then(res => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.msgSuccess('新增成功') |
|
|
@ -481,8 +480,8 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
this.formBom1 = {} |
|
|
|
this.editType = '' |
|
|
|
// this.formBom1 = {} |
|
|
|
// this.editType = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 表单重置 |
|
|
|