src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
@@ -59,6 +59,7 @@ :dataSource='sparesScrapRequirementDetailTable.dataSource' :maxHeight='300' :disabled='formDisabled' @valueChange="changeAuxiliaryQuantity" :alwaysEdit='true' :rowNumber='true' :bordered='bordered' @@ -458,6 +459,13 @@ 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.auxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.mainQuantity) } } } }