Merge branch 'master' of http://36.153.118.214:10080/nx.wms/u8-import
This commit is contained in:
14
NX.ERP.Model/Request/MomRequest.cs
Normal file
14
NX.ERP.Model/Request/MomRequest.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NX.ERP.Model.Request
|
||||||
|
{
|
||||||
|
public class MomRequest
|
||||||
|
{
|
||||||
|
public IEnumerable<string> Momcode { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
284
NX.ERP.Model/Response/Pmc/PmcInventorymomRes.cs
Normal file
284
NX.ERP.Model/Response/Pmc/PmcInventorymomRes.cs
Normal file
@@ -0,0 +1,284 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
namespace NX.ERP.Model
|
||||||
|
{
|
||||||
|
public class PmcInventorymomRes : BaseModel
|
||||||
|
{
|
||||||
|
|
||||||
|
private string mocode;
|
||||||
|
private int sortSeq;
|
||||||
|
private string invCode;
|
||||||
|
private string cInvName;
|
||||||
|
private string cInvStd;
|
||||||
|
private string cComUnitName;
|
||||||
|
private double qty;
|
||||||
|
private double qualifiedInQty;
|
||||||
|
private string invcode1;
|
||||||
|
private string cinvname1;
|
||||||
|
private string cinvstd1;
|
||||||
|
private string cComUnitName1;
|
||||||
|
private string std;
|
||||||
|
private double qty1;
|
||||||
|
private double issqty;
|
||||||
|
private double mdqty;
|
||||||
|
private double wqty;
|
||||||
|
private double cqty;
|
||||||
|
private double issqtyxc;
|
||||||
|
private double dqty;
|
||||||
|
private double rqty;
|
||||||
|
private double rqty1;
|
||||||
|
private double rqty3;
|
||||||
|
private double momqty;
|
||||||
|
private double mqty;
|
||||||
|
private double q;
|
||||||
|
private string st;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Mocode
|
||||||
|
{
|
||||||
|
get { return this.mocode; }
|
||||||
|
set { this.mocode = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int SortSeq
|
||||||
|
{
|
||||||
|
get { return this.sortSeq; }
|
||||||
|
set { this.sortSeq = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string InvCode
|
||||||
|
{
|
||||||
|
get { return this.invCode; }
|
||||||
|
set { this.invCode = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string CInvName
|
||||||
|
{
|
||||||
|
get { return this.cInvName; }
|
||||||
|
set { this.cInvName = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string CInvStd
|
||||||
|
{
|
||||||
|
get { return this.cInvStd; }
|
||||||
|
set { this.cInvStd = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string CComUnitName
|
||||||
|
{
|
||||||
|
get { return this.cComUnitName; }
|
||||||
|
set { this.cComUnitName = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Qty
|
||||||
|
{
|
||||||
|
get { return this.qty; }
|
||||||
|
set { this.qty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double QualifiedInQty
|
||||||
|
{
|
||||||
|
get { return this.qualifiedInQty; }
|
||||||
|
set { this.qualifiedInQty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Invcode1
|
||||||
|
{
|
||||||
|
get { return this.invcode1; }
|
||||||
|
set { this.invcode1 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Cinvname1
|
||||||
|
{
|
||||||
|
get { return this.cinvname1; }
|
||||||
|
set { this.cinvname1 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Cinvstd1
|
||||||
|
{
|
||||||
|
get { return this.cinvstd1; }
|
||||||
|
set { this.cinvstd1 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string CComUnitName1
|
||||||
|
{
|
||||||
|
get { return this.cComUnitName1; }
|
||||||
|
set { this.cComUnitName1 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Std
|
||||||
|
{
|
||||||
|
get { return this.std; }
|
||||||
|
set { this.std = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Qty1
|
||||||
|
{
|
||||||
|
get { return this.qty1; }
|
||||||
|
set { this.qty1 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Issqty
|
||||||
|
{
|
||||||
|
get { return this.issqty; }
|
||||||
|
set { this.issqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Mdqty
|
||||||
|
{
|
||||||
|
get { return this.mdqty; }
|
||||||
|
set { this.mdqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Wqty
|
||||||
|
{
|
||||||
|
get { return this.wqty; }
|
||||||
|
set { this.wqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Cqty
|
||||||
|
{
|
||||||
|
get { return this.cqty; }
|
||||||
|
set { this.cqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Issqtyxc
|
||||||
|
{
|
||||||
|
get { return this.issqtyxc; }
|
||||||
|
set { this.issqtyxc = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Dqty
|
||||||
|
{
|
||||||
|
get { return this.dqty; }
|
||||||
|
set { this.dqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Rqty
|
||||||
|
{
|
||||||
|
get { return this.rqty; }
|
||||||
|
set { this.rqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Rqty1
|
||||||
|
{
|
||||||
|
get { return this.rqty1; }
|
||||||
|
set { this.rqty1 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Rqty3
|
||||||
|
{
|
||||||
|
get { return this.rqty3; }
|
||||||
|
set { this.rqty3 = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Momqty
|
||||||
|
{
|
||||||
|
get { return this.momqty; }
|
||||||
|
set { this.momqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Mqty
|
||||||
|
{
|
||||||
|
get { return this.mqty; }
|
||||||
|
set { this.mqty = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public double Q
|
||||||
|
{
|
||||||
|
get { return this.q; }
|
||||||
|
set { this.q = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string St
|
||||||
|
{
|
||||||
|
get { return this.st; }
|
||||||
|
set { this.st = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -123,10 +123,12 @@ namespace NX.ERP.U8.Pmc
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IEnumerable<object> Inventorymom(List<string> moCodes)
|
public IEnumerable<NX.ERP.Model.PmcInventorymomRes> Inventorymom(List<string> moCodes)
|
||||||
{
|
{
|
||||||
string sql = $@"
|
string sql = $@"
|
||||||
SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitName, md.Qty, md.QualifiedInQty, ma.InvCode invcode1,
|
select *from (
|
||||||
|
|
||||||
|
SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitName, md.Qty, md.QualifiedInQty, ma.InvCode invcode1,
|
||||||
c.cInvName cinvname1, c.cInvStd cinvstd1,LL.cComUnitName as cComUnitName1, CASE WHEN c.bPurchase = 1 AND
|
c.cInvName cinvname1, c.cInvStd cinvstd1,LL.cComUnitName as cComUnitName1, CASE WHEN c.bPurchase = 1 AND
|
||||||
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,
|
||||||
@@ -143,13 +145,13 @@ namespace NX.ERP.U8.Pmc
|
|||||||
WHERE md.Status <> 4 AND ma.Qty - ISNULL(ma.IssQty, 0) > 0
|
WHERE md.Status <> 4 AND ma.Qty - ISNULL(ma.IssQty, 0) > 0
|
||||||
GROUP BY ma.InvCode) mas ON ma.InvCode = mas.InvCode LEFT JOIN
|
GROUP BY ma.InvCode) mas ON ma.InvCode = mas.InvCode LEFT JOIN
|
||||||
|
|
||||||
(SELECT ma.invcode,SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) mdqty
|
(SELECT mom.MoId, ma.invcode,SUM(isnull(ma.qty, 0) - isnull(issqty, 0)) mdqty
|
||||||
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 left join
|
mom_orderdetail md WITH (NOLOCK) ON ma.MoDId = md.MoDId left join
|
||||||
mom_order mom WITH (NOLOCK) on md.MoId=mom.MoId
|
mom_order mom WITH (NOLOCK) on md.MoId=mom.MoId
|
||||||
|
|
||||||
WHERE md.Status <> 4 and MoCode in @moCodes
|
WHERE md.Status <> 4
|
||||||
GROUP BY ma.InvCode) mdsss ON ma.InvCode = mdsss.InvCode LEFT JOIN
|
GROUP BY ma.InvCode,mom.MoId) mdsss ON ma.InvCode = mdsss.InvCode and m.MoId=mdsss.MoId LEFT JOIN
|
||||||
|
|
||||||
(SELECT ma.invcode, SUM( isnull(issqty, 0)) issqty
|
(SELECT ma.invcode, SUM( isnull(issqty, 0)) issqty
|
||||||
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
|
FROM mom_moallocate ma WITH (NOLOCK) INNER JOIN
|
||||||
@@ -204,13 +206,30 @@ namespace NX.ERP.U8.Pmc
|
|||||||
(select InvCode,sum(qty) as momqty from mom_orderdetail WITH (NOLOCK) where Status=3 group by InvCode) momq on MA.INVCODE = momq.InvCode
|
(select InvCode,sum(qty) as momqty from mom_orderdetail WITH (NOLOCK) where Status=3 group by InvCode) momq on MA.INVCODE = momq.InvCode
|
||||||
left join ComputationUnit kk WITH (nolock) on p.cComUnitCode=kk.cComunitCode
|
left join ComputationUnit kk WITH (nolock) on p.cComUnitCode=kk.cComunitCode
|
||||||
left join ComputationUnit LL WITH (nolock) on c.cComUnitCode=LL.cComunitCode
|
left join ComputationUnit LL WITH (nolock) on c.cComUnitCode=LL.cComunitCode
|
||||||
WHERE md.Status <> 4 AND ma.Qty - IsNull(ma.IssQty, 0) > 0
|
where md.Status <> 4 AND ma.Qty - IsNull(ma.IssQty, 0) > 0 ) mmm
|
||||||
and m.mocode in @moCodes
|
|
||||||
order by m.mocode,md.SortSeq, ma.InvCode
|
|
||||||
";
|
";
|
||||||
|
|
||||||
|
List<string> where = new List<string>();
|
||||||
|
|
||||||
|
///处理-
|
||||||
|
if (moCodes != null && moCodes.Count>0 )
|
||||||
|
{
|
||||||
|
where.Add(" mmm.mocode in @moCodes");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var aa = string.Join(" and ", where.ToArray());
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(aa))
|
||||||
|
{
|
||||||
|
sql += "where " + aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
return conn.Query<object>(sql, new { moCodes = moCodes });
|
return conn.Query<NX.ERP.Model.PmcInventorymomRes>(sql, new { moCodes = moCodes });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -353,7 +372,7 @@ namespace NX.ERP.U8.Pmc
|
|||||||
public IEnumerable<object> Inventorysocode(NX.ERP.Model.Request.SaleOrderRequest info1)
|
public IEnumerable<object> Inventorysocode(NX.ERP.Model.Request.SaleOrderRequest info1)
|
||||||
{
|
{
|
||||||
string sql = $@"
|
string sql = $@"
|
||||||
select j.cSTName,b.cSOCode,b.dDate,a.iRowNo,f.cCusAbbName,a.cInvCode,a.cInvName,g.cInvStd,a.iQuantity, h.dDate as fhdDate ,isnull(c.fqty,0)fqty,isnull(d.cqty,0)cqty
|
select j.cSTName,b.cSOCode,CONVERT(varchar(100),b.dDate, 23) as dDate ,a.iRowNo,f.cCusAbbName,a.cInvCode,a.cInvName,g.cInvStd,a.iQuantity, CONVERT(varchar(100),a.dPreDate, 23) as dPreDate , CONVERT(varchar(100),h.dDate, 23) as fhdDate ,isnull(c.fqty,0)fqty,isnull(d.cqty,0)cqty
|
||||||
,isnull(cs.qty,0)qty,isnull(momq.momqty,0)momqty
|
,isnull(cs.qty,0)qty,isnull(momq.momqty,0)momqty
|
||||||
from SO_SODetails a WITH (nolock) left join SO_SOMain b WITH (nolock) on a.ID=b.id
|
from SO_SODetails a WITH (nolock) left join SO_SOMain b WITH (nolock) on a.ID=b.id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@@ -376,6 +395,7 @@ namespace NX.ERP.U8.Pmc
|
|||||||
left join DispatchList h WITH (nolock) on b.cSOCode =h.cSOCode
|
left join DispatchList h WITH (nolock) on b.cSOCode =h.cSOCode
|
||||||
left join SaleType j WITH (nolock) on j.cSTCode=b.cSTCode
|
left join SaleType j WITH (nolock) on j.cSTCode=b.cSTCode
|
||||||
|
|
||||||
|
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
||||||
@@ -444,14 +464,22 @@ namespace NX.ERP.U8.Pmc
|
|||||||
sql = $@" Usp_BO_ExpandByParent_BU_20210513 ";
|
sql = $@" Usp_BO_ExpandByParent_BU_20210513 ";
|
||||||
}
|
}
|
||||||
//var sql = $@"Usp_BO_ExpandByParent_BU_20210208 ";
|
//var sql = $@"Usp_BO_ExpandByParent_BU_20210208 ";
|
||||||
foreach (var item in info1.inumsc)
|
if (info1.inumsc != null)
|
||||||
{
|
{
|
||||||
|
foreach (var item in info1.inumsc)
|
||||||
|
{
|
||||||
|
|
||||||
sql = sql +"'"+ item + "'" + ","; }
|
sql = sql + "'" + item + "'" + ",";
|
||||||
sql = sql.Substring(0, sql.Length - 1);
|
}
|
||||||
|
sql = sql.Substring(0, sql.Length - 1);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sql = "";
|
||||||
|
}
|
||||||
|
try { return conn.Query<object>(sql, new { inumsc = info1.inumsc }); }
|
||||||
|
catch { return null; }
|
||||||
|
|
||||||
|
|
||||||
return conn.Query<object>(sql, new { inumsc = info1.inumsc });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Route("api/Pmc/Inventorymom")]
|
[Route("api/Pmc/Inventorymom")]
|
||||||
public IEnumerable<object> Inventorymom([FromBody] List<string> moCodes)
|
public IEnumerable<NX.ERP.Model.PmcInventorymomRes> Inventorymom([FromBody] List<string> moCodes)
|
||||||
{
|
{
|
||||||
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
||||||
return PmcQuery.Inventorymom(moCodes);
|
return PmcQuery.Inventorymom(moCodes).OrderByDescending(m=> m.Mocode).ThenBy(m => m.SortSeq).ThenBy(m => m.Invcode1);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|||||||
@@ -19,6 +19,13 @@ export const numberFormat = (data) => {
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
export const numberFormat2 = (data) => {
|
||||||
|
if (data != null) {
|
||||||
|
return data.Number(num.toString().match(/^\d+(?:\.\d{0,2})?/));
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const edit2 = (k, data) => {
|
export const edit2 = (k, data) => {
|
||||||
var aa = axios.post('/api/erp/wmsgz1', { date: k, duration: data })
|
var aa = axios.post('/api/erp/wmsgz1', { date: k, duration: data })
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
<Table
|
<Table
|
||||||
style="margin-top: 20px"
|
style="margin-top: 20px"
|
||||||
size="small"
|
size="small"
|
||||||
|
:loading="loading"
|
||||||
border
|
border
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:data="pagedData"
|
:data="pagedData"
|
||||||
@@ -53,6 +54,7 @@ import { pageingData, export_col_to_excel,sortByKey,numberFormat } from "@/libs/
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
PageSizeOpts: [10, 15, 20, 30],
|
PageSizeOpts: [10, 15, 20, 30],
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
strfilter: "",
|
strfilter: "",
|
||||||
@@ -77,15 +79,15 @@ export default {
|
|||||||
{
|
{
|
||||||
title: "行号",
|
title: "行号",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "SortSeq",
|
key: "sort_seq",
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
width: 80,
|
width: 80,
|
||||||
className: "demo-table-info-new",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "产品编码",
|
title: "产品编码",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "InvCode",
|
key: "inv_code",
|
||||||
width: 100,
|
width: 100,
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
className: "demo-table-info-new",
|
className: "demo-table-info-new",
|
||||||
@@ -93,7 +95,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: "产品名称",
|
title: "产品名称",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "cInvName",
|
key: "c_inv_name",
|
||||||
width: 150,
|
width: 150,
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
className: "demo-table-info-new",
|
className: "demo-table-info-new",
|
||||||
@@ -101,34 +103,34 @@ export default {
|
|||||||
{
|
{
|
||||||
title: "产品规格",
|
title: "产品规格",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "cInvStd",
|
key: "c_inv_std",
|
||||||
width: 180,
|
width: 180,
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
className: "demo-table-info-new",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "产品单位",
|
title: "产品单位",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "cComUnitName",
|
key: "c_com_unit_name",
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
width: 100,
|
width: 100,
|
||||||
className: "demo-table-info-new",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "投产量",
|
title: "投产量",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "Qty",
|
key: "qty",
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
width: 80,
|
width: 80,
|
||||||
className: "demo-table-info-new",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "未完成",
|
title: "未完成",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "QualifiedInQty",
|
key: "qualified_in_qty",
|
||||||
fixed:"left",
|
fixed:"left",
|
||||||
width: 80,
|
width: 80,
|
||||||
className: "demo-table-info-new",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "子件编码",
|
title: "子件编码",
|
||||||
@@ -136,6 +138,7 @@ export default {
|
|||||||
width: 100,
|
width: 100,
|
||||||
key: "invcode1",
|
key: "invcode1",
|
||||||
className: "demo-table-info-old",
|
className: "demo-table-info-old",
|
||||||
|
fixed:"left",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "子件名称",
|
title: "子件名称",
|
||||||
@@ -143,27 +146,29 @@ export default {
|
|||||||
width: 150,
|
width: 150,
|
||||||
key: "cinvname1",
|
key: "cinvname1",
|
||||||
className: "demo-table-info-old",
|
className: "demo-table-info-old",
|
||||||
|
fixed:"left",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "子件规格",
|
title: "子件规格",
|
||||||
width: 200,
|
width: 200,
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "cinvstd1",
|
key: "cinvstd1",
|
||||||
className: "demo-table-info-old",
|
fixed:"left",
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "子件单位",
|
title: "子件单位",
|
||||||
width: 100,
|
width: 100,
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "cComUnitName1",
|
key: "c_com_unit_name1",
|
||||||
className: "demo-table-info-old",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "子件属性",
|
title: "子件属性",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "std",
|
key: "std",
|
||||||
width: 100,
|
width: 100,
|
||||||
className: "demo-table-info-old",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "单行需求",
|
title: "单行需求",
|
||||||
@@ -176,6 +181,7 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
key: "issqty",
|
key: "issqty",
|
||||||
width: 110,
|
width: 110,
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "单行未领",
|
title: "单行未领",
|
||||||
@@ -275,13 +281,14 @@ export default {
|
|||||||
this.filter.inv_codes !== ""
|
this.filter.inv_codes !== ""
|
||||||
? this.filter.inv_codes.split(/[,\s\n,]/)
|
? this.filter.inv_codes.split(/[,\s\n,]/)
|
||||||
: [];
|
: [];
|
||||||
|
this.loading=true;
|
||||||
let resp = await getInventorymom(_filetr);
|
let resp = await getInventorymom(_filetr);
|
||||||
this.pageNo = 1;
|
this.pageNo = 1;
|
||||||
this.datas = resp.data.data;
|
this.datas = resp.data.data;
|
||||||
|
|
||||||
|
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
finally{this.loading=false;}
|
||||||
},
|
},
|
||||||
handlePagechange(page) {
|
handlePagechange(page) {
|
||||||
this.pageNo = page;
|
this.pageNo = page;
|
||||||
|
|||||||
@@ -129,7 +129,12 @@ export default {
|
|||||||
key: 'iQuantity'
|
key: 'iQuantity'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '发货时间',
|
title: '预计发货日期',
|
||||||
|
align: 'center',
|
||||||
|
key: 'dPreDate'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '发货日期',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
key: 'fhdDate',
|
key: 'fhdDate',
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user