From 403ba1efd30a75610fc040d0490e5d8fbf62ef01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com> Date: Fri, 24 Dec 2021 09:04:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?mes=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.U8/Pmc/PurchaseQuery.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/NX.ERP.U8/Pmc/PurchaseQuery.cs b/NX.ERP.U8/Pmc/PurchaseQuery.cs index 8f11832..9305fc8 100644 --- a/NX.ERP.U8/Pmc/PurchaseQuery.cs +++ b/NX.ERP.U8/Pmc/PurchaseQuery.cs @@ -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,"" ); From c66b08ee5f48fc024e213ae7dc407dcb0c4476cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com> Date: Fri, 31 Dec 2021 11:32:35 +0800 Subject: [PATCH 2/2] 1 --- NX.ERP.U8/Pmc/PmcQuery.cs | 20 ++++++++----------- NX.ERP.Webapp/src/App.vue | 11 +++++----- .../src/{App copy.vue => App123.vue} | 11 +++++----- NX.ERP.Webapp/src/views/inventory-sale.vue | 2 +- NX.ERP.Webapp/vue.config.js | 4 ++-- 5 files changed, 22 insertions(+), 26 deletions(-) rename NX.ERP.Webapp/src/{App copy.vue => App123.vue} (94%) diff --git a/NX.ERP.U8/Pmc/PmcQuery.cs b/NX.ERP.U8/Pmc/PmcQuery.cs index f034981..8d04343 100644 --- a/NX.ERP.U8/Pmc/PmcQuery.cs +++ b/NX.ERP.U8/Pmc/PmcQuery.cs @@ -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天以上发货' @@ -905,11 +905,7 @@ select *from tempdb..tablepzck20210526 GROUP BY cInvCode) cs ON a.cInvCode = cs.cInvCode left join Customer f WITH (nolock) on b.cCusCode=f.cCusCode - 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(" 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(); diff --git a/NX.ERP.Webapp/src/App.vue b/NX.ERP.Webapp/src/App.vue index f3d602e..e356e57 100644 --- a/NX.ERP.Webapp/src/App.vue +++ b/NX.ERP.Webapp/src/App.vue @@ -6,24 +6,23 @@ ERP查询 - + 销售未发明细表 + 序列号查询 补料量查询 采购跟进表(采购部) 采购查询汇总 - + --> - +
diff --git a/NX.ERP.Webapp/src/App copy.vue b/NX.ERP.Webapp/src/App123.vue similarity index 94% rename from NX.ERP.Webapp/src/App copy.vue rename to NX.ERP.Webapp/src/App123.vue index e356e57..f3d602e 100644 --- a/NX.ERP.Webapp/src/App copy.vue +++ b/NX.ERP.Webapp/src/App123.vue @@ -6,23 +6,24 @@ ERP查询 - 销售未发明细表 + 序列号查询 补料量查询 采购跟进表(采购部) 采购查询汇总 - --> + - +
diff --git a/NX.ERP.Webapp/src/views/inventory-sale.vue b/NX.ERP.Webapp/src/views/inventory-sale.vue index 4522a6d..d6b4588 100644 --- a/NX.ERP.Webapp/src/views/inventory-sale.vue +++ b/NX.ERP.Webapp/src/views/inventory-sale.vue @@ -280,7 +280,7 @@ export default { { title: "是否欠机", align: "center", - width: "120", + width: "115", key: "kcyl2", render: (h, params) => { return
{this.Formatkcyl(params.row.kcyl)}
; diff --git a/NX.ERP.Webapp/vue.config.js b/NX.ERP.Webapp/vue.config.js index 6f9fcfd..4d2696e 100644 --- a/NX.ERP.Webapp/vue.config.js +++ b/NX.ERP.Webapp/vue.config.js @@ -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: {} },