, { field: ‘Quantityquantity’, title: ‘件数*’, index: ‘Quantityquantity’, width: 180, sortable: false, totalRow: true, sort: true }
done: function (res) {
debugger
//合计
var Quantityquantity = 0;
var Totalgrossmassmeasure = 0;
layui.each(res.data, function (index, d) {
Quantityquantity += Number(!!d.Quantityquantity ? d.Quantityquantity : 0);
Totalgrossmassmeasure += Number(!!d.Totalgrossmassmeasure ? d.Totalgrossmassmeasure : 0);
});
this.elem.next().find('.layui-table-total td[data-field="Quantityquantity"] .layui-table-cell').text(Quantityquantity);
this.elem.next().find('.layui-table-total td[data-field="Totalgrossmassmeasure"] .layui-table-cell').text(Totalgrossmassmeasure);
}