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
805b061f
Commit
805b061f
authored
Apr 07, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加同步素材图
parent
a4d05755
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletions
+50
-1
src/api/podOrder.ts
+6
-0
src/views/order/pod/index.vue
+44
-1
No files found.
src/api/podOrder.ts
View file @
805b061f
...
...
@@ -88,6 +88,12 @@ export function applyForReplenishmentApi(data: unknown) {
data
,
)
}
export
function
syncSubOrderDesignImages
(
data
:
unknown
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podJomallOrderProduct/syncSubOrderDesignImages'
,
data
,
)
}
// 发货保存
export
function
saveOrder
(
sumbitSendOutList
:
ShipmentOrderRes
[],
...
...
src/views/order/pod/index.vue
View file @
805b061f
...
...
@@ -227,6 +227,14 @@
申请补胚
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"['TO_BE_CONFIRMED', 'IN_PRODUCTION'].includes(status)"
class
=
"item"
>
<
ElButton
type
=
"warning"
is
-
dark
@
click
=
"synchronousPlan"
>
同步素材图
<
/ElButto
n
>
<
/span
>
<
/div
>
<
template
v
-
if
=
"
...
...
@@ -535,7 +543,7 @@
@
click
.
stop
=
"openMaterial(cardItem as PodProductList)"
>
<
img
width
=
"20"
src
=
"@/assets/images/id.png"
/>
<
span
title
=
"素材ID"
>
<
span
class
=
"over-hidden"
title
=
"素材ID"
>
{{
cardItem
?.
productionFileId
}}
<
/span
>
<
/a
>
...
...
@@ -1062,6 +1070,7 @@ import {
getWaitShipmentCount
,
refreshJMProductInfo
,
reasonInvalidationApi
,
syncSubOrderDesignImages
,
applyForReplenishmentApi
,
completeDeliveryApi
,
}
from
'@/api/podOrder'
...
...
@@ -1093,6 +1102,7 @@ import {
SearchForm
,
Tab
,
LogListData
,
PodProductList
,
cardImages
,
imageAryInter
,
...
...
@@ -1792,6 +1802,32 @@ const applyForReplacement = async () => {
// showError(e)
}
}
const
synchronousPlan
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
({
message
:
'请选择订单'
,
type
:
'warning'
,
offset
:
window
.
innerHeight
/
2
,
}
)
}
try
{
await
showConfirm
(
'是否同步素材图?'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
catch
{
return
}
try
{
const
res
=
await
syncSubOrderDesignImages
(
selection
.
value
.
map
(
item
=>
item
.
id
))
await
loadDiffList
()
await
loadTabData
()
ElMessage
.
success
(
res
.
message
)
}
catch
(
e
)
{
// showError(e)
}
}
// 下载稿件
const
downloadMaterial
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
...
...
@@ -2448,4 +2484,11 @@ onBeforeUnmount(() => {
display
:
flex
;
align
-
items
:
center
;
}
.
over
-
hidden
{
width
:
150
px
;
display
:
inline
-
block
;
white
-
space
:
nowrap
;
overflow
:
hidden
;
text
-
overflow
:
ellipsis
;
}
<
/style
>
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