diff --git a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html index 921c3775..58f9c226 100644 --- a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/detail.html @@ -195,6 +195,13 @@ field: 'lossRate', align: 'center', title: '损耗率', + formatter: function (value, row, index) { + if (value == null || value == ''){ + return "0.00%"; + } + value = parseFloat(value).toFixed(2); + return value + "%"; + } }, // { // field: 'materialNum', diff --git a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskScjlVerify.html b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskScjlVerify.html index 797ef00e..7d7c79a7 100644 --- a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskScjlVerify.html +++ b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskScjlVerify.html @@ -331,6 +331,13 @@ field: 'lossRate', align: 'center', title: '损耗率', + formatter: function (value, row, index) { + if (value == null || value == ''){ + return "0.00%"; + } + value = parseFloat(value).toFixed(2); + return value + "%"; + } }, // { // field: 'materialNum', diff --git a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskSczgVerify.html b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskSczgVerify.html index 0a09cd6e..67595542 100644 --- a/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskSczgVerify.html +++ b/ruoyi-admin/src/main/resources/templates/system/makeorderpick/taskSczgVerify.html @@ -330,6 +330,13 @@ field: 'lossRate', align: 'center', title: '损耗率', + formatter: function (value, row, index) { + if (value == null || value == ''){ + return "0.00%"; + } + value = parseFloat(value).toFixed(2); + return value + "%"; + } }, // { // field: 'materialNum',