|
@@ -275,6 +275,9 @@
|
|
|
@click="$refs.crudBox.rowCellAdd({arrivalTime:new Date((new Date).getTime() + 8 * 60 * 60 * 1000).toJSON().split('T').join(' ').substr(0, 14)+'00:00',landAmountD:0,landWeight:0})"></el-button>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
+ <template slot="menuLeft" slot-scope="{size}">
|
|
|
+ <div>费用合计:{{TotalExpensesfun()}}元</div>
|
|
|
+ </template>
|
|
|
<template slot="ctnTypeHeader" slot-scope="{column}">
|
|
|
{{ column.label }}<span style="color:#F56C6C">*</span>
|
|
|
</template>
|
|
@@ -1833,7 +1836,8 @@ export default {
|
|
|
TotalExpensesfun(){
|
|
|
let sum = 0
|
|
|
this.entrustList.map(item=>{
|
|
|
- sum += item.landAmountD * item.ctnQuantity
|
|
|
+ item.ctnQuantity = item.ctnQuantity?item.ctnQuantity:0
|
|
|
+ sum += Number(item.landAmountD) * item.ctnQuantity
|
|
|
})
|
|
|
return sum
|
|
|
},
|