Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
f84c5115
Commit
f84c5115
authored
Dec 05, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发货时效向下取整
parent
217555a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/views/logistics/logisticsTracking.vue
+2
-2
No files found.
src/views/logistics/logisticsTracking.vue
View file @
f84c5115
...
@@ -428,11 +428,11 @@ function getShippingAge(row: ILogisticsCompany): number {
...
@@ -428,11 +428,11 @@ function getShippingAge(row: ILogisticsCompany): number {
return
msToDays
(
now
-
create
)
return
msToDays
(
now
-
create
)
}
}
/** 毫秒 → 天数(≥12h 向
上
取整) */
/** 毫秒 → 天数(≥12h 向
下
取整) */
function
msToDays
(
ms
:
number
):
number
{
function
msToDays
(
ms
:
number
):
number
{
const
hours
=
ms
/
(
1000
*
60
*
60
)
const
hours
=
ms
/
(
1000
*
60
*
60
)
if
(
hours
<
12
)
return
0
if
(
hours
<
12
)
return
0
return
Math
.
ceil
(
hours
/
24
)
return
Math
.
floor
(
hours
/
24
)
}
}
// 列表查询
// 列表查询
async
function
getData
()
{
async
function
getData
()
{
...
...
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