This commit is contained in:
gongxh
2022-01-05 09:54:36 +08:00
6 changed files with 28 additions and 32 deletions

View File

@@ -855,7 +855,7 @@ select *from tempdb..tablepzck20210526
public NX.ERP.Model.saleRes InventorySale(NX.ERP.Model.Request.SaleinvRequest info1)
{
string sql = $@"
select *from (
select *from (
select f.cCusAbbName,CONVERT(varchar(100),b.dDate, 23) as dDate ,b.cSOCode,a.cInvCode,a.cInvName,g.cInvStd, FLOOR(a.iQuantity - isnull(d.cqty,0)) as wfiQuantity,b.cCloser
,
FLOOR(isnull(cs.qty,0)) as xcl,
@@ -865,28 +865,28 @@ select *from tempdb..tablepzck20210526
(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
),0)-( select isnull(sum(aa.iQuantity - isnull(dd.cqty,0)),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 isnull( bb.cCloser ,'') ='' 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 isnull( bb.cCloser ,'') ='' 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
) )>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
),0)-( select isnull(sum(aa.iQuantity - isnull(dd.cqty,0)),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 isnull( bb.cCloser ,'') =''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 isnull( bb.cCloser ,'') ='' 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 as cmemo,
CASE
WHEN DATEDIFF(day,a.dPreDate,GETDATE()) > -15 AND DATEDIFF(day,a.dPreDate,GETDATE()) < 0 THEN '15天内发货'
WHEN DATEDIFF(day,a.dPreDate,GETDATE()) <= -15 THEN '15天以上发货'
@@ -908,10 +908,6 @@ select *from tempdb..tablepzck20210526
left join Inventory g WITH (nolock) on g.cInvCode=a.cInvCode ) mm
";
@@ -919,7 +915,7 @@ select *from tempdb..tablepzck20210526
// where.Add(" a.iQuantity - isnull(d.cqty,0) >0 and b.cVerifier is not null ");
where.Add(" mm.wfiQuantity >0 and mm.cVerifier is not null and mm.cInvCode like '9%' and isnull( mm.cCloser ,'') ='' ");
where.Add(" mm.wfiQuantity >0 and mm.cInvCode like '9%' and isnull( mm.cCloser ,'') ='' ");
if(info1 ==null)
{
info1 = new NX.ERP.Model.Request.SaleinvRequest();

View File

@@ -571,19 +571,19 @@ CREATE INDEX IX_test ON tempdb..tablepuapp20210625 (cinvcode)
,[CenterName]
,[WorkCode]
,[WorkName],
[code]
, b.cInvName [Name]
,b.cInvStd [Standard]
MaterialCode [code]
, MaterialName [Name]
,MaterialStandard [Standard]
,[SrcBlockCode]
,[SrcBlockName]
,[DstBlockCode]
,[DstBlockName]
,convert( decimal(20,2),RecQua) as [RecQua]
,convert( decimal(20,2),qua) as [RecQua]
,[SupplierName]
,[Price]
,[RecTime]
FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend] a
left join Inventory b WITH (NOLOCK) on isnull(a.code,'')=isnull(b.cInvCode ,'')
FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend]
";
PmcWwInvlRes.wfdetails=conn.Query< NX.ERP.Model.wfdetail> (sql,"" );

View File

@@ -6,24 +6,23 @@
<Icon type="ios-stats" />ERP查询
</template>
<MenuGroup title="报表">
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</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="/inventorypoc" name="3-9">采购跟进表(采购部)</MenuItem>
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>
-->
</MenuGroup>
</Submenu>
<!--
<Submenu name="4">
<template slot="title">
<Icon type="ios-stats" />ERP单据
@@ -36,7 +35,7 @@
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
</MenuGroup>
</Submenu>
-->
</Menu>
<div class="contain">
<router-view></router-view>

View File

@@ -6,23 +6,24 @@
<Icon type="ios-stats" />ERP查询
</template>
<MenuGroup title="报表">
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</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="/inventorypoc" name="3-9">采购跟进表(采购部)</MenuItem>
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>
-->
</MenuGroup>
</Submenu>
<!--
<Submenu name="4">
<template slot="title">
<Icon type="ios-stats" />ERP单据
@@ -35,7 +36,7 @@
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
</MenuGroup>
</Submenu>
-->
</Menu>
<div class="contain">
<router-view></router-view>

View File

@@ -280,7 +280,7 @@ export default {
{
title: "是否欠机",
align: "center",
width: "120",
width: "115",
key: "kcyl2",
render: (h, params) => {
return <div> {this.Formatkcyl(params.row.kcyl)} </div>;

View File

@@ -58,8 +58,8 @@ module.exports = {
disableHostCheck: true,
proxy: {
'/api': {
//target: 'http://10.0.0.250:30087', // 接口域名
target: 'http://localhost:61448', // 接口域名
target: 'http://10.0.0.250:30087', // 接口域名
//target: 'http://localhost:61448', // 接口域名
changeOrigin: true, // 是否跨域
pathRewrite: {}
},