// html <input v-model="scope.row.time" type="text" class="plan-input" style="width: 50px">次 = {{calculateTotal(scope.row)}}元 // js methods: { //删除某个项目的报价 delete_offer:function(index){ vm.offer.splice(index,1) }, calculateTotal: function (row) { row.total_price = row.price * row.number * row.time return row.total_price } }