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
9eef5518
Commit
9eef5518
authored
Jun 11, 2025
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
3c03a950
0daefde9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
src/views/order/podUs/index.vue
+35
-35
No files found.
src/views/order/podUs/index.vue
View file @
9eef5518
...
...
@@ -186,7 +186,7 @@
:class=
"exceptionStatus === 3 ? 'sub-active' : ''"
@
click=
"handleExceptionCommand(3)"
>
<span
class=
"sub-status-item-label"
>
已处理
</span>
<span
class=
"sub-status-item-label"
>
待同步
</span>
</div>
</div>
<div
class=
"operation-box mb-10"
>
...
...
@@ -202,14 +202,14 @@
>
<ElButton
type=
"warning"
@
click=
"assignOrder"
>
分派
</ElButton>
</span>
<span
<
!-- <
span
v-if="status === 'EXCEPTION_ORDER' && exceptionStatus === 2"
class="item"
>
<ElButton type="warning" @click="handleExceptionOrder">
处理异常
</ElButton>
</span>
</span>
-->
<span
v-if=
"status === 'PICKING'"
class=
"item"
>
<ElButton
type=
"primary"
@
click=
"printProductionOrder"
>
打印生产单
...
...
@@ -1162,7 +1162,7 @@ import {
createLogisticsOrderApi
,
updateLogisticsToPickingApi
,
createLogisticsOrdersApi
,
handleExceptionOrderApi
,
//
handleExceptionOrderApi,
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
...
...
@@ -1608,37 +1608,37 @@ const assignOrder = async () => {
currentOrderIds
.
value
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
exceptionDialogVisible
.
value
=
true
}
const
handleExceptionOrder
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择数据'
)
}
try
{
await
showConfirm
(
'确定处理异常吗?'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
catch
{
return
}
const
orderIds
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
handleExceptionOrderApi
(
orderIds
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
search
()
loadTabData
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
loading
.
close
()
}
}
//
const handleExceptionOrder = async () =>
{
//
if (selection.value.length === 0)
{
//
return ElMessage.warning('请选择数据')
//
}
//
try
{
//
await showConfirm('确定处理异常吗?',
{
//
confirmButtonText: '确认',
//
cancelButtonText: '取消',
//
type: 'warning',
//
}
)
//
}
catch
{
//
return
//
}
//
const orderIds = selection.value.map((item) => item.id)
//
const loading = ElLoading.service(
{
//
fullscreen: true,
//
text: '操作中...',
//
background: 'rgba(0, 0, 0, 0.3)',
//
}
)
//
try
{
//
const res = await handleExceptionOrderApi(orderIds)
//
if (res.code !== 200) return
//
ElMessage.success('操作成功')
//
search()
//
loadTabData()
//
}
catch
(
e
)
{
//
console.error(e)
//
}
finally
{
//
loading.close()
//
}
//
}
const
printProductionOrder
=
async
()
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择数据'
)
...
...
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