|
|
|
@ -136,7 +136,15 @@
|
|
|
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
|
|
|
col.HeaderText = "意向箱数";
|
|
|
|
|
col.CellTemplate = "<span class='ms'>{Bind Cantidad}</span>";
|
|
|
|
|
col.CellTemplate = `{Bind orginData}`;
|
|
|
|
|
col.CellFormatter = function (data) {
|
|
|
|
|
var num = data.Cantidad
|
|
|
|
|
if (data.IsCustomerUpdate) {
|
|
|
|
|
return `<span class='ms' style="color:red">${num}</span>`
|
|
|
|
|
} else {
|
|
|
|
|
return `<span class='ms'>${num}</span>`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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 = "<span class='ms'>{Bind UserName}</span>";
|
|
|
|
|
col.CellTemplate = "<span class='ms'>{Bind UpdateName}</span>";
|
|
|
|
|
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);
|
|
|
|
|