|
@@ -302,6 +302,9 @@
|
|
|
@saveColumn="saveColumnBoxTwo"
|
|
|
@row-save="(row,done,loading)=>{rowSaveT(row,0,done,loading)}"
|
|
|
@row-update="rowSaveT">
|
|
|
+ <template slot="menuLeft" slot-scope="{size}">
|
|
|
+ <div>费用合计:{{TotalExpensesfun()}}元</div>
|
|
|
+ </template>
|
|
|
<template slot="fleetId" slot-scope="{ row, index }">
|
|
|
<crop-select
|
|
|
v-if="row.$cellEdit"
|
|
@@ -667,6 +670,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 运输信息的合计
|
|
|
+ TotalExpenses:null,
|
|
|
// 揽货员list
|
|
|
adminProfilesList: [],
|
|
|
returnButton: Boolean,
|
|
@@ -1816,6 +1821,14 @@ export default {
|
|
|
this.$refs.other.show = false
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 运输信息合计
|
|
|
+ TotalExpensesfun(){
|
|
|
+ let sum = 0
|
|
|
+ this.entrustList.map(item=>{
|
|
|
+ sum += item.landAmountD * item.ctnQuantity
|
|
|
+ })
|
|
|
+ return sum
|
|
|
+ },
|
|
|
openTrack(row) {
|
|
|
gaude({itemId: row.id, plateNo: row.plateNo, tenantId: '234557', color: '2'}).then(res => {
|
|
|
this.lineArr = res.data.data.trackArray
|