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
0fa79ed3
Commit
0fa79ed3
authored
Jun 06, 2025
by
tanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单转换
parent
d303cc21
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
3 deletions
+35
-3
OrderChange.vue
src/views/order/orderChange/OrderChange.vue
+4
-0
OrderList.vue
src/views/order/orderList/OrderList.vue
+22
-1
VarChange.vue
src/views/var/varChange/VarChange.vue
+6
-2
Variables.vue
src/views/var/variables/Variables.vue
+3
-0
No files found.
src/views/order/orderChange/OrderChange.vue
View file @
0fa79ed3
...
@@ -558,7 +558,9 @@ const confirmChange = async (row) => {
...
@@ -558,7 +558,9 @@ const confirmChange = async (row) => {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
})
})
loading
.
value
=
true
const
{
data
}
=
await
convertExcelFileOrder
(
row
.
excelOrderId
)
const
{
data
}
=
await
convertExcelFileOrder
(
row
.
excelOrderId
)
loading
.
value
=
false
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
ElMessage
.
success
(
data
.
message
||
'转换成功!'
)
ElMessage
.
success
(
data
.
message
||
'转换成功!'
)
detailVisible
.
value
=
false
detailVisible
.
value
=
false
...
@@ -597,6 +599,7 @@ const toDetail = async (row: any) => {
...
@@ -597,6 +599,7 @@ const toDetail = async (row: any) => {
const
toSaleOrderDetail
=
async
(
row
:
any
)
=>
{
const
toSaleOrderDetail
=
async
(
row
:
any
)
=>
{
loading
.
value
=
true
const
titles
:
string
[]
=
[]
const
titles
:
string
[]
=
[]
const
{
data
}
=
await
listSaleOrdersByExcelId
(
row
.
excelOrderId
)
const
{
data
}
=
await
listSaleOrdersByExcelId
(
row
.
excelOrderId
)
let
flatdatas
:
any
=
null
let
flatdatas
:
any
=
null
...
@@ -626,6 +629,7 @@ const toSaleOrderDetail = async (row: any) => {
...
@@ -626,6 +629,7 @@ const toSaleOrderDetail = async (row: any) => {
...
flatdatas
...
flatdatas
}
}
})
})
loading
.
value
=
false
// 打开弹窗
// 打开弹窗
convertVisible
.
value
=
true
convertVisible
.
value
=
true
}
}
...
...
src/views/order/orderList/OrderList.vue
View file @
0fa79ed3
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
<vxe-column
field=
"createTime"
title=
"创建时间"
width=
"180"
></vxe-column>
<vxe-column
field=
"createTime"
title=
"创建时间"
width=
"180"
></vxe-column>
<vxe-column
field=
"updateTime"
title=
"修改时间"
width=
"180"
></vxe-column>
<vxe-column
field=
"updateTime"
title=
"修改时间"
width=
"180"
></vxe-column>
<vxe-column
field=
"action"
title=
"操作"
width=
"
8
0"
fixed=
"right"
>
<vxe-column
field=
"action"
title=
"操作"
width=
"
15
0"
fixed=
"right"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-link
<el-link
type=
"primary"
type=
"primary"
...
@@ -110,6 +110,9 @@
...
@@ -110,6 +110,9 @@
target=
"_blank"
target=
"_blank"
>
查看
</el-link
>
查看
</el-link
>
>
<el-divider
direction=
"vertical"
></el-divider>
<el-link
type=
"primary"
style=
"font-size: 12px"
@
click=
"toRun(row)"
>
执行解析
</el-link
>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
</vxe-table>
</vxe-table>
...
@@ -141,6 +144,11 @@ import { queryParamsFilter } from '@/utils/query'
...
@@ -141,6 +144,11 @@ import { queryParamsFilter } from '@/utils/query'
import
{
MoreFilled
}
from
'@element-plus/icons-vue'
import
{
MoreFilled
}
from
'@element-plus/icons-vue'
import
UserModal
from
'@/components/UserModal/UserModal.vue'
import
UserModal
from
'@/components/UserModal/UserModal.vue'
import
CustomerModal
from
'@/components/CustomerModal/CustomerModal.vue'
import
CustomerModal
from
'@/components/CustomerModal/CustomerModal.vue'
import
{
excelMarkRun
}
from
'@/api/excel'
const
router
=
useRouter
()
const
router
=
useRouter
()
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
...
@@ -211,6 +219,19 @@ const onQuery = async () => {
...
@@ -211,6 +219,19 @@ const onQuery = async () => {
loading
.
value
=
false
loading
.
value
=
false
}
}
const
toRun
=
async
(
row
)
=>
{
loading
.
value
=
true
const
{
data
}
=
await
excelMarkRun
(
row
.
orderFileId
)
if
(
data
?.
code
!=
200
)
{
ElMessage
.
error
(
data
?.
message
||
'操作失败!'
)
}
loading
.
value
=
false
}
onMounted
(()
=>
{
onMounted
(()
=>
{
onQuery
()
onQuery
()
})
})
...
...
src/views/var/varChange/VarChange.vue
View file @
0fa79ed3
...
@@ -75,11 +75,12 @@
...
@@ -75,11 +75,12 @@
@
click=
"showDetail(row, 'old')"
@
click=
"showDetail(row, 'old')"
>
转换前
</el-link
>
转换前
</el-link
>
>
<el-divider
direction=
"vertical"
></el-divider>
<el-divider
direction=
"vertical"
v-if=
"row.status == 'converted' || row.status == 'confirm'"
></el-divider>
<el-link
<el-link
class=
"ml-1"
class=
"ml-1"
style=
"font-size: 12px"
style=
"font-size: 12px"
type=
"primary"
type=
"primary"
v-if=
"row.status == 'converted' || row.status == 'confirm'"
@
click=
"showDetail(row, 'new')"
@
click=
"showDetail(row, 'new')"
>
转换后
</el-link
>
转换后
</el-link
>
>
...
@@ -479,10 +480,12 @@ const confirmChange = async (row) => {
...
@@ -479,10 +480,12 @@ const confirmChange = async (row) => {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
})
})
loading
.
value
=
true
const
{
data
}
=
await
apiVarTemplateConvert
(
row
.
varTemplateDetailId
)
const
{
data
}
=
await
apiVarTemplateConvert
(
row
.
varTemplateDetailId
)
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
ElMessage
.
success
(
data
.
message
||
'转换成功!'
)
ElMessage
.
success
(
data
.
message
||
'转换成功!'
)
detailVisible
.
value
=
false
detailVisible
.
value
=
false
loading
.
value
=
false
onQuery
()
onQuery
()
return
return
}
}
...
@@ -534,6 +537,7 @@ const details = ref({
...
@@ -534,6 +537,7 @@ const details = ref({
titles
:
[]
titles
:
[]
})
})
const
showDetail
=
async
(
row
:
any
,
type
=
'old'
)
=>
{
const
showDetail
=
async
(
row
:
any
,
type
=
'old'
)
=>
{
loading
.
value
=
true
const
{
data
}
=
const
{
data
}
=
type
==
'old'
type
==
'old'
?
await
apiVarTemplateGetVars
(
row
.
varTemplateDetailId
)
?
await
apiVarTemplateGetVars
(
row
.
varTemplateDetailId
)
...
@@ -543,7 +547,7 @@ const showDetail = async (row: any, type = 'old') => {
...
@@ -543,7 +547,7 @@ const showDetail = async (row: any, type = 'old') => {
details
.
value
.
title
=
type
==
'old'
?
'转换前的变量'
:
'转换后变量'
details
.
value
.
title
=
type
==
'old'
?
'转换前的变量'
:
'转换后变量'
details
.
value
.
data
=
res
details
.
value
.
data
=
res
details
.
value
.
titles
=
titles
details
.
value
.
titles
=
titles
loading
.
value
=
false
tempVisible
.
value
=
true
tempVisible
.
value
=
true
}
}
...
...
src/views/var/variables/Variables.vue
View file @
0fa79ed3
...
@@ -247,6 +247,7 @@ const detailVariable = ref({
...
@@ -247,6 +247,7 @@ const detailVariable = ref({
})
})
const
currentRow
=
ref
()
const
currentRow
=
ref
()
const
handleShowVarRun
=
async
(
row
:
any
)
=>
{
const
handleShowVarRun
=
async
(
row
:
any
)
=>
{
loading
.
value
=
true
currentRow
.
value
=
row
currentRow
.
value
=
row
const
{
data
}
=
await
apiOrderVarGetOrderNewVars
(
row
.
orderItemId
)
const
{
data
}
=
await
apiOrderVarGetOrderNewVars
(
row
.
orderItemId
)
if
(
data
?.
code
===
500
)
{
if
(
data
?.
code
===
500
)
{
...
@@ -258,7 +259,9 @@ const handleShowVarRun = async (row: any) => {
...
@@ -258,7 +259,9 @@ const handleShowVarRun = async (row: any) => {
detailVariable
.
value
.
data
=
res
as
any
detailVariable
.
value
.
data
=
res
as
any
detailVariable
.
value
.
errors
=
data
.
result
?.
errors
||
[]
detailVariable
.
value
.
errors
=
data
.
result
?.
errors
||
[]
nextTick
(()
=>
{
nextTick
(()
=>
{
loading
.
value
=
false
tempVisible
.
value
=
true
tempVisible
.
value
=
true
})
})
}
}
...
...
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