diff --git a/src/page-subspecialty/views/modules/formList/mraForm.vue b/src/page-subspecialty/views/modules/formList/mraForm.vue index fc08be5..587f725 100644 --- a/src/page-subspecialty/views/modules/formList/mraForm.vue +++ b/src/page-subspecialty/views/modules/formList/mraForm.vue @@ -318,15 +318,14 @@ export default { this.$message.error('签字未成功请重新签字后再保存') return } - const start = this.$moment(this.startTime).format('yyyy-MM-DD HH:mm') - const end = this.$moment(this.endTime).format('yyyy-MM-DD HH:mm') + const start = this.startTime ? this.$moment(this.startTime).format('yyyy-MM-DD HH:mm') : '' + const end = this.endTime ? this.$moment(this.endTime).format('yyyy-MM-DD HH:mm') : '' this.formData.negativeTime = start + '~' + end this.formData.jzNumber = window.sessionStorage.getItem('jzNumber') || this.$route.query.jzNumber || '' this.formData.patientSign = this.formListValue.fundusDocSign this.formData.dependantSign = this.formListValue.kinSign this.formData.performerSign = this.formListValue.performerSign this.formData.checkerSign = this.formListValue.checkerSign - console.log(this.formData) this.$http.post('/mzbl/saveMzblYdxgzyzqtys', { caseId: this.caseId, ...this.formData