|
@@ -286,22 +286,51 @@
|
|
this.$message.error('请输入会议标题')
|
|
this.$message.error('请输入会议标题')
|
|
this.loading = false
|
|
this.loading = false
|
|
}
|
|
}
|
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.startDate)){
|
|
|
|
+ const now = this.moment(new Date()).format('YYYY-MM-DD'); // 获取当前时间
|
|
|
|
+ console.log('now',now)
|
|
|
|
+ if (new Date(now) > new Date(this.inputForm.startDate)){
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('请选择今天或之后的日期')
|
|
|
|
+ throw new Error()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (this.commonJS.isNotEmpty(this.inputForm.startTime)){
|
|
if (this.commonJS.isNotEmpty(this.inputForm.startTime)){
|
|
|
|
+ console.log('this.dateList',this.dateList)
|
|
for (let i = 0; i <this.dateList.length ; i++) {
|
|
for (let i = 0; i <this.dateList.length ; i++) {
|
|
- console.log('this.dateList',this.dateList)
|
|
|
|
if (this.dateList[i].disabled === true && this.dateList[i].value === this.inputForm.startTime){
|
|
if (this.dateList[i].disabled === true && this.dateList[i].value === this.inputForm.startTime){
|
|
- this.$message.error('会议室当前无空余,请选择其他时间')
|
|
|
|
this.loading = false
|
|
this.loading = false
|
|
- return
|
|
|
|
|
|
+ this.$message.error('会议室当前无空余,请选择其他时间')
|
|
|
|
+ throw new Error()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
// 送审 待审核
|
|
// 送审 待审核
|
|
this.inputForm.status = '2'
|
|
this.inputForm.status = '2'
|
|
} else if (status === 'agree') {
|
|
} else if (status === 'agree') {
|
|
this.inputForm.status= '5'
|
|
this.inputForm.status= '5'
|
|
} else if (status === 'reapply') {
|
|
} else if (status === 'reapply') {
|
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.startDate)){
|
|
|
|
+ const now = this.moment(new Date()).format('YYYY-MM-DD'); // 获取当前时间
|
|
|
|
+ console.log('now',now)
|
|
|
|
+ if (new Date(now) > new Date(this.inputForm.startDate)){
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('请选择今天或之后的日期')
|
|
|
|
+ throw new Error()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.startTime)){
|
|
|
|
+ console.log('this.dateList',this.dateList)
|
|
|
|
+ for (let i = 0; i <this.dateList.length ; i++) {
|
|
|
|
+ if (this.dateList[i].disabled === true && this.dateList[i].value === this.inputForm.startTime){
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('会议室当前无空余,请选择其他时间')
|
|
|
|
+ throw new Error()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.inputForm.status = '2'
|
|
this.inputForm.status = '2'
|
|
}
|
|
}
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
this.$refs['inputForm'].validate((valid) => {
|