增加QM 错误单据查询
This commit is contained in:
@@ -87,5 +87,23 @@ select a.id AS ArrivalId,a.cCode as ArrivalCode,a.cpersoncode,a.cpersonname,A.c
|
||||
}
|
||||
|
||||
|
||||
public IEnumerable<object> QmError()
|
||||
{
|
||||
string sql = @" select isnull(a.CINVCODE,'') as qminvcode,a.CINVNAME,isnull(b.cInvCode,'') as poinvcode,a.CREJECTCODE,d.cCode,f.cCode
|
||||
from QM_QPERREJECTLIST a WITH (NOLOCK) left join PO_Podetails b WITH (NOLOCK) on a.IPUPODID=b.id
|
||||
left join PU_ArrivalVouchs c WITH (NOLOCK) on a.id=c.irejectautoid
|
||||
left join PU_ArrivalVouch d WITH (NOLOCK) on c.id=d.id
|
||||
left join RdRecords01 e WITH (NOLOCK) on c.Autoid=e.iArrsId
|
||||
left join RdRecord01 f WITH (NOLOCK) on e.id=f.id
|
||||
where isnull(a.CINVCODE,'')<>isnull(b.cInvCode,'') and b.id is not null";
|
||||
|
||||
|
||||
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||
{
|
||||
return conn.Query<object>(sql, new {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,13 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
var FinanceQuery = new NX.ERP.U8.Finance.WarehouseQuery();
|
||||
return FinanceQuery.ArrivalGet(info);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[Route("api/Whreport/QmError")]
|
||||
public IEnumerable<object> QmError()
|
||||
{
|
||||
var FinanceQuery = new NX.ERP.U8.Finance.WarehouseQuery();
|
||||
return FinanceQuery.QmError();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,13 +7,13 @@
|
||||
ERP查询
|
||||
</template>
|
||||
<MenuGroup title="报表">
|
||||
<MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
|
||||
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
|
||||
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
|
||||
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem>
|
||||
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
|
||||
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
|
||||
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
|
||||
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem> -->
|
||||
<MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
|
||||
<MenuItem to="/inventorybu" name="3-7">补料量查询</MenuItem>
|
||||
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</MenuItem>
|
||||
<!-- <MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</MenuItem> -->
|
||||
<MenuItem to="/inventorypoc" name="3-9">采购跟进表(采购部)</MenuItem>
|
||||
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>
|
||||
</MenuGroup>
|
||||
|
||||
Reference in New Issue
Block a user