bug
This commit is contained in:
@@ -478,7 +478,7 @@ namespace Tnb.ProductionMgr
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 定点配送
|
||||
/// 空载具定点配送
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
@@ -540,12 +540,13 @@ namespace Tnb.ProductionMgr
|
||||
Log.Error($"{equipment.name}未配置上料库位");
|
||||
continue;
|
||||
}
|
||||
if (await _db.Queryable<WmsPretaskH>().AnyAsync(x =>
|
||||
if (await _db.Queryable<WmsDistaskH>().AnyAsync(x =>
|
||||
x.endlocation_id == equipment.upmat_location_id &&
|
||||
x.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID &&
|
||||
(x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID
|
||||
|| x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_YXF_ID
|
||||
|| x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_START_ID
|
||||
(x.status == WmsWareHouseConst.TASK_BILL_STATUS_DZX_ID
|
||||
|| x.status == WmsWareHouseConst.TASK_BILL_STATUS_YXD_ID
|
||||
|| x.status == WmsWareHouseConst.TASK_BILL_STATUS_RUNING_ID
|
||||
|| x.status == WmsWareHouseConst.TASK_BILL_STATUS_PAUSE_ID
|
||||
)
|
||||
))
|
||||
{
|
||||
|
||||
@@ -231,6 +231,10 @@ namespace Tnb.WarehouseMgr.Entities.Consts
|
||||
/// </summary>
|
||||
public const string TASK_BILL_STATUS_RUNING_ID = "26126856028453";
|
||||
/// <summary>
|
||||
/// 任务单据状态-已暂停Id
|
||||
/// </summary>
|
||||
public const string TASK_BILL_STATUS_PAUSE_ID = "26126866160677";
|
||||
/// <summary>
|
||||
/// 任务单据状态-已完成ID
|
||||
/// </summary>
|
||||
public const string TASK_BILL_STATUS_COMPLE_ID = "26126860808229";
|
||||
|
||||
@@ -103,5 +103,8 @@ public partial class WmsRawmatOutstockH : BaseEntity<string>
|
||||
/// </summary>
|
||||
public string? erp_project_id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// erp领料员 存的天益用户表的id 需关联erp_extend_field 取
|
||||
/// </summary>
|
||||
public string? erp_cbizid { get; set; }
|
||||
}
|
||||
|
||||
@@ -123,6 +123,7 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
string userId = wmsRawmatOutstockH.create_id ?? WmsWareHouseConst.AdministratorUserId;
|
||||
tableIds.Add(userId);
|
||||
tableIds.Add(wmsRawmatOutstockH.erp_cbizid);
|
||||
List<ErpExtendField> erpExtendFields = await _db.Queryable<ErpExtendField>().Where(x => tableIds.Contains(x.table_id)).ToListAsync();
|
||||
// string erpCreateId = erpExtendFields.Find(x => x.table_id == userId)?.user_id ?? WmsWareHouseConst.ERPUSERID;
|
||||
string erpCreateId = WmsWareHouseConst.ERPUSERID;
|
||||
@@ -133,6 +134,8 @@ namespace Tnb.WarehouseMgr
|
||||
List<Dictionary<string, object>> requestData = new List<Dictionary<string, object>>();
|
||||
Dictionary<string, object> erpRequestData = new Dictionary<string, object>();
|
||||
erpRequestData.Add("billmaker", erpCreateId);
|
||||
erpRequestData.Add("cbizid", wmsRawmatOutstockH.erp_cbizid!=null ? erpExtendFields.Find(x => x.table_id == wmsRawmatOutstockH.erp_cbizid)?.person_id : null);
|
||||
erpRequestData.Add("cwhsmanagerid", erpExtendFields.Find(x => x.table_id == userId)?.person_id);
|
||||
erpRequestData.Add("ccostdomainoid", wmsRawmatOutstockH.erp_org_costregion ?? "1001A1100000001MNB3H");
|
||||
erpRequestData.Add("cdrawcalbodyoid", erpOrg.pk_org);
|
||||
erpRequestData.Add("cdrawcalbodyvid", erpOrg.pk_org_v);
|
||||
|
||||
Reference in New Issue
Block a user