Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何远江
topsun-baoshen-excel
Commits
004a4f7e
Commit
004a4f7e
authored
Apr 21, 2025
by
tanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认订单
parent
f517abc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
23 deletions
+1
-23
order.ts
src/api/order.ts
+0
-7
OrderChange.vue
src/views/order/orderChange/OrderChange.vue
+1
-16
No files found.
src/api/order.ts
View file @
004a4f7e
...
...
@@ -83,13 +83,6 @@ export const convertExcelFileOrder = (excelOrderId: string) => {
})
}
/** 解析后确认订单 */
export
const
unconvertExcelFileOrder
=
(
excelOrderId
:
string
)
=>
{
return
axios
.
get
(
'/api/excelFileOrder/unconvert'
,
{
params
:
{
excelOrderId
},
headers
:
formHeader
})
}
/** 转换后确认订单 */
export
const
confirmExcelFileOrderById
=
(
excelOrderId
:
string
)
=>
{
...
...
src/views/order/orderChange/OrderChange.vue
View file @
004a4f7e
...
...
@@ -308,7 +308,6 @@ import {
convertExcelFileOrder
,
deleteExcelFileOrderById
,
getExcelFileOrderPage
,
unconvertExcelFileOrder
,
getConfByExcelOrderId
,
listSaleOrdersByExcelId
,
saveConfExcelFileOrderPage
,
...
...
@@ -467,20 +466,7 @@ const confirmConfig = (configList: any) => {
/**确认解析/转换的订单的状态 */
const
confirmOrderStatus
=
async
(
row
:
any
)
=>
{
if
(
row
.
status
===
'un_confirm'
)
{
await
ElMessageBox
.
confirm
(
'是否确认解析后的订单?'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
const
{
data
}
=
await
unconvertExcelFileOrder
(
row
.
excelOrderId
)
if
(
data
.
code
==
200
)
{
ElMessage
.
success
(
data
.
message
||
'操作成功!'
)
}
else
{
ElMessage
.
error
(
data
.
message
||
'操作失败'
)
}
}
else
if
(
row
.
status
==
'converted'
)
{
await
ElMessageBox
.
confirm
(
'是否确认转换后的订单?'
,
'提示'
,
{
await
ElMessageBox
.
confirm
(
'是否确认转换后的订单?'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
...
...
@@ -492,7 +478,6 @@ const confirmOrderStatus = async (row: any) => {
}
else
{
ElMessage
.
error
(
data
.
message
||
'操作失败!'
)
}
}
onQuery
()
}
...
...
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