diff --git a/src/apps/AppResidentActivitie/Add.vue b/src/apps/AppResidentActivitie/Add.vue
index ab897732..039a8de6 100644
--- a/src/apps/AppResidentActivitie/Add.vue
+++ b/src/apps/AppResidentActivitie/Add.vue
@@ -9,7 +9,6 @@
-
@@ -206,10 +205,28 @@ export default {
confirm(e) {
if (this.showStartTime == true) {
- this.forms.beginTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
+ var nowTime = new Date().getTime() * 1
+
+ var historyTime = new Date(e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1
+
+ if (nowTime > historyTime) {
+ this.forms.beginTime = ''
+ return this.$u.toast('开始时间应大于当前时间')
+ } else {
+ this.forms.beginTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
+ }
}
if (this.showEndTime == true) {
- this.forms.endTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
+ var nowTime = new Date().getTime() * 1
+
+ var historyTime = new Date(e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1
+
+ if (nowTime > historyTime) {
+ this.forms.endTime = ''
+ return this.$u.toast('结束时间应大于当前时间')
+ } else {
+ this.forms.endTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
+ }
}
},
diff --git a/src/apps/AppWalkask/AppWalkask.vue b/src/apps/AppWalkask/AppWalkask.vue
index 6b09fb9c..9b2c106a 100644
--- a/src/apps/AppWalkask/AppWalkask.vue
+++ b/src/apps/AppWalkask/AppWalkask.vue
@@ -41,7 +41,7 @@
-
+
diff --git a/src/apps/AppWalkask/add.vue b/src/apps/AppWalkask/add.vue
index 5866c6d6..3a9aa0db 100644
--- a/src/apps/AppWalkask/add.vue
+++ b/src/apps/AppWalkask/add.vue
@@ -13,14 +13,14 @@
-
+
-
-
+
+
@@ -103,6 +103,13 @@ export default {
},
mounted() {},
methods: {
+ realityClick() {
+ if(this.id) return
+ if (!this.forms.create_user_name) {
+ return this.$u.toast('请选择走访慰问对象')
+ }
+ this.showStstus = true
+ },
getDetail() {
if (this.id) {
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.id}`).then((res) => {
@@ -171,6 +178,7 @@ export default {
},
areaSelect(e) {
+ console.log(e)
this.forms.areaId = e
},
@@ -188,6 +196,7 @@ export default {
},
toWalkObject() {
+ if(this.id) return
this.addList = false
this.comp = 'walkObject'
this.paramss = 111