未发货查询 修订
This commit is contained in:
@@ -860,7 +860,7 @@ select *from tempdb..tablepzck20210526
|
|||||||
,
|
,
|
||||||
isnull(cs.qty,0) as xcl,
|
isnull(cs.qty,0) as xcl,
|
||||||
b.cVerifier
|
b.cVerifier
|
||||||
,
|
,case when (
|
||||||
isnull(
|
isnull(
|
||||||
(SELECT isnull(SUM(iquantity),0) qty
|
(SELECT isnull(SUM(iquantity),0) qty
|
||||||
FROM currentstock WITH (nolock) where cInvCode=a.cInvCode
|
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 ,'')
|
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
|
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
|
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,
|
CONVERT(varchar(100),a.dPreDate, 23) as dPreDate , a.cMemo,
|
||||||
CASE
|
CASE
|
||||||
@@ -889,7 +901,7 @@ select *from tempdb..tablepzck20210526
|
|||||||
GROUP BY ipesodid) d on d.ipesodid=a.iSOsID
|
GROUP BY ipesodid) d on d.ipesodid=a.iSOsID
|
||||||
left join
|
left join
|
||||||
(SELECT cinvcode, SUM(iquantity) qty
|
(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
|
GROUP BY cInvCode) cs ON a.cInvCode = cs.cInvCode
|
||||||
|
|
||||||
left join Customer f WITH (nolock) on b.cCusCode=f.cCusCode
|
left join Customer f WITH (nolock) on b.cCusCode=f.cCusCode
|
||||||
@@ -897,6 +909,8 @@ select *from tempdb..tablepzck20210526
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,21 +6,22 @@
|
|||||||
<Icon type="ios-stats" />ERP查询
|
<Icon type="ios-stats" />ERP查询
|
||||||
</template>
|
</template>
|
||||||
<MenuGroup title="报表">
|
<MenuGroup title="报表">
|
||||||
|
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
|
||||||
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
|
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
|
||||||
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
|
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
|
||||||
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
|
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
|
||||||
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</MenuItem>
|
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</MenuItem>
|
||||||
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
|
|
||||||
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem>-->
|
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem>
|
||||||
|
|
||||||
<MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
|
<MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
|
||||||
<MenuItem to="/inventorybu" name="3-7">补料量查询</MenuItem>
|
<MenuItem to="/inventorybu" name="3-7">补料量查询</MenuItem>
|
||||||
|
|
||||||
<MenuItem to="/inventorypoc" name="3-9">采购跟进表(采购部)</MenuItem>
|
<MenuItem to="/inventorypoc" name="3-9">采购跟进表(采购部)</MenuItem>
|
||||||
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>
|
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>-->
|
||||||
</MenuGroup>
|
</MenuGroup>
|
||||||
</Submenu>
|
</Submenu>
|
||||||
|
<!--
|
||||||
<Submenu name="4">
|
<Submenu name="4">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<Icon type="ios-stats" />ERP单据
|
<Icon type="ios-stats" />ERP单据
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
|
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
|
||||||
</MenuGroup>
|
</MenuGroup>
|
||||||
</Submenu>
|
</Submenu>
|
||||||
|
-->
|
||||||
</Menu>
|
</Menu>
|
||||||
<div class="contain">
|
<div class="contain">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "库存余量",
|
title: "欠货量",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: "120",
|
width: "120",
|
||||||
key: "kcyl",
|
key: "kcyl",
|
||||||
@@ -220,6 +220,15 @@ export default {
|
|||||||
type: "Input"
|
type: "Input"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "现存量",
|
||||||
|
align: "center",
|
||||||
|
width: "120",
|
||||||
|
key: "xcl",
|
||||||
|
filter: {
|
||||||
|
type: "Input"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "预计发货日期",
|
title: "预计发货日期",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|||||||
Reference in New Issue
Block a user