Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
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
pseer
gxpt_wechat
Commits
ca1f9e59
Commit
ca1f9e59
authored
Feb 04, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
cc649ea7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
order.vue
pages/order/order.vue
+19
-9
No files found.
pages/order/order.vue
View file @
ca1f9e59
...
...
@@ -746,21 +746,24 @@
this
.
intervalList
=
[
...
this
.
dateIntervalList
]
for
(
start
;
start
<=
end
;
start
++
)
{
for
(
let
index
=
start
;
index
<=
end
;
index
++
)
{
let
endTimeM
=
0
if
(
this
.
dateIntervalList
[
index
].
status
==
1
){
endTimeM
=
moment
(
this
.
dateIntervalList
[
index
].
startHoldTime
).
format
(
'mm'
)
}
// 在时间小时段内,在被占用的情况下,新增订单的开始分钟时间需要占用结束时间后,结束分钟时间需在时间占用开始前
if
(
this
.
dateIntervalList
[
start
].
status
===
1
&&
startM
<
moment
(
this
.
dateIntervalList
[
start
].
endHoldTime
).
format
(
"mm"
)
&&
endM
>=
moment
(
this
.
dateIntervalList
[
start
].
startHoldTime
).
format
(
"mm"
)
if
((
this
.
dateIntervalList
[
index
].
status
==
1
&&
index
>
start
&&
index
<
start
+
this
.
duration
)
||
(
this
.
dateIntervalList
[
index
].
status
==
1
&&
index
==
end
&&
Number
(
startM
)
>=
Number
(
endTimeM
)
)
)
{
// 表示时间点被占用,无法选择
this
.
useDateStatus
=
false
this
.
intervalList
[
start
]
=
{
...
this
.
dateIntervalList
[
start
],
this
.
intervalList
[
index
]
=
{
...
this
.
dateIntervalList
[
index
],
status
:
2
}
}
else
{
this
.
intervalList
[
start
]
=
{
...
this
.
dateIntervalList
[
start
],
this
.
intervalList
[
index
]
=
{
...
this
.
dateIntervalList
[
index
],
status
:
2
}
}
...
...
@@ -928,7 +931,14 @@
let
status
=
item
.
status
;
if
(
index
>=
val
&&
index
<=
val
+
duration
){
status
=
2
if
(
this
.
dateIntervalList
[
index
].
status
===
1
&&
index
!==
val
){
let
endTimeM
=
0
if
(
this
.
dateIntervalList
[
index
].
status
==
1
){
endTimeM
=
moment
(
this
.
dateIntervalList
[
index
].
startHoldTime
).
format
(
'mm'
)
}
if
((
this
.
dateIntervalList
[
index
].
status
===
1
&&
index
>
val
&&
index
<
val
+
duration
)
||
(
this
.
dateIntervalList
[
index
].
status
===
1
&&
index
==
val
+
duration
&&
Number
(
startM
)
>=
Number
(
endTimeM
))){
this
.
useDateStatus
=
false
}
}
else
{
...
...
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