采购到货

This commit is contained in:
2024-07-25 15:03:47 +08:00
parent 65eed56fad
commit 599f0f5226
5 changed files with 124 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ namespace Tnb.ProductionMgr.Entities.Entity.ErpEntity
public string ID { get; set; }
public string CODE { get; set; }
public string NAME { get; set; }
public string VID { get; set; }
/// <summary>
/// 修改时间
/// </summary>

View File

@@ -96,6 +96,11 @@ namespace Tnb.ProductionMgr.Entities.Entity
/// </summary>
public string supplier_id { get; set; }
/// <summary>
/// 供应商vid
/// </summary>
public string supplier_vid { get; set; }
/// <summary>
/// 修改时间
/// </summary>

View File

@@ -2154,14 +2154,14 @@ namespace Tnb.ProductionMgr
["cbmainmaterialvid"] = erpExtendFields.Find(x=>x.table_id==report.material_id)?.cmaterialvid ?? "",
["cbmaterialid"] = erpExtendFields.Find(x=>x.table_id==report.material_id)?.cmaterialvid ?? "",
["cbmaterialvid"] = erpExtendFields.Find(x=>x.table_id==report.material_id)?.cmaterialvid ?? "",
["cbmobid"] = prdMo.erp_lineno,
["cbmobid"] = prdMo.erp_line_pk,
["cbmoid"] = prdMo.erp_mo_pk,
["cbunitid"] = erpExtendFields.Find(x=>x.table_id==report.unit_id)?.cunitid ?? "",
["cbastunitid"] = "",
["cbastunitid"] = erpExtendFields.Find(x=>x.table_id==report.unit_id)?.cunitid ?? "",
["nbplanwrnum"] = report.reported_qty,
["nbwrnum"] = report.reported_qty,
["tbendtime"] = "",
["tbstarttime"] = "",
["tbendtime"] = nowStr,
["tbstarttime"] = prdMoTask.act_start_date!=null ? prdMoTask.act_start_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "",
["vbinbatchcode"] = report.batch,
["vbmobillcode"] = prdMo.mo_code,
["vbmorowno"] = prdMo.erp_lineno,

View File

@@ -1138,7 +1138,7 @@ namespace Tnb.ProductionMgr
return result.IsSuccess ? $"新增单位{insertUnit.Count}条" : result.ErrorMessage;
}
return msg;
return "新增单位0条";
}
/// <summary>
@@ -1260,6 +1260,7 @@ namespace Tnb.ProductionMgr
table_id = basSupplier.id,
table_name = "bas_supplier",
supplier_id = erpBdSupplier.ID,
supplier_vid = erpBdSupplier.VID,
create_time = DateTime.Now,
erp_modify_time = erpBdSupplier.MODIFIEDTIME,
};