From 3b366968c293b6b9e61b6e6d60a798883ba2ad0b Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 23 Jul 2021 14:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=88=A4=E6=96=AD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/AddOrder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index 599759f..5606f04 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -978,7 +978,7 @@ export default { let date2 = Date.parse(nowYear); let ms = Math.abs(date1 - date2) - let days = Math.floor(ms / (24 * 3600 * 1000)) + 1; + let days = Math.floor(ms / (24 * 3600 * 1000)); console.log(Date.parse(endYear),nowYear,date1,date2,days,'剩余期限'); row.remainingPeriod = days },