fixed bug

This commit is contained in:
chenjianan
2019-07-05 12:16:18 +08:00
parent 04db8c6753
commit 5fd4e2cb4c
2 changed files with 20 additions and 11 deletions

View File

@@ -70,7 +70,7 @@
</el-table-column>
<el-table-column align="center" label="小计(元)" prop="小计">
<template slot-scope="scope">
{{ scope.row.小计.toFixed(2) }}
{{ scope.row.小计 ? scope.row.小计.toFixed(2) : 0 }}
</template>
</el-table-column>
<el-table-column align="center" label="单价">