temu sku数据前端页面

master
chenwenkai 3 weeks ago
parent 938db5ace7
commit a316e3ae67

@ -314,7 +314,7 @@
if ($(this).val() != "") { if ($(this).val() != "") {
num = $(this).val(); num = $(this).val();
} }
Savebfnum4(did, num); SavebManuaPrice(did, num);
}); });
$("input[tid]").live("keyup", function () { $("input[tid]").live("keyup", function () {
@ -323,7 +323,7 @@
if ($(this).val() != "") { if ($(this).val() != "") {
num = $(this).val(); num = $(this).val();
} }
Savebfnum5(did, num); SavebTemuPrice(did, num);
}); });
$("#btn_hw3").bind("click", function () { $("#btn_hw3").bind("click", function () {
@ -1462,6 +1462,7 @@
datagrid4.add_PageIndexChanged(function () { GetXPData(); }); datagrid4.add_PageIndexChanged(function () { GetXPData(); });
} }
function GetXPData() { function GetXPData() {
var param = new Object(); var param = new Object();
@ -1862,7 +1863,7 @@
} }
function Savebfnum4(id, ManuaPrice) { function SavebManuaPrice(id, ManuaPrice) {
var param = new Object(); var param = new Object();
param.detailid = id; param.detailid = id;
param.ManuaPrice = ManuaPrice; param.ManuaPrice = ManuaPrice;
@ -1876,7 +1877,7 @@
}); });
} }
function Savebfnum5(id, TemuPrice) { function SavebTemuPrice(id, TemuPrice) {
var param = new Object(); var param = new Object();
param.detailid = id; param.detailid = id;
param.TemuPrice = TemuPrice; param.TemuPrice = TemuPrice;
@ -2026,7 +2027,6 @@
}); });
} }
//#endregion
//#endregion //#endregion
//取消采购计划 //取消采购计划
@ -2058,6 +2058,12 @@
} }
}); });
} }
//#endregion
function showTemuSku() {
window.open('/Huowu/HW_GoodsDetailList2TemuSku.aspx', '_blank')
}
</script> </script>
</head> </head>
<body class="headbody"> <body class="headbody">
@ -3100,7 +3106,11 @@
</td> </td>
<td><input type="button" value="取消采购" onclick="cancleCGPlan()" /></td> <td><input type="button" value="取消采购" onclick="cancleCGPlan()" /></td>
<td><input id="btn_dc3" onclick="ExportStockSolidData(100);" class="btnClass btnClassExcelTemplate" type="button" value="导出库存总立方前100" />&nbsp&nbsp <input id="btn_dc4" onclick="ExportStockSolidData(200);" class="btnClass btnClassExcelTemplate" type="button" value="导出库存总立方前200" /></td> <td>
<input id="btn_dc3" onclick="ExportStockSolidData(100);" class="btnClass btnClassExcelTemplate" type="button" value="导出库存总立方前100" />&nbsp&nbsp
<input id="btn_dc4" onclick="ExportStockSolidData(200);" class="btnClass btnClassExcelTemplate" type="button" value="导出库存总立方前200" />&nbsp&nbsp
<input id="btn_dc5" onclick="showTemuSku()" class="btnClass btnClassAdd2" type="button" value="TemuSKU" />&nbsp&nbsp
</td>
</tr> </tr>
<%-- <tr> <%-- <tr>

@ -0,0 +1,195 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HW_GoodsDetailList2TemuSku.aspx.cs" Inherits="TradeManageNew.HuoWu.HW_GoodsDetailList2TemuSku" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TemuSKU</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?a=1" 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/Global.js" 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 Model = null
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
var datagrid2 = new nblf.ui.DataGrid("DataGrid2");
var WindowLoadModel = new WindowLoad();
var showDetailModel = '';
var id = 0;
var ScanState = 0;
$(document).ready(function () {
WindowLoadModel.ApplicationPath = "../";
WindowLoadModel.ControlID = "WindowLoad";
WindowLoadModel.Isbgiframe = true;
WindowLoadModel.Load();
ajaxInit(WindowLoadModel);
CreateDataGrid();
ReadData();
});
// 初始化DataGrid
//#region 初始化DataGrid
function CreateDataGrid() {
col = new nblf.ui.DataGridColumn();
col.HeaderText = "SKU";
col.CellTemplate = "<span>{Bind GoodsCode}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "分配的运营";
col.CellTemplate = "<span>{Bind Name}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "保本价";
col.CellTemplate = "<span>{Bind SKU}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "售价";
col.CellTemplate = "<span>{Bind JYPrice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "毛利";
col.CellTemplate = "<span>{Bind GrossProfit}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "前1天单量";
col.CellTemplate = "<span>{Bind SaleNum1}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "前2天单量";
col.CellTemplate = "<span>{Bind SaleNum2}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "前3天单量";
col.CellTemplate = "<span>{Bind SaleNum3}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "前7天单量";
col.CellTemplate = "<span>{Bind SaleNum7}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "前14天单量";
col.CellTemplate = "<span>{Bind SaleNum14}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "前一个月天单量";
col.CellTemplate = "<span>{Bind SaleNum30}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "总单量";
col.CellTemplate = "<span>{Bind GoodsHJNum}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "西仓库存";
col.CellTemplate = "<span>{Bind LeftNumW}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "东仓库存";
col.CellTemplate = "<span>{Bind LeftNumE}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "库龄";
col.CellTemplate = "<span>{Bind PositionAge}</span>";
Array.add(datagrid1.Columns, col);
datagrid1.SetPageSize(50);
datagrid1.SetPageIndex(1);
datagrid1.SortExpression = "Id ";
datagrid1.ViewSortDirection = "desc";
datagrid1.IsFixHeader = false;
datagrid1.ShowIndexColumn = false;
datagrid1.AllowPaging = true;
datagrid1.AllowPaging2 = true;
datagrid1.ShowIndexColumn = true;
datagrid1.Width = "100%";
datagrid1.SelectMode = nblf.ui.SelectMode.CheckBox;
datagrid1.Init();
datagrid1.Sorting(function () {
ReadData();
});
datagrid1.add_PageIndexChanged(function () { ReadData(); });
}
var PState = 0;
//#endregion
// 读取数据
//#region 读取数据
function ReadData() {
var param = {
PageSize: datagrid1.Get_PageSize(),
PageIndex: datagrid1.Get_PageIndex(),
}
WindowLoadModel.Show();
$.ajax({
url: "../OuterService/ShageService.ashx",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
data.d.DataSource = data.d.DataSource ? data.d.DataSource : []
datagrid1.Set_RowCount(data.d.RowCount);
datagrid1.DataBind(data.d.DataSource);
}
});
}
</script>
</head>
<body class="headbody">
<div class="title_ico">
TemuSKU
</div>
<table id="tb1" class="tableAll" style="width: 100%;">
<tr>
<td valign="top" colspan="7">
<div id="DataGrid1" class="DataGridStyle"></div>
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace TradeManageNew.HuoWu
{
public partial class HW_GoodsDetailList2TemuSku : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}

@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace TradeManageNew.HuoWu
{
public partial class HW_GoodsDetailList2TemuSku
{
}
}

@ -1411,6 +1411,7 @@
<Content Include="Huowu\HW_GoodsCodePrint.aspx" /> <Content Include="Huowu\HW_GoodsCodePrint.aspx" />
<Content Include="Huowu\HW_GoodsCount2.aspx" /> <Content Include="Huowu\HW_GoodsCount2.aspx" />
<Content Include="Huowu\HW_GoodsCount3.aspx" /> <Content Include="Huowu\HW_GoodsCount3.aspx" />
<Content Include="Huowu\HW_GoodsDetailList2TemuSku.aspx" />
<Content Include="Huowu\HW_GoodsDetailList4.aspx" /> <Content Include="Huowu\HW_GoodsDetailList4.aspx" />
<Content Include="Huowu\HW_GoodsDetailList5.aspx" /> <Content Include="Huowu\HW_GoodsDetailList5.aspx" />
<Content Include="Huowu\HW_GoodsDetailList_EN.aspx" /> <Content Include="Huowu\HW_GoodsDetailList_EN.aspx" />
@ -2761,6 +2762,13 @@
<Compile Include="Huowu\HW_GoodsCount3.aspx.designer.cs"> <Compile Include="Huowu\HW_GoodsCount3.aspx.designer.cs">
<DependentUpon>HW_GoodsCount3.aspx</DependentUpon> <DependentUpon>HW_GoodsCount3.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="Huowu\HW_GoodsDetailList2TemuSku.aspx.cs">
<DependentUpon>HW_GoodsDetailList2TemuSku.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Huowu\HW_GoodsDetailList2TemuSku.aspx.designer.cs">
<DependentUpon>HW_GoodsDetailList2TemuSku.aspx</DependentUpon>
</Compile>
<Compile Include="Huowu\HW_GoodsDetailList4.aspx.cs"> <Compile Include="Huowu\HW_GoodsDetailList4.aspx.cs">
<DependentUpon>HW_GoodsDetailList4.aspx</DependentUpon> <DependentUpon>HW_GoodsDetailList4.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>

Loading…
Cancel
Save