This commit is contained in:
chenjianan
2018-12-19 19:05:50 +08:00
parent 16448df7c1
commit 8617386912

View File

@@ -57,7 +57,7 @@
</el-table-column> </el-table-column>
<el-table-column label="优惠后小计(元)" align="center" min-width="100" prop="金额"> <el-table-column label="优惠后小计(元)" align="center" min-width="100" prop="金额">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.金额 = Number(scope.row.优惠后单价) * Number(scope.row.数量) }} {{ scope.row.金额 = (Number(scope.row.优惠后单价) * Number(scope.row.数量)).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>