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
e5a61374
Commit
e5a61374
authored
Aug 20, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 待拣胚、待补胚 添加子tab页 #1011713
parent
046c2dd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
23 deletions
+51
-23
src/views/order/factoryOrderNew/hooks/useOrderStatusTree.ts
+6
-3
src/views/order/factoryOrderNew/index.vue
+45
-20
No files found.
src/views/order/factoryOrderNew/hooks/useOrderStatusTree.ts
View file @
e5a61374
...
...
@@ -70,8 +70,10 @@ export function useOrderStatusTree(options: UseOrderStatusTreeOptions) {
{
label
:
'其他'
,
key
:
'otherReasonCount'
,
value
:
3
,
count
:
0
},
])
const
cancelledSubTab
=
ref
(
1
)
/** 待拣胚/待补胚:0-正常,1-缺货(等待补货) */
const
outOfStockSubTab
=
ref
<
0
|
1
>
(
0
)
/** 待拣胚:0-正常,1-缺货(等待补货) */
const
pendingPickSubTab
=
ref
<
0
|
1
>
(
0
)
/** 待补胚:0-正常,1-缺货(等待补货) */
const
pendingReplenishSubTab
=
ref
<
0
|
1
>
(
0
)
const
treeRef
=
ref
()
const
isCardLayout
=
computed
(()
=>
cardLayoutStatuses
.
includes
(
status
.
value
))
...
...
@@ -212,7 +214,8 @@ export function useOrderStatusTree(options: UseOrderStatusTreeOptions) {
suspendedSubTab
,
cancelledTabs
,
cancelledSubTab
,
outOfStockSubTab
,
pendingPickSubTab
,
pendingReplenishSubTab
,
treeRef
,
isCardLayout
,
isSpecialLayout
,
...
...
src/views/order/factoryOrderNew/index.vue
View file @
e5a61374
...
...
@@ -788,25 +788,37 @@
<
/div
>
<
/div> --
>
<
div
v
-
if
=
"status === 'PENDING_PICK' || status === 'PENDING_REPLENISH'"
class
=
"status-subtabs"
>
<
div
v
-
if
=
"status === 'PENDING_PICK'"
class
=
"status-subtabs"
>
<
div
class
=
"status-subtab"
:
class
=
"{ active:
outOfSto
ckSubTab === 0
}
"
@
click
=
"handle
OutOfSto
ckTabClick(0)"
:
class
=
"{ active:
pendingPi
ckSubTab === 0
}
"
@
click
=
"handle
PendingPi
ckTabClick(0)"
>
{{
status
===
'PENDING_PICK'
?
'待拣胚'
:
'待补胚'
}}
待拣胚
<
/div
>
<
div
class
=
"status-subtab"
:
class
=
"{ active:
outOfSto
ckSubTab === 1
}
"
@
click
=
"handle
OutOfSto
ckTabClick(1)"
:
class
=
"{ active:
pendingPi
ckSubTab === 1
}
"
@
click
=
"handle
PendingPi
ckTabClick(1)"
>
{{
status
===
'PENDING_PICK'
?
'待拣胚-等待补货'
:
'待补胚-等待补货'
}}
待拣胚
-
等待补货
<
/div
>
<
/div
>
<
div
v
-
if
=
"status === 'PENDING_REPLENISH'"
class
=
"status-subtabs"
>
<
div
class
=
"status-subtab"
:
class
=
"{ active: pendingReplenishSubTab === 0
}
"
@
click
=
"handlePendingReplenishTabClick(0)"
>
待补胚
<
/div
>
<
div
class
=
"status-subtab"
:
class
=
"{ active: pendingReplenishSubTab === 1
}
"
@
click
=
"handlePendingReplenishTabClick(1)"
>
待补胚
-
等待补货
<
/div
>
<
/div
>
...
...
@@ -1468,7 +1480,8 @@ const {
suspendedSubTab
,
// cancelledTabs,
cancelledSubTab
,
outOfStockSubTab
,
pendingPickSubTab
,
pendingReplenishSubTab
,
treeRef
,
isCardLayout
,
isSpecialLayout
,
...
...
@@ -1542,8 +1555,11 @@ const getListQueryPayload = () => {
}
else
{
delete
payload
.
status
}
if
(
status
.
value
===
'PENDING_PICK'
||
status
.
value
===
'PENDING_REPLENISH'
)
{
payload
.
outOfStock
=
outOfStockSubTab
.
value
if
(
status
.
value
===
'PENDING_PICK'
)
{
payload
.
outOfStock
=
pendingPickSubTab
.
value
}
if
(
status
.
value
===
'PENDING_REPLENISH'
)
{
payload
.
outOfStock
=
pendingReplenishSubTab
.
value
}
// 添加默认时间排序参数
const
defaultSort
=
getDefaultCreateTimeSortParams
(
status
.
value
)
...
...
@@ -1778,8 +1794,11 @@ const handleStatusNodeClick = (node: { status: string }) => {
if
(
node
.
status
!==
'CANCELLED'
)
{
cancelledSubTab
.
value
=
1
}
if
(
node
.
status
!==
'PENDING_PICK'
&&
node
.
status
!==
'PENDING_REPLENISH'
)
{
outOfStockSubTab
.
value
=
0
if
(
node
.
status
!==
'PENDING_PICK'
)
{
pendingPickSubTab
.
value
=
0
}
if
(
node
.
status
!==
'PENDING_REPLENISH'
)
{
pendingReplenishSubTab
.
value
=
0
}
if
(
node
.
status
===
'PICKING'
)
{
getOrderStatus
()
...
...
@@ -1807,9 +1826,15 @@ const handlePendingAcceptTabClick = (
tab
:
'PENDING_RECEIVE'
|
'ACCEPT_FAIL_OUT_OF_STOCK'
,
)
=>
handlePendingAcceptTabClickRaw
(
tab
,
refreshTableList
)
const
handleOutOfStockTabClick
=
(
tab
:
0
|
1
)
=>
{
if
(
outOfStockSubTab
.
value
===
tab
)
return
outOfStockSubTab
.
value
=
tab
const
handlePendingPickTabClick
=
(
tab
:
0
|
1
)
=>
{
if
(
pendingPickSubTab
.
value
===
tab
)
return
pendingPickSubTab
.
value
=
tab
refreshCurrentView
()
}
const
handlePendingReplenishTabClick
=
(
tab
:
0
|
1
)
=>
{
if
(
pendingReplenishSubTab
.
value
===
tab
)
return
pendingReplenishSubTab
.
value
=
tab
refreshCurrentView
()
}
...
...
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