跟单加默认查询
This commit is contained in:
@@ -65,10 +65,12 @@
|
||||
<Compile Include="Request\BinChange.cs" />
|
||||
<Compile Include="Request\Inventorybu.cs" />
|
||||
<Compile Include="Request\Inventoryall.cs" />
|
||||
<Compile Include="Request\MomRequest.cs" />
|
||||
<Compile Include="Request\SnOrderRequest.cs" />
|
||||
<Compile Include="Request\SaleOrderRequest.cs" />
|
||||
<Compile Include="Response\MOM\Bom.cs" />
|
||||
<Compile Include="Response\Pmc\PmcInventoryallRes.cs" />
|
||||
<Compile Include="Response\Pmc\PmcInventorymomRes.cs" />
|
||||
<Compile Include="Response\Store\Stock.cs" />
|
||||
<Compile Include="TimestampConverter.cs" />
|
||||
<Compile Include="Request\Arrival.cs" />
|
||||
|
||||
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 = $@"
|
||||
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.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,
|
||||
@@ -143,13 +145,13 @@ namespace NX.ERP.U8.Pmc
|
||||
WHERE md.Status <> 4 AND ma.Qty - ISNULL(ma.IssQty, 0) > 0
|
||||
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
|
||||
mom_orderdetail md WITH (NOLOCK) ON ma.MoDId = md.MoDId left join
|
||||
mom_order mom WITH (NOLOCK) on md.MoId=mom.MoId
|
||||
|
||||
WHERE md.Status <> 4 and MoCode in @moCodes
|
||||
GROUP BY ma.InvCode) mdsss ON ma.InvCode = mdsss.InvCode LEFT JOIN
|
||||
WHERE md.Status <> 4
|
||||
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
|
||||
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
|
||||
left join ComputationUnit kk WITH (nolock) on p.cComUnitCode=kk.cComunitCode
|
||||
left join ComputationUnit LL WITH (nolock) on c.cComUnitCode=LL.cComunitCode
|
||||
WHERE md.Status <> 4 AND ma.Qty - IsNull(ma.IssQty, 0) > 0
|
||||
and m.mocode in @moCodes
|
||||
order by m.mocode,md.SortSeq, ma.InvCode
|
||||
where md.Status <> 4 AND ma.Qty - IsNull(ma.IssQty, 0) > 0 ) mmm
|
||||
";
|
||||
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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
|
||||
from SO_SODetails a WITH (nolock) left join SO_SOMain b WITH (nolock) on a.ID=b.id
|
||||
LEFT JOIN
|
||||
@@ -375,6 +394,7 @@ namespace NX.ERP.U8.Pmc
|
||||
left join Inventory g WITH (nolock) on g.cInvCode=a.cInvCode
|
||||
left join DispatchList h WITH (nolock) on b.cSOCode =h.cSOCode
|
||||
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 ";
|
||||
}
|
||||
//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.Substring(0, sql.Length - 1);
|
||||
sql = sql + "'" + item + "'" + ",";
|
||||
}
|
||||
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]
|
||||
[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();
|
||||
return PmcQuery.Inventorymom(moCodes);
|
||||
return PmcQuery.Inventorymom(moCodes).OrderByDescending(m=> m.Mocode).ThenBy(m => m.SortSeq).ThenBy(m => m.Invcode1);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
||||
@@ -4,73 +4,73 @@
|
||||
https://go.microsoft.com/fwlink/?LinkId=301879
|
||||
-->
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="server" value="192.168.1.14" />
|
||||
<add key="AccId" value="002" />
|
||||
<add key="UserId" value="0001" />
|
||||
<add key="Password" value="123456" />
|
||||
<add key="EaiPort" value="80" />
|
||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
|
||||
<remove name="OPTIONSVerbHandler" />
|
||||
<remove name="TRACEVerbHandler" />
|
||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
<appSettings>
|
||||
<add key="server" value="10.0.0.12" />
|
||||
<add key="AccId" value="u8-2@001" />
|
||||
<add key="UserId" value="wx994" />
|
||||
<add key="Password" value="1" />
|
||||
<add key="EaiPort" value="80" />
|
||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
|
||||
<remove name="OPTIONSVerbHandler" />
|
||||
<remove name="TRACEVerbHandler" />
|
||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
</configuration>
|
||||
|
||||
@@ -19,6 +19,13 @@ export const numberFormat = (data) => {
|
||||
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) => {
|
||||
var aa = axios.post('/api/erp/wmsgz1', { date: k, duration: data })
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<Table
|
||||
style="margin-top: 20px"
|
||||
size="small"
|
||||
:loading="loading"
|
||||
border
|
||||
:columns="columns"
|
||||
:data="pagedData"
|
||||
@@ -53,6 +54,7 @@ import { pageingData, export_col_to_excel,sortByKey,numberFormat } from "@/libs/
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
PageSizeOpts: [10, 15, 20, 30],
|
||||
pageNo: 1,
|
||||
strfilter: "",
|
||||
@@ -77,15 +79,15 @@ export default {
|
||||
{
|
||||
title: "行号",
|
||||
align: "center",
|
||||
key: "SortSeq",
|
||||
key: "sort_seq",
|
||||
fixed:"left",
|
||||
width: 80,
|
||||
className: "demo-table-info-new",
|
||||
|
||||
},
|
||||
{
|
||||
title: "产品编码",
|
||||
align: "center",
|
||||
key: "InvCode",
|
||||
key: "inv_code",
|
||||
width: 100,
|
||||
fixed:"left",
|
||||
className: "demo-table-info-new",
|
||||
@@ -93,7 +95,7 @@ export default {
|
||||
{
|
||||
title: "产品名称",
|
||||
align: "center",
|
||||
key: "cInvName",
|
||||
key: "c_inv_name",
|
||||
width: 150,
|
||||
fixed:"left",
|
||||
className: "demo-table-info-new",
|
||||
@@ -101,34 +103,34 @@ export default {
|
||||
{
|
||||
title: "产品规格",
|
||||
align: "center",
|
||||
key: "cInvStd",
|
||||
key: "c_inv_std",
|
||||
width: 180,
|
||||
fixed:"left",
|
||||
className: "demo-table-info-new",
|
||||
|
||||
},
|
||||
{
|
||||
title: "产品单位",
|
||||
align: "center",
|
||||
key: "cComUnitName",
|
||||
key: "c_com_unit_name",
|
||||
fixed:"left",
|
||||
width: 100,
|
||||
className: "demo-table-info-new",
|
||||
|
||||
},
|
||||
{
|
||||
title: "投产量",
|
||||
align: "center",
|
||||
key: "Qty",
|
||||
key: "qty",
|
||||
fixed:"left",
|
||||
width: 80,
|
||||
className: "demo-table-info-new",
|
||||
|
||||
},
|
||||
{
|
||||
title: "未完成",
|
||||
align: "center",
|
||||
key: "QualifiedInQty",
|
||||
key: "qualified_in_qty",
|
||||
fixed:"left",
|
||||
width: 80,
|
||||
className: "demo-table-info-new",
|
||||
|
||||
},
|
||||
{
|
||||
title: "子件编码",
|
||||
@@ -136,6 +138,7 @@ export default {
|
||||
width: 100,
|
||||
key: "invcode1",
|
||||
className: "demo-table-info-old",
|
||||
fixed:"left",
|
||||
},
|
||||
{
|
||||
title: "子件名称",
|
||||
@@ -143,27 +146,29 @@ export default {
|
||||
width: 150,
|
||||
key: "cinvname1",
|
||||
className: "demo-table-info-old",
|
||||
fixed:"left",
|
||||
},
|
||||
{
|
||||
title: "子件规格",
|
||||
width: 200,
|
||||
align: "center",
|
||||
key: "cinvstd1",
|
||||
className: "demo-table-info-old",
|
||||
fixed:"left",
|
||||
|
||||
},
|
||||
{
|
||||
title: "子件单位",
|
||||
width: 100,
|
||||
align: "center",
|
||||
key: "cComUnitName1",
|
||||
className: "demo-table-info-old",
|
||||
key: "c_com_unit_name1",
|
||||
|
||||
},
|
||||
{
|
||||
title: "子件属性",
|
||||
align: "center",
|
||||
key: "std",
|
||||
width: 100,
|
||||
className: "demo-table-info-old",
|
||||
|
||||
},
|
||||
{
|
||||
title: "单行需求",
|
||||
@@ -176,6 +181,7 @@ export default {
|
||||
align: "center",
|
||||
key: "issqty",
|
||||
width: 110,
|
||||
|
||||
},
|
||||
{
|
||||
title: "单行未领",
|
||||
@@ -275,13 +281,14 @@ export default {
|
||||
this.filter.inv_codes !== ""
|
||||
? this.filter.inv_codes.split(/[,\s\n,]/)
|
||||
: [];
|
||||
|
||||
this.loading=true;
|
||||
let resp = await getInventorymom(_filetr);
|
||||
this.pageNo = 1;
|
||||
this.datas = resp.data.data;
|
||||
|
||||
|
||||
} catch (error) {}
|
||||
finally{this.loading=false;}
|
||||
},
|
||||
handlePagechange(page) {
|
||||
this.pageNo = page;
|
||||
|
||||
@@ -129,7 +129,12 @@ export default {
|
||||
key: 'iQuantity'
|
||||
},
|
||||
{
|
||||
title: '发货时间',
|
||||
title: '预计发货日期',
|
||||
align: 'center',
|
||||
key: 'dPreDate'
|
||||
},
|
||||
{
|
||||
title: '发货日期',
|
||||
align: 'center',
|
||||
key: 'fhdDate',
|
||||
render: (h, params) => {
|
||||
@@ -155,7 +160,7 @@ export default {
|
||||
title: '在制量',
|
||||
align: 'center',
|
||||
key: 'momqty'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user