BUG
This commit is contained in:
@@ -114,5 +114,7 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string? material_standard { get; set; }
|
public string? material_standard { get; set; }
|
||||||
|
|
||||||
|
public string batch { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -484,6 +484,7 @@ namespace Tnb.ProductionMgr
|
|||||||
workline_code = c.EnCode,
|
workline_code = c.EnCode,
|
||||||
workline_name = c.FullName,
|
workline_name = c.FullName,
|
||||||
mo_task_status = a.mo_task_status,
|
mo_task_status = a.mo_task_status,
|
||||||
|
batch = a.batch,
|
||||||
workstation_name = f.FullName,
|
workstation_name = f.FullName,
|
||||||
// worker_name = g.RealName,
|
// worker_name = g.RealName,
|
||||||
scheduled_qty = a.scheduled_qty,
|
scheduled_qty = a.scheduled_qty,
|
||||||
|
|||||||
@@ -102,6 +102,12 @@ namespace Tnb.WarehouseMgr
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
//自制的采购入库 不在质检保存里调用erp接口
|
||||||
|
if (string.IsNullOrEmpty(wmsPurchaseH.erp_bill_code))
|
||||||
|
{
|
||||||
|
return "保存成功";
|
||||||
|
}
|
||||||
|
|
||||||
List<WmsOutinStockDetail> wmsOutinStockDetails = await _db.Queryable<WmsOutinStockDetail>()
|
List<WmsOutinStockDetail> wmsOutinStockDetails = await _db.Queryable<WmsOutinStockDetail>()
|
||||||
.Where(x => x.source_detail_id == wmsPurchaseD.id && x.source_type == WmsWareHouseConst.BIZTYPE_WMSINSTOCK_ID)
|
.Where(x => x.source_detail_id == wmsPurchaseD.id && x.source_type == WmsWareHouseConst.BIZTYPE_WMSINSTOCK_ID)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ using JNPF.Common.Dtos.VisualDev;
|
|||||||
using JNPF.Common.Enums;
|
using JNPF.Common.Enums;
|
||||||
using JNPF.Common.Security;
|
using JNPF.Common.Security;
|
||||||
using JNPF.FriendlyException;
|
using JNPF.FriendlyException;
|
||||||
|
using JNPF.Systems.Entitys.Permission;
|
||||||
using JNPF.Systems.Entitys.System;
|
using JNPF.Systems.Entitys.System;
|
||||||
using JNPF.Systems.Interfaces.System;
|
using JNPF.Systems.Interfaces.System;
|
||||||
using JNPF.VisualDev;
|
using JNPF.VisualDev;
|
||||||
@@ -104,12 +105,14 @@ namespace Tnb.WarehouseMgr
|
|||||||
.Where((x, y) => x.EnCode == DictConst.TransactionType && wmsRawmatOutstockH.outstock_type==y.EnCode)
|
.Where((x, y) => x.EnCode == DictConst.TransactionType && wmsRawmatOutstockH.outstock_type==y.EnCode)
|
||||||
.Select((x, y) => y)
|
.Select((x, y) => y)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
|
OrganizeEntity dept = await _db.Queryable<OrganizeEntity>().Where(x=>x.EnCode==wmsRawmatOutstockH.department).FirstAsync();
|
||||||
|
|
||||||
string supplierId = WmsWareHouseConst.TIANYIGONGYINGSHANG_ID;
|
string supplierId = WmsWareHouseConst.TIANYIGONGYINGSHANG_ID;
|
||||||
List<string> tableIds = new List<string>();
|
List<string> tableIds = new List<string>();
|
||||||
tableIds.Add(WmsWareHouseConst.AdministratorOrgId);
|
tableIds.Add(WmsWareHouseConst.AdministratorOrgId);
|
||||||
tableIds.AddRange(materialIds);
|
tableIds.AddRange(materialIds);
|
||||||
tableIds.Add(supplierId);
|
tableIds.Add(supplierId);
|
||||||
|
tableIds.Add(dept?.Id);
|
||||||
tableIds.Add(tranTypeDataEntity?.Id);
|
tableIds.Add(tranTypeDataEntity?.Id);
|
||||||
tableIds.AddRange(unitDatas.Select(x => x.Id).ToList());
|
tableIds.AddRange(unitDatas.Select(x => x.Id).ToList());
|
||||||
|
|
||||||
@@ -129,8 +132,10 @@ namespace Tnb.WarehouseMgr
|
|||||||
erpRequestData.Add("cdrawcalbodyoid", erpOrg.pk_org);
|
erpRequestData.Add("cdrawcalbodyoid", erpOrg.pk_org);
|
||||||
erpRequestData.Add("cdrawcalbodyvid", erpOrg.pk_org_v);
|
erpRequestData.Add("cdrawcalbodyvid", erpOrg.pk_org_v);
|
||||||
// erpRequestData.Add("cdrawwarehouseid", null);
|
// erpRequestData.Add("cdrawwarehouseid", null);
|
||||||
erpRequestData.Add("cfanaceorgoid", erpOrg.pk_org);
|
erpRequestData.Add("cdptid", erpExtendFields.Find(x=>x.table_id==dept?.Id)?.cdptid ?? "");
|
||||||
erpRequestData.Add("cfanaceorgvid", erpOrg.pk_org_v);
|
erpRequestData.Add("cdptvid", erpExtendFields.Find(x=>x.table_id==dept?.Id)?.cdptvid ?? "");
|
||||||
|
erpRequestData.Add("cfanaceorgoid", erpOrg.corpoid);
|
||||||
|
erpRequestData.Add("cfanaceorgvid", erpOrg.corpvid);
|
||||||
erpRequestData.Add("corpoid", erpOrg.corpoid);
|
erpRequestData.Add("corpoid", erpOrg.corpoid);
|
||||||
erpRequestData.Add("corpvid", erpOrg.corpvid);
|
erpRequestData.Add("corpvid", erpOrg.corpvid);
|
||||||
erpRequestData.Add("creationtime", nowStr);
|
erpRequestData.Add("creationtime", nowStr);
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
List<Dictionary<string, object>> erpRequestDataDetails = new List<Dictionary<string, object>>();
|
List<Dictionary<string, object>> erpRequestDataDetails = new List<Dictionary<string, object>>();
|
||||||
foreach (WmsTransferInstockD item in allInstockDetails)
|
foreach (WmsTransferInstockD item in allInstockDetails)
|
||||||
{
|
{
|
||||||
|
string date = wmsTransferInstockH.create_time!=null ? wmsTransferInstockH.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss") : wmsTransferInstockH.bill_date!=null ? wmsTransferInstockH.bill_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : DateTime.Now.ToString();
|
||||||
erpRequestDataDetails.Add(new Dictionary<string, object>()
|
erpRequestDataDetails.Add(new Dictionary<string, object>()
|
||||||
{
|
{
|
||||||
["cbodytranstypecode"] = "4E-01",
|
["cbodytranstypecode"] = "4E-01",
|
||||||
@@ -154,15 +155,15 @@ namespace Tnb.WarehouseMgr
|
|||||||
["cmaterialvid"] = erpExtendFields.Find(x => x.table_id == item.material_id)?.cmaterialvid ?? "",
|
["cmaterialvid"] = erpExtendFields.Find(x => x.table_id == item.material_id)?.cmaterialvid ?? "",
|
||||||
["corpoid"] = erpOrg.corpoid,
|
["corpoid"] = erpOrg.corpoid,
|
||||||
["corpvid"] = erpOrg.corpvid,
|
["corpvid"] = erpOrg.corpvid,
|
||||||
["crowno"] = (allInstockDetails.FindIndex(x => x.id == item.id) + 1) * 10,
|
["crowno"] = item.lineno,
|
||||||
["csourcebillhid"] = wmsTransferInstockH?.erp_pk ?? "",
|
["csourcebillhid"] = wmsTransferInstockH?.erp_pk ?? "",
|
||||||
["csourcebillbid"] = wmsTransferInstockD?.erp_line_pk ?? "",
|
["csourcebillbid"] = wmsTransferInstockD?.erp_line_pk ?? "",
|
||||||
["cunitid"] = erpExtendFields.Find(x => x.table_id == (unitDatas.Find(x => x.EnCode == item.unit_id)?.Id ?? ""))?.cunitid ?? "",
|
["cunitid"] = erpExtendFields.Find(x => x.table_id == (unitDatas.Find(x => x.EnCode == item.unit_id)?.Id ?? ""))?.cunitid ?? "",
|
||||||
["cvendorid"] = erpExtendFields.Find(x => x.table_id == supplierId)?.supplier_id ?? "",
|
["cvendorid"] = erpExtendFields.Find(x => x.table_id == supplierId)?.supplier_id ?? "",
|
||||||
["cvendorvid"] = erpExtendFields.Find(x => x.table_id == supplierId)?.supplier_vid ?? "",
|
["cvendorvid"] = erpExtendFields.Find(x => x.table_id == supplierId)?.supplier_vid ?? "",
|
||||||
["dbizdate"] = wmsTransferInstockH.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss"),
|
["dbizdate"] = date,
|
||||||
["dplanarrivedate"] = wmsTransferInstockH.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss"),
|
["dplanarrivedate"] = date,
|
||||||
["dplanoutdate"] = wmsTransferInstockH.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss"),
|
["dplanoutdate"] = date,
|
||||||
// ["nnum"] = item.qty,
|
// ["nnum"] = item.qty,
|
||||||
// ["nshouldnum"] = item.pr_qty,
|
// ["nshouldnum"] = item.pr_qty,
|
||||||
["nnum"] = qty,
|
["nnum"] = qty,
|
||||||
|
|||||||
Reference in New Issue
Block a user