我的需求
同一物料名称合并展示报价情况,无需将中标和未中标分开;相同物料采购组织合并展示;
将物料信息列表下相同的物料信息合并
就是
眼镜
账单
眼镜
账单
合并成
眼镜
账单
this.pdResultDetailTable = new $.DataTable(pdResultDetailTable)
detailDataTable.rows.subscribe(function (rows) {
Common.setSimpleData(this.pdResultDetailTable, Common.getSimpleData(detailDataTable))
}.bind(this))
this.rows = detailDataTable.rows
this.columns = ko.observableArray([
{
这里是源代码
title: '物料信息',
field: 'materialName',
width: 240,
lock: true,
sortIndex: 1,
type: 'component',
compFn: function (rows) {
return {
name: 'td-materielinfor',
params: {
rows: rows,
state: that.stateMaterials
}
}
}