|
@@ -1216,6 +1216,17 @@ export default {
|
|
|
submit() {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
+ var data = this.getPam()
|
|
|
+ if (
|
|
|
+ data?.user?.startTime &&
|
|
|
+ data?.user?.endTime &&
|
|
|
+ data.user.hightExamineTime &&
|
|
|
+ (new Date(data.user.hightExamineTime) < new Date(data.user.startTime) ||
|
|
|
+ new Date(data.user.hightExamineTime) > new Date(data.user.endTime))
|
|
|
+ ) {
|
|
|
+ this.$message({ type: 'warning', message: `复审日期必须必须在有效期内!` })
|
|
|
+ return
|
|
|
+ }
|
|
|
workerManagerUpdate(this.getPam()).then(res => {
|
|
|
this.$message({ type: 'success', message: `保存成功!` })
|
|
|
this.guanbi()
|
|
@@ -1225,6 +1236,17 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
examineWait(Close_) {
|
|
|
+ var data = this.getPam()
|
|
|
+ if (
|
|
|
+ data?.user?.startTime &&
|
|
|
+ data?.user?.endTime &&
|
|
|
+ data.user.hightExamineTime &&
|
|
|
+ (new Date(data.user.hightExamineTime) < new Date(data.user.startTime) ||
|
|
|
+ new Date(data.user.hightExamineTime) > new Date(data.user.endTime))
|
|
|
+ ) {
|
|
|
+ this.$message({ type: 'warning', message: `复审日期必须必须在有效期内!` })
|
|
|
+ return
|
|
|
+ }
|
|
|
workerManagerExamineWait(this.getPam()).then(res => {
|
|
|
this.$message({ type: 'success', message: `保存成功!` })
|
|
|
this.shenheClose()
|
|
@@ -1233,6 +1255,17 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
workerManagerExamine(Close_) {
|
|
|
+ var data = this.getPam()
|
|
|
+ if (
|
|
|
+ data?.user?.startTime &&
|
|
|
+ data?.user?.endTime &&
|
|
|
+ data.user.hightExamineTime &&
|
|
|
+ (new Date(data.user.hightExamineTime) < new Date(data.user.startTime) ||
|
|
|
+ new Date(data.user.hightExamineTime) > new Date(data.user.endTime))
|
|
|
+ ) {
|
|
|
+ this.$message({ type: 'warning', message: `复审日期必须必须在有效期内!` })
|
|
|
+ return
|
|
|
+ }
|
|
|
workerManagerExamine(this.getPam()).then(res => {
|
|
|
this.$message({ type: 'success', message: `保存成功!` })
|
|
|
this.shenheClose()
|