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
dc034270
Commit
dc034270
authored
Mar 17, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 列表修改
parent
92f1ca67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
134 additions
and
33 deletions
+134
-33
src/views/order/factoryOrderNew/index.vue
+134
-33
No files found.
src/views/order/factoryOrderNew/index.vue
View file @
dc034270
...
@@ -72,20 +72,13 @@
...
@@ -72,20 +72,13 @@
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
label
=
"工艺"
>
<
ElFormItem
label
=
"工艺"
>
<
ElSelect
<
LogisticsWaySelect
v
-
model
=
"craftCode"
v
-
model
=
"searchForm.craftCode"
placeholder
=
"请选择"
:
company
-
list
=
"craftList"
clearable
:
start
-
width
=
"'150px'"
filterable
search
-
placeholder
=
"搜索工艺名称"
style
=
"width: 140px"
start
-
placeholder
=
"请选择工艺名称"
>
><
/LogisticsWaySelect
>
<
ElOption
v
-
for
=
"item in craftList"
:
key
=
"item.id"
:
label
=
"item.name"
:
value
=
"item.id"
/>
<
/ElSelect
>
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
label
=
"库存SKU"
>
<
ElFormItem
label
=
"库存SKU"
>
...
@@ -133,7 +126,6 @@
...
@@ -133,7 +126,6 @@
/>
/>
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
label
=
"数量"
>
<
ElFormItem
label
=
"数量"
>
<
el
-
radio
-
group
v
-
model
=
"searchForm.multi"
>
<
el
-
radio
-
group
v
-
model
=
"searchForm.multi"
>
<
el
-
radio
-
button
:
value
=
"false"
>
单件
<
/el-radio-button
>
<
el
-
radio
-
button
:
value
=
"false"
>
单件
<
/el-radio-button
>
...
@@ -439,17 +431,32 @@
...
@@ -439,17 +431,32 @@
<
div
class
=
"operation-list"
>
<
div
class
=
"operation-list"
>
<
span
class
=
"item"
>
<
span
class
=
"item"
>
<
ElButton
<
ElButton
type
=
"success"
@
click
=
"handleConfirmOrder"
>
type
=
"primary"
:
disabled
=
"!selectedRowIds.length"
@
click
=
"handleConfirmOrder"
>
确认接单
确认接单
<
/ElButton
>
<
/ElButton
>
<
/span
>
<
/span
>
<
/div
>
<
/div
>
<
div
v
-
if
=
"status === 'PENDING_ACCEPT'"
class
=
"pending-accept-subtabs"
>
<
div
class
=
"pending-accept-subtab"
:
class
=
"{ active: pendingAcceptSubTab === 'PENDING_ACCEPT'
}
"
@
click
=
"pendingAcceptSubTab = 'PENDING_ACCEPT'"
>
待接单
<
span
>
(
0
)
<
/span
>
<
/div
>
<
div
class
=
"pending-accept-subtab"
:
class
=
"{
active: pendingAcceptSubTab === 'ACCEPT_FAIL_OUT_OF_STOCK',
}
"
@
click
=
"pendingAcceptSubTab = 'ACCEPT_FAIL_OUT_OF_STOCK'"
>
接单失败
-
缺货
<
span
>
(
0
)
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"table-content"
>
<
div
class
=
"table-content"
>
<
splitDiv
size
=
"55"
>
<
splitDiv
v
-
loading
=
"loading"
size
=
"55"
>
<
template
#
top
>
<
template
#
top
>
<
div
class
=
"table-list flex-1 overflow-hidden"
>
<
div
class
=
"table-list flex-1 overflow-hidden"
>
<
TableView
<
TableView
...
@@ -539,6 +546,7 @@ import {
...
@@ -539,6 +546,7 @@ import {
}
from
'@/api/podCnOrder'
}
from
'@/api/podCnOrder'
import
{
getUserMarkList
}
from
'@/api/common'
import
{
getUserMarkList
}
from
'@/api/common'
import
{
getAllCountryApi
}
from
'@/api/logistics'
import
{
getAllCountryApi
}
from
'@/api/logistics'
import
LogisticsWaySelect
from
'@/views/logistics/components/LogisticsWaySelect'
const
defaultStatusTree
:
StatusTreeNode
[]
=
[
const
defaultStatusTree
:
StatusTreeNode
[]
=
[
{
{
code
:
'ALL'
,
code
:
'ALL'
,
...
@@ -574,6 +582,9 @@ const defaultStatusTree: StatusTreeNode[] = [
...
@@ -574,6 +582,9 @@ const defaultStatusTree: StatusTreeNode[] = [
const
statusTree
=
ref
<
StatusTreeNode
[]
>
(
defaultStatusTree
)
const
statusTree
=
ref
<
StatusTreeNode
[]
>
(
defaultStatusTree
)
const
status
=
ref
<
string
>
(
'PENDING_ACCEPT'
)
const
status
=
ref
<
string
>
(
'PENDING_ACCEPT'
)
const
pendingAcceptSubTab
=
ref
<
'PENDING_ACCEPT'
|
'ACCEPT_FAIL_OUT_OF_STOCK'
>
(
'PENDING_ACCEPT'
,
)
const
treeRef
=
ref
<
InstanceType
<
typeof
ElTree
>>
()
const
treeRef
=
ref
<
InstanceType
<
typeof
ElTree
>>
()
const
searchForm
=
ref
<
SearchForm
>
({
}
)
const
searchForm
=
ref
<
SearchForm
>
({
}
)
const
dateRange
=
ref
<
string
[]
>
([])
const
dateRange
=
ref
<
string
[]
>
([])
...
@@ -731,6 +742,12 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
...
@@ -731,6 +742,12 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
minWidth
:
160
,
minWidth
:
160
,
}
,
}
,
{
key
:
'statusName'
,
prop
:
'statusName'
,
label
:
'订单状态'
,
minWidth
:
120
}
,
{
key
:
'statusName'
,
prop
:
'statusName'
,
label
:
'订单状态'
,
minWidth
:
120
}
,
{
key
:
'status'
,
prop
:
'status'
,
label
:
'客户标签'
,
minWidth
:
160
}
,
{
key
:
'status'
,
prop
:
'status'
,
label
:
'客户编号'
,
minWidth
:
160
}
,
{
key
:
'status'
,
prop
:
'status'
,
label
:
'物流类型'
,
minWidth
:
120
}
,
{
key
:
'status'
,
prop
:
'status'
,
label
:
'物流跟踪号'
,
minWidth
:
160
}
,
{
key
:
'status'
,
prop
:
'status'
,
label
:
'总克重'
,
minWidth
:
120
}
,
{
key
:
'status'
,
prop
:
'status'
,
label
:
'商品总数量'
,
minWidth
:
120
}
,
{
{
key
:
'logisticsWayName'
,
key
:
'logisticsWayName'
,
prop
:
'logisticsWayName'
,
prop
:
'logisticsWayName'
,
...
@@ -738,12 +755,6 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
...
@@ -738,12 +755,6 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
minWidth
:
140
,
minWidth
:
140
,
}
,
}
,
{
{
key
:
'totalWeight'
,
prop
:
'totalWeight'
,
label
:
'总克重'
,
minWidth
:
100
,
}
,
{
key
:
'totalProductNum'
,
key
:
'totalProductNum'
,
prop
:
'totalProductNum'
,
prop
:
'totalProductNum'
,
label
:
'商品总数量'
,
label
:
'商品总数量'
,
...
@@ -762,6 +773,12 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
...
@@ -762,6 +773,12 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
minWidth
:
140
,
minWidth
:
140
,
}
,
}
,
{
{
key
:
'receiverPhone'
,
prop
:
'receiverPhone'
,
label
:
'收货人邮编'
,
minWidth
:
140
,
}
,
{
key
:
'receiverAddress'
,
key
:
'receiverAddress'
,
prop
:
'receiverAddress'
,
prop
:
'receiverAddress'
,
label
:
'收货地址'
,
label
:
'收货地址'
,
...
@@ -773,19 +790,30 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
...
@@ -773,19 +790,30 @@ const mainColumns: CustomColumn<FactoryOrderNewListData>[] = [
prop
:
'createTime'
,
prop
:
'createTime'
,
label
:
'创建时间'
,
label
:
'创建时间'
,
minWidth
:
180
,
minWidth
:
180
,
sortable
:
true
,
}
,
}
,
{
{
key
:
'acceptTime'
,
key
:
'acceptTime'
,
prop
:
'acceptTime'
,
prop
:
'acceptTime'
,
label
:
'接单时间'
,
label
:
'接单时间'
,
sortable
:
true
,
minWidth
:
180
,
minWidth
:
180
,
}
,
}
,
{
{
key
:
'finishTime'
,
key
:
'finishTime'
,
prop
:
'finishTime'
,
prop
:
'finishTime'
,
label
:
'完成时间'
,
label
:
'完成时间'
,
sortable
:
true
,
minWidth
:
180
,
minWidth
:
180
,
}
,
}
,
{
key
:
'operation'
,
prop
:
'operation'
,
label
:
'操作'
,
minWidth
:
120
,
slot
:
'operation'
,
fixed
:
'right'
,
}
,
]
]
const
productColumns
:
CustomColumn
<
ProductListData
>
[]
=
[
const
productColumns
:
CustomColumn
<
ProductListData
>
[]
=
[
...
@@ -820,13 +848,13 @@ const productColumns: CustomColumn<ProductListData>[] = [
...
@@ -820,13 +848,13 @@ const productColumns: CustomColumn<ProductListData>[] = [
key
:
'craftCode'
,
key
:
'craftCode'
,
prop
:
'craftCode'
,
prop
:
'craftCode'
,
label
:
'工艺'
,
label
:
'工艺'
,
minWidth
:
1
2
0
,
minWidth
:
1
0
0
,
}
,
}
,
{
{
key
:
'styleNo'
,
key
:
'styleNo'
,
prop
:
'styleNo'
,
prop
:
'styleNo'
,
label
:
'款号'
,
label
:
'款号'
,
minWidth
:
1
2
0
,
minWidth
:
1
0
0
,
}
,
}
,
{
{
key
:
'price'
,
key
:
'price'
,
...
@@ -850,23 +878,54 @@ const productColumns: CustomColumn<ProductListData>[] = [
...
@@ -850,23 +878,54 @@ const productColumns: CustomColumn<ProductListData>[] = [
key
:
'availableQuantity'
,
key
:
'availableQuantity'
,
prop
:
'availableQuantity'
,
prop
:
'availableQuantity'
,
label
:
'可用数量'
,
label
:
'可用数量'
,
minWidth
:
1
1
0
,
minWidth
:
1
0
0
,
}
,
}
,
{
{
key
:
'stockQuantity'
,
key
:
'stockQuantity'
,
prop
:
'stockQuantity'
,
prop
:
'stockQuantity'
,
label
:
'库存数量'
,
label
:
'库存数量'
,
minWidth
:
1
1
0
,
minWidth
:
1
0
0
,
}
,
}
,
{
{
key
:
'occupiedQuantity'
,
key
:
'occupiedQuantity'
,
prop
:
'occupiedQuantity'
,
prop
:
'occupiedQuantity'
,
label
:
'占用数量'
,
label
:
'占用数量'
,
minWidth
:
110
,
minWidth
:
100
,
}
,
{
key
:
''
,
prop
:
''
,
label
:
'英文报关名称'
,
width
:
160
,
}
,
{
key
:
''
,
prop
:
''
,
label
:
'中文报关名称'
,
width
:
160
,
}
,
{
key
:
''
,
prop
:
''
,
label
:
'申报重量(g)'
,
width
:
100
,
}
,
{
key
:
''
,
prop
:
''
,
label
:
'申报价值($)'
,
width
:
100
,
}
,
{
key
:
''
,
prop
:
''
,
label
:
'备注'
,
width
:
160
,
}
,
}
,
]
]
const
{
const
{
loading
,
currentPage
,
currentPage
,
pageSize
,
pageSize
,
total
,
total
,
...
@@ -885,7 +944,11 @@ const {
...
@@ -885,7 +944,11 @@ const {
}
,
}
,
page
,
page
,
size
,
size
,
status
.
value
===
'ALL'
?
undefined
:
status
.
value
,
status
.
value
===
'ALL'
?
undefined
:
status
.
value
===
'PENDING_ACCEPT'
?
pendingAcceptSubTab
.
value
:
status
.
value
,
).
then
((
res
)
=>
res
.
data
),
).
then
((
res
)
=>
res
.
data
),
}
)
}
)
...
@@ -903,6 +966,9 @@ const reset = () => {
...
@@ -903,6 +966,9 @@ const reset = () => {
const
handleStatusNodeClick
=
(
node
:
StatusTreeNode
)
=>
{
const
handleStatusNodeClick
=
(
node
:
StatusTreeNode
)
=>
{
status
.
value
=
node
.
code
status
.
value
=
node
.
code
if
(
node
.
code
!==
'PENDING_ACCEPT'
)
{
pendingAcceptSubTab
.
value
=
'PENDING_ACCEPT'
}
// refresh()
// refresh()
}
}
...
@@ -946,6 +1012,16 @@ const handleMainRowClick = (row: FactoryOrderNewListData) => {
...
@@ -946,6 +1012,16 @@ const handleMainRowClick = (row: FactoryOrderNewListData) => {
}
}
watch
(
watch
(
()
=>
pendingAcceptSubTab
.
value
,
()
=>
{
if
(
status
.
value
===
'PENDING_ACCEPT'
)
{
onCurrentPageChange
(
1
)
refresh
()
}
}
,
)
watch
(
()
=>
activeTab
.
value
,
()
=>
activeTab
.
value
,
()
=>
{
()
=>
{
if
(
currentRow
.
value
)
{
if
(
currentRow
.
value
)
{
...
@@ -1050,6 +1126,31 @@ onMounted(() => {
...
@@ -1050,6 +1126,31 @@ onMounted(() => {
}
}
}
}
.
pending
-
accept
-
subtabs
{
display
:
flex
;
align
-
items
:
center
;
gap
:
10
px
;
border
-
top
:
1
px
solid
#
e5e6eb
;
border
-
bottom
:
1
px
solid
#
e5e6eb
;
margin
-
top
:
10
px
;
}
.
pending
-
accept
-
subtab
{
font
-
size
:
14
px
;
line
-
height
:
32
px
;
padding
:
0
12
px
;
cursor
:
pointer
;
user
-
select
:
none
;
color
:
#
333
;
position
:
relative
;
&
.
active
{
background
:
#
ecf5ff
;
color
:
#
409
eff
;
border
-
bottom
:
2
px
solid
#
409
eff
;
}
}
.
right
{
.
right
{
flex
:
1
;
flex
:
1
;
flex
-
shrink
:
0
;
flex
-
shrink
:
0
;
...
...
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