|
@@ -487,38 +487,29 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
timeDay(val) {
|
|
timeDay(val) {
|
|
|
- var date1 = Math.round(new Date(val) / 1000);
|
|
|
|
|
- // 当月时间
|
|
|
|
|
- this.current_month.forEach(element => {
|
|
|
|
|
- // 十号之前是1678406400
|
|
|
|
|
- var date2 = Math.round(new Date(element) / 1000);
|
|
|
|
|
- if (date1 > 1678406400 && this.dayTime == 1) {
|
|
|
|
|
- this.$confirm("请在规定时间内填写", "提示", {
|
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
- type: "warning"
|
|
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- this.form.convokeTime = null;
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- this.form.convokeTime = null;
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- if (date1 < 1675180250 && this.dayTime == 1) {
|
|
|
|
|
- this.$confirm("请在规定时间内填写", "提示", {
|
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
- type: "warning"
|
|
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- this.form.convokeTime = null;
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- this.form.convokeTime = null;
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // 如果没有选择日期或时间限制未开启,则不进行验证
|
|
|
|
|
+ if (!val || this.dayTime != 1) return;
|
|
|
|
|
+
|
|
|
|
|
+ const selectedDate = new Date(val);
|
|
|
|
|
+ selectedDate.setHours(0, 0, 0, 0);
|
|
|
|
|
+ const selectedTimestamp = selectedDate.getTime();
|
|
|
|
|
+
|
|
|
|
|
+ // 获取明天的日期
|
|
|
|
|
+ const tomorrow = new Date();
|
|
|
|
|
+ tomorrow.setHours(0, 0, 0, 0);
|
|
|
|
|
+ tomorrow.setDate(tomorrow.getDate() + 1);
|
|
|
|
|
+
|
|
|
|
|
+ // 如果选择的日期在明天及之后,则提示并清空选择
|
|
|
|
|
+ if (selectedTimestamp >= tomorrow.getTime()) {
|
|
|
|
|
+ this.$confirm("会议时间不能晚于明天,请重新选择", "提示", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ type: "warning"
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.form.convokeTime = null;
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.form.convokeTime = null;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
// 获取当月日期
|
|
// 获取当月日期
|
|
|
getDay() {
|
|
getDay() {
|
|
@@ -759,6 +750,8 @@ export default {
|
|
|
if (response.data.fileUrl != null) {
|
|
if (response.data.fileUrl != null) {
|
|
|
if (response.data.fileUrl != "") {
|
|
if (response.data.fileUrl != "") {
|
|
|
this.arr = response.data.fileUrl.split(",");
|
|
this.arr = response.data.fileUrl.split(",");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
this.tiemse = response.data.convokeTime;
|
|
this.tiemse = response.data.convokeTime;
|
|
|
this.huiYiList.map(item => {
|
|
this.huiYiList.map(item => {
|
|
|
if (item.dictValue == response.data.meetingForm) {
|
|
if (item.dictValue == response.data.meetingForm) {
|
|
@@ -768,8 +761,7 @@ export default {
|
|
|
this.title = "查看连务会记录本";
|
|
this.title = "查看连务会记录本";
|
|
|
this.menuRoleVisible = true;
|
|
this.menuRoleVisible = true;
|
|
|
return this.name;
|
|
return this.name;
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|