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
d5729aa9
Commit
d5729aa9
authored
Aug 20, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 配货中添加缺货标记 #1011818
parent
e5a61374
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
src/types/api/factoryOrderNew/index.ts
+2
-1
src/types/api/order/factoryOrderNew.ts
+2
-1
src/views/order/factoryOrderNew/index.vue
+15
-7
No files found.
src/types/api/factoryOrderNew/index.ts
View file @
d5729aa9
...
...
@@ -160,7 +160,8 @@ export interface operateOrderListData {
isReplenishment
?:
boolean
totalProductionNum
?:
number
status
?:
string
outOfStock
?:
boolean
/** 0-正常, 1-缺货 */
outOfStock
?:
number
arrange
?:
boolean
version
?:
number
createTime
?:
string
...
...
src/types/api/order/factoryOrderNew.ts
View file @
d5729aa9
...
...
@@ -178,7 +178,8 @@ export interface operateOrderListData {
isReplenishment
?:
boolean
totalProductionNum
?:
number
status
?:
string
outOfStock
?:
boolean
/** 0-正常, 1-缺货 */
outOfStock
?:
number
arrange
?:
boolean
version
?:
number
createTime
?:
string
...
...
src/views/order/factoryOrderNew/index.vue
View file @
d5729aa9
...
...
@@ -2247,8 +2247,7 @@ const operationOrderColumns = computed(() => [
align
:
'center'
,
render
:
(
row
:
operateOrderListData
)
=>
{
const
list
=
parseOperationOrderImageAry
(
row
.
imageAry
)
if
(
!
list
.
length
)
{
return
(
const
images
=
!
list
.
length
?
(
<
div
style
=
"display:flex;gap:4px;"
>
<
el
-
image
src
=
{
row
.
variantImage
}
...
...
@@ -2257,16 +2256,13 @@ const operationOrderColumns = computed(() => [
previewTeleported
/>
<
/div
>
)
}
const
urls
=
list
.
map
((
i
)
=>
i
.
url
)
return
(
)
:
(
<
div
style
=
"display:flex;gap:4px;"
>
{
list
.
map
((
img
,
idx
)
=>
(
<
el
-
image
key
=
{
idx
}
src
=
{
img
.
url
}
previewSrcList
=
{
urls
}
previewSrcList
=
{
list
.
map
((
i
)
=>
i
.
url
)
}
previewTeleported
=
{
true
}
initialIndex
=
{
idx
}
style
=
"width:50px;height:50px"
...
...
@@ -2275,6 +2271,18 @@ const operationOrderColumns = computed(() => [
))
}
<
/div
>
)
return
(
<
div
style
=
"display:flex;align-items:center;gap:4px;"
>
{
images
}
{
row
.
outOfStock
==
1
&&
(
<
el
-
tooltip
effect
=
"light"
content
=
"缺货"
placement
=
"bottom"
>
<
div
style
=
"background-color:#f56c6c;color:#fff;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:12px;flex-shrink:0;"
>
缺
<
/div
>
<
/el-tooltip
>
)
}
<
/div
>
)
}
,
}
,
{
...
...
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