总费用保留两位小数
This commit is contained in:
parent
88c3c5e7a3
commit
f2a1e49a1a
@ -261,7 +261,7 @@
|
||||
getAction(this.url.getByVdNo,{vdNo: vdNo}).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.records||res.result;
|
||||
this.totalPallets = this.dataSource.reduce((sum, current) => sum + current.tandardPrice, 0);
|
||||
this.totalPallets = this.dataSource.reduce((sum, current) => sum + current.tandardPrice, 0).toFixed(2);
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user