Commit 23b503f7 by jianshuqin

修改功能:调整接口

parent 39cb30ce
......@@ -456,7 +456,7 @@ namespace Bailun.DC.Services
/// <returns></returns>
public string UpdateLogisticsEndAmount(DateTime day,decimal amount)
{
var url = "http://api.dcjava.bailuntec.com/updateSheetLogisticsSupplier?date=" + day.ToString("yyyy-MM-dd")+"&logisticsPayableSum="+amount;
var url = "http://finance-balance-sheet.data-center-job:8080/updateSheetLogisticsSupplier?date=" + day.ToString("yyyy-MM-dd")+"&logisticsPayableSum="+amount;
var result = Common.HttpHelper.NetHelper.Request(url);
......@@ -480,7 +480,7 @@ namespace Bailun.DC.Services
/// <returns></returns>
public string UpdateLogisticsEndAmount(DateTime day, decimal amount,string paramname)
{
var url = "http://api.dcjava.bailuntec.com/updateSheetLogisticsSupplier?date=" + day.ToString("yyyy-MM-dd") + "&"+ paramname+"=" + amount;
var url = "http://finance-balance-sheet.data-center-job:8080/updateSheetLogisticsSupplier?date=" + day.ToString("yyyy-MM-dd") + "&"+ paramname+"=" + amount;
var result = Common.HttpHelper.NetHelper.Request(url);
......
......@@ -906,7 +906,7 @@
var day = $('#' + c).attr('dd');
$.submit({
url: 'http://api.dcjava.bailuntec.com/balanceSheetModify/record',
url: 'http://finance-balance-sheet.data-center-job:8080/balanceSheetModify/record',
paramData: '{"statistical_time":"' + day + '","' + c + '":' + val + ',"company_value":0,"company_name":"百伦供应链"}',
contenttype: 'application/json',
type: 'POST',
......
......@@ -215,7 +215,7 @@
obj[col] = val;
$.submit({
url: 'http://api.dcjava.bailuntec.com/balanceSheetModify/record',
url: 'http://finance-balance-sheet.data-center-job:8080/balanceSheetModify/record',
paramData: '{"statistical_time":"' + mon.split('T')[0] + '","' + col + '":' + val +',"company_value":0,"company_name":"百伦供应链"}',
contenttype:'application/json',
type:'POST',
......
......@@ -28,13 +28,14 @@
<select id="sel_paycompany" class="form-control" style="width:200px;">
<option value="0">百伦供应链</option>
@*<option value="1">广州百伦科技有限公司</option>
<option value="2" selected>香港百伦科技有限公司</option>*@
<option value="2" selected>香港百伦科技有限公司</option>*@
</select>
<button type="button" class="btn btn-sm btn-primary" onclick="GetData();"><i class="fa fa-search"></i>&nbsp;查询</button>
<button id="btnexport" style="display:none;" type="button" class="btn btn-sm btn-success" onclick="ExportXsl();">导出</button>
<button type="button" class="btn btn-sm btn-warning" onclick="showchart();">环比报表</button>
<button type="button" class="btn btn-sm btn-primary" onclick="showtask();">任务运行情况</button>
<button type="button" class="btn btn-sm btn-success" onclick="resync();">重新同步数据</button>
</div>
</div>
</form>
......@@ -362,18 +363,18 @@
<div style="width:8%;"></div>
</div>
@*<div class="item-row fa fa1" style="width:100%;">
<div style="width:11.5%;color:#bbb;">3.存货FBA仓在途</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;">
<input id="fba_transfer_amount" class="txtinput" type="number" value="0" style="width:110px;height:24px;line-height:24px;" /><span id="ncl_bonds_payable_1"></span>
</div>
<div style="width:8%;"></div>
</div>*@
<div style="width:11.5%;color:#bbb;">3.存货FBA仓在途</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;" class="fba_transfer_amount">0</div>
<div style="width:11.5%;">
<input id="fba_transfer_amount" class="txtinput" type="number" value="0" style="width:110px;height:24px;line-height:24px;" /><span id="ncl_bonds_payable_1"></span>
</div>
<div style="width:8%;"></div>
</div>*@
<div class="item-row fa fa1" style="width:100%;">
<div style="width:11.5%;color:#bbb;background-color:#b1dae4;" title="3.存货FBA仓在途(不包括调拨计划)">3.存货FBA仓在途(不包括调拨计划)</div>
<div style="width:11.5%;" class="fba_transfer_allot_amount">0</div>
......@@ -403,18 +404,18 @@
<div style="width:8%;"></div>
</div>
@*<div class="item-row fa fa1" style="width:100%;">
<div style="width:11.5%;color:#bbb;">4.存货非FBA仓在途</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;">
<input id="not_fba_transfer_amount" class="txtinput" type="number" value="0" style="width:110px;height:24px;line-height:24px;" /><span id="ncl_bonds_payable_1"></span>
</div>
<div style="width:8%;"></div>
</div>*@
<div style="width:11.5%;color:#bbb;">4.存货非FBA仓在途</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;" class="not_fba_transfer_amount">0</div>
<div style="width:11.5%;">
<input id="not_fba_transfer_amount" class="txtinput" type="number" value="0" style="width:110px;height:24px;line-height:24px;" /><span id="ncl_bonds_payable_1"></span>
</div>
<div style="width:8%;"></div>
</div>*@
<div class="item-row fa fa1" style="width:100%;">
<div style="width:11.5%;color:#bbb;background-color:#b1dae4;" title="5.存货非FBA仓在途(不包括调拨计划)">5.存货非FBA仓在途(不包括调拨计划)</div>
<div style="width:11.5%;" class="not_fba_transfer_allot_amount">0</div>
......@@ -1428,23 +1429,34 @@
text-align: center;
}
.item-row{border-bottom:solid 1px #eee;border-right:solid 1px #eee;}
.item-row:hover{background-color:#eee;}
.item-row div{cursor:pointer;}
.item-col, .item-row div {
/*margin: -1px;
.item-row {
border-bottom: solid 1px #eee;
border-right: solid 1px #eee;
}
.item-row:hover {
background-color: #eee;
}
.item-row div {
cursor: pointer;
}
.item-col, .item-row div {
/*margin: -1px;
border: solid 1px #eee;
border-right-width: 0px;*/
height: 32px;
line-height: 32px;
border-right:solid 1px #eee;
height: 32px;
line-height: 32px;
border-right: solid 1px #eee;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.second-row div {
border-left-width: 0px;
}
.second-row div{border-left-width:0px;}
</style>
}
......@@ -1522,7 +1534,7 @@
_head = _head.substring(0, _head.length - 1);
_val = _val.substring(0, _val.length - 1);
}
layer_show(_html, '@Url.Content("~/Reports/Finance/Index2TrendChart?colname=")' + _html + '&head=' + _head + '&vals=' + _val,'90%','90%');
})
}
......@@ -1558,7 +1570,7 @@
func: function (result) {
if (result.success) {
var list = result.data;
_data = [];
var obj = list[list.length - 1];
......@@ -1584,7 +1596,7 @@
$('#' + key).parent().removeClass(key);
}
//$('#' + key).val(obj[key]);
}
for (var i = 0; i < list.length; i++) {
......@@ -1594,7 +1606,7 @@
var day = obj.statistical_time.replace('T', ' ').replace('00:00:00', '');
$('#c' + (i)).html(day);
for (var key in obj) {
$('.' + key).each(function (j) {
if (j == i) {
$(this).attr('title', day);
......@@ -1602,7 +1614,7 @@
if (i < list.length - 1) {
$(this).html(numFormat(obj[key]));
}
if (obj["ismark"] == 1) {
$(this).css('background', '#00A45F');
$(this).css('color', '#fff');
......@@ -1823,6 +1835,27 @@
layer_show('任务运行情况', '@Url.Content("~/Reports/Finance/BalanceSheetTask")', '90%', '90%');
}
function resync() {
var day = $('#day').val();
if (day == '') {
alert('请选择日期');
return false;
}
debugger;
$.ajax({
url: 'http://finance-balance-sheet.data-center-job:8080/reload?localDate',
type: "POST",
data: { localDate:day},
success: function (result) {
debugger;
alert('重新同步成功!');
},
error: function () {
debugger;
alert(err.statusText);
}
});
}
</script>
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment