This commit is contained in:
杰 朱
2021-05-20 08:50:37 +08:00
parent e0fed53d6a
commit ffa898b979
3 changed files with 47 additions and 19 deletions

View File

@@ -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; }
}
/// <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
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

View File

@@ -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 (
<span>
@@ -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;