|
@ -500,11 +500,11 @@ export default { |
|
|
if (!valid) { |
|
|
if (!valid) { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if(this.morningTime === null){ |
|
|
if(this.morningTime === null && this.dataForm.noAvailableVaccines !== '1'){ |
|
|
this.$message.error('请填写上午接种时间'); |
|
|
this.$message.error('请填写上午接种时间'); |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
if(this.afterTime === null ){ |
|
|
if(this.afterTime === null && this.dataForm.noAvailableVaccines !== '1'){ |
|
|
this.$message.error('请填写下午接种时间'); |
|
|
this.$message.error('请填写下午接种时间'); |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
@ -514,7 +514,7 @@ export default { |
|
|
) |
|
|
) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.internalMsg); |
|
|
return this.$message.error(res.internalMsg ? res.internalMsg : res.msg); |
|
|
} |
|
|
} |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: this.$t("prompt.success"), |
|
|
message: this.$t("prompt.success"), |
|
|