| | |
| | | :columns='sparesScrapDetailTable.columns' |
| | | :dataSource='sparesScrapDetailTable.dataSource' |
| | | :maxHeight='300' |
| | | @valueChange="changeAuxiliaryQuantity" |
| | | :disabled='formDisabled' |
| | | :rowNumber='true' |
| | | :rowSelection='true' |
| | |
| | | this.visible = false |
| | | this.$emit('close') |
| | | this.$refs.form.clearValidate() |
| | | }, |
| | | changeAuxiliaryQuantity(target){ |
| | | console.log(target.columnIndex) |
| | | let num=target.columnIndex |
| | | if (target.columnIndex ===num){ |
| | | target.row.scrapAuxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.scrapMainQuantity) |
| | | } |
| | | } |
| | | } |
| | | } |