Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
e8004f52
Commit
e8004f52
authored
May 29, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端 v1.2 1、通用随访下次随访快捷时间选择
parent
4091ac75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
GeneralFUForm.vue
src/doctor/followUp/generalFU/form/GeneralFUForm.vue
+32
-1
No files found.
src/doctor/followUp/generalFU/form/GeneralFUForm.vue
View file @
e8004f52
...
@@ -163,21 +163,31 @@
...
@@ -163,21 +163,31 @@
<div>
<div>
<div
class=
'label-title mt-5'
>
下次随访日期
</div>
<div
class=
'label-title mt-5'
>
下次随访日期
</div>
<div
class=
'mt-4'
>
<van-radio-group
v-model=
"timeCycle"
direction=
"horizontal"
>
<van-radio
name=
"1"
>
一周后
</van-radio>
<van-radio
name=
"2"
>
一月后
</van-radio>
<van-radio
name=
"3"
>
三月后
</van-radio>
</van-radio-group>
</div>
<van-field
<van-field
v-model=
'form.nextVisitDate'
v-model=
'form.nextVisitDate'
is-link
is-link
readonly
readonly
name=
'nextVisitDate'
name=
'nextVisitDate'
placeholder=
'下次随访日期'
placeholder=
'下次随访日期'
class=
'input-back mt-
2
form-input'
class=
'input-back mt-
4
form-input'
:rules=
'rules.nextVisitDate'
:rules=
'rules.nextVisitDate'
@
click=
'showDate = true'
/>
@
click=
'showDate = true'
/>
<van-popup
v-model:show=
'showDate'
position=
'bottom'
>
<van-popup
v-model:show=
'showDate'
position=
'bottom'
>
<van-date-picker
v-model=
'form._nextVisitDate'
<van-date-picker
v-model=
'form._nextVisitDate'
:min-date=
'nextVisitDateRange.min'
:min-date=
'nextVisitDateRange.min'
:max-date=
'nextVisitDateRange.max'
:max-date=
'nextVisitDateRange.max'
@
confirm=
'dataConfirm'
@
cancel=
'showDate = false'
/>
@
confirm=
'dataConfirm'
@
cancel=
'showDate = false'
/>
</van-popup>
</van-popup>
</div>
</div>
</van-form>
</van-form>
...
@@ -246,6 +256,7 @@ export default {
...
@@ -246,6 +256,7 @@ export default {
min
:
undefined
,
min
:
undefined
,
max
:
undefined
max
:
undefined
},
},
timeCycle
:
undefined
}
}
},
},
watch
:
{
watch
:
{
...
@@ -254,6 +265,26 @@ export default {
...
@@ -254,6 +265,26 @@ export default {
this
.
form
=
this
.
setForm
(
this
.
info
)
this
.
form
=
this
.
setForm
(
this
.
info
)
},
},
immediate
:
true
immediate
:
true
},
timeCycle
(
val
)
{
let
today
=
new
Date
()
if
(
val
==
1
)
{
let
oneWeekLater
=
new
Date
(
today
)
oneWeekLater
.
setDate
(
today
.
getDate
()
+
7
)
this
.
form
.
nextVisitDate
=
dayjs
(
oneWeekLater
).
format
(
'YYYY-MM-DD'
)
// this.form._nextVisitDate = dayjs(oneWeekLater).format('YYYY-MM-DD')
}
else
if
(
val
==
2
)
{
today
.
setMonth
(
today
.
getMonth
()
+
1
)
this
.
form
.
nextVisitDate
=
dayjs
(
today
).
format
(
'YYYY-MM-DD'
)
// this.form._nextVisitDate = dayjs(today).format('YYYY-MM-DD')
}
else
if
(
val
==
3
)
{
today
.
setMonth
(
today
.
getMonth
()
+
3
)
this
.
form
.
nextVisitDate
=
dayjs
(
today
).
format
(
'YYYY-MM-DD'
)
// this.form._nextVisitDate = dayjs(today).format('YYYY-MM-DD')
}
/* if (this.modeEnumList.nextVisitDateReq) {
this.$refs.form.validateFields('nextVisitDate')
}*/
}
}
},
},
computed
:
{
computed
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment