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'); } })