Commit 04bb91b7 authored by zhengke's avatar zhengke

增加合计

parent 2481c45c
...@@ -100,6 +100,29 @@ ...@@ -100,6 +100,29 @@
</tr> </tr>
</template> </template>
</tbody> </tbody>
<tfoot v-if="dataList.length>0">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<template v-if="totalJap>0">
合计:{{totalJap}}
</template>
</td>
<td></td>
<td>
<template v-if="rmbTotal>0">
合计:{{rmbTotal}}
</template>
</td>
<td></td>
<td></td>
</tr>
</tfoot>
</table> </table>
<div class="noDataNotice" v-if="dataList.length<1"> <div class="noDataNotice" v-if="dataList.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
...@@ -128,6 +151,8 @@ ...@@ -128,6 +151,8 @@
dataList: [], dataList: [],
//供应商 //供应商
SupplierList: [], SupplierList: [],
totalJap:0,
rmbTotal:0
} }
}, },
mounted() { mounted() {
...@@ -232,7 +257,16 @@ ...@@ -232,7 +257,16 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count console.log(this.dataList,'this.dataList');
this.total = res.data.data.count;
this.totalJap=0;
this.rmbTotal=0;
this.dataList.forEach(x=>{
x.SubList.forEach(y=>{
this.totalJap+=y.SubtotalMoney;
this.rmbTotal+=y.RMBMoney;
})
})
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
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