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
9a72bd10
Commit
9a72bd10
authored
Jun 18, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 工厂订单(NEW)操作单展示客户标签 #1009511
parent
40ae7ae9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
9 deletions
+27
-9
src/types/api/factoryOrderNew/index.ts
+1
-0
src/views/order/factoryOrderNew/component/CardLayout.vue
+25
-9
src/views/order/factoryOrderNew/index.vue
+1
-0
No files found.
src/types/api/factoryOrderNew/index.ts
View file @
9a72bd10
...
...
@@ -165,6 +165,7 @@ export interface operateOrderListData {
warehouseId
?:
number
namespace
?:
string
statusName
?:
string
tagsId
?:
string
[
key
:
string
]:
unknown
}
...
...
src/views/order/factoryOrderNew/component/CardLayout.vue
View file @
9a72bd10
...
...
@@ -45,6 +45,11 @@
缺
</div>
</el-tooltip>
<span
v-if=
"item.tagsId"
class=
"flex-row flex-row-gap6"
>
<el-tag
v-for=
"tag in getItemTags(item.tagsId)"
:key=
"tag.id"
>
{{
tag
.
name
}}
</el-tag>
</span>
</
template
>
<
template
#
top_right
>
<img
...
...
@@ -306,6 +311,7 @@ const props = defineProps<{
status
?:
string
queryPayload
?:
Record
<
string
,
unknown
>
initPageSize
?:
number
tagList
?:
{
id
:
string
;
name
:
string
}[]
fetchList
?:
CardLayoutListFetcher
}
>
()
...
...
@@ -356,6 +362,16 @@ const rightClickItem = ref<operateOrderListData | null>(null)
const
isSelected
=
(
item
:
operateOrderListData
)
=>
selectedItems
.
value
.
some
((
s
)
=>
s
.
id
===
item
.
id
)
const
getItemTags
=
(
tagsId
?:
string
)
=>
{
if
(
!
tagsId
||
!
props
.
tagList
?.
length
)
return
[]
return
tagsId
.
split
(
','
)
.
map
((
id
)
=>
id
.
trim
())
.
filter
(
Boolean
)
.
map
((
id
)
=>
props
.
tagList
!
.
find
((
tag
)
=>
String
(
tag
.
id
)
===
id
))
.
filter
((
tag
):
tag
is
{
id
:
string
;
name
:
string
}
=>
!!
tag
)
}
const
handleCardClick
=
(
item
:
operateOrderListData
)
=>
{
const
idx
=
selectedItems
.
value
.
findIndex
((
s
)
=>
s
.
id
===
item
.
id
)
if
(
idx
>=
0
)
{
...
...
@@ -432,13 +448,13 @@ const openLogDialog = async (item: operateOrderListData) => {
})
try
{
const
res
=
await
getFactoryOrderNewLogApi
(
item
.
podOrderId
as
number
)
logList
.
value
=
(
res
.
data
||
[])
as
unknown
as
LogListData
[]
logVisible
.
value
=
true
}
catch
(
e
)
{
// ignore
}
finally
{
loading
.
close
()
}
logList
.
value
=
(
res
.
data
||
[])
as
unknown
as
LogListData
[]
logVisible
.
value
=
true
}
catch
(
e
)
{
// ignore
}
finally
{
loading
.
close
()
}
}
const
clearSelection
=
()
=>
{
...
...
@@ -555,8 +571,8 @@ defineExpose({ clearSelection, getSelectedIds, refresh })
}
.product-mark-badge
{
border
:
2px
solid
#
F56C6C
;
color
:
#
F56C6C
;
border
:
2px
solid
#
f56c6c
;
color
:
#
f56c6c
;
font-weight
:
700
;
height
:
28px
;
width
:
28px
;
...
...
src/views/order/factoryOrderNew/index.vue
View file @
9a72bd10
...
...
@@ -782,6 +782,7 @@
ref
=
"cardLayoutRef"
:
status
=
"listQueryStatus"
:
query
-
payload
=
"getListQueryPayload()"
:
tag
-
list
=
"customTagList"
@
selection
-
change
=
"handleCardSelectionChange"
@
view
-
detail
=
"handleViewDetail"
/>
...
...
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