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
f027fcfc
Commit
f027fcfc
authored
Jun 25, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_sorting_complete' into 'dev'
Dev sorting complete See merge request
!233
parents
0bda4d74
0267f8c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
4 deletions
+43
-4
src/api/factoryOrderNew.ts
+8
-0
src/views/order/factoryOrderNew/index.vue
+35
-0
src/views/order/podUs/PodMakeOrder.vue
+0
-4
No files found.
src/api/factoryOrderNew.ts
View file @
f027fcfc
...
...
@@ -684,3 +684,11 @@ export function exportOrderInventoryApi(data: Record<string, unknown>) {
data
,
)
}
// 配货完成 按钮
export
function
deliveryCompleteApi
(
data
:
{
id
:
number
;
version
?:
number
}[])
{
return
axios
.
post
<
never
,
BaseRespData
<
ResultInfoDataItem
[]
>>
(
'factory/podOrder/podPrintOrderShipmentComplete'
,
{
orderParamList
:
data
},
)
}
src/views/order/factoryOrderNew/index.vue
View file @
f027fcfc
...
...
@@ -681,6 +681,11 @@
>
<
ElButton
type
=
"danger"
@
click
=
"handleSuspend"
>
挂起
<
/ElButton
>
<
/span
>
<
span
v
-
if
=
"['PICKING'].includes(status)"
class
=
"item"
>
<
ElButton
type
=
"success"
@
click
=
"handleDeliveryComplete"
>
配货完成
<
/ElButto
n
>
<
/span
>
<
span
v
-
if
=
"status === 'PENDING_PACKING'"
class
=
"item"
>
<
ElButton
type
=
"success"
@
click
=
"handlePrintWarehouseSkuTag"
>
打印库存
SKU
标签
<
/ElButto
n
...
...
@@ -1273,6 +1278,7 @@ import {
exportFactoryOrderInfo
,
interceptUpdateApi
,
interceptSuccessApi
,
deliveryCompleteApi
,
}
from
'@/api/factoryOrderNew'
import
{
getConfigApi
}
from
'@/api/order'
import
{
getLogisticsWayApi
}
from
'@/api/podUsOrder'
...
...
@@ -2995,6 +3001,35 @@ const handlePickComplete = () => {
if
(
!
ensureSelection
())
return
pickCompleteDialogRef
.
value
?.
open
(
getSelectedIds
())
}
const
handleDeliveryComplete
=
()
=>
{
if
(
!
ensureSelection
())
return
ElMessageBox
.
confirm
(
'确定完成发货吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}
)
.
then
(
async
()
=>
{
const
params
=
selectedRows
.
value
.
map
((
row
)
=>
({
id
:
row
.
id
,
version
:
row
.
version
,
}
))
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
deliveryCompleteApi
(
params
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
loading
.
close
()
refreshCurrentView
({
isRefreshTree
:
true
}
)
}
}
)
.
catch
(()
=>
{
}
)
}
const
handlePickFail
=
()
=>
{
if
(
!
ensureSelection
())
return
pickFailDialogRef
.
value
?.
open
(
getSelectedIds
(),
{
...
...
src/views/order/podUs/PodMakeOrder.vue
View file @
f027fcfc
...
...
@@ -1540,10 +1540,6 @@ const getSortingAreaList = async () => {
sortingAreaId
.
value
=
defaultArea
.
id
warehouseId
.
value
=
defaultArea
.
warehouseId
isAutoPrint
.
value
=
defaultArea
.
autoPrint
||
false
emit
(
'set-warehouseId'
,
{
warehouseId
:
warehouseId
.
value
,
sortingAreaId
:
sortingAreaId
.
value
,
})
}
</
script
>
...
...
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