Commit bc1ff27a authored by gengchunlei's avatar gengchunlei

医生端 v1.0.4 1、push

parent e04b9271
...@@ -773,24 +773,7 @@ export default { ...@@ -773,24 +773,7 @@ export default {
}) })
} }
}, },
watch: {
timeCycle(val) {
let today = new Date()
if (val === 1) {
today.setDate(today.getDate() + 7)
this.form.nextVisitDate = dayjs(today).format('YYYY-MM-DD')
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
} else if (val === 2) {
today.setMonth(today.getMonth() + 1)
this.form.nextVisitDate = dayjs(today).format('YYYY-MM-DD')
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
} else if (val === 3) {
today.setMonth(today.getMonth() + 3)
this.form.nextVisitDate = dayjs(today).format('YYYY-MM-DD')
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
}
}
}
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment