Browse Source

调整生成条码时间默认当天

master
lilili 2 years ago
parent
commit
e8401cac97
  1. 2
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs
  2. 4
      WMS-BS/NFine.Web/Areas/WMS/Views/WMSCreateItemLot/From.cshtml

2
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -688,7 +688,7 @@ where a.IssueCode='{0}' and a.WorkPoint='{1}'";
from ICSTransfer a
left join ICSMOPickMerge e on a.ID = e.SourceID and a.WorkPoint = e.WorkPoint
left join ICSExtension f on a.ExtensionID = f.ID and a.WorkPoint = f.WorkPoint
where a.WorkPoint = '{WorkPoint}' and a.Status = '1'");
where a.WorkPoint = '{WorkPoint}' and a.Status = '2'");
if (!string.IsNullOrWhiteSpace(queryJson))
{
if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString()))

4
WMS-BS/NFine.Web/Areas/WMS/Views/WMSCreateItemLot/From.cshtml

@ -281,6 +281,8 @@
}
}
if (Type == '7') {
var myDate = new Date();
var nowDate = myDate.getFullYear() + '-' + (myDate.getMonth() + 1) + '-' + myDate.getDate();
if (!!DNCode && !!Sequence) {
$.ajax({
url: "/WMS/WMSCreateItemLot/GetSubGridJsonSHDHByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
@ -295,7 +297,7 @@
$("#CreatedQty").val(data.rows[0].CreatedQty);
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
$("#YAmount").val(data.rows[0].Amount);
$("#PRODUCTDATE").val(nowDate);
$("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
$("#EffectiveDays").val(data.rows[0].EffectiveDays);
VenCode = data.rows[0].VenCode;

Loading…
Cancel
Save