进场打卡开始时间不能小于当前时间
This commit is contained in:
		| @@ -295,6 +295,9 @@ export default { | ||||
|     confirm() { | ||||
|       this.$refs.form.validate((valid) => { | ||||
|         if (valid) { | ||||
|           if(new Date(this.form.intoBegintime).getTime() <= Date.now()){ | ||||
|             return this.$message.error('进场打卡开始时间不能小于当前时间') | ||||
|           } | ||||
|           let intoEnd = new Date(this.form.intoEndtime).getTime() | ||||
|           let exitBegin = new Date(this.form.exitBegintime).getTime() | ||||
|           if(exitBegin <= intoEnd) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user