|
|
@ -365,33 +365,36 @@ export default { |
|
|
|
this.reset() |
|
|
|
}, |
|
|
|
addBomItem() { |
|
|
|
this.editType = '新增模式' |
|
|
|
this.editType = '新增模式'; |
|
|
|
let formBom = {}; |
|
|
|
|
|
|
|
if (!this.formBom1['ME_BomLst-CmatNr']) { |
|
|
|
this.formBom['ME_BomLst-FmatNr'] = this.form['ME_BomHead-MatNr'] |
|
|
|
this.formBom['ME_BomLst-BomId'] = this.form['ME_BomHead-BomId'] |
|
|
|
formBom['ME_BomLst-FmatNr'] = this.form['ME_BomHead-MatNr'] |
|
|
|
formBom['ME_BomLst-BomId'] = this.form['ME_BomHead-BomId'] |
|
|
|
} else { |
|
|
|
this.formBom['ME_BomLst-FmatNr'] = this.formBom1['ME_BomLst-CmatNr'] |
|
|
|
formBom['ME_BomLst-FmatNr'] = this.formBom1['ME_BomLst-CmatNr'] |
|
|
|
} |
|
|
|
this.formBom['ME_BomLst-FmatName'] = this.formBom1['ME_BomLst-CmatName'] |
|
|
|
this.formBom['ME_BomLst-FmatQty'] = undefined |
|
|
|
this.formBom['ME_BomLst-FmatUom'] = undefined |
|
|
|
this.formBom['ME_BomLst-CmatNr'] = undefined |
|
|
|
this.formBom['ME_BomLst-LevelNr'] = this.formBom1['ME_BomLst-LevelNr'] ? this.formBom1['ME_BomLst-LevelNr'] + 1 : 1 |
|
|
|
this.formBom['ME_BomLst-CmatName'] = undefined |
|
|
|
this.formBom['ME_BomLst-CmatQty'] = undefined |
|
|
|
this.formBom['ME_BomLst-CmatUom'] = undefined |
|
|
|
this.formBom['ME_BomLst-CmatType'] = undefined |
|
|
|
this.formBom['ME_BomLst-Position'] = undefined |
|
|
|
this.formBom['ME_BomLst-BackFlushItem'] = false |
|
|
|
this.formBom['ME_BomLst-CriticalItem'] = false |
|
|
|
this.formBom['ME_BomLst-ValidFrom'] = undefined |
|
|
|
this.formBom['ME_BomLst-ValidTo'] = undefined |
|
|
|
this.formBom['ME_BomLst-FmatSpec'] = undefined |
|
|
|
this.formBom['ME_BomLst-BomlstCval2'] = undefined |
|
|
|
this.formBom['ME_BomLst-BomlstIval1'] = undefined |
|
|
|
this.formBom['ME_BomLst-BomlstIval2'] = undefined |
|
|
|
this.formBom['ME_BomLst-TimeUom'] = undefined |
|
|
|
this.formBom['ME_BomLst-LossRate'] = undefined |
|
|
|
formBom['ME_BomLst-FmatQty'] = undefined |
|
|
|
formBom['ME_BomLst-FmatName'] = this.formBom1['ME_BomLst-CmatName'] |
|
|
|
formBom['ME_BomLst-FmatUom'] = undefined |
|
|
|
formBom['ME_BomLst-CmatNr'] = undefined |
|
|
|
formBom['ME_BomLst-LevelNr'] = this.formBom1['ME_BomLst-LevelNr'] ? this.formBom1['ME_BomLst-LevelNr'] + 1 : 1 |
|
|
|
formBom['ME_BomLst-CmatName'] = undefined |
|
|
|
formBom['ME_BomLst-CmatQty'] = undefined |
|
|
|
formBom['ME_BomLst-CmatUom'] = undefined |
|
|
|
formBom['ME_BomLst-CmatType'] = undefined |
|
|
|
formBom['ME_BomLst-Position'] = undefined |
|
|
|
formBom['ME_BomLst-BackFlushItem'] = false |
|
|
|
formBom['ME_BomLst-CriticalItem'] = false |
|
|
|
formBom['ME_BomLst-ValidFrom'] = undefined |
|
|
|
formBom['ME_BomLst-ValidTo'] = undefined |
|
|
|
formBom['ME_BomLst-FmatSpec'] = undefined |
|
|
|
formBom['ME_BomLst-BomlstCval2'] = undefined |
|
|
|
formBom['ME_BomLst-BomlstIval1'] = undefined |
|
|
|
formBom['ME_BomLst-BomlstIval2'] = undefined |
|
|
|
formBom['ME_BomLst-TimeUom'] = undefined |
|
|
|
formBom['ME_BomLst-LossRate'] = undefined |
|
|
|
this.formBom = JSON.parse(JSON.stringify(formBom)); |
|
|
|
this.isBomlst = false |
|
|
|
// this.$forceUpdate() |
|
|
|
}, |
|
|
@ -458,7 +461,7 @@ export default { |
|
|
|
if (res.code === 200) { |
|
|
|
this.msgSuccess('修改成功') |
|
|
|
this.formBom1 = {}; |
|
|
|
this.editType = '' |
|
|
|
// this.editType = '' |
|
|
|
getBomhead(bomid).then(response => { |
|
|
|
this.form = response.data |
|
|
|
}) |
|
|
@ -474,7 +477,7 @@ export default { |
|
|
|
this.formBom['ME_BomLst-BackFlushItem'] = false |
|
|
|
this.formBom['ME_BomLst-CriticalItem'] = false |
|
|
|
this.formBom1 = {}; |
|
|
|
this.editType = '' |
|
|
|
// this.editType = '' |
|
|
|
getBomhead(bomid).then(response => { |
|
|
|
this.form = response.data |
|
|
|
}) |
|
|
|