From ac7f23bb345e313411de81a05cae159a2a727a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93=E8=BF=AA?= <2596750866@qq.com> Date: Tue, 31 Dec 2024 14:04:36 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=A2=86=E6=96=99=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=A2=86=E6=96=99=E8=AF=A6=E6=83=85=E3=80=81?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=BB=8F=E7=90=86=E3=80=81=E4=B8=BB=E7=AE=A1?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E9=A1=B5=E9=9D=A2=E6=8D=9F=E8=80=97=E7=8E=87?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/system/makeorderpick/detail.html | 7 +++++++ .../templates/system/makeorderpick/taskScjlVerify.html | 7 +++++++ .../templates/system/makeorderpick/taskSczgVerify.html | 7 +++++++ 3 files changed, 21 insertions(+) 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',