|
@@ -23,6 +23,20 @@
|
|
|
<el-button type="primary" size="small" plain >打印报表</el-button>
|
|
|
<el-button type="info" size="small" plain @click="designReportStart" >设计报表</el-button>
|
|
|
</template>
|
|
|
+ <template slot="header">
|
|
|
+ <el-table
|
|
|
+ :data="commodityData"
|
|
|
+ border
|
|
|
+ size="small"
|
|
|
+ @header-click="cellClick"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item,index) in commodityLabel" :key="index"
|
|
|
+ :prop="item.prop"
|
|
|
+ show-overflow-tooltip
|
|
|
+ :label="item.label" />
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
<template slot-scope="{disabled,size}" slot="dcSearch">
|
|
|
<el-radio v-model="query.dc" label="D" @input="dcInput" >应收</el-radio>
|
|
|
<el-radio v-model="query.dc" label="C" @input="dcInput" >应付</el-radio>
|
|
@@ -116,7 +130,7 @@
|
|
|
<script>
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
import {CurrentMonth, dateFormat, defaultDate3, defaultDate4} from "@/util/date";
|
|
|
- import {financeStatisticsFeeSummary} from "@/api/iosBasicData/paymentSummary"
|
|
|
+ import {financeStatisticsFeeSummary, financeStatisticsFeeSummarySum} from "@/api/iosBasicData/paymentSummary"
|
|
|
import {getBcorpsList, getBcorpslistByType} from "@/api/iosBasicData/bcorps";
|
|
|
import {getWorkDicts} from "@/api/system/dictbiz";
|
|
|
import {getDeptLazyTree} from "@/api/system/dept";
|
|
@@ -197,7 +211,6 @@
|
|
|
prop: "amountNot",
|
|
|
overHidden:true,
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
label: "查询方式",
|
|
|
prop: "type",
|
|
@@ -308,6 +321,40 @@
|
|
|
srcIdData:[], // 业务员
|
|
|
srcforParameter:{key:'id', label:'cnName', value:'cnName'},
|
|
|
selectionList:[], // 多选数据
|
|
|
+ commodityData:[], // 合计数据
|
|
|
+ // 合计的配置项
|
|
|
+ commodityLabel:[
|
|
|
+ {
|
|
|
+ id:1,
|
|
|
+ label: '应收美元',
|
|
|
+ prop:'amountUsd'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:2,
|
|
|
+ label:'应收人民币',
|
|
|
+ prop:'amount'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:3,
|
|
|
+ label: "已收款美金",
|
|
|
+ prop: "amountUsdAlready",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:4,
|
|
|
+ label: "已收款人民币",
|
|
|
+ prop: "amountAlready",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:5,
|
|
|
+ label: "未收款美金",
|
|
|
+ prop: "amountUsdNot",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:6,
|
|
|
+ label: "未收款人民币",
|
|
|
+ prop: "amountNot",
|
|
|
+ },
|
|
|
+ ],
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -542,6 +589,9 @@
|
|
|
this.page.total = data.total;
|
|
|
this.data = data.records;
|
|
|
this.loading = false;
|
|
|
+ financeStatisticsFeeSummarySum(Object.assign(params, this.query)).then(re=>{
|
|
|
+ this.commodityData = [re.data.data]
|
|
|
+ })
|
|
|
this.selectionClear();
|
|
|
});
|
|
|
},
|