|
|
@@ -126,6 +126,15 @@ export default {
|
|
|
},
|
|
|
copyMouth(){
|
|
|
if(!this.formData.ymdDate) return this.$toast('请选择日期');
|
|
|
+ if(this.formData.isEnable === null) return this.$toast('请选择营业状态');
|
|
|
+ if(this.formData.isEnable == '1'){
|
|
|
+ if(!this.formData.openTime) return this.$toast('请选择开始时间');
|
|
|
+ if(!this.formData.closeTime) return this.$toast('请选择结束时间');
|
|
|
+ if(!this.formData.workTime) return this.$toast('请选择上班时间');
|
|
|
+ if(!this.formData.workOffTime) return this.$toast('请选择下班时间');
|
|
|
+ if(!timeCheck([this.formData.openTime,this.formData.closeTime])) return this.$toast('开始时间不能大于结束时间');
|
|
|
+ if(!timeCheck([this.formData.workTime,this.formData.workOffTime])) return this.$toast('上班时间不能大于下班时间');
|
|
|
+ }
|
|
|
this.$refs.calendar.copyMouth(this.formData);
|
|
|
this.isCopy = true;
|
|
|
},
|
|
|
@@ -146,15 +155,14 @@ export default {
|
|
|
}else {
|
|
|
if(this.formData.isEnable === null){
|
|
|
return this.$toast('请选择营业状态');
|
|
|
- }else {
|
|
|
- if(this.formData.isEnable == '1'){
|
|
|
- if(!this.formData.openTime) return this.$toast('请选择开始时间');
|
|
|
- if(!this.formData.closeTime) return this.$toast('请选择结束时间');
|
|
|
- if(!this.formData.workTime) return this.$toast('请选择上班时间');
|
|
|
- if(!this.formData.workOffTime) return this.$toast('请选择下班时间');
|
|
|
- if(!timeCheck([this.formData.openTime,this.formData.closeTime])) return this.$toast('开始时间不能大于结束时间');
|
|
|
- if(!timeCheck([this.formData.workTime,this.formData.workOffTime])) return this.$toast('上班时间不能大于下班时间');
|
|
|
- }
|
|
|
+ }
|
|
|
+ if(this.formData.isEnable == '1'){
|
|
|
+ if(!this.formData.openTime) return this.$toast('请选择开始时间');
|
|
|
+ if(!this.formData.closeTime) return this.$toast('请选择结束时间');
|
|
|
+ if(!this.formData.workTime) return this.$toast('请选择上班时间');
|
|
|
+ if(!this.formData.workOffTime) return this.$toast('请选择下班时间');
|
|
|
+ if(!timeCheck([this.formData.openTime,this.formData.closeTime])) return this.$toast('开始时间不能大于结束时间');
|
|
|
+ if(!timeCheck([this.formData.workTime,this.formData.workOffTime])) return this.$toast('上班时间不能大于下班时间');
|
|
|
}
|
|
|
let data = {
|
|
|
orgIdList:[this.formData.orgId],
|