|
@@ -402,19 +402,20 @@ export default {
|
|
}
|
|
}
|
|
if(a == true){
|
|
if(a == true){
|
|
if(item.followUpName!='') {
|
|
if(item.followUpName!='') {
|
|
- list.push(item)
|
|
|
|
|
|
+ list.push(item)
|
|
}else{
|
|
}else{
|
|
- throw new Error()
|
|
|
|
|
|
+ throw new Error()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
if (list.length == 0) {
|
|
if (list.length == 0) {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- this.registerForm.followUps = list
|
|
|
|
|
|
+ this.registerForm.followUps = list
|
|
this.submitRegister1()
|
|
this.submitRegister1()
|
|
}catch(e){
|
|
}catch(e){
|
|
this.$message.error('后续事项名称不能为空')
|
|
this.$message.error('后续事项名称不能为空')
|
|
|
|
+ this.registerForm.followUps = [{}]
|
|
this.btnLoading = false
|
|
this.btnLoading = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -428,33 +429,7 @@ export default {
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
// this.btnLoading = true
|
|
// this.btnLoading = true
|
|
if(this.registerForm.followUps && this.registerForm.followUps.length>0){
|
|
if(this.registerForm.followUps && this.registerForm.followUps.length>0){
|
|
- // try{
|
|
|
|
- // var keyList={
|
|
|
|
- // followUpName:'',
|
|
|
|
- // remark:'',
|
|
|
|
- // agent:'',
|
|
|
|
- // assistPerson:'',
|
|
|
|
- // timeLimit:''
|
|
|
|
- // }
|
|
|
|
- // this.registerForm.followUps.forEach(item=>{
|
|
|
|
- // var a = false
|
|
|
|
- // for(let key in keyList){
|
|
|
|
- // if(item[key] !='' && item[key] != null){
|
|
|
|
- // a = true
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // if(a == true){
|
|
|
|
- // if(item.followUpName!='') {
|
|
|
|
-
|
|
|
|
- // }else{
|
|
|
|
- // throw new Error()
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // this.submitRegister1()
|
|
|
|
- // }catch(e){
|
|
|
|
- // this.$message.error('名称不能为空')
|
|
|
|
- // }
|
|
|
|
|
|
+ this.registerForm.followUps = []
|
|
} else {
|
|
} else {
|
|
this.submitRegister1()
|
|
this.submitRegister1()
|
|
}
|
|
}
|