From 816954f3915c47fbe18d8168525547ab2bd953c9 Mon Sep 17 00:00:00 2001 From: fxc <541723947@qq.com> Date: Wed, 26 Feb 2025 17:24:30 +0800 Subject: [PATCH] 1 --- TradeManageNew/CaiGou/GoodsReportPrice.aspx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/TradeManageNew/CaiGou/GoodsReportPrice.aspx b/TradeManageNew/CaiGou/GoodsReportPrice.aspx index 90d4082..12bc57c 100644 --- a/TradeManageNew/CaiGou/GoodsReportPrice.aspx +++ b/TradeManageNew/CaiGou/GoodsReportPrice.aspx @@ -136,7 +136,15 @@ Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "意向箱数"; - col.CellTemplate = "{Bind Cantidad}"; + col.CellTemplate = `{Bind orginData}`; + col.CellFormatter = function (data) { + var num = data.Cantidad + if (data.IsCustomerUpdate) { + return `${num}` + } else { + return `${num}` + } + } Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "总体积"; @@ -193,7 +201,7 @@ col = new nblf.ui.DataGridColumn(); col.HeaderText = "操作员工"; - col.CellTemplate = "{Bind UserName}"; + col.CellTemplate = "{Bind UpdateName}"; Array.add(datagrid1.Columns, col); col = new nblf.ui.DataGridColumn(); col.HeaderText = "报价时间"; @@ -313,7 +321,9 @@ data: Sys.Serialization.JavaScriptSerializer.serialize(param), success: function (data) { WindowLoadModel.Hide(); - + data.d.data.datas.forEach(item => { + item.orginData = JSON.parse(JSON.stringify(item)) + }) var newDatas = data.d.data.datas; $(newDatas).each(function (i) { newDatas[i].newCreateDate = GetNewDate(newDatas[i].CreateDate);