|
|
|
|
@ -188,7 +188,7 @@
|
|
|
|
|
that.form.time = this.$moment(this.$moment().format('YYYY-MM-DD HH:mm:ss')).valueOf()
|
|
|
|
|
that.formTime = this.$moment(this.$moment().format('YYYY-MM-DD HH:mm:ss')).valueOf()
|
|
|
|
|
console.log(that.form.time)
|
|
|
|
|
this.minDate = this.$moment(this.$moment().format('YYYY-MM-DD')+' 09:00:00').valueOf()
|
|
|
|
|
this.minDate = this.$moment(this.$moment().format('YYYY-MM-DD HH:mm:ss')).valueOf()
|
|
|
|
|
this.maxDate = this.$moment(this.$moment().add('days',6).format('YYYY-MM-DD') + ' 16:00:00').valueOf()
|
|
|
|
|
console.log("this.minDate",this.minDate,this.maxDate)
|
|
|
|
|
that.loadConfigInfo();
|
|
|
|
|
@ -330,7 +330,10 @@
|
|
|
|
|
this.form.time = e.value
|
|
|
|
|
this.formTime = e.value
|
|
|
|
|
let choosetime = parseInt(this.$moment(this.form.time).format("HH"))
|
|
|
|
|
if(choosetime<9 || choosetime>16){
|
|
|
|
|
let chooseMin = parseInt(this.$moment(this.form.time).format("mm"))
|
|
|
|
|
// let nowtime = parseInt(this.$moment().format("HH"))
|
|
|
|
|
// console.log(chooseMin)
|
|
|
|
|
if(choosetime<9 || choosetime>16 || (choosetime==16 && chooseMin>0)){
|
|
|
|
|
this.util.toast("请选择正确的入场时间");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|