| 
					
				 | 
			
			
				@@ -57,7 +57,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-date-picker style="width:100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-model="formData.startTime" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   type="date" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  :picker-options="startDatepickerOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   placeholder="请选择开具日期" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </el-date-picker> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -400,6 +399,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error("请添加人员"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //判断介绍信是否过期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const inputDate = dayjs(this.formData.startTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const newDate = inputDate.add(this.formData.effectiveDays,'day').startOf('day'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const currentDate = dayjs(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!dayjs(newDate).isAfter(dayjs(currentDate))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error("介绍信已过有效期,请重新选择开具日期或有效天数!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           console.log("================", this.formData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (this.formData.id != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             updateLetter(this.formData).then((response) => { 
			 |