{ field: "contractmoney", title: "合同總價", width: 72, formatter: function (value, row, index) { if (row != null) { return parseFloat(value).toFixed(2); } } },
//二位小數、千分位 { field: "price", title: "單價", width: 60, align: 'right', formatter: function (value, row, index) { if (row != null) { return (parseFloat(value).toFixed(2) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,'); } } },