From 06101c6ed229cb14713a252f147ba32d59e0a94f Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Tue, 2 Jul 2024 14:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=93=E5=AD=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 2 +- .../invoicing/components/addStockTakin.vue | 25 +++++++++++-------- src/views/invoicing/goods_stoks.vue | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 09c2c79..202a363 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -423,7 +423,7 @@ export function isPcBowser() { * decimal你保留的几位,默认保留小数后两位 */ export function formatDecimal(num, decimal = 2) { - num = num.toString(); + num = num.toFixed(3).toString(); const index = num.indexOf("."); if (index !== -1) { num = num.substring(0, decimal + index + 1); diff --git a/src/views/invoicing/components/addStockTakin.vue b/src/views/invoicing/components/addStockTakin.vue index 491b271..b419a4b 100644 --- a/src/views/invoicing/components/addStockTakin.vue +++ b/src/views/invoicing/components/addStockTakin.vue @@ -1,24 +1,27 @@ - + - + @@ -131,7 +134,7 @@ export default { }); this.getTableData() } catch (error) { - this.dialogVisible = false + this.loading = false console.log(error) } } @@ -169,7 +172,7 @@ export default { name: this.searhForm.name, skuId: this.searhForm.category, productId: this.searhForm.productId, - sort: 'id', + sort: 'id,desc', }) this.tableData.list = res.content this.tableData.total = res.totalElements diff --git a/src/views/invoicing/goods_stoks.vue b/src/views/invoicing/goods_stoks.vue index 2aca331..e2f7470 100644 --- a/src/views/invoicing/goods_stoks.vue +++ b/src/views/invoicing/goods_stoks.vue @@ -117,7 +117,7 @@ - +