diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue index f8c3ee931..cb0d4e798 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue @@ -809,20 +809,11 @@ export default { }, handlePrice(){ for (let i = 0; i < this.dataList.length; i++) { - console.log('815',this.dataList[i]) if (this.dataList[i].complianceReasons !== '' || (this.dataList[i].noCompliance !== '' && this.dataList[i].countermeasures !== '' && this.dataList[i].completionTime !== '') || (this.dataList[i].complianceReasons === '' && this.dataList[i].noCompliance === '' && this.dataList[i].countermeasures === '' && this.dataList[i].completionTime === '')){ - console.log('目前可以通过') }else { this.comFlag ++ - console.log('有没有输全的,不能通过',this.comFlag) } } - - // if(row.complianceReasons !== '' || (row.noCompliance !== '' && row.countermeasures !== '' && row.completionTime !== '') || (row.complianceReasons === '' && row.noCompliance === '' && row.countermeasures === '' && row.completionTime === '')){ - // this.comFlag = 0 - // }else{ - // this.comFlag = this.comFlag + 1 - // } }, //提交事件 handleSubmit() { @@ -831,7 +822,6 @@ export default { this.$message.warning('请填写完整的不符合项信息') this.comFlag = 0 }else{ - this.$message.success('通过') // this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; // this.listForm.commentText = this.commentText; // this.listForm.approvalOpinion = ""; diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue index f0d287889..f5922415f 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue @@ -142,7 +142,6 @@ > @@ -195,7 +193,6 @@ @@ -220,7 +217,6 @@ :disabled="acceptShow" class="datePickLen" clearable - @click.native="handlePrice(scope.row)" v-model="scope.row.completionTime" type="date" value-format="yyyy-MM-dd HH:mm:ss" @@ -527,6 +523,7 @@ clearable v-model="batchEditForm.completionTime" type="date" + value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择日期"> @@ -561,7 +558,7 @@ export default { }, data() { return { - comFlag: true, + comFlag: 0, total: 0, currentPage: 1, pageSize: 20, @@ -899,16 +896,19 @@ export default { }); }, handlePrice(row){ - if(row.complianceReasons !== '' || (row.noCompliance !== '' && row.countermeasures !== '' && row.completionTime !== '') || (row.complianceReasons === '' && row.noCompliance === '' && row.countermeasures === '' && row.completionTime === '')){ - this.comFlag = true - }else{ - this.comFlag = false + for (let i = 0; i < this.dataList.length; i++) { + if (this.dataList[i].complianceReasons !== '' || (this.dataList[i].noCompliance !== '' && this.dataList[i].countermeasures !== '' && this.dataList[i].completionTime !== '') || (this.dataList[i].complianceReasons === '' && this.dataList[i].noCompliance === '' && this.dataList[i].countermeasures === '' && this.dataList[i].completionTime === '')){ + }else { + this.comFlag ++ + } } }, //提交事件 handleSubmit() { - if(!this.comFlag){ + this.handlePrice() + if(this.comFlag > 0) { this.$message.warning('请填写完整的不符合项信息') + this.comFlag = 0 }else{ this.isSubmit = true; this.listForm.commentText = this.commentText;