From ffa898b979375281af9dc6afa7b77805d87717d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com> Date: Thu, 20 May 2021 08:50:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Response/Pmc/PmcInventorymomRes.cs | 6 +++ NX.ERP.U8/Pmc/PmcQuery.cs | 12 +++-- NX.ERP.Webapp/src/views/inventory-mom.vue | 48 +++++++++++++------ 3 files changed, 47 insertions(+), 19 deletions(-) diff --git a/NX.ERP.Model/Response/Pmc/PmcInventorymomRes.cs b/NX.ERP.Model/Response/Pmc/PmcInventorymomRes.cs index 78029ab..31af211 100644 --- a/NX.ERP.Model/Response/Pmc/PmcInventorymomRes.cs +++ b/NX.ERP.Model/Response/Pmc/PmcInventorymomRes.cs @@ -11,6 +11,7 @@ namespace NX.ERP.Model private string mocode; private int sortSeq; private string invCode; + private string description; private string cInvName; private string cInvStd; private string cComUnitName; @@ -62,6 +63,11 @@ namespace NX.ERP.Model get { return this.invCode; } set { this.invCode = value; } } + public string Description + { + get { return this.description; } + set { this.description = value; } + } /// /// diff --git a/NX.ERP.U8/Pmc/PmcQuery.cs b/NX.ERP.U8/Pmc/PmcQuery.cs index 696e5ec..a1a78f8 100644 --- a/NX.ERP.U8/Pmc/PmcQuery.cs +++ b/NX.ERP.U8/Pmc/PmcQuery.cs @@ -133,12 +133,14 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam c.bProxyForeign = 1 THEN '委外' WHEN c.bPurchase = 1 THEN '外购' WHEN c.bself = 1 THEN '自制' ELSE '其它' END AS std, ma.Qty qty1, ma.IssQty issqty,mdsss.mdqty, mas.wqty wqty, ISNULL(cs.qty, 0) cqty, ISNULL(misss.issqty, 0) issqtyxc,ISNULL(ds.qty, 0) dqty,isnull(prd.Rqty, 0) rqty, ISNULL(OMM.RQTY1, 0) AS rqty1, ISNULL(pu_App.RQTY3, 0) AS rqty3,ISNULL(momq.momqty, 0) AS momqty, ISNULL(MX.MQTY, 0) MQTY, mas.wqty - isnull(cs.qty, 0) - ISNULL(prd.Rqty, 0) - - ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0) AS q, - CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status + - ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0) AS q, motype.description, + CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 4 THEN '关闭' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status FROM mom_order m WITH (NOLOCK) INNER JOIN mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN mom_moallocate ma WITH (NOLOCK) ON md.MoDId = ma.MoDId INNER JOIN + mom_motype motype WITH (NOLOCK) ON motype.MoTypeId = md.MoTypeId + INNER JOIN (SELECT ma.invcode, SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) wqty FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN mom_orderdetail md WITH (NOLOCK) ON ma.MoDId = md.MoDId @@ -219,11 +221,13 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam c.bProxyForeign = 1 THEN '委外' WHEN c.bPurchase = 1 THEN '外购' WHEN c.bself = 1 THEN '自制' ELSE '其它' END AS std, ma.Qty qty1, ma.IssQty issqty,mdsss.mdqty, mas.wqty wqty, ISNULL(cs.qty, 0) cqty, ISNULL(misss.issqty, 0) issqtyxc,ISNULL(ds.qty, 0) dqty,isnull(prd.Rqty, 0) rqty, ISNULL(OMM.RQTY1, 0) AS rqty1, ISNULL(pu_App.RQTY3, 0) AS rqty3,ISNULL(momq.momqty, 0) AS momqty, ISNULL(MX.MQTY, 0) MQTY, mas.wqty - isnull(cs.qty, 0) - ISNULL(prd.Rqty, 0) - - ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0) AS q, - CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status + - ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0) AS q, motype.description, + CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 4 THEN '关闭' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status FROM mom_order m WITH (NOLOCK) INNER JOIN mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN mom_moallocate ma WITH (NOLOCK) ON md.MoDId = ma.MoDId + INNER JOIN + mom_motype motype WITH (NOLOCK) ON motype.MoTypeId = md.MoTypeId INNER JOIN (SELECT ma.invcode, SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) wqty FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN diff --git a/NX.ERP.Webapp/src/views/inventory-mom.vue b/NX.ERP.Webapp/src/views/inventory-mom.vue index f29d3cf..431c66d 100644 --- a/NX.ERP.Webapp/src/views/inventory-mom.vue +++ b/NX.ERP.Webapp/src/views/inventory-mom.vue @@ -105,6 +105,14 @@ export default { fixed: "left", width: 80, }, + { + title: "类别", + align: "center", + key: "description", + fixed: "left", + width: 95, + }, + { title: "产品编码", align: "center", @@ -117,7 +125,7 @@ export default { title: "产品名称", align: "center", key: "c_inv_name", - width: 150, + width: 140, fixed: "left", className: "demo-table-info-new", }, @@ -125,7 +133,7 @@ export default { title: "产品规格", align: "center", key: "c_inv_std", - width: 180, + width: 175, fixed: "left", }, { @@ -133,7 +141,7 @@ export default { align: "center", key: "c_com_unit_name", fixed: "left", - width: 100, + width: 95, }, { title: "投产量", @@ -154,7 +162,7 @@ export default { align: "center", fixed: "left", - width: 100, + width: 95, render: (h, params) => { return ( @@ -163,6 +171,13 @@ export default { ); }, }, + { + title: "状态", + align: "center", + key: "st", + fixed: "left", + width: 80, + }, { title: "子件编码", align: "center", @@ -174,17 +189,16 @@ export default { { title: "子件名称", align: "center", - width: 150, + width: 135, key: "cinvname1", className: "demo-table-info-old", fixed: "left", }, { title: "子件规格", - width: 200, + width: 175, align: "center", key: "cinvstd1", - fixed: "left", }, { title: "子件单位", @@ -300,14 +314,18 @@ export default { }, async loadData() { try { - - let _filert = { - inv_codes: this.filter.inv_codes !== '' ? this.filter.inv_codes.split(/[,\s\n,]/) : null, - mo_codes: this.filter.mo_codes !== '' ? this.filter.mo_codes.split(/[,\s\n,]/) : null, - by_finish: this.filter.by_finish, - byiss: this.filter.byiss, - - } + let _filert = { + inv_codes: + this.filter.inv_codes !== "" + ? this.filter.inv_codes.split(/[,\s\n,]/) + : null, + mo_codes: + this.filter.mo_codes !== "" + ? this.filter.mo_codes.split(/[,\s\n,]/) + : null, + by_finish: this.filter.by_finish, + byiss: this.filter.byiss, + }; this.loading = true; let resp = await getInventorymom(_filert); this.pageNo = 1;