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