|
|
@@ -139,7 +139,7 @@
|
|
|
:key="item.areaId"
|
|
|
:value="item.points.length + '项'"
|
|
|
>
|
|
|
- <div v-for="(point, index) in item.points">
|
|
|
+ <div v-for="(point, index) in item.points" :key="index">
|
|
|
<van-cell>
|
|
|
<template #title>
|
|
|
<pre>{{ point.pointName }}</pre>
|
|
|
@@ -723,6 +723,7 @@ export default {
|
|
|
for (let i = 0; i < this.checks.length; i++) {
|
|
|
for (let j = 0; j < this.checks[i].points.length; j++) {
|
|
|
let point = this.checks[i].points[j];
|
|
|
+ let item = this.checks[i];
|
|
|
if (point.dataStatus === 1) {
|
|
|
if( point.required === 0){
|
|
|
//如果不是必填内容
|
|
|
@@ -736,7 +737,22 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (point.resValue === 1) {
|
|
|
- if (!point.rectificationDeadline || !point.resRemark) {
|
|
|
+ if (!point.rectificationDeadline) {
|
|
|
+ this.changeSwitch()
|
|
|
+ this.areas.forEach((area, i) => {
|
|
|
+ if (area.areaId === item.areaId) {
|
|
|
+ this.activeArea(area, i)
|
|
|
+ //切换后验证表单
|
|
|
+ this.$refs.resumption_form.validate()
|
|
|
+ this.$toast.fail({
|
|
|
+ message: '请选择整改期限!',
|
|
|
+ position: 'top'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ throw new Error('存在未编辑完成履职项,无法提交')
|
|
|
+ }
|
|
|
+ if(!point.resRemark){
|
|
|
this.changeSwitch()
|
|
|
this.areas.forEach((area, i) => {
|
|
|
if (area.areaId === item.areaId) {
|
|
|
@@ -752,11 +768,19 @@ export default {
|
|
|
throw new Error('存在未编辑完成履职项,无法提交')
|
|
|
}
|
|
|
if(point.imgs.length < 1){
|
|
|
- this.$toast.fail({
|
|
|
- message: '请拍照上传异常图片!',
|
|
|
- position: 'top'
|
|
|
+ this.changeSwitch()
|
|
|
+ this.areas.forEach((area, i) => {
|
|
|
+ if (area.areaId === item.areaId) {
|
|
|
+ this.activeArea(area, i)
|
|
|
+ //切换后验证表单
|
|
|
+ this.$refs.resumption_form.validate()
|
|
|
+ this.$toast.fail({
|
|
|
+ message: '请拍照上传异常图片!',
|
|
|
+ position: 'top'
|
|
|
+ })
|
|
|
+ throw new Error('请上传异常图片!');
|
|
|
+ }
|
|
|
})
|
|
|
- throw new Error('请上传异常图片!');
|
|
|
}
|
|
|
}
|
|
|
}
|