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
8f8e3432
Commit
8f8e3432
authored
Jul 07, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 配货分拣/配货打单 支持筛选平台 #1009989
parent
52c47612
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
4 deletions
+80
-4
src/views/order/podUs/PodMakeOrder.vue
+80
-4
No files found.
src/views/order/podUs/PodMakeOrder.vue
View file @
8f8e3432
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
<span></span>
<span></span>
</div> -->
</div> -->
<div
class=
"basic-info-item"
>
<div
class=
"basic-info-item"
>
<span>
发货备注:
</span>
<span>
客户
发货备注:
</span>
<span>
{{ podOrderDetailsData?.
remark
}}
</span>
<span>
{{ podOrderDetailsData?.
shipmentsNote
}}
</span>
</div>
</div>
<div
class=
"basic-info-item"
>
<div
class=
"basic-info-item"
>
<span>
订单号:
</span>
<span>
订单号:
</span>
...
@@ -176,6 +176,31 @@
...
@@ -176,6 +176,31 @@
?.warehouseName || '')
?.warehouseName || '')
}}
}}
</div>
</div>
<div
class=
"platform-filter"
>
<span>
平台
</span>
<ElSelect
v-model=
"platform"
placeholder=
"请选择"
clearable
filterable
style=
"width: 250px"
>
<ElOption
v-for=
"(item, index) in platformList"
:key=
"index"
:label=
"item.type"
:value=
"item.type"
>
<img
:src=
"`/images/icon/${item.icon.split('/').pop()}`"
style=
"height: 20px; margin: 5px 10px 0 0"
/>
<span
:title=
"item.type"
>
{{ item.type }}
</span>
</ElOption>
</ElSelect>
<ElButton
type=
"primary"
@
click=
"handlePlatformChange"
>
查询
</ElButton>
<ElButton
@
click=
"resetPlatform"
>
重置
</ElButton>
</div>
<div
class=
"flex right-panel-body"
>
<div
class=
"flex right-panel-body"
>
<div
class=
"middle-content"
>
<div
class=
"middle-content"
>
<div
class=
"box-top"
>
<div
class=
"box-top"
>
...
@@ -282,6 +307,10 @@
...
@@ -282,6 +307,10 @@
:class=
"{
:class=
"{
active: item.box && boxIndex == item.box,
active: item.box && boxIndex == item.box,
isNull: !item.data,
isNull: !item.data,
'platform-matched':
platformMatchedBoxes &&
item.box &&
platformMatchedBoxes.includes(item.box),
}"
}"
@
click=
"handleBoxClick(item)"
@
click=
"handleBoxClick(item)"
>
>
...
@@ -343,6 +372,7 @@ import { ElButton, ElIcon, ElTag } from 'element-plus'
...
@@ -343,6 +372,7 @@ import { ElButton, ElIcon, ElTag } from 'element-plus'
import
{
BaseRespData
}
from
'@/types/api'
import
{
BaseRespData
}
from
'@/types/api'
import
type
{
SortingList
}
from
'@/types/api/order'
import
type
{
SortingList
}
from
'@/types/api/order'
import
{
showError
}
from
'@/utils/ui.ts'
import
{
showError
}
from
'@/utils/ui.ts'
import
platformJson
from
'../../../json/platform.json'
const
{
getCLodop
}
=
useLodop
()
const
{
getCLodop
}
=
useLodop
()
...
@@ -539,6 +569,7 @@ watch(visible, async (value: boolean) => {
...
@@ -539,6 +569,7 @@ watch(visible, async (value: boolean) => {
if
(
value
)
{
if
(
value
)
{
podOrderDetailsData
.
value
=
{}
podOrderDetailsData
.
value
=
{}
currentCode
=
''
currentCode
=
''
resetPlatform
()
if
(
props
.
wallType
===
'sort'
)
{
if
(
props
.
wallType
===
'sort'
)
{
await
getSortingAreaList
()
await
getSortingAreaList
()
}
}
...
@@ -865,6 +896,7 @@ const initPrintDevice = () => {
...
@@ -865,6 +896,7 @@ const initPrintDevice = () => {
// }
// }
// }
// }
const
handleSearch
=
()
=>
{
const
handleSearch
=
()
=>
{
resetPlatform
()
const
code
=
productionOrder
.
value
const
code
=
productionOrder
.
value
if
(
!
code
)
{
if
(
!
code
)
{
ElMessage
.
warning
(
'请输入生产单号'
)
ElMessage
.
warning
(
'请输入生产单号'
)
...
@@ -1609,6 +1641,36 @@ const getSortingAreaList = async () => {
...
@@ -1609,6 +1641,36 @@ const getSortingAreaList = async () => {
if
(
res
.
code
!==
200
)
return
if
(
res
.
code
!==
200
)
return
sortingAreaList
.
value
=
res
.
data
.
records
sortingAreaList
.
value
=
res
.
data
.
records
}
}
// 筛选查询平台
const
platformList
=
computed
(
()
=>
platformJson
.
filter
((
item
)
=>
item
.
type
===
'TIKTOK'
),
// platformJson,
)
const
platform
=
ref
<
string
>
(
''
)
const
queriedPlatform
=
ref
<
string
>
(
''
)
const
platformMatchedBoxes
=
computed
(()
=>
{
if
(
!
queriedPlatform
.
value
)
return
null
return
(
podBoxList
.
value
||
[])
.
filter
(
(
item
)
=>
item
.
data
?.
platform
?.
toUpperCase
()
===
queriedPlatform
.
value
.
toUpperCase
(),
)
.
map
((
item
)
=>
item
.
box
)
.
filter
((
box
):
box
is
number
=>
box
!=
null
&&
box
!==
0
)
})
const
handlePlatformChange
=
()
=>
{
if
(
!
platform
.
value
)
{
ElMessage
.
warning
(
'请选择平台'
)
return
}
queriedPlatform
.
value
=
platform
.
value
}
const
resetPlatform
=
()
=>
{
platform
.
value
=
''
queriedPlatform
.
value
=
''
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
@@ -1654,11 +1716,21 @@ const getSortingAreaList = async () => {
...
@@ -1654,11 +1716,21 @@ const getSortingAreaList = async () => {
flex
:
1
;
flex
:
1
;
min-height
:
0
;
min-height
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
}
.right-panel-body
{
.platform-filter
{
display
:
flex
;
align-items
:
center
;
gap
:
10px
;
width
:
100%
;
margin-bottom
:
5px
;
}
.right-panel-body
{
min-height
:
0
;
min-height
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
}
.sorting-area-content
{
.sorting-area-content
{
border
:
2px
solid
#666
;
border
:
2px
solid
#666
;
padding
:
10px
;
padding
:
10px
;
...
@@ -1791,6 +1863,10 @@ const getSortingAreaList = async () => {
...
@@ -1791,6 +1863,10 @@ const getSortingAreaList = async () => {
background
:
#ff9900
;
background
:
#ff9900
;
color
:
#fff
;
color
:
#fff
;
}
}
&
.platform-matched
{
background
:
rgb
(
177
,
19
,
19
);
color
:
#fff
;
}
&
.badge
::after
{
&
.badge
::after
{
position
:
absolute
;
position
:
absolute
;
...
...
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