|  | @ -191,10 +191,9 @@ export default { | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     addRecord(name) { |  |  |     addRecord(name) { | 
		
	
		
			
				|  |  |       this.name = name |  |  |  | 
		
	
		
			
				|  |  |       const date = this.$moment().format('YYYY-MM-DD HH:mm:ss') |  |  |       const date = this.$moment().format('YYYY-MM-DD HH:mm:ss') | 
		
	
		
			
				|  |  |       // 判断表中是否有今日的数据 |  |  |       // 判断表中是否有今日的数据 | 
		
	
		
			
				|  |  |       const isToday = this.formList.some(item => item.createTime.includes(date.split(' ')[0])) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       const isToday = this.formList.some(item => item.createTime.includes(date.split(' ')[0]) && item.name === '门急诊电子病历') | 
		
	
		
			
				|  |  |       if (name === '门急诊电子病历' && isToday) { |  |  |       if (name === '门急诊电子病历' && isToday) { | 
		
	
		
			
				|  |  |         this.$message({ |  |  |         this.$message({ | 
		
	
		
			
				|  |  |           message: '今日已有病历,请勿重复添加!', |  |  |           message: '今日已有病历,请勿重复添加!', | 
		
	
	
		
			
				|  | @ -213,6 +212,7 @@ export default { | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       this.$http.post('/case/save', params).then(res => { |  |  |       this.$http.post('/case/save', params).then(res => { | 
		
	
		
			
				|  |  |         this.getFormList() |  |  |         this.getFormList() | 
		
	
		
			
				|  |  |  |  |  |         this.name = name | 
		
	
		
			
				|  |  |       }).catch(err => { |  |  |       }).catch(err => { | 
		
	
		
			
				|  |  |         this.$message.error(err.msg) |  |  |         this.$message.error(err.msg) | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
	
		
			
				|  | 
 |