【修复】修复订单导出excel,未显示省市县,只显示详细地址的问题。

This commit is contained in:
JianWeie
2022-08-04 15:18:14 +08:00
parent afdb17b880
commit 41efafd150

View File

@@ -939,7 +939,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
items.Add(new CellValueItem() { name = "收货人姓名", width = 12 });
items.Add(new CellValueItem() { name = "收货电话", width = 12 });
items.Add(new CellValueItem() { name = "收货详细地址", width = 40 });
items.Add(new CellValueItem() { name = "收货详细地址", width = 80 });
items.Add(new CellValueItem() { name = "配送方式名称", width = 20 });
@@ -1030,7 +1030,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
rowTemp.CreateCell(16).SetCellValue(order.shipName);
rowTemp.CreateCell(17).SetCellValue(order.shipMobile);
rowTemp.CreateCell(18).SetCellValue(order.shipAddress);
rowTemp.CreateCell(18).SetCellValue(order.shipAreaName);
rowTemp.CreateCell(19).SetCellValue(!string.IsNullOrEmpty(order.logisticsName) ? order.logisticsName : "自提配送");
rowTemp.CreateCell(20).SetCellValue(order.costFreight.ToString());
@@ -1344,7 +1344,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
items.Add(new CellValueItem() { name = "收货人姓名", width = 12 });
items.Add(new CellValueItem() { name = "收货电话", width = 12 });
items.Add(new CellValueItem() { name = "收货详细地址", width = 40 });
items.Add(new CellValueItem() { name = "收货详细地址", width = 80 });
items.Add(new CellValueItem() { name = "配送方式名称", width = 20 });
@@ -1435,7 +1435,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
rowTemp.CreateCell(16).SetCellValue(order.shipName);
rowTemp.CreateCell(17).SetCellValue(order.shipMobile);
rowTemp.CreateCell(18).SetCellValue(order.shipAddress);
rowTemp.CreateCell(18).SetCellValue(order.shipAreaName);
rowTemp.CreateCell(19).SetCellValue(!string.IsNullOrEmpty(order.logisticsName) ? order.logisticsName : "自提配送");
rowTemp.CreateCell(20).SetCellValue(order.costFreight.ToString());