From 3f495eaffe12e1c818da8a7d08f6fe0552253977 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Wed, 13 Sep 2023 15:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E7=89=B9=E5=8B=92=E5=A7=94=E5=A4=96?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=A6=81=E6=B1=82=E5=88=B0=E8=B4=A7=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E4=BC=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controller/SCP_PO_CONTROLLER.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Controller/SCP_PO_CONTROLLER.cs b/Controller/SCP_PO_CONTROLLER.cs index 428ccfd..639b2db 100644 --- a/Controller/SCP_PO_CONTROLLER.cs +++ b/Controller/SCP_PO_CONTROLLER.cs @@ -6898,7 +6898,7 @@ namespace CK.SCP.Controller uni.Qty = p_PoDetail.PlanQty;//零件数量 uni.CreateOper = p_Po.CreateUser; uni.CreateTime = p_Po.CreateTime;//订单创建时间 - uni.PutTime = ScpCache.GetServerTime(); + uni.VendId = p_Po.VendId;//供应商编号 uni.PoUnit = p_PoDetail.PoUnit;//零件单位 uni.LocUnit = p_PoDetail.LocUnit;//组件单位 @@ -6910,7 +6910,14 @@ namespace CK.SCP.Controller uni.Domain = site; uni.Extend2 = "N";//退货凭证 uni.Extend1 = p_PoDetail.SubSite;//组件物料号 - // uni.PutTime = DateTime.Parse(_detail.EndTime.ToString()); //要求到货日期 + if (site == "U32") + { + uni.PutTime = DateTime.Parse(p_PoDetail.EndTime.ToString()); //要求到货日期 + } + else + { + uni.PutTime = ScpCache.GetServerTime(); + } uni.Batch = p_PoDetail.PoUnit;//采购计量单位 uni.ErpBillNum = p_PoDetail.PackQty.ToString();//组件数量 uni.VendBatch = p_PoDetail.CreateUser;