进销存汇总数优化,保留两位小数,四舍五入

This commit is contained in:
季圣华
2023-05-14 21:16:39 +08:00
parent cb2a82b17b
commit b744796523
2 changed files with 5 additions and 13 deletions

View File

@@ -238,9 +238,9 @@
this.dataSource = res.data.rows;
this.ipagination.total = res.data.total;
this.tableAddTotalRow(this.columns, this.dataSource)
this.currentStock = res.data.currentStock.toFixed(2);
this.currentStockPrice = res.data.currentStockPrice.toFixed(2);
this.currentWeight = res.data.currentWeight.toFixed(2);
this.currentStock = res.data.currentStock.toFixed(2)
this.currentStockPrice = res.data.currentStockPrice.toFixed(2)
this.currentWeight = res.data.currentWeight.toFixed(2)
}
if(res.code===510){
this.$message.warning(res.data)