From 0c7c8c68dc491ac51c8faf5db1fe19d1d9be0c15 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 7 Mar 2023 14:46:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=B0=8F=E7=A8=8B=E5=BA=8F-=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=BC=80=E5=A7=8B/=E7=BB=93=E6=9D=9F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8F=AA=E9=9C=80=E8=A6=81=E5=88=B0=E5=B9=B4=E6=9C=88?= =?UTF-8?q?=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/troubleshooting/shootingForm/index.js | 8 ++++---- weapp/package/troubleshooting/shootingForm/index.wxml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/weapp/package/troubleshooting/shootingForm/index.js b/weapp/package/troubleshooting/shootingForm/index.js index cd18784..d884f77 100644 --- a/weapp/package/troubleshooting/shootingForm/index.js +++ b/weapp/package/troubleshooting/shootingForm/index.js @@ -103,8 +103,8 @@ Page({ maintenancePersonDepartmentShow: maintenancePersonIndex >= 0 ? focusPerson[maintenancePersonIndex].department.name : '', qualityPersonIndex: focusPerson.findIndex(f => f.id == issue.checkPerson.id), planStartTime: moment(issue.startTime).unix(), - planStartTimeShow: moment(issue.startTime).format('YYYY-MM-DD HH:mm:ss'), - planEndTimeShow: moment(issue.endTime).format('YYYY-MM-DD HH:mm:ss'), + planStartTimeShow: moment(issue.startTime).format('YYYY-MM-DD'), + planEndTimeShow: moment(issue.endTime).format('YYYY-MM-DD'), maintenanceRequirement: issue.repairAsk }) } @@ -165,7 +165,7 @@ Page({ // this.setData({ planStartTime: '' }) } else if (e.target.dataset.option == 'confirmed') { this.setData({ - planStartTimeShow: this.data.planStartTime ? moment(this.data.planStartTime).format('YYYY-MM-DD HH:mm') : '' + planStartTimeShow: this.data.planStartTime ? moment(this.data.planStartTime).format('YYYY-MM-DD') : '' }) } }, @@ -186,7 +186,7 @@ Page({ this.setData({ planEndTimePopupShow: false }) if (e.target.dataset.option == 'confirmed') { this.setData({ - planEndTimeShow: this.data.planEndTime ? moment(this.data.planEndTime).format('YYYY-MM-DD HH:mm') : '' + planEndTimeShow: this.data.planEndTime ? moment(this.data.planEndTime).format('YYYY-MM-DD') : '' }) } }, diff --git a/weapp/package/troubleshooting/shootingForm/index.wxml b/weapp/package/troubleshooting/shootingForm/index.wxml index b11402e..fa3c390 100644 --- a/weapp/package/troubleshooting/shootingForm/index.wxml +++ b/weapp/package/troubleshooting/shootingForm/index.wxml @@ -75,7 +75,7 @@ 确定 - + @@ -93,7 +93,7 @@ 确定 - +