Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
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
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
jiawei.su
Laisi_AutoMES2
Commits
95368271
Commit
95368271
authored
Jan 27, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://test.siger-data.com:9000/jiawei.su/Laisi_AutoMES2
parents
50559fd2
8cb629ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
storagemaintenance.vue
Html/src/view/wms/config/storagemaintenance.vue
+1
-1
LocationController.cs
Server/Apis/Siger.ApiWMS/Controllers/LocationController.cs
+8
-1
No files found.
Html/src/view/wms/config/storagemaintenance.vue
View file @
95368271
...
...
@@ -412,7 +412,7 @@ export default {
loadexcel
()
{
axios
.
request
({
url
:
"/
config/Download/GetTemplate?name=StorageLocation
"
,
url
:
"/
wms/Location/DownloadTemplate
"
,
method
:
"get"
,
})
.
then
((
res
)
=>
{
...
...
Server/Apis/Siger.ApiWMS/Controllers/LocationController.cs
View file @
95368271
...
...
@@ -546,7 +546,14 @@ namespace Siger.ApiWMS.Controllers
[
HttpGet
]
public
IActionResult
DownloadTemplate
()
{
var
list
=
new
List
<
List
<
string
>>()
{
GetExcelTitle
()
};
var
data
=
new
List
<
string
>(){
"*ID"
,
"*仓库名称"
};
var
range
=
locationtype
.
GetList
(
f
=>
f
.
status
==
(
int
)
RowState
.
Valid
&&
f
.
projectid
==
ProjectId
).
OrderBy
(
f
=>
f
.
id
).
Select
(
f
=>
"*"
+
f
.
name
).
ToList
();
data
.
AddRange
(
range
);
var
list
=
new
List
<
List
<
string
>>()
{
data
};
var
fileName
=
Utility
.
GetExcelFileName
(
"Location"
);
CommonExcelHelper
.
Generate
(
list
,
fileName
);
...
...
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