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
47229f0e
Commit
47229f0e
authored
Aug 15, 2023
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分配诊室
parent
bc86ea23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
treatment-detail.vue
...vice-management/treatment-management/treatment-detail.vue
+6
-1
treatment-management.vue
...-management/treatment-management/treatment-management.vue
+6
-1
No files found.
src/views/service-management/treatment-management/treatment-detail.vue
View file @
47229f0e
...
...
@@ -426,7 +426,7 @@
<
/el-table-column
>
<
el
-
table
-
column
align
=
"left"
label
=
"治疗时长"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
row
.
duration
+
'h'
||
'-'
}}
<
/span
>
<
span
>
{{
minutesToHours
(
scope
.
row
.
duration
)
||
'-'
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"userName"
align
=
"left"
label
=
"治疗负责人"
>
...
...
@@ -737,6 +737,11 @@ export default {
this
.
getUserNameList
()
}
,
methods
:
{
minutesToHours
(
minutes
)
{
var
hours
=
Math
.
floor
(
minutes
/
60
)
// 计算小时数
var
remainingMinutes
=
minutes
%
60
// 计算剩余的分钟数
return
hours
+
'.'
+
remainingMinutes
+
'h'
}
,
// 计算结束时间
calculateEndTime
()
{
if
(
this
.
reservationForm
.
startTime
.
length
===
2
&&
this
.
reservationForm
.
duration
)
{
...
...
src/views/service-management/treatment-management/treatment-management.vue
View file @
47229f0e
...
...
@@ -289,7 +289,7 @@
<
/el-table-column
>
<
el
-
table
-
column
align
=
"left"
label
=
"治疗时长"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
row
.
duration
+
'h'
||
'-'
}}
<
/span
>
<
span
>
{{
minutesToHours
(
scope
.
row
.
duration
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"userName"
align
=
"left"
label
=
"治疗负责人"
>
...
...
@@ -574,6 +574,11 @@ export default {
// this.getTreatmentDropdown()
}
,
methods
:
{
minutesToHours
(
minutes
)
{
var
hours
=
Math
.
floor
(
minutes
/
60
)
// 计算小时数
var
remainingMinutes
=
minutes
%
60
// 计算剩余的分钟数
return
hours
+
'.'
+
remainingMinutes
+
'h'
}
,
sTimeValid
(
rule
,
value
,
callback
)
{
if
(
this
.
startTime
.
length
===
0
)
{
callback
(
new
Error
(
'请选择开始时间'
))
...
...
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