diff --git a/NX.ERP.U8/Pmc/FinanceQuery.cs b/NX.ERP.U8/Pmc/FinanceQuery.cs index a14b211..48465cb 100644 --- a/NX.ERP.U8/Pmc/FinanceQuery.cs +++ b/NX.ERP.U8/Pmc/FinanceQuery.cs @@ -88,7 +88,7 @@ namespace NX.ERP.U8.Finance public IEnumerable Voucherror(NX.ERP.Model.Request.VouchererrorRequest info) { string sql = $@" - select *from ( + select *from ( select c.MoCode,b.SortSeq,b.InvCode,d.cInvName,a.InvCode as InvCode1, t.cInvName as cInvName1,t.cInvStd,a.Qty , a.IssQty ,'超领' as error from mom_moallocate a WITH (NOLOCK) left join mom_orderdetail b WITH (NOLOCK) on a.MoDId= b.MoDId left join mom_order c WITH (NOLOCK) on b.MoId= c.MoId @@ -103,7 +103,16 @@ namespace NX.ERP.U8.Finance left join Inventory d WITH (NOLOCK) on b.InvCode= d.cInvCode left join Inventory t WITH (NOLOCK) on a.InvCode= t.cInvCode where a.IssQty < a.Qty*(b.QualifiedInQty/b.qty) - ) mm + + + union all + select c.MoCode,b.SortSeq,b.InvCode,d.cInvName,a.InvCode as InvCode1, t.cInvName as cInvName1,t.cInvStd,a.Qty , a.IssQty ,'无应领' as error from mom_moallocate a WITH (NOLOCK) + left join mom_orderdetail b WITH (NOLOCK) on a.MoDId= b.MoDId + left join mom_order c WITH (NOLOCK) on b.MoId= c.MoId + left join Inventory d WITH (NOLOCK) on b.InvCode= d.cInvCode + left join Inventory t WITH (NOLOCK) on a.InvCode= t.cInvCode + where a.Qty=0 and b.QualifiedInQty>0 + ) mm "; diff --git a/NX.ERP.Webapp/src/bill/inventory-error.vue b/NX.ERP.Webapp/src/bill/inventory-error.vue index 9f790b6..2b0a3fa 100644 --- a/NX.ERP.Webapp/src/bill/inventory-error.vue +++ b/NX.ERP.Webapp/src/bill/inventory-error.vue @@ -4,34 +4,21 @@
- - + + - -
- -
+ +
+ +
- - + +
@@ -39,245 +26,247 @@
- - + + - - + + - +
- +
- + - \ No newline at end of file