Merge branch 'master' of http://36.153.118.214:10080/nx.wms/u8-import
This commit is contained in:
@@ -15,7 +15,7 @@ namespace NX.ERP.Model.Request
|
|||||||
public IEnumerable<string> InvCodes { get; set; }
|
public IEnumerable<string> InvCodes { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public bool byFinish { get; set; }
|
||||||
public DateTime? BeginDate { get; set; }
|
public DateTime? BeginDate { get; set; }
|
||||||
public DateTime? EndDate { get; set; }
|
public DateTime? EndDate { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
|||||||
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
|
left JOIN
|
||||||
mom_motype motype WITH (NOLOCK) ON motype.MoTypeId = md.MoTypeId
|
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
|
||||||
@@ -226,7 +226,7 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
|||||||
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
|
left JOIN
|
||||||
mom_motype motype WITH (NOLOCK) ON motype.MoTypeId = md.MoTypeId
|
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
|
||||||
@@ -368,13 +368,13 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
|||||||
where convert(varchar,b.dDate,112) between convert(varchar,dateadd(day,-day(dateadd(month,-3,getdate()))+1,dateadd(month,-3,getdate())),112)
|
where convert(varchar,b.dDate,112) between convert(varchar,dateadd(day,-day(dateadd(month,-3,getdate()))+1,dateadd(month,-3,getdate())),112)
|
||||||
and convert(varchar,dateadd(day,-day(dateadd(month,-3,getdate())),dateadd(month,1,dateadd(month,-3,getdate()))),112)
|
and convert(varchar,dateadd(day,-day(dateadd(month,-3,getdate())),dateadd(month,1,dateadd(month,-3,getdate()))),112)
|
||||||
group by a.cinvcode
|
group by a.cinvcode
|
||||||
) a2 on a.cInvCode =a2.cInvCode
|
) a3 on a.cInvCode =a3.cInvCode
|
||||||
full join
|
full join
|
||||||
(select left(convert(varchar,dateadd(month,-2,getdate()),112),6) as month1 , a.cinvcode, sum(a.iQuantity) as iQuantity from rdrecords11 a WITH (nolock) left join rdrecord11 b WITH (nolock) on a.id=b.id
|
(select left(convert(varchar,dateadd(month,-2,getdate()),112),6) as month1 , a.cinvcode, sum(a.iQuantity) as iQuantity from rdrecords11 a WITH (nolock) left join rdrecord11 b WITH (nolock) on a.id=b.id
|
||||||
where convert(varchar,b.dDate,112) between convert(varchar,dateadd(day,-day(dateadd(month,-2,getdate()))+1,dateadd(month,-2,getdate())),112)
|
where convert(varchar,b.dDate,112) between convert(varchar,dateadd(day,-day(dateadd(month,-2,getdate()))+1,dateadd(month,-2,getdate())),112)
|
||||||
and convert(varchar,dateadd(day,-day(dateadd(month,-2,getdate())),dateadd(month,1,dateadd(month,-2,getdate()))),112)
|
and convert(varchar,dateadd(day,-day(dateadd(month,-2,getdate())),dateadd(month,1,dateadd(month,-2,getdate()))),112)
|
||||||
group by a.cinvcode
|
group by a.cinvcode
|
||||||
) a3 on a.cInvCode =a3.cInvCode
|
) a2 on a.cInvCode =a2.cInvCode
|
||||||
full join
|
full join
|
||||||
(select left(convert(varchar,dateadd(month,-4,getdate()),112),6) as month1 , a.cinvcode, sum(a.iQuantity) as iQuantity from rdrecords11 a WITH (nolock) left join rdrecord11 b WITH (nolock) on a.id=b.id
|
(select left(convert(varchar,dateadd(month,-4,getdate()),112),6) as month1 , a.cinvcode, sum(a.iQuantity) as iQuantity from rdrecords11 a WITH (nolock) left join rdrecord11 b WITH (nolock) on a.id=b.id
|
||||||
where convert(varchar,b.dDate,112) between convert(varchar,dateadd(day,-day(dateadd(month,-4,getdate()))+1,dateadd(month,-4,getdate())),112)
|
where convert(varchar,b.dDate,112) between convert(varchar,dateadd(day,-day(dateadd(month,-4,getdate()))+1,dateadd(month,-4,getdate())),112)
|
||||||
@@ -547,7 +547,8 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
|||||||
{
|
{
|
||||||
string sql = $@"
|
string sql = $@"
|
||||||
Select cpoid,CONVERT(varchar(100),dpodate, 23) as dpodate,zpurpoheader.cvenabbname,zpurpotail.cinvcode,zpurpotail.cinvname,zpurpotail.cinvstd,zpurpotail.cinvm_unit,zpurpotail.ireceivedqty,
|
Select cpoid,CONVERT(varchar(100),dpodate, 23) as dpodate,zpurpoheader.cvenabbname,zpurpotail.cinvcode,zpurpotail.cinvname,zpurpotail.cinvstd,zpurpotail.cinvm_unit,zpurpotail.ireceivedqty,
|
||||||
iquantity,prd.rqty,CONVERT(varchar(100), zpurpotail.darrivedate, 23) as darrivedate,cupsocode, CONVERT(varchar(100), d.ddate, 23) as ddate, CONVERT(varchar(100), c.drequirdate, 23) as drequirdate
|
iquantity,prd.rqty,CONVERT(varchar(100), zpurpotail.darrivedate, 23) as darrivedate,cupsocode, CONVERT(varchar(100), d.ddate, 23) as ddate, CONVERT(varchar(100), c.drequirdate, 23) as drequirdate,
|
||||||
|
zpurpotail.cbcloser,zpurpoheader.ccloser
|
||||||
From zpurpoheader with(nolock) inner join zpurpotail with(nolock) on zpurpoheader.poid=zpurpotail.poid
|
From zpurpoheader with(nolock) inner join zpurpotail with(nolock) on zpurpoheader.poid=zpurpotail.poid
|
||||||
left join pu_appbody c with(nolock) on zpurpotail.iAppIds =c.autoid
|
left join pu_appbody c with(nolock) on zpurpotail.iAppIds =c.autoid
|
||||||
left join pu_apphead d with(nolock) on d.id =c.id
|
left join pu_apphead d with(nolock) on d.id =c.id
|
||||||
@@ -598,7 +599,10 @@ SELECT m..mocode, md.SortSeq, md.InvCode, p.cInvName, p.cInvStd,KK.cComUnitNam
|
|||||||
where.Add(" d.dDate between @beginDate2 and @endDate2 ");
|
where.Add(" d.dDate between @beginDate2 and @endDate2 ");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (!info1.byFinish)
|
||||||
|
{
|
||||||
|
where.Add(" isnull(zpurpotail.cbcloser,'') ='' ");
|
||||||
|
}
|
||||||
var aa = string.Join(" and ", where.ToArray());
|
var aa = string.Join(" and ", where.ToArray());
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(aa))
|
if (!string.IsNullOrEmpty(aa))
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="server" value="10.0.0.12" />
|
<add key="server" value="10.0.0.12" />
|
||||||
<add key="AccId" value="u8-2@001" />
|
<add key="AccId" value="u8-2@001" />
|
||||||
<add key="UserId" value="wx994" />
|
<add key="UserId" value="wx995" />
|
||||||
<add key="Password" value="1" />
|
<add key="Password" value="1" />
|
||||||
<add key="EaiPort" value="80" />
|
<add key="EaiPort" value="80" />
|
||||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||||
|
|||||||
@@ -33,6 +33,12 @@
|
|||||||
<DatePicker v-model="filter.dates2" type="daterange"></DatePicker>
|
<DatePicker v-model="filter.dates2" type="daterange"></DatePicker>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
<Col span="3">
|
||||||
|
<label>状态</label>
|
||||||
|
<div>
|
||||||
|
<Checkbox v-model="filter.by_finish">包含关闭</Checkbox>
|
||||||
|
</div>
|
||||||
|
</Col>
|
||||||
<Col span="4">
|
<Col span="4">
|
||||||
<Button
|
<Button
|
||||||
size="large"
|
size="large"
|
||||||
@@ -101,6 +107,7 @@ export default {
|
|||||||
app_codes: "",
|
app_codes: "",
|
||||||
dates: [getMonth("s", -1), getMonth("e", 0)],
|
dates: [getMonth("s", -1), getMonth("e", 0)],
|
||||||
dates2: [],
|
dates2: [],
|
||||||
|
by_finish: false
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -176,6 +183,19 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
key: "drequirdate",
|
key: "drequirdate",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "行关闭人",
|
||||||
|
align: "center",
|
||||||
|
key: "cbcloser",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "订单关闭人",
|
||||||
|
align: "center",
|
||||||
|
key: "ccloser",
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -238,6 +258,7 @@ export default {
|
|||||||
end_date: _endDate,
|
end_date: _endDate,
|
||||||
begin_date2: _beginDate2,
|
begin_date2: _beginDate2,
|
||||||
end_date2: _endDate2,
|
end_date2: _endDate2,
|
||||||
|
by_finish: this.filter.by_finish
|
||||||
};
|
};
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
let resp = await getInventorypo(_filert);
|
let resp = await getInventorypo(_filert);
|
||||||
|
|||||||
Reference in New Issue
Block a user