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: {} },