diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue index 75aaf9e36..d19b26aaf 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue @@ -779,11 +779,15 @@ export default { if (this.dataList.length < 1) { this.satisfyFlag = false this.$message.warning("请添加产品线信息"); + }else{ + this.satisfyFlag = true } this.dataList.forEach(item => { - if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) { + if (!item.distributePerson) { this.satisfyFlag = false this.$message.warning("请选择分发责任人"); + }else{ + this.satisfyFlag = true } }); if(this.satisfyFlag){ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index 9d5bbc2ab..46e7792e5 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -752,11 +752,15 @@ export default { if (this.dataList.length < 1) { this.satisfyFlag = false this.$message.warning("请添加产品线信息"); + }else { + this.satisfyFlag = true } this.dataList.forEach(item => { - if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) { + if (!item.distributePerson) { this.satisfyFlag = false this.$message.warning("请选择分发责任人"); + }else { + this.satisfyFlag = true } }); if(this.satisfyFlag){