Commit 00d12afa by xin.yang

fix bug

parent eb80005b
......@@ -412,7 +412,7 @@ export default {
loadexcel() {
axios
.request({
url: "/config/Download/GetTemplate?name=StorageLocation",
url: "/wms/Location/DownloadTemplate",
method: "get",
})
.then((res) => {
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment