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
b62d6eb9
Commit
b62d6eb9
authored
Jan 27, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 概览页数据修改
parent
e08b2fc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/types/api/statistic.ts
+1
-1
src/views/Dashboard.vue
+2
-2
No files found.
src/types/api/statistic.ts
View file @
b62d6eb9
...
@@ -36,7 +36,7 @@ export interface trendType {
...
@@ -36,7 +36,7 @@ export interface trendType {
produceNum
:
number
// 生产数
produceNum
:
number
// 生产数
shipmentNum
:
number
// 发货数
shipmentNum
:
number
// 发货数
confirmProductNum
?:
number
// 新接数(件)
confirmProductNum
?:
number
// 新接数(件)
produce
d
ProductNum
?:
number
// 生产数(件)
produceProductNum
?:
number
// 生产数(件)
shipmentProductNum
?:
number
// 发货数(件)
shipmentProductNum
?:
number
// 发货数(件)
shipmentRateOf24Hour
:
number
// 24小时发货率
shipmentRateOf24Hour
:
number
// 24小时发货率
shipmentRateOf48Hour
:
number
// 48小时发货率
shipmentRateOf48Hour
:
number
// 48小时发货率
...
...
src/views/Dashboard.vue
View file @
b62d6eb9
...
@@ -1528,7 +1528,7 @@ const updateOvertimeTrendChart = (data: trendType[], type: number | string) => {
...
@@ -1528,7 +1528,7 @@ const updateOvertimeTrendChart = (data: trendType[], type: number | string) => {
// 检查订单趋势(件)数据是否为空
// 检查订单趋势(件)数据是否为空
const
checkProductNumTrendDataEmpty
=
(
data
:
trendType
[]):
boolean
=>
{
const
checkProductNumTrendDataEmpty
=
(
data
:
trendType
[]):
boolean
=>
{
const
confirmProductNums
=
data
.
map
((
el
)
=>
el
.
confirmProductNum
??
0
)
const
confirmProductNums
=
data
.
map
((
el
)
=>
el
.
confirmProductNum
??
0
)
const
producedProductNums
=
data
.
map
((
el
)
=>
el
.
produce
d
ProductNum
??
0
)
const
producedProductNums
=
data
.
map
((
el
)
=>
el
.
produceProductNum
??
0
)
const
shipmentProductNums
=
data
.
map
((
el
)
=>
el
.
shipmentProductNum
??
0
)
const
shipmentProductNums
=
data
.
map
((
el
)
=>
el
.
shipmentProductNum
??
0
)
const
hasData
=
const
hasData
=
confirmProductNums
.
some
((
item
)
=>
item
!==
0
)
||
confirmProductNums
.
some
((
item
)
=>
item
!==
0
)
||
...
@@ -1543,7 +1543,7 @@ const updateProductNumTrendChart = (
...
@@ -1543,7 +1543,7 @@ const updateProductNumTrendChart = (
type
:
number
|
string
,
type
:
number
|
string
,
)
=>
{
)
=>
{
const
confirmProductNums
=
data
.
map
((
el
)
=>
el
.
confirmProductNum
??
0
)
const
confirmProductNums
=
data
.
map
((
el
)
=>
el
.
confirmProductNum
??
0
)
const
producedProductNums
=
data
.
map
((
el
)
=>
el
.
produce
d
ProductNum
??
0
)
const
producedProductNums
=
data
.
map
((
el
)
=>
el
.
produceProductNum
??
0
)
const
shipmentProductNums
=
data
.
map
((
el
)
=>
el
.
shipmentProductNum
??
0
)
const
shipmentProductNums
=
data
.
map
((
el
)
=>
el
.
shipmentProductNum
??
0
)
const
startTimes
=
data
.
map
((
el
)
=>
el
.
startTime
)
const
startTimes
=
data
.
map
((
el
)
=>
el
.
startTime
)
const
timerange
=
data
.
map
((
el
)
=>
`
${
el
.
startTime
}
——
${
el
.
endTime
}
`
)
const
timerange
=
data
.
map
((
el
)
=>
`
${
el
.
startTime
}
——
${
el
.
endTime
}
`
)
...
...
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