From 1ccaebd4c9de2e12ddd414315cce6816ebd0af13 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com>
Date: Wed, 26 May 2021 08:50:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=B7=A5=E5=85=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
NX.ERP.U8.App/App.config | 48 +++++++++++++----------
NX.ERP.U8.App/FrmMain.cs | 4 +-
NX.ERP.U8.App/NX.ERP.U8.App.csproj | 4 +-
NX.ERP.U8.App/Purchase/EntryEnity.cs | 2 +-
NX.ERP.U8/Pmc/FinanceQuery.cs | 2 +-
NX.ERP.U8/Pmc/PmcQuery.cs | 12 +++---
NX.ERP.U8/Pmc/PurchaseQuery.cs | 15 +++----
NX.ERP.Webapp/src/views/Purchasesum.vue | 4 +-
NX.ERP.Webapp/src/views/inventory-mom.vue | 26 ++++++------
9 files changed, 62 insertions(+), 55 deletions(-)
diff --git a/NX.ERP.U8.App/App.config b/NX.ERP.U8.App/App.config
index c9b26d0..81695e6 100644
--- a/NX.ERP.U8.App/App.config
+++ b/NX.ERP.U8.App/App.config
@@ -1,23 +1,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/NX.ERP.U8.App/FrmMain.cs b/NX.ERP.U8.App/FrmMain.cs
index 8bb58e0..400f054 100644
--- a/NX.ERP.U8.App/FrmMain.cs
+++ b/NX.ERP.U8.App/FrmMain.cs
@@ -205,8 +205,10 @@ namespace U8AppMain
bomLookup.Add(strKey, purchase);
}
body.inventorycode = row["存货编码"].ToString().Trim();
+
body.taxrate = InvInfo[body.inventorycode].TaxRate;
body.requiredate = purchase.purchaseapp.header.date;
+ body.define25 = row["用料工位"].ToString().Trim();
body.quantity = decimal.Parse(row["数量"].ToString());
purchase.purchaseapp.body.Add(body);
}
@@ -440,7 +442,7 @@ namespace U8AppMain
{
//var ap = new NX.ERP.U8.AP.APVouch();
- //ap.AddVocher();
+ ////ap.AddVocher();
//var dal = new NX.ERP.U8.Store.ProductInDAL();
//dal.AddVoucher(new NX.ERP.Model.Request.ProductStoreIn()
//{
diff --git a/NX.ERP.U8.App/NX.ERP.U8.App.csproj b/NX.ERP.U8.App/NX.ERP.U8.App.csproj
index 78e6509..20a7eb2 100644
--- a/NX.ERP.U8.App/NX.ERP.U8.App.csproj
+++ b/NX.ERP.U8.App/NX.ERP.U8.App.csproj
@@ -14,6 +14,7 @@
+ false
publish\
true
Disk
@@ -26,12 +27,11 @@
true
0
1.0.0.%2a
- false
false
true
- AnyCPU
+ x86
true
full
false
diff --git a/NX.ERP.U8.App/Purchase/EntryEnity.cs b/NX.ERP.U8.App/Purchase/EntryEnity.cs
index e05c85f..168b0ac 100644
--- a/NX.ERP.U8.App/Purchase/EntryEnity.cs
+++ b/NX.ERP.U8.App/Purchase/EntryEnity.cs
@@ -54,7 +54,7 @@ namespace U8AppMain.Purchase
//public string originaltax { get; set; }
//public string originalsum { get; set; }
-
+ public string define25 { get; set; }
public int ivouchrowno { get; set; }
//
diff --git a/NX.ERP.U8/Pmc/FinanceQuery.cs b/NX.ERP.U8/Pmc/FinanceQuery.cs
index b96853b..2f9a36a 100644
--- a/NX.ERP.U8/Pmc/FinanceQuery.cs
+++ b/NX.ERP.U8/Pmc/FinanceQuery.cs
@@ -74,7 +74,7 @@ namespace NX.ERP.U8.Finance
if (!string.IsNullOrEmpty(aa))
{
- sql += "where " + aa;
+ sql += " where " + aa;
}
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
diff --git a/NX.ERP.U8/Pmc/PmcQuery.cs b/NX.ERP.U8/Pmc/PmcQuery.cs
index 9201427..429cfa6 100644
--- a/NX.ERP.U8/Pmc/PmcQuery.cs
+++ b/NX.ERP.U8/Pmc/PmcQuery.cs
@@ -143,7 +143,7 @@ SELECT m..mocode,CONVERT(varchar(100), mor.StartDate, 23) as StartDate ,CONVER
ELSE '其它'
END AS std,dtyl.dtty, ma.Qty qty1, ma.IssQty issqty,(ma.Qty-ma.IssQty) as wll,mdsss.mdqty,shwl.shwl,sdwl.sdwl
,mas.wqty wqty, ISNULL(cs.qty, 0) cqty, ISNULL(misss.issqty, 0) issqtyxc,ISNULL(ds.qty, 0) dqty,isnull(prd.Rqty, 0) rqty,
- ISNULL(OMM.RQTY1, 0) AS rqty1, ISNULL(pu_App.RQTY3, 0) AS rqty3,ISNULL(momq.momqty, 0) AS momqty, ISNULL(MX.MQTY, 0) MQTY, 0-(mas.wqty - isnull(ds.qty, 0) - ISNULL(prd.Rqty, 0)
+ ISNULL(OMM.RQTY1, 0) AS rqty1, ISNULL(pu_App.RQTY3, 0) AS rqty3,ISNULL(MX.MQTY, 0) momqty, 0-(mas.wqty - isnull(ds.qty, 0) - ISNULL(prd.Rqty, 0)
- ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0)- ISNULL(pu_App.RQTY3, 0)) AS q, motype.description,
CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 4 THEN '关闭' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status
FROM mom_order m WITH (NOLOCK) INNER JOIN
@@ -184,11 +184,11 @@ SELECT m..mocode,CONVERT(varchar(100), mor.StartDate, 23) as StartDate ,CONVER
GROUP BY ma.InvCode) shwl ON ma.InvCode = shwl.InvCode LEFT JOIN
- (SELECT mom.MoCode, ma.invcode,SUM(isnull(ma.qty, 0)) dtty
+ (SELECT mom.MoCode, ma.invcode,round(SUM(isnull(ma.qty, 0))/md.Qty,3) dtty
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
mom_orderdetail md WITH (NOLOCK) ON ma.MoDId = md.MoDId left join
mom_order mom WITH (NOLOCK) on md.MoId=mom.MoId
- GROUP BY ma.InvCode,mom.MoCode ) dtyl ON ma.InvCode = dtyl.InvCode and dtyl.MoCode=m.MoCode LEFT JOIN
+ GROUP BY ma.InvCode,mom.MoCode,md.Qty ) dtyl ON ma.InvCode = dtyl.InvCode and dtyl.MoCode=m.MoCode LEFT JOIN
(SELECT ma.invcode, SUM( isnull(issqty, 0)) issqty
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
@@ -261,7 +261,7 @@ SELECT m..mocode,CONVERT(varchar(100), mor.StartDate, 23) as StartDate ,CONVER
ELSE '其它'
END AS std,dtyl.dtty, ma.Qty qty1, ma.IssQty issqty,(ma.Qty-ma.IssQty) as wll,mdsss.mdqty,shwl.shwl,sdwl.sdwl
,mas.wqty wqty, ISNULL(cs.qty, 0) cqty, ISNULL(misss.issqty, 0) issqtyxc,ISNULL(ds.qty, 0) dqty,isnull(prd.Rqty, 0) rqty,
- ISNULL(OMM.RQTY1, 0) AS rqty1, ISNULL(pu_App.RQTY3, 0) AS rqty3,ISNULL(momq.momqty, 0) AS momqty, ISNULL(MX.MQTY, 0) MQTY, 0-(mas.wqty - isnull(ds.qty, 0) - ISNULL(prd.Rqty, 0)
+ ISNULL(OMM.RQTY1, 0) AS rqty1, ISNULL(pu_App.RQTY3, 0) AS rqty3,ISNULL(MX.MQTY, 0) momqty, 0-(mas.wqty - isnull(ds.qty, 0) - ISNULL(prd.Rqty, 0)
- ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0)- ISNULL(pu_App.RQTY3, 0)) AS q, motype.description,
CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 4 THEN '关闭' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status
FROM mom_order m WITH (NOLOCK) INNER JOIN
@@ -303,11 +303,11 @@ SELECT m..mocode,CONVERT(varchar(100), mor.StartDate, 23) as StartDate ,CONVER
GROUP BY ma.InvCode) shwl ON ma.InvCode = shwl.InvCode LEFT JOIN
- (SELECT mom.MoCode, ma.invcode,SUM(isnull(ma.qty, 0)) dtty
+ (SELECT mom.MoCode, ma.invcode,round(SUM(isnull(ma.qty, 0))/md.Qty,3) dtty
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
mom_orderdetail md WITH (NOLOCK) ON ma.MoDId = md.MoDId left join
mom_order mom WITH (NOLOCK) on md.MoId=mom.MoId
- GROUP BY ma.InvCode,mom.MoCode ) dtyl ON ma.InvCode = dtyl.InvCode and dtyl.MoCode=m.MoCode LEFT JOIN
+ GROUP BY ma.InvCode,mom.MoCode,md.Qty ) dtyl ON ma.InvCode = dtyl.InvCode and dtyl.MoCode=m.MoCode LEFT JOIN
(SELECT ma.invcode, SUM( isnull(issqty, 0)) issqty
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
diff --git a/NX.ERP.U8/Pmc/PurchaseQuery.cs b/NX.ERP.U8/Pmc/PurchaseQuery.cs
index f7cea12..dedb899 100644
--- a/NX.ERP.U8/Pmc/PurchaseQuery.cs
+++ b/NX.ERP.U8/Pmc/PurchaseQuery.cs
@@ -203,7 +203,7 @@ namespace NX.ERP.U8.Purchase
public IEnumerable