|
@@ -85,9 +85,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="数量" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" style="width: 100%;" placeholder="选择单位" v-model="scope.row.count"
|
|
|
+ <!-- <el-input size="small" style="width: 100%;" placeholder="数量" v-model="scope.row.count"
|
|
|
@change="PriceChange">
|
|
|
- </el-input>
|
|
|
+ </el-input> -->
|
|
|
+ <div class="el-input-number-style">
|
|
|
+ <el-input-number size="small" placeholder="数量" v-model="scope.row.count"
|
|
|
+ style="width: 100%;" :controls="false" @change="PriceChange"></el-input-number>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="单位" width="200">
|
|
@@ -444,7 +448,7 @@ export default {
|
|
|
var countCost = 0;
|
|
|
this.ContentList.forEach(function (item) {
|
|
|
if (item.price) {
|
|
|
- countCost += parseFloat(item.price)
|
|
|
+ countCost += Number(item.price) * Number(item.count)
|
|
|
}
|
|
|
})
|
|
|
|