From 6f283ac3bd8ea5c9bb90204619f582cd97f68af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Thu, 12 Dec 2024 11:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9E=E7=BB=93=E6=97=B6=E9=99=90=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shequzhili/event/cpts/process-form-assign.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/modules/shequzhili/event/cpts/process-form-assign.vue b/src/views/modules/shequzhili/event/cpts/process-form-assign.vue index 53b035b41..88736b00c 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-assign.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-assign.vue @@ -215,10 +215,12 @@ export default { this.formData.handlingReq = this.eventDetailCopy.handlingReq; this.formData.transferAdvice = this.eventDetailCopy.transferAdvice; - let dateTime = new Date(new Date(this.eventDetailCopy.timeLimit).getTime()- (1000 * 60 * 60 * 24)) - let yesterday = `${dateTime.getFullYear()}-${(dateTime.getMonth() +1)}-${dateTime.getDate()}` - console.log('yesterday',yesterday) - this.formData.timeLimit = yesterday + ' ' + '16:00:00' + if (this.eventDetailCopy.timeLimit) { + let dateTime = new Date(new Date(this.eventDetailCopy.timeLimit).getTime() - (1000 * 60 * 60 * 24)) + let yesterday = `${dateTime.getFullYear()}-${(dateTime.getMonth() + 1)}-${dateTime.getDate()}` + console.log('yesterday', yesterday) + this.formData.timeLimit = yesterday + ' ' + '16:00:00' + } this.formData.contactTime = this.$dayjs(new Date(new Date().getTime() + (1000 * 60 * 60))).format('YYYY-MM-DD HH:mm:ss') } },