소스 검색

添加合计金额

xgb 2 주 전
부모
커밋
5403adde6f
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      src/views/company/companyMoneyLogs/index.vue

+ 12 - 0
src/views/company/companyMoneyLogs/index.vue

@@ -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;