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
482ca365
Commit
482ca365
authored
Jan 26, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 修改
parent
0a6f68f4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
11 deletions
+55
-11
Dockerfile
Dockerfile
+1
-1
order.ts
src/api/order.ts
+8
-0
product.ts
src/api/product.ts
+8
-0
index.vue
src/views/order/convertOrder/index.vue
+21
-6
ProductCompare.vue
src/views/product/productCompare/ProductCompare.vue
+17
-4
No files found.
Dockerfile
View file @
482ca365
...
...
@@ -26,6 +26,6 @@ RUN echo "server { \
&&
mkdir
-p
/var/www
\
&&
mkdir
-p
/var/www/html
ADD
dist
/ /var/www/html/
ADD
/ /var/www/html/
EXPOSE
80
EXPOSE
443
src/api/order.ts
View file @
482ca365
...
...
@@ -115,3 +115,11 @@ export const convertOrderBatchDeleteById = (ids: any) => {
headers
:
formHeader
})
}
/** 订单重发 */
export
const
convertOrderReSend
=
(
id
:
any
)
=>
{
return
axios
.
get
(
'/api/convertOrder/reSend'
,
{
params
:
{
id
},
headers
:
formHeader
})
}
src/api/product.ts
View file @
482ca365
...
...
@@ -95,6 +95,14 @@ export const getExcelProdFileConfPage = (params: any) => {
export
const
saveExcelProdFileConf
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/excelProductFileConf/add'
,
data
)
}
/**
* 修改产品对照
* @param data
* @returns
*/
export
const
editExcelProdFileConf
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/excelProductFileConf/edit'
,
data
)
}
export
const
deleteExcelProdFileConfByIds
=
(
ids
:
string
)
=>
{
return
axios
.
get
(
'/api/excelProductFileConf/batchDeleteByIds'
,
{
...
...
src/views/order/convertOrder/index.vue
View file @
482ca365
...
...
@@ -33,15 +33,21 @@
<vxe-column
field=
"customerId_dictText"
title=
"客户名称"
width=
"200"
></vxe-column>
<vxe-column
field=
"filePath"
title=
"订单文件"
>
<
template
#
default=
"{ row }"
>
<el-link
target=
"_blank"
:href=
"'/api/sys/static/' + row.filePath"
>
{{
row
.
filePath
}}
</el-link>
</
template
>
<el-link
target=
"_blank"
:href=
"'/api/sys/static/' + row.filePath"
>
{{
row
.
filePath
}}
</el-link>
</
template
>
</vxe-column>
<vxe-column
field=
"status"
title=
"是否下发"
width=
"120"
>
<
template
#
default=
"{ row }"
>
{{
row
.
status
==
'Y'
?
'是'
:
'否'
}}
</
template
>
</vxe-column>
<vxe-column
field=
"createTime"
title=
"创建时间"
width=
"200"
></vxe-column>
<vxe-column
field=
"action"
title=
"操作"
width=
"1
00
"
>
<vxe-column
field=
"action"
title=
"操作"
width=
"1
30"
:show-overflow=
"false
"
>
<
template
#
default=
"{ row }"
>
<el-button
type=
"primary"
text
size=
"small"
@
click=
"toDetail(row)"
>
查看
</el-button>
<el-button
v-if=
"row.status == 'N'"
type=
"primary"
text
size=
"small"
@
click=
"resetSend(row)"
>
重发
</el-button>
</
template
>
</vxe-column>
</vxe-table>
...
...
@@ -85,7 +91,7 @@
<
script
lang=
"ts"
setup
>
import
{
ref
,
onMounted
,
reactive
,
watch
}
from
'vue'
import
{
convertOrderBatchDeleteById
,
convertOrderPage
}
from
'@/api/order'
import
{
convertOrderBatchDeleteById
,
convertOrderPage
,
convertOrderReSend
}
from
'@/api/order'
import
type
{
VxeTableInstance
}
from
'vxe-table'
import
CustomerModal
from
'@/components/CustomerModal/CustomerModal.vue'
...
...
@@ -140,6 +146,15 @@ const toDetail = (row: any) => {
visible
.
value
=
true
}
const
resetSend
=
async
(
row
:
any
)
=>
{
const
{
data
}
=
await
convertOrderReSend
(
row
.
convertOrderId
)
if
(
data
.
code
==
200
)
{
ElMessage
.
success
(
data
.
message
||
'操作成功'
)
queryConvert
()
}
else
{
ElMessage
.
error
(
data
.
message
||
'操作失败'
)
}
}
const
queryConvert
=
async
()
=>
{
loading
.
value
=
true
try
{
...
...
src/views/product/productCompare/ProductCompare.vue
View file @
482ca365
...
...
@@ -29,7 +29,7 @@
<div
class=
""
>
<vxe-toolbar>
<
template
#
buttons
>
<el-button
type=
"primary"
@
click=
"
showEdit = true
"
>
新增
</el-button>
<el-button
type=
"primary"
@
click=
"
openFormModal
"
>
新增
</el-button>
<el-button
type=
"danger"
@
click=
"deleteRows"
>
删除
</el-button>
</
template
>
</vxe-toolbar>
...
...
@@ -152,7 +152,8 @@ import { computed, onMounted, reactive, ref, unref, watch } from 'vue'
import
{
deleteExcelProdFileConfByIds
,
getExcelProdFileConfPage
,
saveExcelProdFileConf
saveExcelProdFileConf
,
editExcelProdFileConf
}
from
'@/api/product'
import
{
ElMessage
}
from
'element-plus'
import
type
{
VxeTableInstance
}
from
'vxe-table'
...
...
@@ -165,6 +166,7 @@ const prodVisible = ref(false)
const
loading
=
ref
(
false
)
const
saveLoading
=
ref
(
false
)
const
showEdit
=
ref
(
false
)
const
optType
=
ref
(
'add'
)
const
formState
=
reactive
({
productId_dictText
:
''
,
productId
:
''
,
...
...
@@ -210,6 +212,7 @@ const deleteRows = async () => {
}
}
const
toEdit
=
(
row
:
any
)
=>
{
optType
.
value
=
'edit'
Object
.
assign
(
formEdit
,
row
)
showEdit
.
value
=
true
}
...
...
@@ -223,6 +226,11 @@ const openModal = (modal, type) => {
modaltype
.
value
=
type
}
const
openFormModal
=
()
=>
{
optType
.
value
=
'add'
showEdit
.
value
=
true
}
const
tableData
=
ref
([])
const
onHide
=
()
=>
{
// 重置表单
...
...
@@ -232,7 +240,10 @@ const onHide = () => {
customerId_dictText
:
''
,
productId_dictText
:
''
,
productId
:
''
,
excelFiled
:
''
excelFiled
:
''
,
customerUnit
:
''
,
unit
:
''
,
unitRatio
:
''
})
}
...
...
@@ -252,7 +263,9 @@ const onSubmit = async () => {
saveLoading
.
value
=
true
try
{
await
saveExcelProdFileConf
(
formEdit
)
optType
.
value
==
'add'
?
await
saveExcelProdFileConf
(
formEdit
)
:
await
editExcelProdFileConf
(
formEdit
)
ElMessage
.
success
(
'操作成功!'
)
showEdit
.
value
=
false
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