|
|
@@ -98,6 +98,10 @@
|
|
|
@click="handleExport(2)"
|
|
|
v-hasPermi="['company:companyMoneyLogs:export2']"
|
|
|
>导出收款订单明细</el-button> -->
|
|
|
+ <!-- 合计金额: -->
|
|
|
+ <span style="">
|
|
|
+ 合计金额:{{ totalMoney.toFixed(2) }} 元
|
|
|
+ </span>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
@@ -189,6 +193,7 @@ export default {
|
|
|
name: "CompanyMoneyLogs",
|
|
|
data() {
|
|
|
return {
|
|
|
+ totalMoney: 0, // 合计金额
|
|
|
taskId:null,
|
|
|
time:null,
|
|
|
exportLoading: false,
|
|
|
@@ -279,7 +284,14 @@ export default {
|
|
|
this.queryParams.createTimeRange=null;
|
|
|
}
|
|
|
listCompanyMoneyLogs(this.queryParams).then(response => {
|
|
|
+ console.log(response.rows)
|
|
|
this.companyMoneyLogsList = response.rows;
|
|
|
+ console.log(response.rows[0])
|
|
|
+ if(response.rows.length>0){
|
|
|
+ this.totalMoney = response.rows[0].totalMoney;
|
|
|
+ }else{
|
|
|
+ this.totalMoney = 0;
|
|
|
+ }
|
|
|
console.log(this.queryParams)
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|