|
@ -232,6 +232,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.customerId = res.data.customerId |
|
|
this.customerId = res.data.customerId |
|
|
console.log('提交信息成功' + this.step) |
|
|
console.log('提交信息成功' + this.step) |
|
|
|
|
|
this.toStep(3) |
|
|
} |
|
|
} |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
return this.$message.error('网络错误') |
|
|
return this.$message.error('网络错误') |
|
@ -251,6 +252,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.agencyId = res.data.agencyId |
|
|
this.agencyId = res.data.agencyId |
|
|
console.log('提交信息成功' + this.step) |
|
|
console.log('提交信息成功' + this.step) |
|
|
|
|
|
this.toStep(4) |
|
|
} |
|
|
} |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
return this.$message.error('网络错误') |
|
|
return this.$message.error('网络错误') |
|
@ -271,6 +273,7 @@ export default { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} else { |
|
|
} else { |
|
|
console.log('提交信息成功' + this.step) |
|
|
console.log('提交信息成功' + this.step) |
|
|
|
|
|
this.toStep(1) |
|
|
} |
|
|
} |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
return this.$message.error('网络错误') |
|
|
return this.$message.error('网络错误') |
|
@ -280,13 +283,10 @@ export default { |
|
|
let loadingInstance = Loading.service() |
|
|
let loadingInstance = Loading.service() |
|
|
if (this.step === 2) { |
|
|
if (this.step === 2) { |
|
|
await this.submitDataForm2() |
|
|
await this.submitDataForm2() |
|
|
this.toStep(3) |
|
|
|
|
|
} else if (this.step === 3) { |
|
|
} else if (this.step === 3) { |
|
|
await this.submitDataForm3() |
|
|
await this.submitDataForm3() |
|
|
this.toStep(4) |
|
|
|
|
|
} else if (this.step === 4) { |
|
|
} else if (this.step === 4) { |
|
|
await this.submitDataForm4() |
|
|
await this.submitDataForm4() |
|
|
this.toStep(1) |
|
|
|
|
|
} |
|
|
} |
|
|
loadingInstance.close() |
|
|
loadingInstance.close() |
|
|
}, |
|
|
}, |
|
|