diff --git a/NX.ERP.U8/Pmc/PmcQuery.cs b/NX.ERP.U8/Pmc/PmcQuery.cs index b2bdc99..70f0fbd 100644 --- a/NX.ERP.U8/Pmc/PmcQuery.cs +++ b/NX.ERP.U8/Pmc/PmcQuery.cs @@ -860,7 +860,7 @@ select *from tempdb..tablepzck20210526 , isnull(cs.qty,0) as xcl, b.cVerifier - , + ,case when ( isnull( (SELECT isnull(SUM(iquantity),0) qty FROM currentstock WITH (nolock) where cInvCode=a.cInvCode @@ -872,7 +872,19 @@ select *from tempdb..tablepzck20210526 GROUP BY ipesodid) dd on isnull(dd.ipesodid,'')=isnull(aa.iSOsID ,'') where aa.cInvCode=a.cInvCode and bb.cVerifier is not null and isnull(CONVERT(varchar(100),aa.dPreDate, 23),'1900-01-01')<=isnull(CONVERT(varchar(100),a.dPreDate, 23),'1900-01-01') and (aa.iQuantity - isnull(dd.cqty,0))>0 group by aa.cInvCode - ) as kcyl + ) )>0 then 0 else ( + isnull( + (SELECT isnull(SUM(iquantity),0) qty + FROM currentstock WITH (nolock) where cInvCode=a.cInvCode + GROUP BY cInvCode + ),0)-( select sum(aa.iQuantity - isnull(dd.cqty,0)) as swfiQuantity from SO_SODetails aa WITH (nolock) LEFT JOIN + SO_SOMain bb WITH (nolock) on aa.ID=bb.id left join + (SELECT ipesodid, sum(iQuantity) AS cqty + FROM rdrecords32 WITH (nolock) + GROUP BY ipesodid) dd on isnull(dd.ipesodid,'')=isnull(aa.iSOsID ,'') + where aa.cInvCode=a.cInvCode and bb.cVerifier is not null and isnull(CONVERT(varchar(100),aa.dPreDate, 23),'1900-01-01')<=isnull(CONVERT(varchar(100),a.dPreDate, 23),'1900-01-01') and (aa.iQuantity - isnull(dd.cqty,0))>0 + group by aa.cInvCode + ) ) end as kcyl , CONVERT(varchar(100),a.dPreDate, 23) as dPreDate , a.cMemo, CASE @@ -889,11 +901,13 @@ select *from tempdb..tablepzck20210526 GROUP BY ipesodid) d on d.ipesodid=a.iSOsID left join (SELECT cinvcode, SUM(iquantity) qty - FROM currentstock WITH (nolock) + FROM currentstock WITH (nolock) where cWhCode not in (4,5) GROUP BY cInvCode) cs ON a.cInvCode = cs.cInvCode left join Customer f WITH (nolock) on b.cCusCode=f.cCusCode left join Inventory g WITH (nolock) on g.cInvCode=a.cInvCode ) mm + + diff --git a/NX.ERP.Webapp/src/App.vue b/NX.ERP.Webapp/src/App.vue index 6702b64..c506fab 100644 --- a/NX.ERP.Webapp/src/App.vue +++ b/NX.ERP.Webapp/src/App.vue @@ -6,21 +6,22 @@ ERP查询 + 销售未发明细表 + + 销售订单表 序列号查询 补料量查询 采购跟进表(采购部) - 采购查询汇总 + 采购查询汇总--> - +
diff --git a/NX.ERP.Webapp/src/views/inventory-sale.vue b/NX.ERP.Webapp/src/views/inventory-sale.vue index 4b2aeae..6c431dc 100644 --- a/NX.ERP.Webapp/src/views/inventory-sale.vue +++ b/NX.ERP.Webapp/src/views/inventory-sale.vue @@ -212,7 +212,7 @@ export default { } }, { - title: "库存余量", + title: "欠货量", align: "center", width: "120", key: "kcyl", @@ -220,6 +220,15 @@ export default { type: "Input" } }, + { + title: "现存量", + align: "center", + width: "120", + key: "xcl", + filter: { + type: "Input" + } + }, { title: "预计发货日期", align: "center",