|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
WindowLoadModel.Load();
|
|
|
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
|
CreateDataGrid();
|
|
|
|
|
// ReadData();
|
|
|
|
|
ReadData();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 初始化DataGrid
|
|
|
|
@ -54,12 +54,12 @@
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "SKU";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind GoodsCode}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "分配的运营";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind Name}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
@ -69,62 +69,62 @@
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "售价";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind JYPrice}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "毛利";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind GrossProfit}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "前1天单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SaleNum1}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "前2天单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SaleNum2}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "前3天单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SaleNum3}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "前7天单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SaleNum7}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "前14天单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SaleNum14}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "前一个月天单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SaleNum30}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "总单量";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind GoodsHJNum}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "西仓库存";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind LeftNumW}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "东仓库存";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind LeftNumE}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "库龄";
|
|
|
|
|
col.CellTemplate = "<span>{Bind SKU}</span>";
|
|
|
|
|
col.CellTemplate = "<span>{Bind PositionAge}</span>";
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
|
|
|
|
|
datagrid1.SetPageSize(50);
|
|
|
|
@ -152,40 +152,20 @@
|
|
|
|
|
// 读取数据
|
|
|
|
|
//#region 读取数据
|
|
|
|
|
function ReadData() {
|
|
|
|
|
var IsPrinted = $('#select_IsPrinted').val() == "-1" ?
|
|
|
|
|
null : $('#select_IsPrinted').val() == "1" ?
|
|
|
|
|
true : false
|
|
|
|
|
var Status = $('#select_Status').val() == "-1" ?
|
|
|
|
|
null : $('#select_Status').val()
|
|
|
|
|
var param = {
|
|
|
|
|
PageIndex: datagrid1.Get_PageIndex(),
|
|
|
|
|
PageSize: datagrid1.Get_PageSize(),
|
|
|
|
|
Code: $('#txt_SKU').val() || '', //SKU编码
|
|
|
|
|
BarCode: $('#txt_BarCode').val() || '', //条码
|
|
|
|
|
WarehousePositionCode: $('#txt_PositionCode').val() || '', //库位编码
|
|
|
|
|
IsPrinted: IsPrinted, //是否已打印
|
|
|
|
|
Status: Status, //状态
|
|
|
|
|
};
|
|
|
|
|
PageIndex: datagrid1.Get_PageIndex(),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../DD_OrderServiceNew.asmx/OrderUsedSalePlatformPage",
|
|
|
|
|
url: "../OuterService/ShageService.ashx",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
data.d.DataSource = data.d.DataSource ? data.d.DataSource : []
|
|
|
|
|
data.d.DataSource.forEach(it => {
|
|
|
|
|
it.orginData = JSON.parse(JSON.stringify(it))
|
|
|
|
|
it.firstImg = it.ImageUrls && it.ImageUrls.length ? it.ImageUrls[0] : ""
|
|
|
|
|
})
|
|
|
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
|
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
|
|
|
$("#a_select").html("");
|
|
|
|
|
$("a[iul]").each(function () {
|
|
|
|
|
var iul = $(this).attr("iul");
|
|
|
|
|
if (iul == "")
|
|
|
|
|
$(this).hide();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|