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.
287 lines
10 KiB
Plaintext
287 lines
10 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemuOrderGoodsFee.aspx.cs" Inherits="TradeManageNew.Huowu.TemuOrderGoodsFee" %>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>货物信息</title>
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DateBox.js" type="text/javascript"></script>
|
|
<script src="../Scripts/FixTable.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global2.js?t=1" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox2.1/source/jquery.fancybox.css?v=2.1.5"
|
|
media="screen" />
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/lib/jquery.mousewheel-3.0.6.pack.js"></script>
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/source/jquery.fancybox.js?v=2.1.5"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
|
|
|
var WindowLoadModel = new WindowLoad();
|
|
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
var sku = $.url.param("SKU");
|
|
$("#txt_Name").val(sku);
|
|
if (sku == undefined) {
|
|
$("#txt_Name").val("");
|
|
}
|
|
CreateDataGrid();
|
|
|
|
ReadData();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function GetImage(Ids) {
|
|
|
|
$("#div_img").empty();
|
|
var param = new Object();
|
|
|
|
param.Ids = Ids;
|
|
$.ajax({
|
|
|
|
url: "../BaseData.asmx/GetResourceList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
if (data.d != null) {
|
|
$("#img_1").attr("src", '../' + data.d[0].FileUrl);
|
|
$(data.d).each(function () {
|
|
$("#div_img").append("<img src='../" + this.FileUrl + "' width='100px' height='80px' style='margin-right:5px'/>");
|
|
});
|
|
fopen();
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
function fopen() {
|
|
|
|
$.fancybox({
|
|
'width': '40%',
|
|
'height': '40%',
|
|
'autoScale': false,
|
|
'transitionIn': 'elastic',
|
|
'transitionOut': 'elastic',
|
|
'href': '#test',
|
|
'onComplete': function () {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
//#region 初始化DataGrid
|
|
function CreateDataGrid() {
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "店铺";
|
|
col.Width = "150px";
|
|
col.Align = "left";
|
|
col.CellTemplate = "<a>{Bind ShopName}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "订单号";
|
|
col.CellTemplate = "<a>{Bind PlatOrderCode}</a>";
|
|
// col.SortExpression = "b.GoodsInNum";
|
|
Array.add(datagrid1.Columns, col);
|
|
var col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "SKU";
|
|
col.CellTemplate = "<a>{Bind SKU1}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "数量";
|
|
col.CellTemplate = "<a>{Bind GoodsNum}</a>";
|
|
// col.SortExpression = "b.GoodsInNum";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "订单日期";
|
|
col.CellTemplate = "<div>{Bind InDate2}</div>";
|
|
// col.SortExpression = "b.GoodsInNum";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "订单金额$";
|
|
col.CellTemplate = "<span>{Bind TotalPrice}</span>";
|
|
// col.SortExpression = "b.GoodsInNum";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "佣金$";
|
|
col.CellTemplate = "<span>{Bind yj}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "运费$";
|
|
col.CellTemplate = "<span>{Bind sjyf}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "货物成本$";
|
|
col.CellTemplate = "<span>{Bind cb}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "货物税费$";
|
|
col.CellTemplate = "<span>{Bind hwsf}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "仓储费$";
|
|
col.CellTemplate = "<span>{Bind ck}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "头程$";
|
|
col.CellTemplate = "<span>{Bind sjtc}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "利润$";
|
|
col.CellTemplate = "<span>{Bind lr}</span>";
|
|
// col.SortExpression = "InPrice";
|
|
Array.add(datagrid1.Columns, col);
|
|
datagrid1.SetPageSize(20);
|
|
datagrid1.SetPageIndex(1);
|
|
// datagrid1.SortExpression = "b.GoodsCode,b.Indate";
|
|
// datagrid1.ViewSortDirection = "ASC";
|
|
datagrid1.IsFixHeader = false;
|
|
/* datagrid1.Height = $(document).height() - 230;*/
|
|
datagrid1.ShowIndexColumn = true;
|
|
datagrid1.AllowPaging = false;
|
|
datagrid1.Width = "100%";
|
|
//datagrid1.Sorting(function () {
|
|
|
|
// ReadData();
|
|
//});
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
|
datagrid1.Init();
|
|
// datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
|
|
}
|
|
function AddTr() {
|
|
$("span[GNum]").each(function () {
|
|
var GNum = $(this).attr("GNum");
|
|
var SNum = $(this).attr("SNum");
|
|
if (GNum == "")
|
|
GNum = 0;
|
|
if (SNum == "")
|
|
SNum = 0;
|
|
if (SNum>0&&parseInt(GNum) >parseInt(SNum)) {
|
|
$(this).css("color", "red");
|
|
|
|
}
|
|
});
|
|
//$("tr[name='DataGridRow']").each(function (i) {
|
|
|
|
|
|
|
|
// if (i % 2 == 0)
|
|
// $(this).css("background-color", "#EEEEEE");
|
|
// ;
|
|
|
|
//});
|
|
|
|
}
|
|
|
|
|
|
|
|
function ReadData() {
|
|
if ($("#txt_Name").val() == "")
|
|
return;
|
|
var param = new Object();
|
|
param.sku = $("#txt_Name").val();
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../HuoWuServiceNew.asmx/GetTemuOrderFromSKU",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
datagrid1.DataBind(data.d);
|
|
if (data.d != null) {
|
|
|
|
$("#a_zsl").html(data.d[0].KCNum + data.d[0].GoodsNum);
|
|
$("#a_yssl").html(data.d[0].GoodsNum);
|
|
$("#a_sysl").html(data.d[0].KCNum);
|
|
$("#a_zlr").html(data.d[0].lr);
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="headbody">
|
|
<div class="title_ico">
|
|
Temu订单分析</div>
|
|
|
|
<table id="SelectHtml" class="tableAll" style="width: 100%;">
|
|
|
|
<tr>
|
|
<td class="f1" style="width:30%">
|
|
SKU:
|
|
</td>
|
|
<td>
|
|
<input id="txt_Name" class="editTextbox" style="width: 120px;" type="text" where="a.SKU1 like '%@value%'"/>
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" onclick="ReadData();" /></td>
|
|
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
总数量:<a id="a_zsl" style="color:blue;font-size:12pt">0</a> 已售数量:<a id="a_yssl" style="color:blue;font-size:12pt">0</a> 剩余数量:<a id="a_sysl" style="color:blue;font-size:12pt">0</a> 总利润:<a id="a_zlr" style="color:red;font-size:12pt">0</a>
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" colspan="2">
|
|
<div id="DataGrid1" class="DataGridStyle" style="-webkit-overflow-scrolling: touch;
|
|
overflow: auto;height:800px">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|