From 43f08a96842116153e0be0d05c84f2fcede8bd5c Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Tue, 14 Mar 2023 17:34:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=209308=20=E5=B0=8F=E7=A8=8B=E5=BA=8F-?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=BF=9B=E5=85=A5=E7=82=B9=E4=BD=8D=EF=BC=8C?= =?UTF-8?q?=E4=B8=8A=E6=AC=A1=E5=B7=A1=E6=A3=80=E6=97=A5=E6=9C=9F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/startInspection/startInspection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weapp/package/startInspection/startInspection.js b/weapp/package/startInspection/startInspection.js index ee0cd63..53fd816 100644 --- a/weapp/package/startInspection/startInspection.js +++ b/weapp/package/startInspection/startInspection.js @@ -348,7 +348,7 @@ Page({ e.lastInspectionTime = moment().format('YYYY-MM-DD'); e.inspectionTime = moment().format('YYYY-MM-DD'); } else { - e.lastInspectionTime = moment(i.lastInspectionTime).format('YYYY-MM-DD'); + e.lastInspectionTime = i.lastInspectionTime ? moment(i.lastInspectionTime).format('YYYY-MM-DD') : '--'; e.inspectionTime = moment(i.inspectionTime).format('YYYY-MM-DD'); } })