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
840f4b2c
Commit
840f4b2c
authored
Jul 09, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物流分区修改
parent
fb3b2796
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
public/files/logisticsZoning.xlsx
+0
-0
src/views/logistics/logisticsPartition.vue
+11
-9
No files found.
public/files/logisticsZoning.xlsx
0 → 100644
View file @
840f4b2c
File added
src/views/logistics/logisticsPartition.vue
View file @
840f4b2c
...
@@ -61,7 +61,6 @@ import {
...
@@ -61,7 +61,6 @@ import {
updateLogisticsZone
,
updateLogisticsZone
,
deleteLogisticsZone
,
deleteLogisticsZone
,
importLogisticsZone
,
importLogisticsZone
,
exportExcelLogisticsZone
,
getlogisticsWayAllList
,
getlogisticsWayAllList
,
}
from
'@/api/logistics'
}
from
'@/api/logistics'
...
@@ -220,7 +219,11 @@ async function getList(data?: {
...
@@ -220,7 +219,11 @@ async function getList(data?: {
logisticsIdList
?:
string
[]
|
string
logisticsIdList
?:
string
[]
|
string
codePrefix
?:
string
codePrefix
?:
string
})
{
})
{
loading
.
value
=
true
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
})
try
{
try
{
const
res
=
await
getLogisticsZoneList
({
const
res
=
await
getLogisticsZoneList
({
...
data
,
...
data
,
...
@@ -301,7 +304,7 @@ async function getList(data?: {
...
@@ -301,7 +304,7 @@ async function getList(data?: {
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
finally
{
}
finally
{
loading
.
value
=
false
loading
.
close
()
}
}
}
}
...
@@ -392,13 +395,11 @@ function onBeforeUploadImage(file: File) {
...
@@ -392,13 +395,11 @@ function onBeforeUploadImage(file: File) {
*/
*/
async
function
downloadExcel
()
{
async
function
downloadExcel
()
{
try
{
try
{
const
res
=
await
exportExcelLogisticsZone
()
const
blob
=
new
Blob
([
res
as
unknown
as
BlobPart
])
const
filename
=
'物流分区模版.xlsx'
const
link
=
document
.
createElement
(
'a'
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
window
.
URL
.
createObjectURL
(
blob
)
link
.
href
=
'/files/logisticsZoning.xlsx'
link
.
download
=
filename
link
.
download
=
'物流分区模版.xlsx'
link
.
click
()
link
.
click
()
document
.
body
.
removeChild
(
link
)
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
...
@@ -415,10 +416,11 @@ async function exportExcel(file: { file: File }) {
...
@@ -415,10 +416,11 @@ async function exportExcel(file: { file: File }) {
const
res
=
await
importLogisticsZone
(
formData
)
const
res
=
await
importLogisticsZone
(
formData
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
ElMessage
.
success
(
'导入成功!'
)
ElMessage
.
success
(
'导入成功!'
)
getList
(
searchForm
.
value
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
ElMessage
.
error
(
'导入失败!'
)
ElMessage
.
error
(
'导入失败!'
)
}
finally
{
getList
(
searchForm
.
value
)
}
}
}
}
...
...
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