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
0
Merge Requests
0
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
839c1833
Commit
839c1833
authored
Jul 20, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_new_status' into 'dev'
feat: 工厂订单左侧状态栏数据统计增加单位描述 #1010844 See merge request
!270
parents
d4726efb
d4f2c0e3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
src/types/api/factoryOrderNew/index.ts
+1
-0
src/types/api/order/factoryOrderNew.ts
+1
-0
src/views/order/factoryOrderNew/hooks/useOrderStatusTree.ts
+16
-1
src/views/order/factoryOrderNew/index.vue
+1
-1
No files found.
src/types/api/factoryOrderNew/index.ts
View file @
839c1833
...
@@ -3,6 +3,7 @@ export interface StatusTreeNode {
...
@@ -3,6 +3,7 @@ export interface StatusTreeNode {
status
:
string
status
:
string
statusName
:
string
statusName
:
string
quantity
:
number
quantity
:
number
unit
?:
string
// 数量单位
children
:
StatusTreeNode
[]
|
null
children
:
StatusTreeNode
[]
|
null
}
}
...
...
src/types/api/order/factoryOrderNew.ts
View file @
839c1833
...
@@ -2,6 +2,7 @@ export interface StatusTreeNode {
...
@@ -2,6 +2,7 @@ export interface StatusTreeNode {
status
:
string
status
:
string
statusName
:
string
statusName
:
string
quantity
:
number
quantity
:
number
unit
?:
string
// 数量单位
children
:
StatusTreeNode
[]
|
null
children
:
StatusTreeNode
[]
|
null
}
}
...
...
src/views/order/factoryOrderNew/hooks/useOrderStatusTree.ts
View file @
839c1833
...
@@ -27,6 +27,17 @@ export function useOrderStatusTree(options: UseOrderStatusTreeOptions) {
...
@@ -27,6 +27,17 @@ export function useOrderStatusTree(options: UseOrderStatusTreeOptions) {
]
]
const
specialLayoutStatuses
=
[
'BATCH_MANAGE'
,
'AWAITING_RESTOCK'
]
const
specialLayoutStatuses
=
[
'BATCH_MANAGE'
,
'AWAITING_RESTOCK'
]
/** 左侧状态栏数量单位 */
const
STATUS_QUANTITY_UNIT
:
Record
<
string
,
string
>
=
{
PENDING_SCHEDULE
:
'件'
,
PENDING_PICK
:
'件'
,
PENDING_REPLENISH
:
'件'
,
IN_PRODUCTION
:
'件'
,
PENDING_PACKING
:
'件'
,
BATCH_MANAGE
:
'批'
,
AWAITING_RESTOCK
:
'个'
,
}
const
statusTree
=
ref
<
StatusTreeNode
[]
>
()
const
statusTree
=
ref
<
StatusTreeNode
[]
>
()
const
status
=
ref
<
string
>
(
'PENDING_RECEIVE'
)
const
status
=
ref
<
string
>
(
'PENDING_RECEIVE'
)
const
pendingAcceptSubTab
=
ref
<
const
pendingAcceptSubTab
=
ref
<
...
@@ -149,7 +160,11 @@ export function useOrderStatusTree(options: UseOrderStatusTreeOptions) {
...
@@ -149,7 +160,11 @@ export function useOrderStatusTree(options: UseOrderStatusTreeOptions) {
hasPermission
||
hasPermission
||
(
isGroupContainer
&&
filteredChildren
.
length
>
0
)
(
isGroupContainer
&&
filteredChildren
.
length
>
0
)
)
{
)
{
result
.
push
({
...
node
,
children
:
filteredChildren
})
result
.
push
({
...
node
,
children
:
filteredChildren
,
unit
:
STATUS_QUANTITY_UNIT
[
node
.
status
]
??
'单'
,
})
}
}
}
}
return
result
return
result
...
...
src/views/order/factoryOrderNew/index.vue
View file @
839c1833
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
"
"
class=
"tree-node-count"
class=
"tree-node-count"
>
>
{{
`(${data.quantity
}
)`
}}
{{
`(${data.quantity
}
${data.unit ?? '单'
}
)`
}}
<
/span
>
<
/span
>
<
/div
>
<
/div
>
<
span
<
span
...
...
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