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
54195e1d
Commit
54195e1d
authored
Jul 17, 2026
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_factory_new' into 'dev'
工厂订单New-前端样式 See merge request
!268
parents
f44f8816
fa1d6fdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
src/views/order/factoryOrderNew/hooks/useOrderListAndDetail.ts
+10
-2
src/views/order/factoryOrderNew/index.vue
+24
-0
No files found.
src/views/order/factoryOrderNew/hooks/useOrderListAndDetail.ts
View file @
54195e1d
...
@@ -23,13 +23,13 @@ const CREATE_TIME_SORT_ASC_STATUSES = new Set([
...
@@ -23,13 +23,13 @@ const CREATE_TIME_SORT_ASC_STATUSES = new Set([
'PENDING_CREATE_LOGISTICS'
,
'PENDING_CREATE_LOGISTICS'
,
'PENDING_SCHEDULE'
,
'PENDING_SCHEDULE'
,
'PENDING_DELIVERY'
,
'PENDING_DELIVERY'
,
'PICKING'
,
'SUSPEND'
,
'SUSPEND'
,
])
])
/** 创建时间降序 */
/** 创建时间降序 */
const
CREATE_TIME_SORT_DESC_STATUSES
=
new
Set
([
const
CREATE_TIME_SORT_DESC_STATUSES
=
new
Set
([
'ALL'
,
'ALL'
,
'PICKING'
,
'COMPLETED'
,
'COMPLETED'
,
'CANCELLED'
,
'CANCELLED'
,
'ARCHIVE'
,
'ARCHIVE'
,
...
@@ -73,7 +73,10 @@ export function useOrderListAndDetail(options: UseOrderListAndDetailOptions) {
...
@@ -73,7 +73,10 @@ export function useOrderListAndDetail(options: UseOrderListAndDetailOptions) {
}
=
options
}
=
options
const
subLoading
=
ref
(
false
)
const
subLoading
=
ref
(
false
)
const
activeTab
=
ref
<
'product'
|
'operation'
|
'log'
>
(
'product'
)
// 配货中默认打开"操作单"tab,其他状态默认"包含商品"tab
const
activeTab
=
ref
<
'product'
|
'operation'
|
'log'
>
(
status
.
value
===
'PICKING'
?
'operation'
:
'product'
,
)
const
productList
=
ref
<
ProductListData
[]
>
([])
const
productList
=
ref
<
ProductListData
[]
>
([])
const
operationOrderList
=
ref
<
operateOrderListData
[]
>
([])
const
operationOrderList
=
ref
<
operateOrderListData
[]
>
([])
const
logList
=
ref
<
LogListData
[]
>
([])
const
logList
=
ref
<
LogListData
[]
>
([])
...
@@ -266,6 +269,11 @@ export function useOrderListAndDetail(options: UseOrderListAndDetailOptions) {
...
@@ -266,6 +269,11 @@ export function useOrderListAndDetail(options: UseOrderListAndDetailOptions) {
void
getOrderDetailsById
()
void
getOrderDetailsById
()
})
})
// 切换状态时重置为对应默认 tab
watch
(
status
,
(
newStatus
)
=>
{
activeTab
.
value
=
newStatus
===
'PICKING'
?
'operation'
:
'product'
})
const
handleRowClick
=
(
row
:
FactoryOrderNewListData
)
=>
{
const
handleRowClick
=
(
row
:
FactoryOrderNewListData
)
=>
{
const
isSameRow
=
currentRow
.
value
?.
id
===
row
.
id
const
isSameRow
=
currentRow
.
value
?.
id
===
row
.
id
currentRow
.
value
=
row
currentRow
.
value
=
row
...
...
src/views/order/factoryOrderNew/index.vue
View file @
54195e1d
...
@@ -2023,6 +2023,19 @@ const showProductInventoryColumns = computed(
...
@@ -2023,6 +2023,19 @@ const showProductInventoryColumns = computed(
status
.
value
==
'PENDING_RECEIVE'
&&
status
.
value
==
'PENDING_RECEIVE'
&&
pendingAcceptSubTab
.
value
!==
'PENDING_RECEIVE'
,
pendingAcceptSubTab
.
value
!==
'PENDING_RECEIVE'
,
)
)
// 操作单tab表格 - 状态字段:全部、待接单、配货中、待发货、已完成、已取消、已归档 显示
const
showOperationStatusColumn
=
computed
(()
=>
[
'ALL'
,
'PENDING_RECEIVE'
,
'PICKING'
,
'PENDING_DELIVERY'
,
'COMPLETED'
,
'CANCELLED'
,
'ARCHIVE'
,
].
includes
(
status
.
value
),
)
function
parseOperationOrderImageAry
(
function
parseOperationOrderImageAry
(
imageAry
?:
string
|
null
|
unknown
,
imageAry
?:
string
|
null
|
unknown
,
):
{
url
:
string
;
title
?:
string
}
[]
{
):
{
url
:
string
;
title
?:
string
}
[]
{
...
@@ -2055,6 +2068,17 @@ const operationOrderColumns = computed(() => [
...
@@ -2055,6 +2068,17 @@ const operationOrderColumns = computed(() => [
showOverflowTooltip
:
true
,
showOverflowTooltip
:
true
,
}
,
}
,
{
{
key
:
'statusName'
,
prop
:
'statusName'
,
label
:
'状态'
,
minWidth
:
100
,
align
:
'center'
,
showColumn
:
showOperationStatusColumn
.
value
,
render
:
(
row
:
operateOrderListData
)
=>
{
return
<
span
>
{
row
?.
statusName
??
''
}
<
/span
>
}
,
}
,
{
key
:
'imageAry'
,
key
:
'imageAry'
,
prop
:
'imageAry'
,
prop
:
'imageAry'
,
label
:
'商品图片'
,
label
:
'商品图片'
,
...
...
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