Browse Source

核酸检测点、疫苗接种点 PC 管理 优化

master
wanggongfeng 3 years ago
parent
commit
1369d6a202
  1. 10
      src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue

10
src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue

@ -185,7 +185,7 @@ export default {
moEndTime: "", moEndTime: "",
afStartTime: "", afStartTime: "",
afEndTime: "", afEndTime: "",
noAvailableVaccines: "1", noAvailableVaccines: '1',
mobile: "", mobile: "",
address: "", address: "",
longitude: "120.38945519", longitude: "120.38945519",
@ -216,7 +216,7 @@ export default {
], ],
inoculationDate: [ inoculationDate: [
{ {
required: true, required: this.dataForm.noAvailableVaccines === '2',
message: this.$t("validate.required"), message: this.$t("validate.required"),
trigger: "blur", trigger: "blur",
}, },
@ -479,8 +479,10 @@ export default {
...this.dataForm, ...this.dataForm,
...res.data, ...res.data,
}; };
if(res.data.moStartTime !== ''){
this.morningTime = [res.data.moStartTime,res.data.moEndTime] this.morningTime = [res.data.moStartTime,res.data.moEndTime]
this.afterTime = [res.data.afStartTime,res.data.afEndTime] this.afterTime = [res.data.afStartTime,res.data.afEndTime]
}
if(!this.dataForm.longitude && !this.dataForm.latitude){ if(!this.dataForm.longitude && !this.dataForm.latitude){
this.dataForm.longitude = "120.38945519" this.dataForm.longitude = "120.38945519"
this.dataForm.latitude = "36.0722275" this.dataForm.latitude = "36.0722275"
@ -496,11 +498,11 @@ export default {
if (!valid) { if (!valid) {
return false; return false;
} }
if(this.morningTime === null && this.dataForm.noAvailableVaccines !== '1'){ if(this.morningTime === null && this.dataForm.noAvailableVaccines === '2'){
this.$message.error('请填写上午接种时间'); this.$message.error('请填写上午接种时间');
return false return false
} }
if(this.afterTime === null && this.dataForm.noAvailableVaccines !== '1'){ if(this.afterTime === null && this.dataForm.noAvailableVaccines === '2'){
this.$message.error('请填写下午接种时间'); this.$message.error('请填写下午接种时间');
return false return false
} }

Loading…
Cancel
Save