From cce87edd2ceace10affb2a9525a8a0292499cef8 Mon Sep 17 00:00:00 2001 From: fxc <541723947@qq.com> Date: Tue, 11 Feb 2025 16:49:39 +0800 Subject: [PATCH] 11 --- .../HuoWu/HW_GoodsDetailList2TemuSku.aspx | 56 ++++++------------- 1 file changed, 18 insertions(+), 38 deletions(-) diff --git a/TradeManage/HuoWu/HW_GoodsDetailList2TemuSku.aspx b/TradeManage/HuoWu/HW_GoodsDetailList2TemuSku.aspx index 206012c..c1d61d7 100644 --- a/TradeManage/HuoWu/HW_GoodsDetailList2TemuSku.aspx +++ b/TradeManage/HuoWu/HW_GoodsDetailList2TemuSku.aspx @@ -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 = "{Bind SKU}"; + col.CellTemplate = "{Bind GoodsCode}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "分配的运营"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind Name}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); @@ -69,62 +69,62 @@ col = new nblf.ui.DataGridColumn(); col.HeaderText = "售价"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind JYPrice}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "毛利"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind GrossProfit}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "前1天单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind SaleNum1}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "前2天单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind SaleNum2}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "前3天单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind SaleNum3}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "前7天单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind SaleNum7}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "前14天单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind SaleNum14}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "前一个月天单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind SaleNum30}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "总单量"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind GoodsHJNum}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "西仓库存"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind LeftNumW}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "东仓库存"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind LeftNumE}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "库龄"; - col.CellTemplate = "{Bind SKU}"; + col.CellTemplate = "{Bind PositionAge}"; 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(); - }); } }); }