| | |
| | | if (result.columnNameList[key].ColmType == "Decimal") { |
| | | |
| | | col.push({ |
| | | field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 180, formatter: function (value, row, index) { |
| | | field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) { |
| | | return parseFloat(value).toFixed(2); |
| | | } |
| | | }); |
| | | } |
| | | else if (result.columnNameList[key].ColmCols == '物料名称' || result.columnNameList[key].ColmCols == '规格型号') { |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 }); |
| | | } else { |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 180 }); |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 }); |
| | | } |
| | | |
| | | } |
| | |
| | | if (result.columnNameList[key].ColmType == "Decimal") { |
| | | |
| | | col.push({ |
| | | field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 180, formatter: function (value, row, index) { |
| | | field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) { |
| | | return parseFloat(value).toFixed(2); |
| | | } |
| | | }); |
| | | } |
| | | else if (result.columnNameList[key].ColmCols == '物料名称' || result.columnNameList[key].ColmCols == '规格型号') { |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 }); |
| | | } else { |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 180 }); |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 }); |
| | | } |
| | | |
| | | } |
| | |
| | | if (result.columnNameList[key].ColmType == "Decimal") { |
| | | |
| | | col.push({ |
| | | field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 180, formatter: function (value, row, index) { |
| | | field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) { |
| | | return parseFloat(value).toFixed(2); |
| | | } |
| | | }); |
| | | } |
| | | else if (result.columnNameList[key].ColmCols == '物料名称' || result.columnNameList[key].ColmCols == '规格型号') { |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 }); |
| | | } else { |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 180 }); |
| | | col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 }); |
| | | } |
| | | |
| | | } |