From 04e064897994067b9b26cda468aa60a852a53c41 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 18 Jul 2024 10:59:38 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=94=9F=E4=BA=A7=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E6=8E=92=E4=BA=A7->=E5=B7=A5=E6=9C=9F=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E4=B8=A4=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/views/mes/productOrder/productionScheduling.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw-ui/src/views/mes/productOrder/productionScheduling.vue b/hw-ui/src/views/mes/productOrder/productionScheduling.vue index 35e883b..5d5eb5c 100644 --- a/hw-ui/src/views/mes/productOrder/productionScheduling.vue +++ b/hw-ui/src/views/mes/productOrder/productionScheduling.vue @@ -540,7 +540,7 @@ export default { const dateObj2 = new Date(date2); // 计算时间差,得到毫秒数 const timeDifference = dateObj2 - dateObj1; - return timeDifference / (1000 * 60 * 60 * 24); + return (timeDifference / (1000 * 60 * 60 * 24)).toFixed(2); }, /** 展开/折叠操作 */ toggleExpandAll() {