You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
647 lines
21 KiB
Plaintext
647 lines
21 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultNew.aspx.cs" Inherits="TradeManage.DefaultNew" %>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
|
|
<link rel="stylesheet" href="css/style/base.css" type="text/css" />
|
|
<link rel="stylesheet" href="css/style/main.css" type="text/css" />
|
|
<link href="themes/New.css" rel="stylesheet" type="text/css" />
|
|
<link rel="stylesheet" type="text/css" href="New/css/newMain.css"/>
|
|
<link rel="stylesheet" type="text/css" href="New/css/clock.css"/>
|
|
<script src="js2/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="js2/jquery.min.js" type="text/javascript"></script>
|
|
<script src="js2/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="Scripts/Global.js" type="text/javascript"></script>
|
|
|
|
<%--<script src="Scripts/highcharts.js" type="text/javascript" charset="utf-8"></script>--%>
|
|
<script src="Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
ajaxInit(null);
|
|
// SetTime();
|
|
// setInterval("SetTime()", 60000);
|
|
//if (UserId == 1) {
|
|
// $("#container").show();
|
|
// $("#mq1").hide();
|
|
// GetBasePlat();
|
|
//}
|
|
|
|
//GetDefaultUnRead();
|
|
// GetShopList();
|
|
|
|
// $("#a_2").bind("click", function () {
|
|
|
|
// window.parent.addTab("店铺数据", "SysManage/ShopData.aspx?checkstate=4", true);
|
|
|
|
// });
|
|
// $("#sp7").bind("click", function () {
|
|
|
|
// window.parent.addTab("选品", "XP_GoodsSelect.aspx", true);
|
|
// //window.open("XP_GoodsSelect.aspx");
|
|
// });
|
|
// $("#sp8").bind("click", function () {
|
|
|
|
// window.open("SysManage/DD_BackMoneyApply.aspx");
|
|
// $("#sp8").html("订单赔款申请");
|
|
// //window.open("XP_GoodsSelect.aspx");
|
|
// });
|
|
// $("#sp9").bind("click", function () {
|
|
|
|
// window.open("SysManage/Room.aspx");
|
|
|
|
// //window.open("XP_GoodsSelect.aspx");
|
|
// });
|
|
// $("#a_sq").bind("click", function () {
|
|
|
|
// window.parent.addTab("店铺管理", "SysManage/ShopList.htm", true);
|
|
|
|
// });
|
|
// $("#a_sku").bind("click", function () {
|
|
|
|
// window.parent.addTab("货物编号SKU", "HuoWu/HW_GoodsInfoForTM2.aspx", true);
|
|
|
|
// });
|
|
// $("#a_dd").bind("click", function () {
|
|
|
|
// window.parent.addTab("订单列表", "DingDan/DD_OrderListForTM2.aspx", true);
|
|
|
|
// });
|
|
// $("#ggmore").bind("click", function () {
|
|
|
|
// window.parent.addTab("公共信息发布", "SysManage/GG_NoticeList.aspx", true);
|
|
|
|
// });
|
|
// $("#tjmore").bind("click", function () {
|
|
|
|
// window.parent.addTab("订单统计", "TongJi/TJ_OrderCount.aspx", true);
|
|
|
|
// });
|
|
// $("#a_wl").bind("click", function () {
|
|
|
|
// window.parent.addTab("物流渠道", "SysManage/ExpressList.aspx", true);
|
|
|
|
// });
|
|
// $("#btn_Link").bind("click", function () {
|
|
|
|
// window.parent.addTab("店铺管理", "SysManage/ShopAdd.aspx", true);
|
|
|
|
// });
|
|
// $("#btn_Close").bind("click", function () {
|
|
|
|
// $.fancybox.close();
|
|
// });
|
|
// $("#tz_sx").bind("click", function () {
|
|
|
|
// GetNoticeList();
|
|
// });
|
|
|
|
|
|
// GetNoticeList();
|
|
|
|
|
|
// // GetGGNoticeList();
|
|
|
|
// $(".clockbank.beijingclock").initClock({
|
|
// placename: '北京时间',
|
|
// });
|
|
// $(".clockbank.americaclock").initClock({
|
|
// placename: '美国时间',
|
|
// hour: -12,
|
|
// });
|
|
// $(".clockbank.englandclock").initClock({
|
|
// placename: '英国时间',
|
|
// hour: -7,
|
|
// });
|
|
// GetDefaultData();
|
|
});
|
|
|
|
function GetBasePlat() {
|
|
|
|
var param = new Object();
|
|
param.CompanyID = 0;
|
|
param.KeyName = "ptlx";
|
|
|
|
$.ajax({
|
|
url: "UserService.asmx/GetPlatBaseCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
|
|
|
|
if (data.d != null) {
|
|
listshop = data.d;
|
|
|
|
GetOrderNumCount();
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
function fopen() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'topRatio': 0,
|
|
'leftRatio': 0,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
}
|
|
function GetOrderBackNum() {
|
|
|
|
var param = new Object();
|
|
|
|
param.PlatType = 0;
|
|
|
|
|
|
$.ajax({
|
|
url: "BaseData.asmx/GetOrderBackNum",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
|
|
if (data.d != null) {
|
|
$("#sp8").html("订单赔款申请【" + data.d.NoPKNum + "】");
|
|
if (UserId > 1) {
|
|
$("#sp7").html("选品系统【" + data.d.NoXPNum + "】");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
setTimeout("GetOrderBackNum()", 60000);
|
|
}
|
|
function GetShopList() {
|
|
|
|
var param = new Object();
|
|
|
|
param.PlatType = 0;
|
|
|
|
|
|
$.ajax({
|
|
url: "BaseData.asmx/GetShopAllList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
|
|
if (data.d != null) {
|
|
listshop = data.d;
|
|
|
|
GetOrderNumCount(2);
|
|
|
|
}
|
|
else {
|
|
fopen();
|
|
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
var cate = new Array();
|
|
var datas = "";
|
|
var days = 15;
|
|
var listshop = new Array();
|
|
function GetOrderNumCount(Type) {
|
|
var param = new Object();
|
|
var list = new Array();
|
|
if (listshop == null || listshop.length == 0) {
|
|
var md = new Object();
|
|
md.Id = 0;
|
|
md.Name = "";
|
|
Array.add(list, md);
|
|
|
|
}
|
|
else if (Type == 1) {
|
|
$(listshop).each(function () {
|
|
var md = new Object();
|
|
md.Id = this.SortNo;
|
|
md.Name = this.Name;
|
|
Array.add(list, md);
|
|
|
|
});
|
|
}
|
|
else if (Type == 2) {
|
|
$(listshop).each(function () {
|
|
var md = new Object();
|
|
md.Id = this.ShopId;
|
|
md.Name = this.ShopName;
|
|
Array.add(list, md);
|
|
|
|
});
|
|
}
|
|
param.listshop = list;
|
|
|
|
|
|
param.Days = days;
|
|
param.Type = Type;
|
|
|
|
$.ajax({
|
|
url: "TongJi/TJ_CountServer.asmx/GetDefaultOrderCount1",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
async: true,
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
|
|
cate = data.d.categories;
|
|
datas = data.d.Data;
|
|
SetChart();
|
|
}
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
function getData() {
|
|
|
|
//var data = "[{name: '速卖通',data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]}, {name: '亚马逊',data: [5, 5.5, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]}, {name: 'EBay',data: [3, 3, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]}, {name: 'Wish',data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]}]";
|
|
var dataJsonobj = eval("(" + datas + ")"); //转换成json对象
|
|
|
|
return dataJsonobj;
|
|
|
|
}
|
|
function SetChart() {
|
|
|
|
$('#container').highcharts({
|
|
title: {
|
|
text: '最近15天订单走势图',
|
|
x: -20 //center
|
|
},
|
|
subtitle: {
|
|
text: '订单走势',
|
|
x: -20
|
|
},
|
|
xAxis: {
|
|
categories: cate
|
|
},
|
|
yAxis: {
|
|
|
|
|
|
minPadding: 0,
|
|
startOnTick: false,
|
|
title: {
|
|
text: '订单量'
|
|
},
|
|
plotLines: [{
|
|
value: 0,
|
|
width: 1,
|
|
color: '#808080'
|
|
}]
|
|
},
|
|
tooltip: {
|
|
valueSuffix: '(个)'
|
|
},
|
|
legend: {
|
|
layout: 'vertical',
|
|
align: 'right',
|
|
verticalAlign: 'middle',
|
|
borderWidth: 0
|
|
},
|
|
series: getData()
|
|
});
|
|
|
|
}
|
|
function SetTime() {
|
|
|
|
|
|
|
|
var myDate = new Date();
|
|
var h = myDate.getHours();
|
|
var m = myDate.getMinutes();
|
|
$("#tmzg").html(GetTime(0, h, m));
|
|
|
|
$("#tmmg").html(GetTime(12, h, m));
|
|
$("#tmels").html(GetTime(-4, h, m));
|
|
$("#tmbx").html(GetTime(-11, h, m));
|
|
$("#tmadly").html(GetTime(2, h, m));
|
|
$("#tmxby").html(GetTime(-7, h, m));
|
|
|
|
$("#tmdg").html(GetTime(-6, h, m));
|
|
$("#tmfg").html(GetTime(-6, h, m));
|
|
$("#tmydl").html(GetTime(-6, h, m));
|
|
$("#tmrb").html(GetTime(2, h, m));
|
|
|
|
}
|
|
|
|
function GetTime(sc, h, m) {
|
|
|
|
|
|
if (parseInt(sc) > 12 || parseInt(sc) < -12)
|
|
h = h + 24 + sc;
|
|
else
|
|
h = h + sc;
|
|
if (h >= 24)
|
|
h = h - 24;
|
|
if (parseInt(h) < 10)
|
|
h = "0" + h;
|
|
if (parseInt(m) < 10)
|
|
m = "0" + m;
|
|
if (h == 24)
|
|
h = "00";
|
|
return h + ":" + m;
|
|
|
|
|
|
}
|
|
function GetDefaultData() {
|
|
var param = new Object();
|
|
var st = new Date();
|
|
param.st = st; //'2015-04-10';
|
|
param.MRate = 0.4;
|
|
$.ajax({
|
|
url: "BaseData.asmx/GetDefaultDataForTM2",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$("#sp_Num").html(data.d.Num);
|
|
$("#sp_TotalPrice").html("¥" + data.d.TotalPrice.toFixed(0));
|
|
$("#sp_SiglePrice").html("¥" + data.d.SiglePrice.toFixed(0));
|
|
$("#sp_Num2").html(data.d.Num2);
|
|
$("#sp_Num3").html(data.d.Num3);
|
|
$("#sp_Num4").html("¥" + data.d.Num4.toFixed(0));
|
|
$("#sp_Num5").html("¥" + data.d.Num5.toFixed(0));
|
|
$("#sp_Num6").html("¥" + data.d.Num6.toFixed(0));
|
|
$("#sp_Num7").html("¥" + data.d.Num7.toFixed(0));
|
|
$("#sp_Num8").html(data.d.Num8);
|
|
$("#sp_Num9").html(data.d.Num9);
|
|
$("#sp_Num10").html("¥" + data.d.Num10);
|
|
$("#sp_Num11").html(data.d.Num11);
|
|
$("#sp_Num12").html("¥" + data.d.BackPrice);
|
|
//$("#sp_AddPrice").html(data.d.AddPrice);
|
|
window.parent.AddNum(352, data.d.Num9);
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
function GetDefaultUnRead() {
|
|
var param = new Object();
|
|
|
|
|
|
$.ajax({
|
|
url: "BaseData.asmx/GetDefaultUnRead",
|
|
//data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$("#sp1").html(data.d.CGCheckNum);
|
|
$("#sp2").html(data.d.CGCheckNum2);
|
|
$("#sp3").html(data.d.CGCheckNum3);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
function TZLook(id) {
|
|
window.location = "SysManage/NoticeLook.aspx?NoticeId=" + id;
|
|
|
|
}
|
|
|
|
function GetNoticeList() {
|
|
|
|
$("#ul_tz").empty();
|
|
|
|
$.ajax({
|
|
url: "BaseData.asmx/GetNoticeList",
|
|
//data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
var dd = '';
|
|
if (this.InDate != null)
|
|
dd = this.InDate.localeFormat("yyyy年MM月dd日hh时");
|
|
var sim = this.SimpContent;
|
|
if (sim >= 18)
|
|
sim = sim.substring(0, 18) + "...";
|
|
$("#ul_tz").append('<li class="waititem "> <a href="#" onclick="TZLook(' + this.Id + ')">【' + this.Title + '】【' + dd + ' ' + this.SendName + '】' + this.SimpContent + '</a> </li>');
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function GGLook(id) {
|
|
window.open("SysManage/GG_NoticeLook.aspx?NoticeId=" + id);
|
|
|
|
}
|
|
function GetGGNoticeList() {
|
|
|
|
$("#ul_gg").empty();
|
|
|
|
$.ajax({
|
|
url: "BaseData.asmx/GetGGNoticeList",
|
|
//data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
var dd = '';
|
|
if (this.InDate != null)
|
|
dd = this.InDate.localeFormat("yyyy年MM月dd日hh时");
|
|
$("#ul_gg").append('<li><a onclick="GGLook(' + this.Id + ')"><span class="title">【' + this.Title + '】</span><span class="name">【' + dd + ' ' + this.SendName + '】</span><span class="content">' + this.SimpContent + '</span></a></li>');
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div style="display: none">
|
|
<div id="test" title="" style="width: 300px; height:170px;">
|
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
<div id="div_content">
|
|
您还没有添加过店铺,请先去添加店铺授权
|
|
</div>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="text-align:center">
|
|
<input id="btn_Link" class="btnClass btnClassAdd" type="button" value="马上去店铺授权" />
|
|
<input id="btn_Close" class="btnClass btnClassAdd" type="button" value="下次再说" />
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="boardbox">
|
|
<div class="boarditem small">
|
|
<div class="content order">
|
|
<div class="icon boardicon-order"></div>
|
|
<div class="message">
|
|
|
|
<ul class="order_info">
|
|
<li class="font_10">今日单量<span style="color:#808080;font-size:10px;width:100px" id="sp_Num"></span></li>
|
|
<li class="font_10">今日导入单量<span style="color:#808080;font-size:10px;" id="sp_Num2"></span></li>
|
|
<li class="font_10">今日销售额<span style="color:#808080;font-size:10px;" id="Span3"></span></li>
|
|
|
|
<li class="font_10">今日客单价<span style="color:#808080;font-size:10px;" id="sp_SiglePrice"></span></li>
|
|
<li class="font_10">昨天发货单量<span style="color:#808080;font-size:10px;width:100px" id="Span2">1000</span></li>
|
|
<li class="font_10">未发货订单数<span style="color:#808080;font-size:10px;" id="sp_Num9"></span></li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="boarditem small">
|
|
<div class="content sell">
|
|
<div class="icon boardicon-sell"></div>
|
|
<div class="message">
|
|
|
|
<ul class="order_info">
|
|
<li class="font_10">库存数量<span style="color:#808080;font-size:10px;" id="Span1">【1000立方】【20000$】</span></li>
|
|
<li class="font_10">运输途中<span style="color:#808080;font-size:10px;" id="sp_Num6">【1000立方】【20000$】</span></li>
|
|
<li class="font_10">最近7天退货单量<span style="color:#808080;font-size:10px;" id="sp_Num11">1000</span></li>
|
|
<li class="font_10">最近7天退货金额<span style="color:#808080;font-size:10px;" id="sp_Num12">1000</span></li>
|
|
<li class="font_10">昨天产生费用<span style="color:#808080;font-size:10px;" id="Span4">1000$</span></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="boarditem small">
|
|
<div class="content chunk">
|
|
<div class="head ">
|
|
常用操作
|
|
<a href="javascript:void(0)" class="waitdrop easyui-menubutton"
|
|
data-options="menu:'#waitdrop',shadow:false">
|
|
<span class="icon-dot"></span>
|
|
</a>
|
|
|
|
</div>
|
|
<ul class="waitul">
|
|
<li class="waititem">
|
|
<a href="#" id="a_sq">【店铺授权】</a>
|
|
<a href="#"></a>
|
|
</li>
|
|
<li class="waititem">
|
|
<a href="#" id="a_sku">【SKU管理】</a>
|
|
<a href="#"></a>
|
|
</li>
|
|
<li class="waititem">
|
|
<a href="#" id="a_dd">【订单管理】</a>
|
|
<a href="#"></a>
|
|
</li>
|
|
<li class="waititem">
|
|
<a href="#" id="a_wl">【物流渠道】</a>
|
|
<a href="#"></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="boarditem small">
|
|
<div class="content chunk">
|
|
<div class="head ">
|
|
通知公告
|
|
<a href="javascript:void(0)" class="waitdrop easyui-menubutton"
|
|
data-options="menu:'#noticedrop',shadow:false">
|
|
<span class="icon-dot"></span>
|
|
</a>
|
|
<div id="noticedrop" class="waitdropmenu topusermenu" style="width:60px; display:none">
|
|
<div id="tz_sx">刷新</div>
|
|
|
|
</div>
|
|
</div>
|
|
<ul class="waitul notice" id="ul_tz">
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="boarditem middle">
|
|
<div class="content chunk chart">
|
|
<div class="head ">
|
|
发货量统计
|
|
<a href="javascript:void(0)" class="waitdrop easyui-menubutton"
|
|
data-options="menu:'#chartdrop',shadow:false">
|
|
<span class="icon-dot"></span>
|
|
</a>
|
|
<div id="chartdrop" class="waitdropmenu topusermenu" style="width:60px;display:none">
|
|
<div>刷新</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="chartcontainer">
|
|
<div id="container">
|
|
|
|
</div>
|
|
</div>
|
|
<%--<div class="chartTab">
|
|
<div class="tabShow">
|
|
<ul class="tabul">
|
|
<li class="tabitem active">
|
|
速卖通
|
|
</li>
|
|
<li class="tabitem">
|
|
亚马逊
|
|
</li>
|
|
<li class="tabitem">
|
|
EBay
|
|
</li>
|
|
<li class="tabitem">
|
|
Wish
|
|
</li>
|
|
<li class="tabitem">
|
|
Lazada
|
|
</li>
|
|
<li class="tabitem">
|
|
Cdiscount
|
|
</li>
|
|
|
|
</ul>
|
|
</div>--%>
|
|
<div class="tab-right"></div>
|
|
<div class="tab-left disabled"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|