From 5245971931f5709e352019341ece9887032b8ab2 Mon Sep 17 00:00:00 2001
From: yanyizhou <2311759275@qq.com>
Date: Wed, 1 Dec 2021 15:39:48 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E8=A7=84=E9=A1=B9=E5=A1=AB=E5=86=99?=
=?UTF-8?q?=E6=A0=A1=E9=AA=8C(+)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/creatProcess/xmpg/step4.vue | 27 ++++++++++++-------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue
index 3ab32b9d8..f8c3ee931 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue
@@ -235,7 +235,6 @@
v-else
:disabled="acceptShow"
clearable
- @click.native="handlePrice(scope.row)"
v-model="dataList[scope.$index].complianceReasons"
placeholder="请输入合规原因"
>
@@ -263,7 +262,6 @@
@@ -285,7 +283,6 @@
@@ -811,18 +807,31 @@ export default {
this.isSubmit = false
})
},
- handlePrice(row){
- 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
+ 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() {
+ this.handlePrice()
if(this.comFlag > 0) {
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 = "";