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 () {