盘点对接以及现场问题处理
This commit is contained in:
@@ -90,5 +90,10 @@ namespace Tnb.WarehouseMgr.Entities.Dto.ErpInputs
|
|||||||
/// 是否赠品
|
/// 是否赠品
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? gift { get; set; }
|
public int? gift { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 供应商(辅助属性)
|
||||||
|
/// </summary>
|
||||||
|
public string auxprop_gys { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,4 +120,14 @@ public partial class WmsCarryCode : BaseEntity<string>, IWmsCarryEntity
|
|||||||
/// 箱号
|
/// 箱号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? container_no { get; set; }
|
public string? container_no { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 辅助属性(供应商)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_gys { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 辅助属性(小批号)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_xph { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,4 +134,14 @@ public partial class WmsPackInstockD : BaseEntity<string>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string? lineno { get; set; }
|
public string? lineno { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 供应商(辅助属性)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_gys { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 小批号(辅助属性)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_xph { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,4 +63,9 @@ public partial class WmsPrdInstockD : BaseEntity<string>
|
|||||||
/// 入库仓库
|
/// 入库仓库
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? rkwarehouse_id { get; set; }
|
public string? rkwarehouse_id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 汇报记录id
|
||||||
|
/// </summary>
|
||||||
|
public string? prd_report_id { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,9 +89,4 @@ public partial class WmsPrdInstockH : BaseEntity<string>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string? type { get; set; }
|
public string? type { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 汇报记录id
|
|
||||||
/// </summary>
|
|
||||||
public string? prd_report_id { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,4 +145,15 @@ public partial class WmsPurchaseD : BaseEntity<string>
|
|||||||
|
|
||||||
public string erp_purchase_order_d_lineno { get; set; }
|
public string erp_purchase_order_d_lineno { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 辅助属性(小批号)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_xph { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 供应商(辅助属性)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_gys { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,4 +134,9 @@ public partial class WmsPurchaseOrderD : BaseEntity<string>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int? gift { get; set; }
|
public int? gift { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 供应商(辅助属性)
|
||||||
|
/// </summary>
|
||||||
|
public string? auxprop_gys { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
wmsPurchaseOrderD.matcode_id = material.id;
|
wmsPurchaseOrderD.matcode_id = material.id;
|
||||||
wmsPurchaseOrderD.matspecification = material.material_specification;
|
wmsPurchaseOrderD.matspecification = material.material_specification;
|
||||||
}
|
}
|
||||||
|
wmsPurchaseOrderD.auxprop_gys = detail.auxprop_gys;
|
||||||
wmsPurchaseOrderDs.Add(wmsPurchaseOrderD);
|
wmsPurchaseOrderDs.Add(wmsPurchaseOrderD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -301,6 +301,15 @@ namespace Tnb.WarehouseMgr
|
|||||||
.Where((a, b) => b.is_type == ((int)EnumLocationType.存储库位).ToString())
|
.Where((a, b) => b.is_type == ((int)EnumLocationType.存储库位).ToString())
|
||||||
.WhereIF(!string.IsNullOrEmpty(input.Region_id), (a, b) => b.region_id == input.Region_id)
|
.WhereIF(!string.IsNullOrEmpty(input.Region_id), (a, b) => b.region_id == input.Region_id)
|
||||||
.Select((a, b) => b.passage).ToListAsync();
|
.Select((a, b) => b.passage).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
string sss = db.Queryable<WmsPretaskH>()
|
||||||
|
.InnerJoin<BasLocation>((a, b) =>
|
||||||
|
(a.status != WmsWareHouseConst.PRETASK_BILL_STATUS_COMPLE_ID && a.status != WmsWareHouseConst.PRETASK_BILL_STATUS_CANCEL_ID)
|
||||||
|
&& (b.id == a.startlocation_id || b.id == a.endlocation_id))
|
||||||
|
.Where((a, b) => b.wh_id == input.warehouse_id)
|
||||||
|
.Where((a, b) => b.is_type == ((int)EnumLocationType.存储库位).ToString())
|
||||||
|
.WhereIF(!string.IsNullOrEmpty(input.Region_id), (a, b) => b.region_id == input.Region_id).ToSqlString();
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression<Func<BasLocation, bool>> whereExp = Expressionable.Create<BasLocation>()
|
Expression<Func<BasLocation, bool>> whereExp = Expressionable.Create<BasLocation>()
|
||||||
@@ -1090,6 +1099,15 @@ namespace Tnb.WarehouseMgr
|
|||||||
getdic.Add("ZS-A12-2", new string[] { "hxjA", "A14AGV允许入满箱", "true" });
|
getdic.Add("ZS-A12-2", new string[] { "hxjA", "A14AGV允许入满箱", "true" });
|
||||||
|
|
||||||
|
|
||||||
|
getdic.Add("ZS-D01-2", new string[] { "hxjA", "A1AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D02-2", new string[] { "hxjA", "A2AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D03-2", new string[] { "hxjA", "A3AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D04-2", new string[] { "hxjA", "A4AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D05-2", new string[] { "hxjA", "A5AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D06-2", new string[] { "hxjA", "A6AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D07-2", new string[] { "hxjA", "A7AGV允许入满箱", "true" });
|
||||||
|
getdic.Add("ZS-D08-2", new string[] { "hxjA", "A8AGV允许入满箱", "true" });
|
||||||
|
|
||||||
|
|
||||||
putdic.Add("SSX-021-007", new string[] { "东面提升机输送线", "出库输送线7入箱完毕", "true" });
|
putdic.Add("SSX-021-007", new string[] { "东面提升机输送线", "出库输送线7入箱完毕", "true" });
|
||||||
putdic.Add("SSX-011-006", new string[] { "YTCS", "EmptyIn_CS06Done", "true" });
|
putdic.Add("SSX-011-006", new string[] { "YTCS", "EmptyIn_CS06Done", "true" });
|
||||||
@@ -1224,6 +1242,15 @@ namespace Tnb.WarehouseMgr
|
|||||||
getdic.Add("ZS-A11-2", new string[] { "hxjA", "A13AGV允许入满箱", "true" });
|
getdic.Add("ZS-A11-2", new string[] { "hxjA", "A13AGV允许入满箱", "true" });
|
||||||
getdic.Add("ZS-A12-2", new string[] { "hxjA", "A14AGV允许入满箱", "true" });
|
getdic.Add("ZS-A12-2", new string[] { "hxjA", "A14AGV允许入满箱", "true" });
|
||||||
|
|
||||||
|
getdic.Add("ZS-D01-2", new string[] { "hxjA", "A1AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D02-2", new string[] { "hxjA", "A2AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D03-2", new string[] { "hxjA", "A3AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D04-2", new string[] { "hxjA", "A4AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D05-2", new string[] { "hxjA", "A5AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D06-2", new string[] { "hxjA", "A6AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D07-2", new string[] { "hxjA", "A7AGV允许入满箱", "false" });
|
||||||
|
getdic.Add("ZS-D08-2", new string[] { "hxjA", "A8AGV允许入满箱", "false" });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
putdic.Add("SSX-021-007", new string[] { "东面提升机输送线", "出库输送线7入箱完毕", "true" });
|
putdic.Add("SSX-021-007", new string[] { "东面提升机输送线", "出库输送线7入箱完毕", "true" });
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ namespace Tnb.WarehouseMgr
|
|||||||
wmsPrdInstockH.create_time = DateTime.Now;
|
wmsPrdInstockH.create_time = DateTime.Now;
|
||||||
wmsPrdInstockH.prd_bill_code = input.prd_bill_code;
|
wmsPrdInstockH.prd_bill_code = input.prd_bill_code;
|
||||||
wmsPrdInstockH.bill_code = bill_code;
|
wmsPrdInstockH.bill_code = bill_code;
|
||||||
wmsPrdInstockH.prd_report_id = input.prd_report_id;
|
|
||||||
wmsPrdInstockH.material_id = input.material_id;
|
wmsPrdInstockH.material_id = input.material_id;
|
||||||
wmsPrdInstockH.material_code = input.material_code;
|
wmsPrdInstockH.material_code = input.material_code;
|
||||||
wmsPrdInstockH.material_name = input.material_name;
|
wmsPrdInstockH.material_name = input.material_name;
|
||||||
@@ -153,8 +152,9 @@ namespace Tnb.WarehouseMgr
|
|||||||
prd_instock_id = prd_instock_code_id,
|
prd_instock_id = prd_instock_code_id,
|
||||||
status = WmsWareHouseConst.TASK_BILL_STATUS_YXD_ID,
|
status = WmsWareHouseConst.TASK_BILL_STATUS_YXD_ID,
|
||||||
scwarehouse_id = scwarehouse_id,
|
scwarehouse_id = scwarehouse_id,
|
||||||
rkwarehouse_id = rkwarehouse_id
|
rkwarehouse_id = rkwarehouse_id,
|
||||||
};
|
prd_report_id = input.prd_report_id
|
||||||
|
};
|
||||||
WmsPrdInstockDs.Add(wmsPrdInstockD);
|
WmsPrdInstockDs.Add(wmsPrdInstockD);
|
||||||
|
|
||||||
foreach (WmsPrdInstockCodeInput prdInstockCodeInput in input.prdInstockCodes)
|
foreach (WmsPrdInstockCodeInput prdInstockCodeInput in input.prdInstockCodes)
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
await _db.Insertable(instockDs).ExecuteCommandAsync();
|
await _db.Insertable(instockDs).ExecuteCommandAsync();
|
||||||
|
|
||||||
var purchase = await _db.Queryable<WmsPurchaseH>().FirstAsync(it => it.id == purchaseDs.First().bill_id);
|
var purchase = await _db.Queryable<WmsPurchaseH>().FirstAsync(it => it.id == purchaseDs.First().bill_id);
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(purchase.supplier_id))
|
if (string.IsNullOrEmpty(purchase.supplier_id))
|
||||||
{
|
{
|
||||||
BasSupplier basSupplier = await _db.Queryable<BasSupplier>().Where(x=>x.supplier_code==purchase.supplier_code).FirstAsync();
|
BasSupplier basSupplier = await _db.Queryable<BasSupplier>().Where(x=>x.supplier_code==purchase.supplier_code).FirstAsync();
|
||||||
@@ -149,6 +150,11 @@ namespace Tnb.WarehouseMgr
|
|||||||
purchase.supplier_id = basSupplier.id;
|
purchase.supplier_id = basSupplier.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//purchase.supplier_code
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List<WmsPurchaseD> dList = await _db.Queryable<WmsPurchaseD>().Where(x=>x.bill_id==purchaseDs.First().bill_id).OrderBy(x=>x.id).ToListAsync();
|
List<WmsPurchaseD> dList = await _db.Queryable<WmsPurchaseD>().Where(x=>x.bill_id==purchaseDs.First().bill_id).OrderBy(x=>x.id).ToListAsync();
|
||||||
List<String> materialIds = purchaseDs.Select(x=>x.material_id).Distinct().ToList();
|
List<String> materialIds = purchaseDs.Select(x=>x.material_id).Distinct().ToList();
|
||||||
List<String> unitCodes = purchaseDs.Select(x => x.unit_id).Distinct().ToList();
|
List<String> unitCodes = purchaseDs.Select(x => x.unit_id).Distinct().ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user