视图 bug
This commit is contained in:
@@ -412,10 +412,10 @@ namespace Tnb.ProductionMgr
|
|||||||
{
|
{
|
||||||
foreach (var item in input.details)
|
foreach (var item in input.details)
|
||||||
{
|
{
|
||||||
// if (!inputMaterials.Contains(item["material_id"]))
|
if (!inputMaterials.Contains(item.material_id))
|
||||||
// {
|
{
|
||||||
// throw new Exception("该物料不是生产bom投入物料,不能签收");
|
throw new Exception("该物料不是生产bom投入物料,不能签收");
|
||||||
// }
|
}
|
||||||
|
|
||||||
PrdMaterialReceiptD? detail = null;
|
PrdMaterialReceiptD? detail = null;
|
||||||
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
||||||
|
|||||||
@@ -164,8 +164,8 @@ namespace Tnb.ProductionMgr
|
|||||||
eqp_type_code = SqlFunc.Subqueryable<EqpEquipType>().Where(iit => iit.id == b.equip_type_id).Select(iit => iit.name),
|
eqp_type_code = SqlFunc.Subqueryable<EqpEquipType>().Where(iit => iit.id == b.equip_type_id).Select(iit => iit.name),
|
||||||
eqp_machine_num = b.eqp_machine_num,
|
eqp_machine_num = b.eqp_machine_num,
|
||||||
tonnage = b.tonnage,
|
tonnage = b.tonnage,
|
||||||
task_list_qty = SqlFunc.Subqueryable<PrdTask>().Where(x => x.eqp_id == b.id).Count(),
|
task_list_qty = SqlFunc.Subqueryable<PrdMoTask>().Where(x => x.eqp_id == b.id && (x.mo_task_status==DictConst.ToBeStartedEnCode || x.mo_task_status==DictConst.ToBeScheduledEncode)).Count(),
|
||||||
estimated_end_date = SqlFunc.Subqueryable<PrdTask>().Where(x => x.eqp_id == b.id).OrderByDesc(o => o.plan_end_date).Select(x => x.plan_end_date)
|
estimated_end_date = SqlFunc.Subqueryable<PrdMoTask>().Where(x => x.eqp_id == b.id && (x.mo_task_status==DictConst.ToBeStartedEnCode || x.mo_task_status==DictConst.ToBeScheduledEncode)).Max(x=>x.create_time)
|
||||||
}).Mapper(x =>
|
}).Mapper(x =>
|
||||||
{
|
{
|
||||||
x.first_date = x.estimated_end_date.HasValue ? x.estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
x.first_date = x.estimated_end_date.HasValue ? x.estimated_end_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "";
|
||||||
|
|||||||
@@ -623,8 +623,8 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (e.Message == "TypeError: Method or property not found")
|
// if (e.Message == "TypeError: Method or property not found")
|
||||||
{
|
// {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var result = await PreviewWithOutJs(id, input);
|
var result = await PreviewWithOutJs(id, input);
|
||||||
@@ -635,11 +635,11 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
|||||||
{
|
{
|
||||||
throw Oops.Oh(ErrorCode.COM1020);
|
throw Oops.Oh(ErrorCode.COM1020);
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
throw Oops.Oh(ErrorCode.COM1020);
|
// throw Oops.Oh(ErrorCode.COM1020);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user