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
e4727964
Commit
e4727964
authored
Aug 02, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 驳回成功消息弹窗修改
parent
5e0417a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
52 deletions
+24
-52
src/api/podUsOrder.ts
+1
-1
src/views/order/podUs/index.vue
+23
-51
No files found.
src/api/podUsOrder.ts
View file @
e4727964
...
...
@@ -508,7 +508,7 @@ export function updateToWaitShipmentApi(params: {
// 驳回
export
function
rejectToApi
(
params
:
{
orderStatus
:
string
productList
:
ProductList
[]
[]
productList
:
ProductList
[]
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderUs/rejectTo`
,
...
...
src/views/order/podUs/index.vue
View file @
e4727964
...
...
@@ -412,7 +412,7 @@
<ElDropdownMenu>
<ElDropdownItem
:disabled=
"
selection.length === 0
||
(selection.length === 0 && cardSelection.length === 0)
||
selection.some((item) => item.shipmentType !== 1)
"
@
click=
"getOrderByIdApi('createLogisticsOrder')"
...
...
@@ -420,7 +420,7 @@
>
<ElDropdownItem
:disabled=
"
selection.length === 0
||
(selection.length === 0 && cardSelection.length === 0)
||
selection.some((item) => item.shipmentType !== 1)
"
@
click=
"getOrderByIdApi('getTrackingNumber')"
...
...
@@ -428,7 +428,7 @@
>
<ElDropdownItem
:disabled=
"
selection.length === 0
||
(selection.length === 0 && cardSelection.length === 0)
||
selection.some((item) => item.shipmentType !== 1)
"
@
click=
"getOrderByIdApi('getPrintOrder')"
...
...
@@ -436,7 +436,7 @@
>
<ElDropdownItem
:disabled=
"
selection.length === 0
||
(selection.length === 0 && cardSelection.length === 0)
||
selection.some((item) => item.shipmentType !== 1)
"
@
click=
"getOrderByIdApi('cancelLogisticsOrder')"
...
...
@@ -505,55 +505,36 @@
<
template
#
dropdown
>
<ElDropdownMenu>
<ElDropdownItem
:disabled=
"
selection.length === 0 ||
selection.some((item) => item.shipmentType !== 1)
v-if=
"
status === 'STOCK_OUT' ||
status === 'CREATE_LOGISTICS' ||
status === 'TO_BE_ARRANGE' ||
status === 'PICKING' ||
status === 'IN_PRODUCTION'
"
:disabled=
"selection.length === 0"
@
click=
"rejectOrder('TO_BE_CONFIRMED')"
>
待确认
</ElDropdownItem
>
<!--
<ElDropdownItem
v-if=
"status !== 'STOCK_OUT'"
:disabled=
"
selection.length === 0 ||
selection.some((item) => item.shipmentType !== 1)
"
@
click=
"rejectOrder('STOCK_OUT')"
>
缺货
</ElDropdownItem
>
-->
<ElDropdownItem
v-if=
"
status !== 'STOCK_OUT' && status !== 'TO_BE_ARRANGE'"
:disabled=
"
s
election.length === 0
||
s
election.some((item) => item.shipmentType !== 1)
v-if=
"
status === 'IN_PRODUCTION' ||
s
tatus === 'TO_BE_ARRANGE'
||
s
tatus === 'PICKING'
"
:disabled=
"selection.length === 0"
@
click=
"rejectOrder('CREATE_LOGISTICS')"
>
待创建物流
</ElDropdownItem
>
<ElDropdownItem
v-if=
"
status !== 'STOCK_OUT' &&
status !== 'TO_BE_ARRANGE' &&
status !== 'PICKING'
"
:disabled=
"
selection.length === 0 ||
selection.some((item) => item.shipmentType !== 1)
"
v-if=
"status === 'PICKING' || status === 'IN_PRODUCTION'"
:disabled=
"selection.length === 0"
@
click=
"rejectOrder('TO_BE_ARRANGE')"
>
待排单
</ElDropdownItem
>
<ElDropdownItem
v-if=
"
status !== 'STOCK_OUT' &&
status !== 'TO_BE_ARRANGE' &&
status !== 'PICKING' &&
status !== 'IN_PRODUCTION'
"
:disabled=
"
selection.length === 0 ||
selection.some((item) => item.shipmentType !== 1)
"
v-if=
"status === 'IN_PRODUCTION'"
:disabled=
"selection.length === 0"
@
click=
"rejectOrder('PICKING')"
>
待拣胚
</ElDropdownItem
>
...
...
@@ -3669,22 +3650,13 @@ const rejectOrder = async (type: string) => {
const
res
=
await
rejectToApi
({
orderStatus
:
type
,
productList
:
selection
.
value
.
flatMap
(
(
item
:
PodUsOrderListData
)
=>
item
.
productList
,
(
item
:
PodUsOrderListData
)
=>
item
.
productList
||
[]
,
),
}
)
if
(
res
.
code
!==
200
)
return
await
ElMessageBox
.
alert
(
res
.
data
.
map
((
i
)
=>
i
.
message
).
join
(
'<br>'
),
'操作成功'
,
{
confirmButtonText
:
'确定'
,
dangerouslyUseHTMLString
:
true
,
}
,
).
then
(()
=>
{
search
()
loadTabData
()
}
)
resultInfo
.
value
=
res
.
data
resultRefs
.
value
?.
showDialog
()
}
catch
(
e
)
{
console
.
log
(
e
)
}
finally
{
...
...
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