This commit is contained in:
gongxh
2021-05-20 09:47:47 +08:00
3 changed files with 47 additions and 19 deletions

View File

@@ -11,6 +11,7 @@ namespace NX.ERP.Model
private string mocode; private string mocode;
private int sortSeq; private int sortSeq;
private string invCode; private string invCode;
private string description;
private string cInvName; private string cInvName;
private string cInvStd; private string cInvStd;
private string cComUnitName; private string cComUnitName;
@@ -62,6 +63,11 @@ namespace NX.ERP.Model
get { return this.invCode; } get { return this.invCode; }
set { this.invCode = value; } set { this.invCode = value; }
} }
public string Description
{
get { return this.description; }
set { this.description = value; }
}
/// <summary> /// <summary>
/// ///

View File

@@ -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 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, 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) 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, - ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0) AS q, motype.description,
CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status 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 FROM mom_order m WITH (NOLOCK) INNER JOIN
mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN
mom_moallocate ma WITH (NOLOCK) ON md.MoDId = ma.MoDId mom_moallocate ma WITH (NOLOCK) ON md.MoDId = ma.MoDId
INNER JOIN 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 (SELECT ma.invcode, SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) wqty
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
mom_orderdetail md WITH (NOLOCK) ON ma.MoDId = md.MoDId 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 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, 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) 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, - ISNULL(omm.RQTY1, 0) - ISNULL(MX.MQTY, 0) AS q, motype.description,
CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status 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 FROM mom_order m WITH (NOLOCK) INNER JOIN
mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN
mom_moallocate ma WITH (NOLOCK) ON md.MoDId = ma.MoDId mom_moallocate ma WITH (NOLOCK) ON md.MoDId = ma.MoDId
INNER JOIN
mom_motype motype WITH (NOLOCK) ON motype.MoTypeId = md.MoTypeId
INNER JOIN INNER JOIN
(SELECT ma.invcode, SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) wqty (SELECT ma.invcode, SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) wqty
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN

View File

@@ -105,6 +105,14 @@ export default {
fixed: "left", fixed: "left",
width: 80, width: 80,
}, },
{
title: "类别",
align: "center",
key: "description",
fixed: "left",
width: 95,
},
{ {
title: "产品编码", title: "产品编码",
align: "center", align: "center",
@@ -117,7 +125,7 @@ export default {
title: "产品名称", title: "产品名称",
align: "center", align: "center",
key: "c_inv_name", key: "c_inv_name",
width: 150, width: 140,
fixed: "left", fixed: "left",
className: "demo-table-info-new", className: "demo-table-info-new",
}, },
@@ -125,7 +133,7 @@ export default {
title: "产品规格", title: "产品规格",
align: "center", align: "center",
key: "c_inv_std", key: "c_inv_std",
width: 180, width: 175,
fixed: "left", fixed: "left",
}, },
{ {
@@ -133,7 +141,7 @@ export default {
align: "center", align: "center",
key: "c_com_unit_name", key: "c_com_unit_name",
fixed: "left", fixed: "left",
width: 100, width: 95,
}, },
{ {
title: "投产量", title: "投产量",
@@ -154,7 +162,7 @@ export default {
align: "center", align: "center",
fixed: "left", fixed: "left",
width: 100, width: 95,
render: (h, params) => { render: (h, params) => {
return ( return (
<span> <span>
@@ -163,6 +171,13 @@ export default {
); );
}, },
}, },
{
title: "状态",
align: "center",
key: "st",
fixed: "left",
width: 80,
},
{ {
title: "子件编码", title: "子件编码",
align: "center", align: "center",
@@ -174,17 +189,16 @@ export default {
{ {
title: "子件名称", title: "子件名称",
align: "center", align: "center",
width: 150, width: 135,
key: "cinvname1", key: "cinvname1",
className: "demo-table-info-old", className: "demo-table-info-old",
fixed: "left", fixed: "left",
}, },
{ {
title: "子件规格", title: "子件规格",
width: 200, width: 175,
align: "center", align: "center",
key: "cinvstd1", key: "cinvstd1",
fixed: "left",
}, },
{ {
title: "子件单位", title: "子件单位",
@@ -300,14 +314,18 @@ export default {
}, },
async loadData() { async loadData() {
try { try {
let _filert = {
let _filert = { inv_codes:
inv_codes: this.filter.inv_codes !== '' ? this.filter.inv_codes.split(/[,\s\n,]/) : null, this.filter.inv_codes !== ""
mo_codes: this.filter.mo_codes !== '' ? this.filter.mo_codes.split(/[,\s\n,]/) : null, ? this.filter.inv_codes.split(/[,\s\n,]/)
by_finish: this.filter.by_finish, : null,
byiss: this.filter.byiss, 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; this.loading = true;
let resp = await getInventorymom(_filert); let resp = await getInventorymom(_filert);
this.pageNo = 1; this.pageNo = 1;