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
306755b5
Commit
306755b5
authored
Nov 21, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: pod 添加状态推送
parent
433c03bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
2 deletions
+53
-2
src/api/podOrder.ts
+13
-1
src/views/order/pod/index.vue
+40
-1
No files found.
src/api/podOrder.ts
View file @
306755b5
...
@@ -52,7 +52,7 @@ export function printProductionQrCode(id: number, orderFrom: string) {
...
@@ -52,7 +52,7 @@ export function printProductionQrCode(id: number, orderFrom: string) {
return
axios
.
get
<
never
,
BaseRespData
<
PodProductList
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
PodProductList
>>
(
'factory/podJomallOrderProductCnUs/printProductionQrCode'
,
'factory/podJomallOrderProductCnUs/printProductionQrCode'
,
{
{
params
:{
params
:
{
orderFrom
,
orderFrom
,
id
id
}
}
...
@@ -65,6 +65,18 @@ export function refreshJMProductInfo(data: number[]) {
...
@@ -65,6 +65,18 @@ export function refreshJMProductInfo(data: number[]) {
data
,
data
,
)
)
}
}
// 状态推送
export
function
statusPushApi
(
ids
:
string
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podJomallOrder/statusPush'
,
null
,
{
params
:
{
ids
,
},
},
)
}
export
function
getOrderList
(
export
function
getOrderList
(
data
:
SearchForm
,
data
:
SearchForm
,
currentPage
:
number
,
currentPage
:
number
,
...
...
src/views/order/pod/index.vue
View file @
306755b5
...
@@ -248,6 +248,9 @@
...
@@ -248,6 +248,9 @@
<ElFormItem
v-if=
"['TO_BE_RECEIPT', 'COMPLETE'].includes(status)"
>
<ElFormItem
v-if=
"['TO_BE_RECEIPT', 'COMPLETE'].includes(status)"
>
<ElButton
type=
"success"
@
click=
"toExport"
>
导出对账单
</ElButton>
<ElButton
type=
"success"
@
click=
"toExport"
>
导出对账单
</ElButton>
</ElFormItem>
</ElFormItem>
<ElFormItem
v-if=
"['TO_BE_RECEIPT'].includes(status)"
>
<ElButton
type=
"warning"
@
click=
"statusPush"
>
状态推送
</ElButton>
</ElFormItem>
<ElFormItem
<ElFormItem
v-if=
"['TO_BE_CONFIRMED', 'IN_PRODUCTION'].includes(status)"
v-if=
"['TO_BE_CONFIRMED', 'IN_PRODUCTION'].includes(status)"
>
>
...
@@ -1279,6 +1282,7 @@ import {
...
@@ -1279,6 +1282,7 @@ import {
getInProductionCount
,
getInProductionCount
,
getWaitShipmentCount
,
getWaitShipmentCount
,
refreshJMProductInfo
,
refreshJMProductInfo
,
statusPushApi
,
reasonInvalidationApi
,
reasonInvalidationApi
,
syncSubOrderDesignImages
,
syncSubOrderDesignImages
,
applyForReplenishmentApi
,
applyForReplenishmentApi
,
...
@@ -1577,6 +1581,39 @@ const toExport = () => {
...
@@ -1577,6 +1581,39 @@ const toExport = () => {
exportVisible
.
value
=
true
exportVisible
.
value
=
true
exportTime
.
value
=
[]
exportTime
.
value
=
[]
}
}
const
statusPush
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
({
message
:
'请选择订单'
,
type
:
'warning'
,
offset
:
window
.
innerHeight
/
2
,
}
)
}
try
{
await
showConfirm
(
'是否进行状态推送'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
catch
{
return
}
const
ids
=
selection
.
value
.
map
((
item
:
CardOrderData
|
PodProductList
)
=>
item
.
id
as
number
)
.
join
(
','
)
try
{
const
res
=
await
statusPushApi
(
ids
)
ElMessage
({
message
:
res
.
message
,
type
:
'success'
,
offset
:
window
.
innerHeight
/
2
,
}
)
loadTabData
()
loadDiffList
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
const
exportData
=
async
()
=>
{
const
exportData
=
async
()
=>
{
if
(
!
exportTime
.
value
||
exportTime
.
value
.
length
===
0
)
{
if
(
!
exportTime
.
value
||
exportTime
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择时间'
)
return
ElMessage
.
warning
(
'请选择时间'
)
...
@@ -2323,7 +2360,9 @@ const printManuscript = async () => {
...
@@ -2323,7 +2360,9 @@ const printManuscript = async () => {
}
)
}
)
}
}
const
ids
=
[]
const
ids
=
[]
if
([
'IN_PRODUCTION'
,
'TO_BE_CONFIRMED'
,
'WAIT_SHIPMENT'
].
includes
(
status
.
value
))
{
if
(
[
'IN_PRODUCTION'
,
'TO_BE_CONFIRMED'
,
'WAIT_SHIPMENT'
].
includes
(
status
.
value
)
)
{
ids
.
push
(
ids
.
push
(
...
selection
.
value
.
map
((
item
:
CardOrderData
|
PodProductList
)
=>
item
.
id
),
...
selection
.
value
.
map
((
item
:
CardOrderData
|
PodProductList
)
=>
item
.
id
),
)
)
...
...
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