diff --git a/jshERP-web/src/views/report/InOutStockReport.vue b/jshERP-web/src/views/report/InOutStockReport.vue index 51d09a94..f3424a42 100644 --- a/jshERP-web/src/views/report/InOutStockReport.vue +++ b/jshERP-web/src/views/report/InOutStockReport.vue @@ -213,16 +213,8 @@ param.monthTime = this.queryParam.monthTime; getAction(this.url.totalCountMoney, param).then((res)=>{ if(res && res.code === 200) { - let stock = res.data.totalStock.toString(); - let count = res.data.totalCount.toString(); - if (stock.lastIndexOf('.') > -1) { - stock = stock.substring(0, stock.lastIndexOf('.') + 3); - } - if (count.lastIndexOf('.') > -1) { - count = count.substring(0, count.lastIndexOf('.') + 3); - } - this.totalStockStr = stock; - this.totalCountMoneyStr = count; + this.totalStockStr = res.data.totalStock.toFixed(2) + this.totalCountMoneyStr = res.data.totalCount.toFixed(2) } }) }, diff --git a/jshERP-web/src/views/report/MaterialStock.vue b/jshERP-web/src/views/report/MaterialStock.vue index 1091efac..467ecad9 100644 --- a/jshERP-web/src/views/report/MaterialStock.vue +++ b/jshERP-web/src/views/report/MaterialStock.vue @@ -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)