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
d0b0184a
Commit
d0b0184a
authored
Jul 03, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:库存SKU展示共享库存SKU
parent
850bd021
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
11 deletions
+90
-11
src/types/api/factoryOrderNew/index.ts
+1
-0
src/types/api/order/factoryOrderNew.ts
+1
-0
src/views/order/factoryOrderNew/component/CardLayout.vue
+42
-9
src/views/order/factoryOrderNew/index.vue
+46
-2
No files found.
src/types/api/factoryOrderNew/index.ts
View file @
d0b0184a
...
...
@@ -151,6 +151,7 @@ export interface operateOrderListData {
variantImage
?:
string
thirdSpuCode
?:
string
thirdSkuCode
?:
string
originThirdSkuCode
?:
string
supplierProductNo
?:
string
productName
?:
string
productMark
?:
string
...
...
src/types/api/order/factoryOrderNew.ts
View file @
d0b0184a
...
...
@@ -162,6 +162,7 @@ export interface operateOrderListData {
variantImage
?:
string
thirdSpuCode
?:
string
thirdSkuCode
?:
string
originThirdSkuCode
?:
string
supplierProductNo
?:
string
productName
?:
string
productMark
?:
string
...
...
src/views/order/factoryOrderNew/component/CardLayout.vue
View file @
d0b0184a
...
...
@@ -62,7 +62,10 @@
<
template
#
images
>
<div
class=
"flex-between"
>
<div
class=
"images-position"
>
<div
v-if=
"parseImageAry(item.imageAry).length"
class=
"images-container"
>
<div
v-if=
"parseImageAry(item.imageAry).length"
class=
"images-container"
>
<div
v-for=
"(img, index) in parseImageAry(item.imageAry)"
:key=
"index"
...
...
@@ -72,7 +75,9 @@
<el-image
:src=
"img.url"
height=
"50"
:preview-src-list=
"parseImageAry(item.imageAry).map((i) => i.url)"
:preview-src-list=
"
parseImageAry(item.imageAry).map((i) => i.url)
"
:initial-index=
"index"
/>
</div>
...
...
@@ -175,13 +180,33 @@
<span
class=
"info-value"
>
{{
item
.
craftName
}}
</span>
</div>
<div
class=
"card-info-row"
>
<span
class=
"info-value clickable ellipsis"
:title=
"`库存SKU:$
{(item.thirdSkuCode as string) || ''}`"
@click.stop="copyText((item.thirdSkuCode as string) || '')"
>
{{
item
.
thirdSkuCode
}}
</span>
<div
class=
"third-sku-cell"
>
<el-tooltip
effect=
"dark"
placement=
"top"
>
<template
#
content
>
<div>
下单库存SKU:
{{
(
item
.
originThirdSkuCode
as
string
)
||
(
item
.
thirdSkuCode
as
string
)
||
''
}}
</div>
<div>
(共享库存替代)
</div>
</
template
>
<el-icon
style=
"color: #409eff; cursor: pointer"
><WarningFilled
/></el-icon>
</el-tooltip>
<span
class=
"info-value clickable ellipsis"
:title=
"`库存SKU: ${item.thirdSkuCode}`"
@
click
.
stop=
"
copyText((item.thirdSkuCode as string) || '')
"
>
{{ item.thirdSkuCode }}
</span>
</div>
</div>
<div
class=
"card-info-row"
>
<span
class=
"info-label"
>
店铺单号:
</span>
...
...
@@ -306,6 +331,7 @@ import type { LogListData } from '@/types/api/order'
import
LogList
from
'@/components/LogList.vue'
import
RightClickMenu
from
'@/components/RightClickMenu.vue'
import
platformJson
from
'../../../../json/platform.json'
import
{
WarningFilled
}
from
'@element-plus/icons-vue'
const
props
=
defineProps
<
{
status
?:
string
...
...
@@ -715,6 +741,13 @@ defineExpose({ clearSelection, getSelectedIds, refresh })
.flex-row-gap6
{
gap
:
6px
;
}
.third-sku-cell
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
gap
:
2px
;
overflow
:
hidden
;
}
@media
(
max-width
:
1920px
)
{
.card-grid
{
grid-template-columns
:
repeat
(
5
,
minmax
(
0
,
1
fr
));
...
...
src/views/order/factoryOrderNew/index.vue
View file @
d0b0184a
...
...
@@ -1270,6 +1270,7 @@ import {
CaretBottom
,
Edit
,
DocumentCopy
,
WarningFilled
,
}
from
'@element-plus/icons-vue'
import
{
computed
,
nextTick
,
onMounted
,
ref
}
from
'vue'
import
splitDiv
from
'@/components/splitDiv/splitDiv.vue'
...
...
@@ -2210,9 +2211,40 @@ const operationOrderColumns = computed(() => [
key
:
'thirdSkuCode'
,
prop
:
'thirdSkuCode'
,
label
:
'库存SKU'
,
minWidth
:
1
4
0
,
minWidth
:
1
6
0
,
align
:
'center'
,
showOverflowTooltip
:
true
,
showOverflowTooltip
:
false
,
render
:
(
row
:
operateOrderListData
)
=>
{
const
displaySku
=
row
.
thirdSkuCode
||
'-'
const
originSku
=
row
.
originThirdSkuCode
as
string
|
undefined
const
tipSku
=
originSku
||
row
.
thirdSkuCode
||
''
return
(
<
div
class
=
"third-sku-cell"
>
<
el
-
tooltip
effect
=
"dark"
placement
=
"top-start"
teleported
v
-
slots
=
{{
content
:
()
=>
(
<
div
>
<
div
>
{
`库存SKU: ${row.thirdSkuCode
}
`
}
<
/div
>
<
div
>
{
`下单库存SKU: ${tipSku
}
`
}
<
/div
>
<
div
>
(
共享库存替代
)
<
/div
>
<
/div
>
),
}}
>
<
el
-
icon
style
=
"color:#409EFF;cursor:pointer;"
>
<
WarningFilled
/>
<
/el-icon
>
<
/el-tooltip
>
<
span
class
=
"ellipsis"
>
{
displaySku
}
<
/span
>
<
/div
>
)
}
,
}
,
{
key
:
'productMark'
,
...
...
@@ -3795,6 +3827,18 @@ onMounted(() => {
text
-
overflow
:
ellipsis
;
white
-
space
:
nowrap
;
}
:
deep
(.
third
-
sku
-
cell
)
{
display
:
flex
;
align
-
items
:
center
;
justify
-
content
:
center
;
gap
:
2
px
;
vertical
-
align
:
middle
;
}
:
deep
(.
ellipsis
)
{
overflow
:
hidden
;
text
-
overflow
:
ellipsis
;
white
-
space
:
nowrap
;
}
}
.
table
-
pagination
-
bar
{
...
...
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