|  | @ -80,7 +80,7 @@ | 
		
	
		
			
				|  |  |     </el-form> |  |  |     </el-form> | 
		
	
		
			
				|  |  |     <template slot="footer"> |  |  |     <template slot="footer"> | 
		
	
		
			
				|  |  |       <el-button @click="visible = false">{{ $t('cancel') }}</el-button> |  |  |       <el-button @click="visible = false">{{ $t('cancel') }}</el-button> | 
		
	
		
			
				|  |  |       <el-button type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       <el-button :disabled="disabled" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> | 
		
	
		
			
				|  |  |     </template> |  |  |     </template> | 
		
	
		
			
				|  |  |   </el-dialog> |  |  |   </el-dialog> | 
		
	
		
			
				|  |  | </template> |  |  | </template> | 
		
	
	
		
			
				|  | @ -100,6 +100,7 @@ export default { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   data() { |  |  |   data() { | 
		
	
		
			
				|  |  |     return { |  |  |     return { | 
		
	
		
			
				|  |  |  |  |  |       disabled: false, | 
		
	
		
			
				|  |  |       visible: false, |  |  |       visible: false, | 
		
	
		
			
				|  |  |       dataForm: { |  |  |       dataForm: { | 
		
	
		
			
				|  |  |         platform: 2, |  |  |         platform: 2, | 
		
	
	
		
			
				|  | @ -194,12 +195,15 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 表单提交 |  |  |     // 表单提交 | 
		
	
		
			
				|  |  |     dataFormSubmitHandle: debounce(function() { |  |  |     dataFormSubmitHandle: debounce(function() { | 
		
	
		
			
				|  |  |  |  |  |       this.disabled = true | 
		
	
		
			
				|  |  |       this.$refs.dataForm.validate((valid) => { |  |  |       this.$refs.dataForm.validate((valid) => { | 
		
	
		
			
				|  |  |         if (!valid) { |  |  |         if (!valid) { | 
		
	
		
			
				|  |  |  |  |  |           this.disabled = false | 
		
	
		
			
				|  |  |           return false |  |  |           return false | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.length && this.dataForm.zlProjectCode.join(',') |  |  |         this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.length && this.dataForm.zlProjectCode.join(',') | 
		
	
		
			
				|  |  |         this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm).then(({ data: res }) => { |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm) | 
		
	
		
			
				|  |  |  |  |  |           .then(({ data: res }) => { | 
		
	
		
			
				|  |  |             if (res.code !== 0) { |  |  |             if (res.code !== 0) { | 
		
	
		
			
				|  |  |               return this.$message.error(res.msg) |  |  |               return this.$message.error(res.msg) | 
		
	
		
			
				|  |  |             } |  |  |             } | 
		
	
	
		
			
				|  | @ -212,9 +216,13 @@ export default { | 
		
	
		
			
				|  |  |                 this.$emit('refreshDataList') |  |  |                 this.$emit('refreshDataList') | 
		
	
		
			
				|  |  |               } |  |  |               } | 
		
	
		
			
				|  |  |             }) |  |  |             }) | 
		
	
		
			
				|  |  |         }).catch(res => { |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           }) | 
		
	
		
			
				|  |  |  |  |  |           .catch(res => { | 
		
	
		
			
				|  |  |             this.$message.error(res.msg) |  |  |             this.$message.error(res.msg) | 
		
	
		
			
				|  |  |           }) |  |  |           }) | 
		
	
		
			
				|  |  |  |  |  |           .finally(() => { | 
		
	
		
			
				|  |  |  |  |  |             this.disabled = false | 
		
	
		
			
				|  |  |  |  |  |           }) | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  |     }, 1000, { leading: true, trailing: false }), |  |  |     }, 1000, { leading: true, trailing: false }), | 
		
	
		
			
				|  |  |     // 关闭弹框 |  |  |     // 关闭弹框 | 
		
	
	
		
			
				|  | 
 |