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
27c09521
Commit
27c09521
authored
Aug 29, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每日发生额增加查看明细和导出明细功能
parent
43a2187b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1298 additions
and
4 deletions
+1298
-4
dc_base_oms_pick.cs
Bailun.DC.Models/dc_base_oms_pick.cs
+5
-0
dc_semi_purchase_info.cs
Bailun.DC.Models/dc_semi_purchase_info.cs
+5
-0
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+0
-0
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+0
-0
HappenAmountCount.cshtml
....Web/Areas/Reports/Views/Finance/HappenAmountCount.cshtml
+61
-4
ListFirstSupplierHappen.cshtml
...reas/Reports/Views/Finance/ListFirstSupplierHappen.cshtml
+123
-0
ListFirstSupplierPay.cshtml
...b/Areas/Reports/Views/Finance/ListFirstSupplierPay.cshtml
+125
-0
ListFirstSupplierSale.cshtml
.../Areas/Reports/Views/Finance/ListFirstSupplierSale.cshtml
+126
-0
ListHeadLogistic.cshtml
...C.Web/Areas/Reports/Views/Finance/ListHeadLogistic.cshtml
+125
-0
ListHeadLogisticHappen.cshtml
...Areas/Reports/Views/Finance/ListHeadLogisticHappen.cshtml
+107
-0
ListHeadLogisticSale.cshtml
...b/Areas/Reports/Views/Finance/ListHeadLogisticSale.cshtml
+123
-0
ListSecondSupplierHappen.cshtml
...eas/Reports/Views/Finance/ListSecondSupplierHappen.cshtml
+126
-0
ListSecondSupplierPay.cshtml
.../Areas/Reports/Views/Finance/ListSecondSupplierPay.cshtml
+124
-0
ListTailLogisticHappen.cshtml
...Areas/Reports/Views/Finance/ListTailLogisticHappen.cshtml
+125
-0
ListTailLogisticSale.cshtml
...b/Areas/Reports/Views/Finance/ListTailLogisticSale.cshtml
+123
-0
No files found.
Bailun.DC.Models/dc_base_oms_pick.cs
View file @
27c09521
...
...
@@ -164,5 +164,10 @@ namespace Bailun.DC.Models
/// 销售成本
/// </summary>
public
decimal
amount_sale_count
{
get
;
set
;
}
/// <summary>
/// sku采购价
/// </summary>
public
decimal
bailun_sku_unit_price
{
get
;
set
;
}
}
}
Bailun.DC.Models/dc_semi_purchase_info.cs
View file @
27c09521
...
...
@@ -210,5 +210,10 @@ namespace Bailun.DC.Models
/// </summary>
public
int
isallot
{
get
;
set
;
}
/// <summary>
/// 金额
/// </summary>
public
decimal
amount
{
get
;
set
;
}
}
}
Bailun.DC.Services/FinanceReportServices.cs
View file @
27c09521
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
27c09521
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Views/Finance/HappenAmountCount.cshtml
View file @
27c09521
...
...
@@ -144,7 +144,7 @@
var end_time;
var dateWay = $('#dateWay').val();
if (dateWay == 2) { //周
if (dateWay == 2) { //
按
周
var s = categoryname.substr(0, 9);
var arr = s.split('-');
...
...
@@ -156,10 +156,24 @@
end_time = new Date((now.getFullYear() + 1) + '-' + arr[1].substr(0, 2) + '-' + arr[0].substr(2, 2))
}
}
else if (dateWay == 3) {
else if (dateWay == 3) { //按月
var s = categoryname.substr(0, 2);
var now = new Date();
var day = new Date(now.getFullYear(), s, 0).getDate();
start_time = new Date(now.getFullYear() + '-' + s + '-01');
end = new Date(now.getFullYear() + '-' + s + '-' + day);
}
else if (dateWay == 1) { //按日
var s = categoryname.substr(0, 4);
var arr = s.substr(0, 2);
var now = new Date();
start_time = new Date(now.getFullYear() + "-" + s.substr(0, 2) + '-' + s.substr(2, 2));
end_time = start_time;
}
if (rows == 1) { //管理成本
if (categoryname.indexOf('销售') > 0) {
layer_show(categoryname + ' 管理成本明细', '@Url.Content("~/Reports/Finance/ListPayAdminCost?type=3&start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
...
...
@@ -167,9 +181,52 @@
else {
layer_show(categoryname + ' 管理成本明细', '@Url.Content("~/Reports/Finance/ListPayAdminCostCount?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
}
else if (rows == 2) { //头程物流
if (categoryname.indexOf("付款") > 0) {
layer_show(categoryname + ' 头程物流付款额明细', '@Url.Content("~/Reports/Finance/ListHeadLogistic?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("发生") > 0) {
layer_show(categoryname + ' 头程物流发生额明细', '@Url.Content("~/Reports/Finance/ListHeadLogisticHappen?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("销售") > 0) {
layer_show(categoryname + ' 头程物流销售额明细', '@Url.Content("~/Reports/Finance/ListHeadLogisticSale?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
}
else if (rows == 3) { //尾程物流
if (categoryname.indexOf("付款") > 0) {
alert('尾程付款额已和头程付款额合并。');
}
else if (categoryname.indexOf("发生") > 0) {
layer_show(categoryname + ' 尾程物流发生额明细', '@Url.Content("~/Reports/Finance/ListTailLogisticHappen?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("销售") > 0) {
layer_show(categoryname + ' 尾程物流销售额明细', '@Url.Content("~/Reports/Finance/ListTailLogisticSale?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
}
else if (rows == 4) { //一级供应商采购
if (categoryname.indexOf("付款") > 0) {
layer_show(categoryname + ' 一级供应商付款额明细', '@Url.Content("~/Reports/Finance/ListFirstSupplierPay?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("发生") > 0) {
layer_show(categoryname + ' 一级供应商发生额明细', '@Url.Content("~/Reports/Finance/ListFirstSupplierHappen?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("销售") > 0) {
layer_show(categoryname + ' 一级供应商销售额明细', '@Url.Content("~/Reports/Finance/ListFirstSupplierSale?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
}
else if (rows == 5) //二级供应商采购
{
if (categoryname.indexOf("付款") > 0) {
layer_show(categoryname + ' 二级供应商付款额明细', '@Url.Content("~/Reports/Finance/ListSecondSupplierPay?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("发生") > 0) {
layer_show(categoryname + ' 二级供应商发生额明细', '@Url.Content("~/Reports/Finance/ListSecondSupplierHappen?start=")' + start_time.toLocaleDateString() + '&end=' + end_time.toLocaleDateString(), '90%', '90%');
}
else if (categoryname.indexOf("销售") > 0) {
alert('二级供应商销售额已和一级供应商销售额合并。');
}
}
//layer_show(categoryname +' '+ colname+' 的Sku明细', '@Url.Content("~/Reports/Warehouse/ListDailyPurchaseSales?categoryname=")' + categoryname + '&colname=' + colname + '&dateWay=' + $('#dateWay').val() + '&t=' + $('#t').val(), '90%', '90%');
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/ListFirstSupplierHappen.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "一级供应商发生额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'purchase_id', title: '采购单号', width: '130' },
{ field: 'bailun_sku', title: 'Sku', width: '110', iscount: true },
{ field: 'quantity_purchase', title: '采购数量', width: '110' },
{ field: 'unit_price', title: '采购价', width: '160' },
{ field: 'amount', title: '采购金额', width: '110', iscount: true },
{ field: 'create_time', title: '下单时间', width: '100' },
];
var url = '@Url.Content("~/Reports/Finance/ListFirstSupplierHappenJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportFirstSupplierHappen?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListFirstSupplierPay.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "一级供应商付款额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'code', title: '出纳单编码', width: '130' },
{ field: 'detail_name', title: '申请标题', width: '110' },
{ field: 'type_name', title: '费用大类', width: '110' },
{ field: 'companymain_name_from', title: '公司主体名称', width: '160', iscount: true },
{ field: 'paymoney_rmb', title: '交易总金额', width: '110', iscount: true },
{ field: 'cashier_paymoneyrmb', title: '出纳金额', width: '100', iscount: true },
{ field: 'cashier_time', title: '出纳时间', width: '130' },
];
var url = '@Url.Content("~/Reports/Finance/ListFirstSupplierPayJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportFirstSupplierPay?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListFirstSupplierSale.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "一级供应商销售额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'origin_order_id', title: '平台单号', width: '160' },
{ field: 'pick_order_id', title: '配货单号', width: '130' },
{ field: 'tracking_order_id', title: '物流跟踪号', width: '130' },
{ field: 'bailun_sku', title: 'Sku', width: '100', iscount: true },
{ field: 'quantity_shipped', title: '发货数量', width: '100' },
{ field: 'bailun_sku_unit_price', title: '采购价', width: '100' },
{ field: 'amount_sale_count', title: '发货成本', width: '130', iscount: true },
{ field: 'shipping_time', title: '发货时间', width: '130' },
];
var url = '@Url.Content("~/Reports/Finance/ListFirstSupplierSaleJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportFirstSupplierSale?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListHeadLogistic.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "头程物流付款额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'code', title: '出纳单编码', width: '130' },
{ field: 'detail_name', title: '申请标题', width: '110' },
{ field: 'type_name', title: '费用大类', width: '110' },
{ field: 'companymain_name_from', title: '公司主体名称', width: '160', iscount: true },
{ field: 'paymoney_rmb', title: '交易总金额', width: '110',iscount: true },
{ field: 'cashier_paymoneyrmb', title: '出纳金额', width: '100', iscount: true },
{ field: 'cashier_time', title: '出纳时间', width: '130' },
];
var url = '@Url.Content("~/Reports/Finance/ListHeadLogisticJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportHeadLogisticPay?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListHeadLogisticHappen.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "头程物流发生额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'channel_order_id', title: '物流单号', width: '130' },
{ field: 'box_id', title: '箱号', width: '100' },
{ field: 'transfer_order_id', title: '调拨单号', width: '130' },
{ field: 'cost_first', title: '头程费', width: '100' },
{ field: 'operation_time', title: '操作时间', width: '130' }
];
var url = '@Url.Content("~/Reports/Finance/ListHeadLogisticHappenJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "");
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportHeadLogisticHappen?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListHeadLogisticSale.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "头程物流销售额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'platform_type', title: '平台类型', width: '130' },
{ field: 'origin_order_id', title: '平台单号', width: '100' },
{ field: 'bailun_sku', title: 'Sku', width: '130', iscount: true },
{ field: 'cost_first', title: '头程费', width: '100', iscount: true },
{ field: 'create_time', title: '下单时间', width: '130' }
];
var url = '@Url.Content("~/Reports/Finance/ListHeadLogisticSaleJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportPayAdminCost?type="+ViewBag.type+"&start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListSecondSupplierHappen.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "二级供应商发生额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'purchase_id', title: '半成品采购单号', width: '130' },
{ field: 'bailun_sku', title: 'Sku', width: '110', iscount: true },
{ field: 'quantity_purchase', title: '采购数量', width: '110' },
{ field: 'unit_price', title: '采购价', width: '160' },
{ field: 'amount', title: '采购金额', width: '110', iscount: true },
{ field: 'create_time', title: '下单时间', width: '100' },
];
var url = '@Url.Content("~/Reports/Finance/ListSecondSupplierHappenJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportSecondSupplierHappen?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListSecondSupplierPay.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "二级供应商付款额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'code', title: '出纳单编码', width: '130' },
{ field: 'detail_name', title: '申请标题', width: '110' },
{ field: 'type_name', title: '费用大类', width: '110' },
{ field: 'companymain_name_from', title: '公司主体名称', width: '160', iscount: true },
{ field: 'paymoney_rmb', title: '交易总金额', width: '110' },
{ field: 'cashier_paymoneyrmb', title: '出纳金额', width: '100', iscount: true },
{ field: 'cashier_time', title: '出纳时间', width: '130' },
];
var url = '@Url.Content("~/Reports/Finance/ListSecondSupplierPayJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportSecondSupplierPay?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListTailLogisticHappen.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "尾程物流发生额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'origin_order_id', title: '平台单号', width: '160' },
{ field: 'pick_order_id', title: '配货单号', width: '130' },
{ field: 'tracking_order_id', title: '物流跟踪号', width: '130' },
{ field: 'bailun_sku', title: 'Sku', width: '100', iscount: true },
{ field: 'cost_tail', title: '尾程费', width: '130', iscount: true },
{ field: 'shipping_time', title: '发货时间', width: '130' },
];
var url = '@Url.Content("~/Reports/Finance/ListTailLogisticHappenJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportTailLogisticHappen?start=")' + start + '&end=' + end, '_blank');
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/ListTailLogisticSale.cshtml
0 → 100644
View file @
27c09521
@{
ViewData["Title"] = "尾程物流销售额明细";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
<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>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(ViewBag.start)" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(ViewBag.end)" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-success" onclick="list();">搜索</button>
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
@section css{
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script type="text/javascript">
var tb;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
})
function list() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
var columns = [
{ field: 'platform_type', title: '平台类型', width: '160' },
{ field: 'origin_order_id', title: '平台单号', width: '130' },
{ field: 'bailun_sku', title: 'Sku', width: '130', iscount: true },
{ field: 'cost_tail', title: '尾程费', width: '130', iscount: true },
{ field: 'paid_time', title: '付款时间', width: '130' },
];
var url = '@Url.Content("~/Reports/Finance/ListTailLogisticSaleJson")' + '?start=' + start + '&end=' + end;
if (tb == undefined) {
tb = OnlyTable("roletable", columns, url, "", {
showfooter: true, loadsuccess: function (d) {
//替换汇总行的相关列值
var tr = $('.fixed-table-footer').find('tr');
for (var c in columns) {
var key = columns[c].field;
if (columns[c].iscount) {
for (var v in d.count_row) {
if (key == v) {
tr.find('td').eq(c).children('div').first().html(d.count_row[v]);
break;
}
}
}
}
}
});
}
else {
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
var start = $('#start').val();
var end = $('#end').val();
if (start == '') {
alert('请选择开始日期');
return false;
}
if (end == '') {
alert('请选择结束日期');
return false;
}
window.open('@Url.Content("~/Reports/Finance/ExportTailLogisticSale?start=")' + start + '&end=' + end, '_blank');
}
</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