From 3ada277251e78f9a3a46fb652055bf69863e2253 Mon Sep 17 00:00:00 2001 From: fxc <541723947@qq.com> Date: Fri, 14 Feb 2025 10:00:00 +0800 Subject: [PATCH 1/2] 11 --- .../Huowu/HW_GoodsDetailList2TemuSku.aspx | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx index 645176e..ff5adfd 100644 --- a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx +++ b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx @@ -74,7 +74,7 @@ col = new nblf.ui.DataGridColumn(); col.HeaderText = "毛利"; - col.CellTemplate = "{Bind GrossProfit}"; + col.CellTemplate = "{Bind GrossProfit}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); @@ -199,6 +199,32 @@ }); } //#endregion + + //#region 显示各店铺毛利 + function showShopGrossProfitDialog(GoodsId) { + var param = { GoodsId } + WindowLoadModel.Show(); + $.ajax({ + url: "../SysManageServiceNew.asmx/GetTemuShopGrossProfit", + data: Sys.Serialization.JavaScriptSerializer.serialize(param), + success: function (res) { + WindowLoadModel.Hide(); + data = JSON.parse(res.Data) + datagrid1.Set_RowCount(res.rowCount); + datagrid1.DataBind(data); + $.fancybox({ + 'width': '40%', + 'height': '40%', + 'autoScale': false, + 'transitionIn': 'elastic', + 'transitionOut': 'elastic', + 'href': '#mlDialog', + 'onComplete': function () { } + }); + } + }); + } + //#endregion @@ -224,6 +250,11 @@ + + + From 0eebe2c65e2c778d001ec942a7e295c5af0323a5 Mon Sep 17 00:00:00 2001 From: fxc <541723947@qq.com> Date: Fri, 14 Feb 2025 10:24:53 +0800 Subject: [PATCH 2/2] 111 --- .../Huowu/HW_GoodsDetailList2TemuSku.aspx | 46 +++++++++++++++++-- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx index ff5adfd..8e1ec4b 100644 --- a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx +++ b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx @@ -45,6 +45,7 @@ WindowLoadModel.Load(); ajaxInit(WindowLoadModel); CreateDataGrid(); + CreateDataGrid2(); ReadData(); }); @@ -153,6 +154,32 @@ } var PState = 0; //#endregion + + //#region 初始化DataGrid2 + function CreateDataGrid2() { + + col = new nblf.ui.DataGridColumn(); + col.HeaderText = "店铺"; + col.CellTemplate = "{Bind ShopName}"; + Array.add(datagrid2.Columns, col); + + col = new nblf.ui.DataGridColumn(); + col.HeaderText = "毛利"; + col.CellTemplate = "{Bind GrossProfit}"; + Array.add(datagrid2.Columns, col); + + datagrid2.SortExpression = "Id "; + datagrid2.ViewSortDirection = "desc"; + datagrid2.IsFixHeader = false; + datagrid2.ShowIndexColumn = false; + datagrid2.AllowPaging = false; + datagrid2.AllowPaging2 = false; + datagrid2.ShowIndexColumn = true; + datagrid2.Width = "100%"; + datagrid2.SelectMode = nblf.ui.SelectMode.None; + datagrid2.Init(); + } + //#endregion // 读取数据 //#region 读取数据 @@ -161,6 +188,8 @@ PageSize: datagrid1.Get_PageSize(), PageIndex: datagrid1.Get_PageIndex(), GoodsCode: $('#txt_GoodsCode').val() || null, + Name: $('#txt_Name').val() || null, + IsNegative: $('#txt_IsNegative').is(':checked'), } WindowLoadModel.Show(); $.ajax({ @@ -176,10 +205,12 @@ } //#endregion - //#region 读取数据 + //#region 导出数据 function ExportData() { var param = { GoodsCode: $('#txt_GoodsCode').val() || null, + Name: $('#txt_Name').val() || null, + IsNegative: $('#txt_IsNegative').is(':checked'), } WindowLoadModel.Show(); $.ajax({ @@ -209,12 +240,12 @@ data: Sys.Serialization.JavaScriptSerializer.serialize(param), success: function (res) { WindowLoadModel.Hide(); - data = JSON.parse(res.Data) - datagrid1.Set_RowCount(res.rowCount); - datagrid1.DataBind(data); + data = res.d + datagrid2.Set_RowCount(data.length); + datagrid2.DataBind(data); $.fancybox({ 'width': '40%', - 'height': '40%', + 'height': '', 'autoScale': false, 'transitionIn': 'elastic', 'transitionOut': 'elastic', @@ -239,6 +270,11 @@ + 运营人员: + + + + 负毛利产品