Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
4966511e
Commit
4966511e
authored
Jun 14, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加sku分类搜索
parent
8291a44f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
563 additions
and
210 deletions
+563
-210
GlobalConfig.cs
Bailun.DC.Common/GlobalConfig.cs
+7
-3
CommonServices.cs
Bailun.DC.Services/CommonServices.cs
+8
-0
OrdersServices.cs
Bailun.DC.Services/OrdersServices.cs
+0
-0
OrdersController.cs
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
+15
-15
AmazonSaleStatistics.cshtml
...eb/Areas/Reports/Views/Orders/AmazonSaleStatistics.cshtml
+114
-46
FBAAbnormalOrder.cshtml
...DC.Web/Areas/Reports/Views/Orders/FBAAbnormalOrder.cshtml
+101
-34
FBASaleStatistics.cshtml
...C.Web/Areas/Reports/Views/Orders/FBASaleStatistics.cshtml
+107
-37
ListOrder.cshtml
Bailun.DC.Web/Areas/Reports/Views/Orders/ListOrder.cshtml
+107
-39
PlatformFeeAbnormal.cshtml
...Web/Areas/Reports/Views/Orders/PlatformFeeAbnormal.cshtml
+104
-36
No files found.
Bailun.DC.Common/GlobalConfig.cs
View file @
4966511e
...
...
@@ -10,14 +10,18 @@ namespace Bailun.DC.Common
{
#if DEBUG
public
static
string
ConnectionString
=
"server=gz-cdb-kp7s5i79.sql.tencentcdb.com;port=61691;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
/// <summary>
/// sku分类url
/// </summary>
public
static
string
SkumsCategory
=
"http://api.sku.bailuntec.com/api/BailunCateData/GetAllCategoryList"
;
#else
public
static
string
ConnectionString
=
"server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
;
#endif
public
static
string
OAUrl
=
"http://www.bailuntec.com"
;
/// <summary>
/// sku分类url
/// </summary>
public
static
string
SkumsCategory
=
"http://10.0.6.13:8001/api/BailunCateData/GetAllCategoryList"
;
#endif
public
static
string
OAUrl
=
"http://www.bailuntec.com"
;
}
}
Bailun.DC.Services/CommonServices.cs
View file @
4966511e
...
...
@@ -12,6 +12,8 @@ namespace Bailun.DC.Services
{
public
class
CommonServices
{
public
static
List
<
Models
.
Common
.
CategoryDto
>
ListSkuCategory
{
get
;
set
;
}
/// <summary>
/// 获取即时汇率
/// </summary>
...
...
@@ -156,6 +158,11 @@ namespace Bailun.DC.Services
{
if
(
level
==
0
)
{
if
(
ListSkuCategory
!=
null
&&
ListSkuCategory
.
Count
>
0
)
{
return
ListSkuCategory
;
}
List
<
Models
.
Common
.
CategoryDto
>
datas
=
new
List
<
Models
.
Common
.
CategoryDto
>();
var
tempLevel
=
1
;
while
(
true
)
...
...
@@ -167,6 +174,7 @@ namespace Bailun.DC.Services
}
else
{
ListSkuCategory
=
datas
;
return
datas
;
}
tempLevel
++;
...
...
Bailun.DC.Services/OrdersServices.cs
View file @
4966511e
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
View file @
4966511e
...
...
@@ -132,7 +132,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <param name="end">付款结束时间</param>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
string
ListAmazonSaleStatisticsJson
(
BtTableParameter
parameter
,
string
sellaccount
,
string
website
,
DateTime
start
,
DateTime
end
,
string
warehousetype
,
string
warehousecode
)
public
string
ListAmazonSaleStatisticsJson
(
BtTableParameter
parameter
,
string
sellaccount
,
string
website
,
DateTime
start
,
DateTime
end
,
string
warehousetype
,
string
warehousecode
,
string
skucategoryids
)
{
var
companyid
=
HttpContextHelper
.
Current
?.
User
?.
GetCompanyId
().
ToInt32
();
...
...
@@ -142,9 +142,9 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
objwithdraw
=
new
Services
.
PlatformSiteServices
().
GetPlatformLossWithdraw
().
Where
(
a
=>
a
.
english_name
==
"Amazon"
).
FirstOrDefault
();
var
list
=
service
.
ListAmazonStatistics
(
parameter
,
sellaccount
,
website
,
start
,
end
,
warehousetype
,
warehousecode
,
companyid
,
ref
total
);
var
list
=
service
.
ListAmazonStatistics
(
parameter
,
sellaccount
,
website
,
start
,
end
,
warehousetype
,
warehousecode
,
companyid
,
ref
total
,
skucategoryids
);
var
countM
=
service
.
ListAmazonStatisticsCount
(
sellaccount
,
website
,
start
,
end
,
warehousetype
,
warehousecode
,
companyid
);
var
countM
=
service
.
ListAmazonStatisticsCount
(
sellaccount
,
website
,
start
,
end
,
warehousetype
,
warehousecode
,
companyid
,
skucategoryids
);
countM
.
website
=
"总计:"
;
countM
.
amount_sales
=
Math
.
Round
(
countM
.
amount_sales
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
cost_product
=
Math
.
Round
(
countM
.
cost_product
,
2
,
MidpointRounding
.
AwayFromZero
);
...
...
@@ -226,16 +226,16 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <param name="end">结束时间</param>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
string
ListFBASaleStatisticsJson
(
BtTableParameter
parameter
,
string
sellaccount
,
string
website
,
DateTime
start
,
DateTime
end
)
public
string
ListFBASaleStatisticsJson
(
BtTableParameter
parameter
,
string
sellaccount
,
string
website
,
DateTime
start
,
DateTime
end
,
string
skucategoryids
)
{
var
companyid
=
HttpContextHelper
.
Current
?.
User
?.
GetCompanyId
().
ToInt32
();
var
total
=
0
;
var
service
=
new
Services
.
OrdersServices
();
var
objwithdraw
=
new
Services
.
PlatformSiteServices
().
GetPlatformLossWithdraw
().
Where
(
a
=>
a
.
english_name
==
"Amazon"
).
FirstOrDefault
();
var
list
=
service
.
ListFBAStatistics
(
parameter
,
sellaccount
,
website
,
start
,
end
,
companyid
,
ref
total
);
var
list
=
service
.
ListFBAStatistics
(
parameter
,
sellaccount
,
website
,
start
,
end
,
companyid
,
ref
total
,
skucategoryids
);
var
countM
=
service
.
ListFBAStatisticsCount
(
sellaccount
,
website
,
start
,
end
,
companyid
);
var
countM
=
service
.
ListFBAStatisticsCount
(
sellaccount
,
website
,
start
,
end
,
companyid
,
skucategoryids
);
countM
.
website
=
"总计:"
;
countM
.
amount_product
=
Math
.
Round
(
countM
.
amount_product
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
cost_count
=
Math
.
Round
(
countM
.
cost_count
,
2
,
MidpointRounding
.
AwayFromZero
);
...
...
@@ -257,7 +257,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
countM
.
cost_fba_fee
=
Math
.
Round
(
countM
.
cost_fba_fee
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
cost_paypal_fee
=
Math
.
Round
(
countM
.
cost_paypal_fee
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
cost_package
=
Math
.
Round
(
countM
.
cost_package
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
profit_rate
=
Math
.
Round
((
countM
.
profit_count
/
countM
.
amount_product
),
2
,
MidpointRounding
.
AwayFromZero
)
;
countM
.
profit_rate
=
countM
.
amount_product
>
0
?
Math
.
Round
((
countM
.
profit_count
/
countM
.
amount_product
),
2
,
MidpointRounding
.
AwayFromZero
):
0
;
var
obj
=
list
.
Select
(
p
=>
new
...
...
@@ -338,14 +338,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <param name="sku">sku编码</param>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
string
ListOrderJson
(
BtTableParameter
parameter
,
string
platform
,
string
account
,
string
website
,
DateTime
?
start
,
DateTime
?
end
,
string
orderno
,
string
sku
)
public
string
ListOrderJson
(
BtTableParameter
parameter
,
string
platform
,
string
account
,
string
website
,
DateTime
?
start
,
DateTime
?
end
,
string
orderno
,
string
sku
,
string
skucategoryids
)
{
var
companyid
=
HttpContextHelper
.
Current
?.
User
?.
GetCompanyId
().
ToInt32
();
var
total
=
0
;
var
service
=
new
Services
.
OrdersServices
();
var
obj
=
service
.
ListOrders
(
parameter
,
platform
,
website
,
account
,
start
,
end
,
orderno
,
sku
,
companyid
,
ref
total
);
var
obj
=
service
.
ListOrders
(
parameter
,
platform
,
website
,
account
,
start
,
end
,
orderno
,
sku
,
companyid
,
ref
total
,
skucategoryids
);
var
countM
=
service
.
ListOrdersCount
(
platform
,
website
,
account
,
start
,
end
,
orderno
,
sku
,
companyid
);
var
countM
=
service
.
ListOrdersCount
(
platform
,
website
,
account
,
start
,
end
,
orderno
,
sku
,
companyid
,
skucategoryids
);
countM
.
amount_adjustment
=
Math
.
Round
(
countM
.
amount_adjustment
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
amount_gift_wrap
=
Math
.
Round
(
countM
.
amount_gift_wrap
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
amount_product
=
Math
.
Round
(
countM
.
amount_product
,
2
,
MidpointRounding
.
AwayFromZero
);
...
...
@@ -502,12 +502,12 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <param name="end">付款结束时间</param>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
string
FBAabnormalOrderJson
(
BtTableParameter
parameter
,
string
account
,
string
website
,
string
orderno
,
DateTime
?
start
,
DateTime
?
end
)
public
string
FBAabnormalOrderJson
(
BtTableParameter
parameter
,
string
account
,
string
website
,
string
orderno
,
DateTime
?
start
,
DateTime
?
end
,
string
skucategoryids
)
{
var
companyid
=
HttpContextHelper
.
Current
?.
User
?.
GetCompanyId
().
ToInt32
();
var
total
=
0
;
var
obj
=
new
Services
.
OrdersServices
().
ListFbaAbnormalOrder
(
parameter
,
account
,
website
,
start
,
end
,
orderno
,
companyid
,
ref
total
);
var
obj
=
new
Services
.
OrdersServices
().
ListFbaAbnormalOrder
(
parameter
,
account
,
website
,
start
,
end
,
orderno
,
companyid
,
ref
total
,
skucategoryids
);
var
list
=
obj
.
Select
(
p
=>
new
{
average_fba_fee
=
p
.
average_fba_fee
>
0
?
p
.
average_fba_fee
.
ToString
(
"N2"
)
:
"0"
,
...
...
@@ -551,14 +551,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <param name="end"></param>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
string
PlatformFeeAbnormalJson
(
BtTableParameter
parameter
,
string
platform
,
string
account
,
string
website
,
string
orderno
,
DateTime
?
start
,
DateTime
?
end
)
public
string
PlatformFeeAbnormalJson
(
BtTableParameter
parameter
,
string
platform
,
string
account
,
string
website
,
string
orderno
,
DateTime
?
start
,
DateTime
?
end
,
string
skucategoryids
)
{
var
companyid
=
HttpContextHelper
.
Current
?.
User
?.
GetCompanyId
().
ToInt32
();
var
total
=
0
;
var
service
=
new
Services
.
OrdersServices
();
var
obj
=
service
.
ListPlatformFeeAbnormal
(
parameter
,
platform
,
account
,
website
,
orderno
,
start
,
end
,
companyid
,
ref
total
);
var
obj
=
service
.
ListPlatformFeeAbnormal
(
parameter
,
platform
,
account
,
website
,
orderno
,
start
,
end
,
companyid
,
ref
total
,
skucategoryids
);
var
countM
=
service
.
ListPlatformFeeAbnormalCount
(
platform
,
account
,
website
,
orderno
,
start
,
end
,
companyid
);
var
countM
=
service
.
ListPlatformFeeAbnormalCount
(
platform
,
account
,
website
,
orderno
,
start
,
end
,
companyid
,
skucategoryids
);
countM
.
amount_product
=
Math
.
Round
(
countM
.
amount_product
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
cost_platform_fee
=
Math
.
Round
(
countM
.
cost_platform_fee
,
2
,
MidpointRounding
.
AwayFromZero
);
countM
.
seller_account
=
"总计:"
;
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/AmazonSaleStatistics.cshtml
View file @
4966511e
...
...
@@ -7,63 +7,77 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<div class="alert alert-warning">提示:1、因WMS接口原因,头程费还取不到,导致利润偏高;2、报表的收入、费用和利润都是取已发货部分的金额;3、预收款取的是未发货部分的销售额;4、所有金额和费用都是按sku维度获取的</div>
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label>仓库类型</label>
<select id="warehousetype" name="warehousetype" class="form-control">
<option value="">请选择仓库类型</option>
<option value="自发货仓">自发货仓</option>
<option value="第三方仓">第三方仓</option>
</select>
</div>
<div class="form-group">
<label> </label>
<select id="warehousecode" name="warehousecode" class="form-control">
<option value="">请选择仓库</option>
</select>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="sellaccount" name="sellaccount" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
<div id="leftcontain" style="position:relative;float:left;width:215px;margin-right:-220px;background-color:#fff;height:780px;border-top:solid 1px #E7EAEC;display:none;">
<div id="ztree" class="ztree" style="margin:5px 10px;max-height: 800px;overflow: auto;">
</div>
</div>
<div style="float:right;width:100%;">
<div id="rightcontain">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="showleft();">分类筛选</button>
</div>
<div class="form-group">
<label> </label>
<select id="warehousetype" name="warehousetype" class="form-control">
<option value="">请选择仓库类型</option>
<option value="自发货仓">自发货仓</option>
<option value="第三方仓">第三方仓</option>
</select>
</div>
<div class="form-group">
<label> </label>
<select id="warehousecode" name="warehousecode" class="form-control">
<option value="">请选择仓库</option>
</select>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="sellaccount" name="sellaccount" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
</div>
</div>
@section css{
<link href="~/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.alink {
color: cornflowerblue;
cursor: pointer;
...
...
@@ -71,6 +85,8 @@
</style>
}
@section scripts{
<script src="~/js/jquery.ztree.core.min.js"></script>
<script src="~/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var tb;
$(document).ready(function () {
...
...
@@ -91,6 +107,8 @@
$('#warehousetype').change(function () {
listWarehouse();
})
listcategory12();
})
function list() {
...
...
@@ -171,7 +189,15 @@
{ field: 'profit_rate', title: '总实际利润率%', width: '130', sortable: true, iscount: true },
];
var url = '@Url.Content("~/Reports/Orders/ListAmazonSaleStatisticsJson")' + '?' + $("#toolbar").serialize();
var s = '';
try {
s = getChkNode();
} catch (e) {
s = '';
}
var url = '@Url.Content("~/Reports/Orders/ListAmazonSaleStatisticsJson")' + '?' + $("#toolbar").serialize() + '&skucategoryids=' + s;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {showfooter: true, showCount: true});
...
...
@@ -244,6 +270,48 @@
}
function showleft() {
var c = $('#leftcontain').css('display');
if (c == 'none') {
$('#leftcontain').css('display', 'inline');
$("#rightcontain").animate({ marginLeft: "220px" });
}
else {
$('#leftcontain').css('display', 'none');
$("#rightcontain").animate({ marginLeft: "0px" });
}
}
function listcategory12() {
$.submit({
url: '@Url.Content("~/Reports/Orders/ListSkuCategoryOneAndSecondLevel")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle:'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, eval('('+result+')'));
}
})
}
function getChkNode() {
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var nodes = o.getCheckedNodes();
for (var i in nodes) {
if (nodes[i].children == null || nodes[i].children.length <= 0) {
s += (nodes[i].id) + '|';
}
}
return s;
}
</script>
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/FBAAbnormalOrder.cshtml
View file @
4966511e
...
...
@@ -8,45 +8,59 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label>销售帐号:</label>
<select id="account" name="account" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<input id="orderno" name="orderno" class="form-control" style="width:130px;" placeholder="平台订单号" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
<div id="leftcontain" style="position:relative;float:left;width:215px;margin-right:-220px;background-color:#fff;height:780px;border-top:solid 1px #E7EAEC;display:none;">
<div id="ztree" class="ztree" style="margin:5px 10px;max-height: 800px;overflow: auto;">
</div>
</div>
<div style="float:right;width:100%;">
<div id="rightcontain">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="showleft();">分类筛选</button>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="account" name="account" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<input id="orderno" name="orderno" class="form-control" style="width:130px;" placeholder="平台订单号" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
</div>
</div>
@section css{
<link href="~/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
<style>
.mules {
white-space: nowrap;
...
...
@@ -56,6 +70,8 @@
</style>
}
@section scripts{
<script src="~/js/jquery.ztree.core.min.js"></script>
<script src="~/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var tb;
$(document).ready(function () {
...
...
@@ -70,6 +86,7 @@
listAccount();
listWebsite();
listcategory12();
})
function list() {
...
...
@@ -93,7 +110,15 @@
{ field: 'create_time', title: '下单时间', width: '100', sortable: true }
];
var url = '@Url.Content("~/Reports/Orders/FBAabnormalOrderJson")' + '?' + $("#toolbar").serialize();
var s = '';
try {
s = getChkNode();
} catch (e) {
s = '';
}
var url = '@Url.Content("~/Reports/Orders/FBAabnormalOrderJson")' + '?' + $("#toolbar").serialize() + '&skucategoryids=' + s;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "",);
...
...
@@ -135,6 +160,48 @@
})
}
function showleft() {
var c = $('#leftcontain').css('display');
if (c == 'none') {
$('#leftcontain').css('display', 'inline');
$("#rightcontain").animate({ marginLeft: "220px" });
}
else {
$('#leftcontain').css('display', 'none');
$("#rightcontain").animate({ marginLeft: "0px" });
}
}
function listcategory12() {
$.submit({
url: '@Url.Content("~/Reports/Orders/ListSkuCategoryOneAndSecondLevel")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle:'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, eval('('+result+')'));
}
})
}
function getChkNode() {
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var nodes = o.getCheckedNodes();
for (var i in nodes) {
if (nodes[i].children == null || nodes[i].children.length <= 0) {
s += (nodes[i].id) + '|';
}
}
return s;
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/FBASaleStatistics.cshtml
View file @
4966511e
...
...
@@ -7,54 +7,70 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
@*<div class="form-group">
<label>统计维度:</label>
<select id="stype" name="stype" class="form-control">
<option value="1">按平台账号</option>
<option value="2">按销售员</option>
</select>
</div>*@
<div class="form-group">
<label>销售帐号:</label>
<select id="sellaccount" name="sellaccount" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
<div id="leftcontain" style="position:relative;float:left;width:215px;margin-right:-220px;background-color:#fff;height:780px;border-top:solid 1px #E7EAEC;display:none;">
<div id="ztree" class="ztree" style="margin:5px 10px;max-height: 800px;overflow: auto;">
</div>
</div>
<div style="float:right;width:100%;">
<div id="rightcontain">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="showleft();">分类筛选</button>
</div>
@*<div class="form-group">
<label>统计维度:</label>
<select id="stype" name="stype" class="form-control">
<option value="1">按平台账号</option>
<option value="2">按销售员</option>
</select>
</div>*@
<div class="form-group">
<label>销售帐号:</label>
<select id="sellaccount" name="sellaccount" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
</div>
</div>
@section css{
<link href="~/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.alink {
color: cornflowerblue;
cursor: pointer;
...
...
@@ -62,6 +78,8 @@
</style>
}
@section scripts{
<script src="~/js/jquery.ztree.core.min.js"></script>
<script src="~/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var tb;
$(document).ready(function () {
...
...
@@ -76,6 +94,8 @@
listAccount();
listWebsite();
listcategory12();
})
function list() {
...
...
@@ -156,7 +176,15 @@
{ field: 'profit_rate', title: '总实际利润率%', width: '130', sortable: true, iscount: true },
];
var url = '@Url.Content("~/Reports/Orders/ListFBASaleStatisticsJson")' + '?' + $("#toolbar").serialize();
var s = '';
try {
s = getChkNode();
} catch (e) {
s = '';
}
var url = '@Url.Content("~/Reports/Orders/ListFBASaleStatisticsJson")' + '?' + $("#toolbar").serialize() + '&skucategoryids=' + s;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", { showfooter: true, showCount: true });
...
...
@@ -202,6 +230,48 @@
layer_show(platform + " " + website + " " + $('#start').val() + "至" + $('#end').val() + ' 订单明细', '@Url.Content("~/Reports/Orders/ListOrderDetail?platform=")' + platform + '&website=' + website + '&account=' + account + '&start=' + $('#start').val() + '&end=' + $('#end').val() + '&col=' + colval + '&coltitle=' + coltitle + '&showsingle=' + single, '90%', '90%');
}
function showleft() {
var c = $('#leftcontain').css('display');
if (c == 'none') {
$('#leftcontain').css('display', 'inline');
$("#rightcontain").animate({ marginLeft: "220px" });
}
else {
$('#leftcontain').css('display', 'none');
$("#rightcontain").animate({ marginLeft: "0px" });
}
}
function listcategory12() {
$.submit({
url: '@Url.Content("~/Reports/Orders/ListSkuCategoryOneAndSecondLevel")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle:'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, eval('('+result+')'));
}
})
}
function getChkNode() {
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var nodes = o.getCheckedNodes();
for (var i in nodes) {
if (nodes[i].children == null || nodes[i].children.length <= 0) {
s += (nodes[i].id) + '|';
}
}
return s;
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/ListOrder.cshtml
View file @
4966511e
...
...
@@ -7,50 +7,64 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<input id="platform" name="platform" type="hidden" value="@ViewBag.platform" />
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="account" name="account" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<input id="orderno" name="orderno" class="form-control" style="width:130px;" placeholder="平台订单号" />
</div>
<div class="form-group">
<label> </label>
<input id="sku" name="sku" class="form-control" style="width:130px;" placeholder="sku编码" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
<div id="leftcontain" style="position:relative;float:left;width:215px;margin-right:-220px;background-color:#fff;height:780px;border-top:solid 1px #E7EAEC;display:none;">
<div id="ztree" class="ztree" style="margin:5px 10px;max-height: 800px;overflow: auto;">
</div>
</div>
<div style="float:right;width:100%;">
<div id="rightcontain">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<input id="platform" name="platform" type="hidden" value="@ViewBag.platform" />
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="showleft();">分类筛选</button>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="account" name="account" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<input id="orderno" name="orderno" class="form-control" style="width:130px;" placeholder="平台订单号" />
</div>
<div class="form-group">
<label> </label>
<input id="sku" name="sku" class="form-control" style="width:130px;" placeholder="sku编码" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
</div>
</div>
@section css{
<link href="~/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
<link href="~/css/bootstrap-table-fixed-columns.css" rel="stylesheet" />
<style>
.mules {
...
...
@@ -61,6 +75,8 @@
</style>
}
@section scripts{
<script src="~/js/jquery.ztree.core.min.js"></script>
<script src="~/js/jquery.ztree.excheck.min.js"></script>
<script src="~/js/bootstrap-table-fixed-columns.js" type="text/javascript"></script>
<script type="text/javascript">
var tb;
...
...
@@ -76,6 +92,8 @@
listAccount();
listWebsite();
listcategory12();
})
function list() {
...
...
@@ -115,7 +133,15 @@
{ field: 'order_update_time', title: '更新时间', width: '140', sortable: true }
];
var url = '@Url.Content("~/Reports/Orders/ListOrderJson")' + '?' + $("#toolbar").serialize();
var s = '';
try {
s = getChkNode();
} catch (e) {
s = '';
}
var url = '@Url.Content("~/Reports/Orders/ListOrderJson")' + '?' + $("#toolbar").serialize() + '&skucategoryids=' + s;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
...
...
@@ -176,6 +202,48 @@
})
}
function showleft() {
var c = $('#leftcontain').css('display');
if (c == 'none') {
$('#leftcontain').css('display', 'inline');
$("#rightcontain").animate({ marginLeft: "220px" });
}
else {
$('#leftcontain').css('display', 'none');
$("#rightcontain").animate({ marginLeft: "0px" });
}
}
function listcategory12() {
$.submit({
url: '@Url.Content("~/Reports/Orders/ListSkuCategoryOneAndSecondLevel")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle:'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, eval('('+result+')'));
}
})
}
function getChkNode() {
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var nodes = o.getCheckedNodes();
for (var i in nodes) {
if (nodes[i].children == null || nodes[i].children.length <= 0) {
s += (nodes[i].id) + '|';
}
}
return s;
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/PlatformFeeAbnormal.cshtml
View file @
4966511e
...
...
@@ -2,51 +2,66 @@
@{
ViewData["Title"] = "平台费异常订单";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
ViewBag.Nav = new string[] {
"统计","亚马逊",
"平台费用异常订单" };
ViewBag.Nav = new string[] {
"统计", "亚马逊",
"平台费用异常订单" };
}
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<input id="platform" name="platform" type="hidden" value="@ViewBag.platform" />
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="account" name="account" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<input id="orderno" name="orderno" class="form-control" style="width:130px;" placeholder="平台订单号" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
<div id="leftcontain" style="position:relative;float:left;width:215px;margin-right:-220px;background-color:#fff;height:780px;border-top:solid 1px #E7EAEC;display:none;">
<div id="ztree" class="ztree" style="margin:5px 10px;max-height: 800px;overflow: auto;">
</div>
</div>
<div style="float:right;width:100%;">
<div id="rightcontain">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<input id="platform" name="platform" type="hidden" value="@ViewBag.platform" />
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="showleft();">分类筛选</button>
</div>
<div class="form-group">
<label>站点:</label>
<select id="website" name="website" class="form-control">
<option value="">选择站点</option>
</select>
</div>
<div class="form-group">
<label>销售帐号:</label>
<select id="account" name="account" class="form-control" style="width:160px;">
<option value="">选择帐号</option>
</select>
</div>
<div class="form-group">
<label>付款时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<input id="orderno" name="orderno" class="form-control" style="width:130px;" placeholder="平台订单号" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
</div>
</div>
@section css{
<link href="~/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
<style>
.mules {
white-space: nowrap;
...
...
@@ -56,6 +71,8 @@
</style>
}
@section scripts{
<script src="~/js/jquery.ztree.core.min.js"></script>
<script src="~/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var tb;
$(document).ready(function () {
...
...
@@ -70,6 +87,7 @@
listAccount();
listWebsite();
listcategory12();
})
function list() {
...
...
@@ -89,7 +107,15 @@
{ field: 'create_time', title: '下单时间', width: '140', sortable: true }
];
var url = '@Url.Content("~/Reports/Orders/PlatformFeeAbnormalJson")' + '?' + $("#toolbar").serialize();
var s = '';
try {
s = getChkNode();
} catch (e) {
s = '';
}
var url = '@Url.Content("~/Reports/Orders/PlatformFeeAbnormalJson")' + '?' + $("#toolbar").serialize() + '&skucategoryids=' + s;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
...
...
@@ -147,6 +173,48 @@
})
}
function showleft() {
var c = $('#leftcontain').css('display');
if (c == 'none') {
$('#leftcontain').css('display', 'inline');
$("#rightcontain").animate({ marginLeft: "220px" });
}
else {
$('#leftcontain').css('display', 'none');
$("#rightcontain").animate({ marginLeft: "0px" });
}
}
function listcategory12() {
$.submit({
url: '@Url.Content("~/Reports/Orders/ListSkuCategoryOneAndSecondLevel")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle:'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, eval('('+result+')'));
}
})
}
function getChkNode() {
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var nodes = o.getCheckedNodes();
for (var i in nodes) {
if (nodes[i].children == null || nodes[i].children.length <= 0) {
s += (nodes[i].id) + '|';
}
}
return s;
}
</script>
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment