[update] 企标复审流程联调
This commit is contained in:
@@ -103,12 +103,19 @@ export default {
|
||||
// 有校验的获取人员对象
|
||||
getDataObjVerify () {
|
||||
let personnelObj = {}
|
||||
for (const item of this.stepsData) {
|
||||
console.log(this.stepsData)
|
||||
for (let i = 0; i < this.stepsData.length; i++) {
|
||||
// 该属性还没有人就给他赋值
|
||||
if ((item.canChoose || item.sort === 1) && !personnelObj[item.variableName]) {
|
||||
personnelObj[item.variableName] = item.linkUserIds
|
||||
if ((this.stepsData[i].canChoose || i === 0) && !personnelObj[this.stepsData[i].variableName]) {
|
||||
personnelObj[this.stepsData[i].variableName] = this.stepsData[i].linkUserIds
|
||||
}
|
||||
}
|
||||
// for (const item of this.stepsData) {
|
||||
// // 该属性还没有人就给他赋值
|
||||
// if ((item.canChoose || item.sort === 1) && !personnelObj[item.variableName]) {
|
||||
// personnelObj[item.variableName] = item.linkUserIds
|
||||
// }
|
||||
// }
|
||||
if (!Object.values(personnelObj).every(v => !!v)) {
|
||||
this.$message.warning(this.$t('pleaseEnterPersonnelInfo'))
|
||||
personnelObj = false
|
||||
|
||||
Reference in New Issue
Block a user