Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
ad65c3cb
Commit
ad65c3cb
authored
Sep 02, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug(66985) - 当前时间以前不能选择
parent
f916f389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+22
-1
No files found.
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
ad65c3cb
...
@@ -359,7 +359,7 @@
...
@@ -359,7 +359,7 @@
size
=
"mini"
size
=
"mini"
type
=
"success"
type
=
"success"
plain
plain
:
disabled
=
"parseInt(scope.row.price) > parseInt(currentHospital.currentBalance) || currentHospital.currentBalance === 0"
:
disabled
=
"
accordingToTime(scope.row.checkTime) ||
parseInt(scope.row.price) > parseInt(currentHospital.currentBalance) || currentHospital.currentBalance === 0"
@
click
=
"handleSubscribeDevice(scope.row)"
@
click
=
"handleSubscribeDevice(scope.row)"
>
立即预约
>
立即预约
<
/el-button
>
<
/el-button
>
...
@@ -550,6 +550,27 @@ export default {
...
@@ -550,6 +550,27 @@ export default {
this
.
currentUser
.
userType
=
this
.
$store
.
state
.
user
.
userType
this
.
currentUser
.
userType
=
this
.
$store
.
state
.
user
.
userType
this
.
currentUser
.
name
=
this
.
$store
.
state
.
user
.
name
this
.
currentUser
.
name
=
this
.
$store
.
state
.
user
.
name
}
,
}
,
// 根据当前条数据时间段判断能不能点击
accordingToTime
(
checkTime
)
{
const
currentTime
=
parseTime
(
new
Date
(),
'{y
}
-{m
}
-{d
}
'
)
if
(
this
.
form
.
checkDate
===
null
||
this
.
form
.
checkDate
===
currentTime
)
{
if
(
checkTime
!==
null
&&
checkTime
!==
''
)
{
// 计算的时间
const
startTime
=
checkTime
.
split
(
'-'
)[
0
]
// 当前时间
const
currentDay
=
new
Date
().
getHours
()
+
':'
+
new
Date
().
getMinutes
()
// 计算的时间小于当前时间就false
if
(
startTime
<
currentDay
)
{
return
true
}
else
{
return
false
}
}
}
else
{
return
false
}
return
false
}
,
// 立即预约对话框关闭回调函数
// 立即预约对话框关闭回调函数
closeSubscribe
()
{
closeSubscribe
()
{
this
.
form
=
{
this
.
form
=
{
...
...
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