From 791d011e7586d250effa150f74030090e1bc558a Mon Sep 17 00:00:00 2001 From: fxc <541723947@qq.com> Date: Thu, 13 Feb 2025 10:22:00 +0800 Subject: [PATCH] 111 --- .../Huowu/HW_GoodsDetailList2TemuSku.aspx | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx index bd8671b..645176e 100644 --- a/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx +++ b/TradeManageNew/Huowu/HW_GoodsDetailList2TemuSku.aspx @@ -143,7 +143,7 @@ datagrid1.AllowPaging2 = true; datagrid1.ShowIndexColumn = true; datagrid1.Width = "100%"; - datagrid1.SelectMode = nblf.ui.SelectMode.CheckBox; + datagrid1.SelectMode = nblf.ui.SelectMode.None; datagrid1.Init(); datagrid1.Sorting(function () { ReadData(); @@ -177,7 +177,26 @@ //#endregion //#region 读取数据 - function ExportData(){ + function ExportData() { + var param = { + GoodsCode: $('#txt_GoodsCode').val() || null, + } + WindowLoadModel.Show(); + $.ajax({ + url: "../SysManageServiceNew.asmx/GetExcelTemuSKUData", + data: Sys.Serialization.JavaScriptSerializer.serialize(param), + async: false, + success: function (data) { + WindowLoadModel.Hide(); + if (data.d == "") { + alert("没有数据"); + return; + } + params = { FilePath: data.d, FileName: "TemuSKU.xls" }; + + window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params); + } + }); } //#endregion @@ -196,7 +215,7 @@