Commit 4076d690 by 泽锋 李

采购建议导出,新增海外仓入库天数字段

parent 696b9b6d
...@@ -1508,6 +1508,9 @@ t3.suppliers_name, ...@@ -1508,6 +1508,9 @@ t3.suppliers_name,
t5.history_sevenday_sales as 't_history_sevenday_sales', t5.history_sevenday_sales as 't_history_sevenday_sales',
t5.history_fourteenday_sales as 't_history_fourteenday_sales', t5.history_fourteenday_sales as 't_history_fourteenday_sales',
t5.history_thirtyday_sales as 't_history_thirtyday_sales', t5.history_thirtyday_sales as 't_history_thirtyday_sales',
t5.abroad_inbound_config_delivery,
(t1.history_fourteenday_sales - t5.forecast_fourteenday_sales) as 'sudden_increase' -- 突增关注 (t1.history_fourteenday_sales - t5.forecast_fourteenday_sales) as 'sudden_increase' -- 突增关注
from dc_auto_purchase_advise_detailed as t1 from dc_auto_purchase_advise_detailed as t1
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
......
...@@ -241,6 +241,10 @@ namespace AutoTurnOver.Models ...@@ -241,6 +241,10 @@ namespace AutoTurnOver.Models
public class dc_auto_purchase_advise_detailed_dto : dc_auto_purchase_advise_detailed public class dc_auto_purchase_advise_detailed_dto : dc_auto_purchase_advise_detailed
{ {
/// <summary>
/// 海外仓入库天数
/// </summary>
public int abroad_inbound_config_delivery { get; set; }
public string type_str public string type_str
{ {
get get
......
...@@ -182,7 +182,7 @@ namespace AutoTurnOver.Controllers ...@@ -182,7 +182,7 @@ namespace AutoTurnOver.Controllers
DataTable table = new DataTable(); DataTable table = new DataTable();
string[] cols = new string[] { "初始建议数", "系统建议数", "采购数量", "是否已推送","jit备货类型", "时间", "sku", "产品名称", "产品14日日均", "仓库编码","仓库名称","源仓库", string[] cols = new string[] { "初始建议数", "系统建议数", "采购数量", "是否已推送","jit备货类型", "时间", "sku", "产品名称", "产品14日日均", "仓库编码","仓库名称","源仓库",
"内部商品编码", "商品建议采购", "商品14日日均", "商品moq", "日均加权销量","安全库存", "缺货","实时缺货", "调拨在途", "采购在途", "库存数", "内部商品编码", "商品建议采购", "商品14日日均", "商品moq", "日均加权销量","安全库存", "缺货","实时缺货", "调拨在途", "采购在途", "库存数",
"采购金额", "供应链长度", "供应商名称", "采购类型","采购员","突增关注","待发货百伦单号","7日日均","14日日均","30日日均" "采购金额", "供应链长度", "供应商名称", "采购类型","采购员","突增关注","待发货百伦单号","7日日均","14日日均","30日日均","海外仓入库天数"
}; };
foreach (var item in cols) foreach (var item in cols)
{ {
...@@ -225,6 +225,7 @@ namespace AutoTurnOver.Controllers ...@@ -225,6 +225,7 @@ namespace AutoTurnOver.Controllers
row["采购员"] = itemData.buyer_name; row["采购员"] = itemData.buyer_name;
row["突增关注"] = itemData.sudden_increase; row["突增关注"] = itemData.sudden_increase;
row["待发货百伦单号"] = itemData.bailun_order_ids; row["待发货百伦单号"] = itemData.bailun_order_ids;
row["海外仓入库天数"] = itemData.abroad_inbound_config_delivery;
table.Rows.Add(row); table.Rows.Add(row);
} }
......
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