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