From 3ffb6b6a7dcf9561b851cbbc8b403955ab949bdb Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 15 Jan 2025 14:35:58 +0800 Subject: [PATCH] bug --- src/pages/modules/index2.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/pages/modules/index2.vue b/src/pages/modules/index2.vue index 815baac..8804848 100644 --- a/src/pages/modules/index2.vue +++ b/src/pages/modules/index2.vue @@ -45,7 +45,7 @@
入库
-
+

总数量:{{ lx_task[0].total }}

@@ -58,7 +58,7 @@
出库
-
+

总数量:{{ lx_task[1].total }}

@@ -152,7 +152,7 @@
入库
-
+

总数量:{{ tp_task[0].total }}

@@ -165,7 +165,7 @@
出库
-
+

总数量:{{ tp_task[1].total }}

@@ -281,6 +281,13 @@ export default { } }, methods: { + getPercentage (part, whole) { + if (Number(whole) === 0) { + return 0 + } + const percentage = (part / whole * 100).toFixed(2) + return `${percentage}%` + }, timerFun (f, time) { let _this = this return function backFun () {