Merge branch 'master' of http://10.0.0.94:10080/nx.wms/u8-import
This commit is contained in:
@@ -855,7 +855,7 @@ select *from tempdb..tablepzck20210526
|
|||||||
public NX.ERP.Model.saleRes InventorySale(NX.ERP.Model.Request.SaleinvRequest info1)
|
public NX.ERP.Model.saleRes InventorySale(NX.ERP.Model.Request.SaleinvRequest info1)
|
||||||
{
|
{
|
||||||
string sql = $@"
|
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
|
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,
|
FLOOR(isnull(cs.qty,0)) as xcl,
|
||||||
@@ -865,28 +865,28 @@ select *from tempdb..tablepzck20210526
|
|||||||
(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
|
||||||
GROUP BY 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
|
SO_SOMain bb WITH (nolock) on aa.ID=bb.id left join
|
||||||
(SELECT ipesodid, sum(iQuantity) AS cqty
|
(SELECT ipesodid, sum(iQuantity) AS cqty
|
||||||
FROM rdrecords32 WITH (nolock)
|
FROM rdrecords32 WITH (nolock)
|
||||||
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 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
|
group by aa.cInvCode
|
||||||
) )>0 then 0 else (
|
) )>0 then 0 else (
|
||||||
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
|
||||||
GROUP BY 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
|
SO_SOMain bb WITH (nolock) on aa.ID=bb.id left join
|
||||||
(SELECT ipesodid, sum(iQuantity) AS cqty
|
(SELECT ipesodid, sum(iQuantity) AS cqty
|
||||||
FROM rdrecords32 WITH (nolock)
|
FROM rdrecords32 WITH (nolock)
|
||||||
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 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
|
group by aa.cInvCode
|
||||||
) ) end )as kcyl
|
) ) 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
|
CASE
|
||||||
WHEN DATEDIFF(day,a.dPreDate,GETDATE()) > -15 AND DATEDIFF(day,a.dPreDate,GETDATE()) < 0 THEN '15天内发货'
|
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天以上发货'
|
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
|
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(" 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)
|
if(info1 ==null)
|
||||||
{
|
{
|
||||||
info1 = new NX.ERP.Model.Request.SaleinvRequest();
|
info1 = new NX.ERP.Model.Request.SaleinvRequest();
|
||||||
|
|||||||
@@ -571,19 +571,19 @@ CREATE INDEX IX_test ON tempdb..tablepuapp20210625 (cinvcode)
|
|||||||
,[CenterName]
|
,[CenterName]
|
||||||
,[WorkCode]
|
,[WorkCode]
|
||||||
,[WorkName],
|
,[WorkName],
|
||||||
[code]
|
MaterialCode [code]
|
||||||
, b.cInvName [Name]
|
, MaterialName [Name]
|
||||||
,b.cInvStd [Standard]
|
,MaterialStandard [Standard]
|
||||||
,[SrcBlockCode]
|
,[SrcBlockCode]
|
||||||
,[SrcBlockName]
|
,[SrcBlockName]
|
||||||
,[DstBlockCode]
|
,[DstBlockCode]
|
||||||
,[DstBlockName]
|
,[DstBlockName]
|
||||||
,convert( decimal(20,2),RecQua) as [RecQua]
|
,convert( decimal(20,2),qua) as [RecQua]
|
||||||
,[SupplierName]
|
,[SupplierName]
|
||||||
,[Price]
|
,[Price]
|
||||||
,[RecTime]
|
,[RecTime]
|
||||||
FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend] a
|
FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend]
|
||||||
left join Inventory b WITH (NOLOCK) on isnull(a.code,'')=isnull(b.cInvCode ,'')
|
|
||||||
";
|
";
|
||||||
|
|
||||||
PmcWwInvlRes.wfdetails=conn.Query< NX.ERP.Model.wfdetail> (sql,"" );
|
PmcWwInvlRes.wfdetails=conn.Query< NX.ERP.Model.wfdetail> (sql,"" );
|
||||||
|
|||||||
@@ -6,24 +6,23 @@
|
|||||||
<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="/inventorysale" name="3-5">销售未发明细表</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="/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单据
|
||||||
@@ -36,7 +35,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>
|
||||||
|
|||||||
@@ -6,23 +6,24 @@
|
|||||||
<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="/inventorysale" name="3-5">销售未发明细表</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="/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单据
|
||||||
@@ -35,7 +36,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>
|
||||||
@@ -280,7 +280,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: "是否欠机",
|
title: "是否欠机",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: "120",
|
width: "115",
|
||||||
key: "kcyl2",
|
key: "kcyl2",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return <div> {this.Formatkcyl(params.row.kcyl)} </div>;
|
return <div> {this.Formatkcyl(params.row.kcyl)} </div>;
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ module.exports = {
|
|||||||
disableHostCheck: true,
|
disableHostCheck: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
//target: 'http://10.0.0.250:30087', // 接口域名
|
target: 'http://10.0.0.250:30087', // 接口域名
|
||||||
target: 'http://localhost:61448', // 接口域名
|
//target: 'http://localhost:61448', // 接口域名
|
||||||
changeOrigin: true, // 是否跨域
|
changeOrigin: true, // 是否跨域
|
||||||
pathRewrite: {}
|
pathRewrite: {}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user