From d6be6b4b5a91105d55a219968cf9f324322da94e Mon Sep 17 00:00:00 2001 From: CRM8000 Date: Fri, 22 Nov 2024 11:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E8=B4=A6=E5=87=AD=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/PSI/SLN0002/Voucher/MainForm.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/web/Public/Scripts/PSI/SLN0002/Voucher/MainForm.js b/web/Public/Scripts/PSI/SLN0002/Voucher/MainForm.js index 7264bf84..32329208 100644 --- a/web/Public/Scripts/PSI/SLN0002/Voucher/MainForm.js +++ b/web/Public/Scripts/PSI/SLN0002/Voucher/MainForm.js @@ -864,12 +864,17 @@ PCL.define("PSI.SLN0002.Voucher.MainForm", { if (value == 0 || isNaN(value)) { return ""; } else { - return value; + const s = PCL.util.Format.number(value, "0,0.00"); + if (value < 0) { + return `${s}`; + } else { + return s; + } } } }, { header: "贷方金额", - dataIndex: "crebit", + dataIndex: "credit", menuDisabled: true, sortable: false, align: "right", @@ -879,7 +884,12 @@ PCL.define("PSI.SLN0002.Voucher.MainForm", { if (value == 0 || isNaN(value)) { return ""; } else { - return value; + const s = PCL.util.Format.number(value, "0,0.00"); + if (value < 0) { + return `${s}`; + } else { + return s; + } } } }, {