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
0
Merge Requests
0
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
62deaf48
Commit
62deaf48
authored
Jul 09, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_complete_delivery' into 'dev'
Dev complete delivery See merge request
!252
parents
c82edc93
9f46b97f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
src/api/factoryOrderNew.ts
+10
-0
src/views/order/factoryOrderNew/index.vue
+42
-0
No files found.
src/api/factoryOrderNew.ts
View file @
62deaf48
...
@@ -589,6 +589,16 @@ export function orderWeighingPodOrderApi(params: unknown) {
...
@@ -589,6 +589,16 @@ export function orderWeighingPodOrderApi(params: unknown) {
)
)
}
}
// 完成发货
export
function
finishShipmentPodOrderApi
(
params
:
unknown
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podOrder/finish-shipment'
,
params
as
{
podOrderWeighingParams
:
{
id
?:
string
;
outWarehouseWeight
?:
string
}[]
},
)
}
// 单件打单:根据 SKU/单号查询明细
// 单件打单:根据 SKU/单号查询明细
export
function
getSingleQueryPodOrderApi
(
export
function
getSingleQueryPodOrderApi
(
code
:
string
,
code
:
string
,
...
...
src/views/order/factoryOrderNew/index.vue
View file @
62deaf48
...
@@ -636,6 +636,9 @@
...
@@ -636,6 +636,9 @@
<
span
v
-
if
=
"status === 'PENDING_DELIVERY'"
class
=
"item"
>
<
span
v
-
if
=
"status === 'PENDING_DELIVERY'"
class
=
"item"
>
<
ElButton
type
=
"primary"
@
click
=
"handleWeightSort"
>
称重分拣
<
/ElButton
>
<
ElButton
type
=
"primary"
@
click
=
"handleWeightSort"
>
称重分拣
<
/ElButton
>
<
ElButton
type
=
"success"
@
click
=
"handleCompleteDelivery"
>
完成发货
<
/ElButto
n
>
<
/span
>
<
/span
>
<!--
已完成
-->
<!--
已完成
-->
<
template
v
-
if
=
"status === 'COMPLETED'"
>
<
template
v
-
if
=
"status === 'COMPLETED'"
>
...
@@ -1281,6 +1284,7 @@ import {
...
@@ -1281,6 +1284,7 @@ import {
getByOperationNoLogApi
,
getByOperationNoLogApi
,
listByNoPodOrderApi
,
listByNoPodOrderApi
,
orderWeighingPodOrderApi
,
orderWeighingPodOrderApi
,
finishShipmentPodOrderApi
,
getSingleQueryPodOrderApi
,
getSingleQueryPodOrderApi
,
submitPodPrintOrderCompleteApi
,
submitPodPrintOrderCompleteApi
,
getFactoryOrderNewOperateDetailApi
,
getFactoryOrderNewOperateDetailApi
,
...
@@ -3095,6 +3099,44 @@ const handleProductionComplete = async () => {
...
@@ -3095,6 +3099,44 @@ const handleProductionComplete = async () => {
const
handleWeightSort
=
()
=>
{
const
handleWeightSort
=
()
=>
{
weightDialogRef
.
value
?.
open
()
weightDialogRef
.
value
?.
open
()
}
}
const
handleCompleteDelivery
=
()
=>
{
if
(
!
ensureSelection
())
return
ElMessageBox
.
confirm
(
`<div>确定完成发货吗?</div>
<div style="color: #ff2626; margin-top: 8px; font-size: 13px;">注意:完成发货前请先核对商品重量</div>`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
dangerouslyUseHTMLString
:
true
,
}
,
)
.
then
(
async
()
=>
{
const
params
=
{
podOrderWeighingParams
:
selectedRows
.
value
.
map
((
row
)
=>
({
id
:
String
(
row
.
id
),
outWarehouseWeight
:
row
.
weight
!=
null
?
String
(
row
.
weight
)
:
undefined
,
}
)),
}
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
finishShipmentPodOrderApi
(
params
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
loading
.
close
()
refreshCurrentView
({
isRefreshTree
:
true
}
)
}
}
)
.
catch
(()
=>
{
}
)
}
const
handleArchiveOrder
=
async
()
=>
{
const
handleArchiveOrder
=
async
()
=>
{
await
executeBatchAction
({
await
executeBatchAction
({
getIds
:
getSelectedIds
,
getIds
:
getSelectedIds
,
...
...
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