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
7acfef98
Commit
7acfef98
authored
Aug 08, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: podus代发货添加完成发货按钮
parent
292ff35d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
src/api/podUsOrder.ts
+10
-0
src/views/order/podUs/index.vue
+58
-0
No files found.
src/api/podUsOrder.ts
View file @
7acfef98
...
...
@@ -543,3 +543,13 @@ export function statusPushApi(params: (string | number)[]) {
params
,
)
}
// 完成发货
export
function
completeDeliveryApi
(
params
:
{
orderIdList
:
(
string
|
number
)[]
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderUs/completeDelivery`
,
params
,
)
}
src/views/order/podUs/index.vue
View file @
7acfef98
...
...
@@ -404,6 +404,11 @@
转至待排单
</ElButton>
</span>
<span
v-if=
"status === 'WAIT_SHIPMENT'"
class=
"item"
>
<ElButton
type=
"primary"
@
click=
"completeDelivery()"
>
完成发货
</ElButton
>
</span>
<span
v-if=
"status === 'WAIT_SHIPMENT' || status === 'CREATE_LOGISTICS'"
class=
"item"
...
...
@@ -2278,6 +2283,7 @@ import {
interceptUpdateApi
,
rejectToApi
,
statusPushApi
,
completeDeliveryApi
,
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
...
...
@@ -4829,6 +4835,58 @@ const statusPush = async () => {
}
}
// 完成发货
const
completeDelivery
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择订单'
)
}
try
{
await
ElMessageBox
.
confirm
(
'确定完成发货吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
catch
(
e
)
{
return
}
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
completeDeliveryApi
({
orderIdList
:
selection
.
value
.
map
((
item
)
=>
item
.
id
),
}
)
if
(
res
.
code
!==
200
)
return
resultInfo
.
value
=
(
res
.
data
as
{
id
:
string
|
number
status
:
boolean
factoryOrderNumber
?:
string
message
:
string
}
[])
||
[]
if
(
Array
.
isArray
(
res
.
data
)
&&
(
res
.
data
as
{
status
:
boolean
}
[]).
some
((
item
)
=>
!
item
.
status
)
)
{
resultRefs
.
value
?.
showDialog
()
}
else
{
search
()
loadTabData
()
}
ElMessage
.
success
(
'操作成功'
)
// search()
// loadTabData()
}
catch
(
e
)
{
resultInfo
.
value
=
[]
console
.
error
(
e
)
}
finally
{
loading
.
close
()
}
}
const
tempChinaLogs
=
ref
<
LogListData
[]
>
([])
function
changeChinaTime
(
zone
:
string
)
{
logList
.
value
=
tempChinaLogs
.
value
.
map
((
el
)
=>
{
...
...
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