|
|
@ -1,7 +1,9 @@
|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HW_GoodsDetailList2TemuSku.aspx.cs" Inherits="TradeManageNew.HuoWu.HW_GoodsDetailList2TemuSku" %>
|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HW_GoodsDetailList2TemuSku.aspx.cs"
|
|
|
|
|
|
|
|
Inherits="TradeManageNew.HuoWu.HW_GoodsDetailList2TemuSku" %>
|
|
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title>TemuSKU</title>
|
|
|
|
<title>TemuSKU</title>
|
|
|
@ -46,6 +48,7 @@
|
|
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
CreateDataGrid();
|
|
|
|
CreateDataGrid();
|
|
|
|
CreateDataGrid2();
|
|
|
|
CreateDataGrid2();
|
|
|
|
|
|
|
|
GetYYUser();
|
|
|
|
ReadData();
|
|
|
|
ReadData();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -181,16 +184,43 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
// 读取数据
|
|
|
|
|
|
|
|
//#region 读取数据
|
|
|
|
//#region
|
|
|
|
function ReadData() {
|
|
|
|
function getSearchParam() {
|
|
|
|
var param = {
|
|
|
|
let param = {
|
|
|
|
PageSize: datagrid1.Get_PageSize(),
|
|
|
|
|
|
|
|
PageIndex: datagrid1.Get_PageIndex(),
|
|
|
|
|
|
|
|
GoodsCode: $('#txt_GoodsCode').val() || null,
|
|
|
|
GoodsCode: $('#txt_GoodsCode').val() || null,
|
|
|
|
Name: $('#txt_Name').val() || null,
|
|
|
|
Name: $('#txt_Name').val() || null,
|
|
|
|
IsNegative: $('#txt_IsNegative').is(':checked'),
|
|
|
|
IsNegative: $('#txt_IsNegative').is(':checked'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Day: $('#txt_Day').val(),
|
|
|
|
|
|
|
|
S_SaleNum: $('#txt_S_SaleNum').val(),
|
|
|
|
|
|
|
|
E_SaleNum: $('#txt_E_SaleNum').val(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StoreHouse: $('#txt_StoreHouse').val(),
|
|
|
|
|
|
|
|
S_LeftNum: $('#txt_S_LeftNum').val(),
|
|
|
|
|
|
|
|
E_LeftNum: $('#txt_E_LeftNum').val(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
S_OrderDate: $('#txt_S_OrderDate').val(),
|
|
|
|
|
|
|
|
E_OrderDate: $('#txt_E_OrderDate').val(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if((param.S_SaleNum === '' && param.E_SaleNum !== '') || (param.S_SaleNum !== '' && param.E_SaleNum === '')){
|
|
|
|
|
|
|
|
throw new Error('请把单量范围填写完整');
|
|
|
|
|
|
|
|
}else if((param.S_LeftNum === '' && param.E_LeftNum !== '') || (param.S_LeftNum !== '' && param.E_LeftNum === '')){
|
|
|
|
|
|
|
|
throw new Error('请把库存范围填写完整');
|
|
|
|
|
|
|
|
}else if((param.S_OrderDate === '' && param.E_OrderDate !== '') || (param.S_OrderDate !== '' && param.E_OrderDate === '')){
|
|
|
|
|
|
|
|
throw new Error('请把订单日期范围填写完整');
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
return param
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region 读取数据
|
|
|
|
|
|
|
|
function ReadData() {
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
|
|
|
var param = getSearchParam()
|
|
|
|
|
|
|
|
param.PageSize = datagrid1.Get_PageSize(),
|
|
|
|
|
|
|
|
param.PageIndex = datagrid1.Get_PageIndex(),
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: "../OuterService/ShageService.ashx?UserCode=cs&Ver=1.0&Method=GetTemuSKUData&DeviceNo=HTTP/1.1",
|
|
|
|
url: "../OuterService/ShageService.ashx?UserCode=cs&Ver=1.0&Method=GetTemuSKUData&DeviceNo=HTTP/1.1",
|
|
|
@ -202,16 +232,16 @@
|
|
|
|
datagrid1.DataBind(data);
|
|
|
|
datagrid1.DataBind(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}catch(e){
|
|
|
|
|
|
|
|
alert(e)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
//#region 导出数据
|
|
|
|
//#region 导出数据
|
|
|
|
function ExportData() {
|
|
|
|
function ExportData() {
|
|
|
|
var param = {
|
|
|
|
try{
|
|
|
|
GoodsCode: $('#txt_GoodsCode').val() || null,
|
|
|
|
var param = getSearchParam()
|
|
|
|
Name: $('#txt_Name').val() || null,
|
|
|
|
|
|
|
|
IsNegative: $('#txt_IsNegative').is(':checked'),
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: "../SysManageServiceNew.asmx/GetExcelTemuSKUData",
|
|
|
|
url: "../SysManageServiceNew.asmx/GetExcelTemuSKUData",
|
|
|
@ -228,6 +258,9 @@
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}catch(e){
|
|
|
|
|
|
|
|
alert(e)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
@ -256,9 +289,42 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region 查询
|
|
|
|
|
|
|
|
var YYUserList = [];
|
|
|
|
|
|
|
|
function GetYYUser() {
|
|
|
|
|
|
|
|
var param = new Object();
|
|
|
|
|
|
|
|
param.isShowAllGroup = 0;
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "../CangKuServerNew.asmx/GetList_YYUser",
|
|
|
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
|
|
|
async: false,
|
|
|
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
var html = new Sys.StringBuilder();
|
|
|
|
|
|
|
|
$(data.d).each(function () {
|
|
|
|
|
|
|
|
var YYUserModel = {};
|
|
|
|
|
|
|
|
YYUserModel["ID"] = this.ID;
|
|
|
|
|
|
|
|
YYUserModel["Name"] = this.Name;
|
|
|
|
|
|
|
|
YYUserList.push(YYUserModel);
|
|
|
|
|
|
|
|
html.append("<option value='" + this.ID + "'>" + this.Name + "</option>");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断数量
|
|
|
|
|
|
|
|
if (data.d.length > 1) {
|
|
|
|
|
|
|
|
$('#txt_Name').html("<option value=''>全部</option>" + html.toString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
$('#txt_Name').html(html.toString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body class="headbody">
|
|
|
|
<body class="headbody">
|
|
|
|
<div class="title_ico">
|
|
|
|
<div class="title_ico">
|
|
|
|
TemuSKU
|
|
|
|
TemuSKU
|
|
|
@ -272,12 +338,49 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="f1" style="width: 10%;">运营人员:</td>
|
|
|
|
<td class="f1" style="width: 10%;">运营人员:</td>
|
|
|
|
<td width="15%">
|
|
|
|
<td width="15%">
|
|
|
|
<input id="txt_Name" class="editTextbox" style="width: 150px;" type="text" />
|
|
|
|
<select id='txt_Name' style="width: 150px;" columnrequired="false"></select>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="f1" style="width: 10%;"><input id="txt_IsNegative" class="editTextbox" type="checkbox" />负毛利产品</td>
|
|
|
|
<td class="f1" style="width: 10%;"><input id="txt_IsNegative" class="editTextbox"
|
|
|
|
|
|
|
|
type="checkbox" />负毛利产品</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" onclick="ReadData();" />  
|
|
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询"
|
|
|
|
<input id="btn_dc3" onclick="ExportData();" class="btnClass btnClassExcelTemplate" type="button" value="导出" />
|
|
|
|
onclick="ReadData();" />  
|
|
|
|
|
|
|
|
<input id="btn_dc3" onclick="ExportData();" class="btnClass btnClassExcelTemplate" type="button"
|
|
|
|
|
|
|
|
value="导出" />
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="f1" style="width: 10%;">
|
|
|
|
|
|
|
|
<select id='txt_Day' style="width: 80px;" columnrequired="false">
|
|
|
|
|
|
|
|
<option value="0">全部</option>
|
|
|
|
|
|
|
|
<option value="1">前1天</option>
|
|
|
|
|
|
|
|
<option value="2">前2天</option>
|
|
|
|
|
|
|
|
<option value="3">前3天</option>
|
|
|
|
|
|
|
|
<option value="7">前7天</option>
|
|
|
|
|
|
|
|
<option value="14">前14天</option>
|
|
|
|
|
|
|
|
<option value="30">前30天</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
单量:</td>
|
|
|
|
|
|
|
|
<td width="15%">
|
|
|
|
|
|
|
|
<input id="txt_S_SaleNum" min='0' max='1000000' precision='0' class="editTextbox" style="width: 80px;" type="text" />--
|
|
|
|
|
|
|
|
<input id="txt_E_SaleNum" min='1' max='1000000' precision='0' class="editTextbox" style="width: 80px;" type="text" />
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="f1" style="width: 10%;">
|
|
|
|
|
|
|
|
<select id='txt_StoreHouse' style="width: 60px;" columnrequired="false">
|
|
|
|
|
|
|
|
<option value="0">全部</option>
|
|
|
|
|
|
|
|
<option value="1">西仓</option>
|
|
|
|
|
|
|
|
<option value="2">东仓</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
库存:
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td width="15%">
|
|
|
|
|
|
|
|
<input id="txt_S_LeftNum" min='0' max='1000000' precision='0' class="editTextbox" style="width: 80px;" type="text" />--
|
|
|
|
|
|
|
|
<input id="txt_E_LeftNum" min='1' max='1000000' precision='0' class="editTextbox" style="width: 80px;" type="text" />
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="f1" style="width: 10%;">订单日期:</td>
|
|
|
|
|
|
|
|
<td width="15%">
|
|
|
|
|
|
|
|
<input id="txt_S_OrderDate" class="editTextbox" style="width: 120px;" type="text" onfocus="WdatePicker()" autocomplete="off" />--
|
|
|
|
|
|
|
|
<input id="txt_E_OrderDate" class="editTextbox" style="width: 120px;" type="text" onfocus="WdatePicker()" autocomplete="off" />
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -292,11 +395,5 @@
|
|
|
|
<div id="DataGrid2" class="DataGridStyle"></div>
|
|
|
|
<div id="DataGrid2" class="DataGridStyle"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</html>
|