:ref=”refKeys[1]”
    :loading=”busWarehousingDetailTable.loading”
    :columns=”busWarehousingDetailTable.columns”
    :dataSource=”busWarehousingDetailTable.dataSource”
    :maxHeight=”300”
    :disabled=”formDisabled”
    :rowNumber=”true”
    :rowSelection=”true”
    :actionButton=”true”
    @valueChange=”valueChange”/>

    method中增加如下方法:
    valueChange(event) {
    const { type, row, column, value, target } = event
    if (column.key == “costPrice” || column.key == “num” ){
    //计算金额列
    let totalMoney = event.row.num * event.row.costPrice;
    target.setValues([{
    rowKey: row.id,
    values: { totalMoney: totalMoney }
    }])
    }

    },