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
54b5a2d7
Commit
54b5a2d7
authored
Jun 24, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
5501333a
3cb4dcf4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
23 deletions
+43
-23
src/api/podUsOrder.ts
+14
-6
src/views/order/podUs/components/ResultInfo.vue
+3
-3
src/views/order/podUs/index.vue
+26
-14
No files found.
src/api/podUsOrder.ts
View file @
54b5a2d7
...
...
@@ -174,9 +174,17 @@ export function printPickingOrderApi(orderIds: number[]) {
)
}
export
function
stockOutCheckApi
(
orderIds
:
number
[])
{
return
axios
.
get
<
never
,
BaseRespData
<
number
[]
>>
(
`factory/podJomallOrderUs/replenishVerify?ids=
${
orderIds
.
join
(
','
)}
`
,
)
return
axios
.
get
<
never
,
BaseRespData
<
{
id
:
number
status
:
boolean
message
?:
string
factoryOrderNumber
?:
string
}[]
>
>
(
`factory/podJomallOrderUs/replenishVerify?ids=
${
orderIds
.
join
(
','
)}
`
)
}
export
function
toBePickingApi
(
orderIds
:
number
[])
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
...
...
@@ -326,16 +334,16 @@ export function createLogisticsOrderApi(params: {
// 创建物流
export
function
uploadExpressSheet
(
params
:
{
trackingNumber
:
string
trackingNumber
:
string
file
:
File
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podJomallOrderUs/uploadExpressSheet'
,
params
,
)
}
// 创建物流
}
// 创建物流
export
function
updateSelfLogistics
(
params
:
{
trackingNumber
:
string
trackingNumber
:
string
expressSheet
:
string
processNumber
:
string
id
?:
string
...
...
src/views/order/podUs/components/ResultInfo.vue
View file @
54b5a2d7
...
...
@@ -74,11 +74,10 @@ const resultDialog = ref(false)
const
isIndeterminate
=
ref
(
false
)
const
checkAll
=
ref
(
false
)
const
selectedList
=
ref
<
IList
[]
>
([])
let
key
=
''
// 显示弹窗
const
showDialog
=
(
type
?:
string
)
=>
{
console
.
log
(
type
)
key
=
type
||
''
resultDialog
.
value
=
true
selectedList
.
value
=
[]
checkAll
.
value
=
false
...
...
@@ -127,6 +126,7 @@ const copyAllCode = (field: string) => {
}
function
closedFn
()
{
if
(
key
===
'stockOut'
)
return
emits
(
'confirm'
,
selectedList
.
value
)
}
...
...
src/views/order/podUs/index.vue
View file @
54b5a2d7
...
...
@@ -479,7 +479,6 @@
<TableView
ref=
"tableRef"
:columns=
"tableColumns"
:stripe=
"true"
:serial-numberable=
"true"
:selectionable=
"true"
:paginated-data=
"tableData"
...
...
@@ -1313,7 +1312,7 @@
<
ResultInfo
ref
=
"resultRefs"
:
list
=
"resultInfo"
@
confirm
=
"resultConfim"
@
confirm
=
"resultConfi
r
m"
><
/ResultInfo
>
<
el
-
dialog
...
...
@@ -1813,8 +1812,8 @@ const rightClick = (e: MouseEvent) => {
const
handleSelectionChange
=
(
val
:
PodUsOrderListData
[])
=>
{
selection
.
value
=
val
//
只在手动清空选择时,且当前没有补货成功的行时,才清除补货成功
状态
if
(
val
.
length
===
0
&&
stockOutSuccessIds
.
value
.
length
===
0
)
{
//
当清空选择时,清除补货校验成功的
状态
if
(
val
.
length
===
0
)
{
stockOutSuccessIds
.
value
=
[]
}
}
...
...
@@ -2672,7 +2671,7 @@ const resultInfo = ref<
message
:
string
}
[]
>
([])
const
resultConfim
=
()
=>
{
const
resultConfi
r
m
=
()
=>
{
search
()
loadTabData
()
}
...
...
@@ -2771,14 +2770,27 @@ const stockOutCheck = async () => {
const
res
=
await
stockOutCheckApi
(
selectedIds
)
if
(
res
.
code
!==
200
)
return
const
successIds
=
res
.
data
||
[]
if
(
successIds
.
length
===
0
)
{
ElMessage
.
warning
(
'未补到货'
)
return
const
successIds
=
res
.
data
.
filter
((
e
)
=>
e
.
status
).
map
((
ee
)
=>
ee
.
id
)
||
[]
// if (successIds.length === 0)
{
// ElMessage.warning('未补到货')
// 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
(
'stockOut'
)
}
else
{
ElMessage
.
success
(
'操作成功'
)
}
ElMessage
.
success
(
'操作成功'
)
const
{
success
,
others
}
=
(
tableData
.
value
as
PodUsOrderListData
[]
).
reduce
(
...
...
@@ -2795,11 +2807,11 @@ const stockOutCheck = async () => {
)
tableData
.
value
=
[...
success
,
...
others
]
// 更新补货成功的行ID
stockOutSuccessIds
.
value
=
successIds
// 等待DOM更新后再设置选中状态
await
nextTick
()
// 更新补货成功的行ID
stockOutSuccessIds
.
value
=
successIds
// 清除所有选中状态
tableRef
.
value
?.
clearSelection
()
// 选中补货成功的行
...
...
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