diff --git a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx index 645176e..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(); }); @@ -74,7 +75,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(); @@ -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({ @@ -199,6 +230,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 = res.d + datagrid2.Set_RowCount(data.length); + datagrid2.DataBind(data); + $.fancybox({ + 'width': '40%', + 'height': '', + 'autoScale': false, + 'transitionIn': 'elastic', + 'transitionOut': 'elastic', + 'href': '#mlDialog', + 'onComplete': function () { } + }); + } + }); + } + //#endregion @@ -213,6 +270,11 @@ + 运营人员: + + + + 负毛利产品    @@ -224,6 +286,11 @@ + + +