From 192d432031dfe8400a43e1f37627b745484ec682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com> Date: Fri, 20 May 2022 09:06:45 +0800 Subject: [PATCH] 1 --- NX.ERP.U8/AP/APVouch.cs | 23 ++++++++++++++++++++++- NX.ERP.Webapp/src/App.vue | 11 ++++++----- NX.ERP.Webapp/src/App123.vue | 11 +++++------ 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/NX.ERP.U8/AP/APVouch.cs b/NX.ERP.U8/AP/APVouch.cs index 6d21863..f9cd334 100644 --- a/NX.ERP.U8/AP/APVouch.cs +++ b/NX.ERP.U8/AP/APVouch.cs @@ -202,6 +202,27 @@ namespace NX.ERP.U8.AP { var id = Guid.NewGuid().ToString().Replace("-", ""); + + + var vhobj = new NX.ERP.U8.VoucherHistory(); + + var maxnumber = vhobj.getNumber("P0", "单据日期", ApVouch.Date.ToString("yyyyMM")); + + string temp = ""; + //补足0 + for (int i = 0; i < 5 - maxnumber.Length; i++) + { + temp += "0"; + } + + + + var mouthstr = ApVouch.Date.ToString("yyyyMM").Substring(2, 4); + + string cVouchID = "QTYF" + mouthstr + temp + maxnumber; + + + STVoucherParameter voucherParameter = new STVoucherParameter { VoucherType = this.VoucherID, @@ -226,7 +247,7 @@ namespace NX.ERP.U8.AP headXml.setAttribute("VT_ID", 8056); headXml.setAttribute("bd_c", false); headXml.setAttribute("bStartFlag", false); - headXml.setAttribute("cVouchID", ""); + headXml.setAttribute("cVouchID", cVouchID); headXml.setAttribute("cFlag", "AP"); headXml.setAttribute("cDeptCode", ApVouch.DeptCode); headXml.setAttribute("cDigest", ApVouch.Digest); diff --git a/NX.ERP.Webapp/src/App.vue b/NX.ERP.Webapp/src/App.vue index e356e57..f3d602e 100644 --- a/NX.ERP.Webapp/src/App.vue +++ b/NX.ERP.Webapp/src/App.vue @@ -6,23 +6,24 @@ ERP查询 - 销售未发明细表 + 序列号查询 补料量查询 采购跟进表(采购部) 采购查询汇总 - --> + - +
diff --git a/NX.ERP.Webapp/src/App123.vue b/NX.ERP.Webapp/src/App123.vue index f3d602e..e356e57 100644 --- a/NX.ERP.Webapp/src/App123.vue +++ b/NX.ERP.Webapp/src/App123.vue @@ -6,24 +6,23 @@ ERP查询 - + 销售未发明细表 + 序列号查询 补料量查询 采购跟进表(采购部) 采购查询汇总 - + --> - +