Commit 94230b74 authored by 杨芳博-DEL's avatar 杨芳博-DEL

Merge branch 'func-HIS-435' into test

parents 09206b14 51386eb2
......@@ -108,7 +108,16 @@
<a-row :gutter="30">
<a-col :sm="24" class="none-label">
<div class="btn-div flex">
<span></span>
<div class="total-div flex">
<div>
<span>记账总单数:</span>
<span>{{ totalListNum }}</span>
</div>
<div>
<span>账单总金额:</span>
<span>{{totalActualAmount}}</span>
</div>
</div>
<a-form-model-item label="button">
<a-button type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
......@@ -246,7 +255,9 @@ export default {
name: '有效',
code: 1
}
]
],
totalActualAmount: 0,
totalListNum: 0
};
},
components: {
......@@ -337,11 +348,25 @@ export default {
this.pagination.total = content.total || 0;
this.dataList = content.list || [];
this.cacheDataList[filter.pageNum] = this.dataList
this.getTotal()
} else {
this.$message.error(res.returnMsg);
}
});
},
// 计算总保费
getTotal(){
let totalNum = 0
let totalMoney= 0
if(this.dataList.length>0){
this.dataList.forEach((item)=>{
totalNum++
totalMoney += Number(item.actualAmount)
})
}
this.totalActualAmount = totalMoney.toFixed(2)
this.totalListNum = totalNum
},
// 获取保险公司下拉选项
_getCompanyOptions() {
this.$apis.GETCOMPANYOPTIONS().then((res) => {
......@@ -594,4 +619,12 @@ export default {
.btn-div{
justify-content: space-between;
}
.total-div{
gap:20px;
div span:first-child{
font-weight: bold;
font-family: PingFangSC-Medium, PingFang SC;
font-size: 14px;
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment