diff --git a/NX.ERP.Model/Response/Pmc/PmcWwInvlRes.cs b/NX.ERP.Model/Response/Pmc/PmcWwInvlRes.cs index 8ee9db0..a87cf11 100644 --- a/NX.ERP.Model/Response/Pmc/PmcWwInvlRes.cs +++ b/NX.ERP.Model/Response/Pmc/PmcWwInvlRes.cs @@ -21,43 +21,257 @@ namespace NX.ERP.Model public class wfdetail { - public string TaskItemID { get; set; } + private string taskItemId; + private string centerCode; + private string centerName; + private string workCode; + private string workName; + private string code; + private string name; + private string standard; + private string srcBlockCode; + private string srcBlockName; + private string dstBlockCode; + private string dstBlockName; + private string recQua; + private string supplierName; + private string price; + private string recTime; - public string code { get; set; } + /// + /// + /// + public string TaskItemId + { + get { return this.taskItemId; } + set { this.taskItemId = value; } + } - public string name { get; set; } + /// + /// + /// + public string CenterCode + { + get { return this.centerCode; } + set { this.centerCode = value; } + } + /// + /// + /// + public string CenterName + { + get { return this.centerName; } + set { this.centerName = value; } + } - public string standard { get; set; } + /// + /// + /// + public string WorkCode + { + get { return this.workCode; } + set { this.workCode = value; } + } - public string Qua { get; set; } + /// + /// + /// + public string WorkName + { + get { return this.workName; } + set { this.workName = value; } + } - public string qty { get; set; } + /// + /// + /// + public string Code + { + get { return this.code; } + set { this.code = value; } + } - public string diff { get; set; } + /// + /// + /// + public string Name + { + get { return this.name; } + set { this.name = value; } + } - } + /// + /// + /// + public string Standard + { + get { return this.standard; } + set { this.standard = value; } + } + + /// + /// + /// + public string SrcBlockCode + { + get { return this.srcBlockCode; } + set { this.srcBlockCode = value; } + } + + /// + /// + /// + public string SrcBlockName + { + get { return this.srcBlockName; } + set { this.srcBlockName = value; } + } + + /// + /// + /// + public string DstBlockCode + { + get { return this.dstBlockCode; } + set { this.dstBlockCode = value; } + } + + /// + /// + /// + public string DstBlockName + { + get { return this.dstBlockName; } + set { this.dstBlockName = value; } + } + + /// + /// + /// + public string RecQua + { + get { return this.recQua; } + set { this.recQua = value; } + } + + /// + /// + /// + public string SupplierName + { + get { return this.supplierName; } + set { this.supplierName = value; } + } + + /// + /// + /// + public string Price + { + get { return this.price; } + set { this.price = value; } + } + + /// + /// + /// + public string RecTime + { + get { return this.recTime; } + set { this.recTime = value; } + } + + } public class wsdetail { - public string sheetid { get; set; } - - public string code { get; set; } - - public string name { get; set; } + private DateTime sheetDate; + private string sheetId; + private string code; + private string name; + private string standard; + private double qua; + private double receivedQua; + private double diff; - public string standard { get; set; } + public string SupplierName { get; set; } - public string Qua { get; set; } + /// + /// + /// + public DateTime SheetDate + { + get { return this.sheetDate; } + set { this.sheetDate = value; } + } - public string ReceivedQua { get; set; } + /// + /// + /// + public string SheetId + { + get { return this.sheetId; } + set { this.sheetId = value; } + } + /// + /// + /// + public string Code + { + get { return this.code; } + set { this.code = value; } + } - public string diff { get; set; } + /// + /// + /// + public string Name + { + get { return this.name; } + set { this.name = value; } + } - } + /// + /// + /// + public string Standard + { + get { return this.standard; } + set { this.standard = value; } + } + + /// + /// + /// + public double Qua + { + get { return this.qua; } + set { this.qua = value; } + } + + /// + /// + /// + public double ReceivedQua + { + get { return this.receivedQua; } + set { this.receivedQua = value; } + } + + /// + /// + /// + public double Diff + { + get { return this.diff; } + set { this.diff = value; } + } + + } } diff --git a/NX.ERP.U8/Pmc/PurchaseQuery.cs b/NX.ERP.U8/Pmc/PurchaseQuery.cs index 20a06be..929ebb5 100644 --- a/NX.ERP.U8/Pmc/PurchaseQuery.cs +++ b/NX.ERP.U8/Pmc/PurchaseQuery.cs @@ -566,23 +566,36 @@ CREATE INDEX IX_test ON tempdb..tablepuapp20210625 (cinvcode) using (var conn = U8LoginContext.Instance.Connection) { - var sql = @" select aa.TaskItemID,aa.materialid,dd.code,dd.name,dd.standard, CONVERT(DECIMAL(13,3),aa.Qua) as Qua , CONVERT(DECIMAL(13,3),bb.qty) as qty , CONVERT(DECIMAL(13,3),(isnull(aa.Qua,0)-isnull(bb.qty,0))) as diff from [10.0.0.230].wxnx2021.dbo.t_TaskItem aa left join ( - select TaskItemID, sum(Qua) AS qty - from [10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendItems a left join - [10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendSheet b on a.SID_Sheet= b.SID_Sheet - where b.IsChecked =1 and isnull(b.IsDeleted,0)=0 group by TaskItemID ) bb on aa. SID_Item= bb.TaskItemID - left join [10.0.0.230].wxnx2021.dbo.t_TaskSheet cc on aa.SID_Sheet = cc.SID_Sheet - left join [10.0.0.230].wxnx2021.dbo.t_Material dd on dd.SysID=aa.materialid - where cc.IsChecked=1 and (isnull(aa.Qua,0)-isnull(bb.qty,0))>0 and cc.SheetType=3 and isnull(cc.IsDeleted,0)=0 + var sql = @" SELECT [TaskItemID] + ,[CenterCode] + ,[CenterName] + ,[WorkCode] + ,[WorkName] + ,''[code] + ,''[Name] + ,''[Standard] + ,[SrcBlockCode] + ,[SrcBlockName] + ,[DstBlockCode] + ,[DstBlockName] + ,[RecQua] + ,[SupplierName] + ,[Price] + ,[RecTime] + FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend] "; PmcWwInvlRes.wfdetails=conn.Query< NX.ERP.Model.wfdetail> (sql,"" ); - var sql2 = @" select b.sheetid,dd.code,dd.name,dd.standard, CONVERT(DECIMAL(13,3),a.Qua) as Qua, CONVERT(DECIMAL(13,3),a.ReceivedQua) as ReceivedQua , CONVERT(DECIMAL(13,3),a.Qua-a.ReceivedQua) as diff - from [10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendItems a left join - [10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendSheet b on a.SID_Sheet= b.SID_Sheet - left join [10.0.0.230].wxnx2021.dbo.t_Material dd on dd.SysID=a.materialid - where b.IsChecked =1 and isnull(b.IsDeleted,0)=0 and a.Qua<>a.ReceivedQua + var sql2 = @" SELECT [SheetDate] + ,[SheetID] + ,[code] + ,[Name] + ,[Standard] + ,[Qua] + ,isnull(ReceivedQua,0) as ReceivedQua + , ([Qua]- isnull(ReceivedQua,0)) as diff + FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWrec] "; diff --git a/NX.ERP.WebAPi/Web.config b/NX.ERP.WebAPi/Web.config index 72712b3..6d1c5e5 100644 --- a/NX.ERP.WebAPi/Web.config +++ b/NX.ERP.WebAPi/Web.config @@ -6,10 +6,10 @@ - - - - + + + + diff --git a/NX.ERP.Webapp/src/App copy.vue b/NX.ERP.Webapp/src/App copy.vue new file mode 100644 index 0000000..e356e57 --- /dev/null +++ b/NX.ERP.Webapp/src/App copy.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/NX.ERP.Webapp/src/App.vue b/NX.ERP.Webapp/src/App.vue index e356e57..f3d602e 100644 --- a/NX.ERP.Webapp/src/App.vue +++ b/NX.ERP.Webapp/src/App.vue @@ -6,23 +6,24 @@ ERP查询 - 销售未发明细表 + 序列号查询 补料量查询 采购跟进表(采购部) 采购查询汇总 - --> + - +
diff --git a/NX.ERP.Webapp/src/views/Purchasesum.vue b/NX.ERP.Webapp/src/views/Purchasesum.vue index b4edfee..f4950a1 100644 --- a/NX.ERP.Webapp/src/views/Purchasesum.vue +++ b/NX.ERP.Webapp/src/views/Purchasesum.vue @@ -48,6 +48,7 @@ + +