From 2acbba01353f1888e7eb38b19f6f0749eb6a1957 Mon Sep 17 00:00:00 2001 From: Xia Kaixiang Date: Fri, 18 Oct 2019 09:57:45 +0800 Subject: [PATCH] =?utf8?q?=E9=A1=B5=E9=9D=A2=E9=87=91=E9=A2=9D=E5=8A=A0?= =?utf8?q?=E5=87=8F=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../templates/system/dtl/shopdtl.html | 6 ++++- .../templates/system/dtl/userdtl.html | 6 ++++- .../templates/system/report/subjectday.html | 24 +++++++++++++++---- .../system/report/subjectdetail.html | 18 +++++++++++--- 4 files changed, 45 insertions(+), 9 deletions(-) diff --git a/payapi/src/main/resources/templates/system/dtl/shopdtl.html b/payapi/src/main/resources/templates/system/dtl/shopdtl.html index 57204491..553409a3 100644 --- a/payapi/src/main/resources/templates/system/dtl/shopdtl.html +++ b/payapi/src/main/resources/templates/system/dtl/shopdtl.html @@ -220,7 +220,11 @@ {field: 'accdate', title: '记账日期', align: 'center', width: 100, sort: true}, {field: 'transdesc', title: '交易描述', align: 'center', width: 175}, {field: 'shopname', title: '商户名称', align: 'center', width: 250}, - {field: 'amount', title: '交易金额', align: 'center', width: 120, sort: true}, + { + field: 'amount', title: '交易金额', align: 'center', width: 120, sort: true, templet: function (e) { + return parseFloat(e.amount).toFixed(2); + } + }, { field: 'transStatus', title: '状态', diff --git a/payapi/src/main/resources/templates/system/dtl/userdtl.html b/payapi/src/main/resources/templates/system/dtl/userdtl.html index 6dda89cc..6d2ea96e 100644 --- a/payapi/src/main/resources/templates/system/dtl/userdtl.html +++ b/payapi/src/main/resources/templates/system/dtl/userdtl.html @@ -183,7 +183,11 @@ {field: 'accdate', title: '记账日期', align: 'center', width: 100, sort: true}, {field: 'transdesc', title: '交易描述', align: 'center', width: 175}, {field: 'userName', title: '姓名', align: 'center', width: 150}, - {field: 'amount', title: '交易金额', align: 'center', width: 120, sort: true}, + { + field: 'amount', title: '交易金额', align: 'center', width: 120, sort: true, templet: function (e) { + return parseFloat(e.amount).toFixed(2); + } + }, { field: 'status', title: '状态', diff --git a/payapi/src/main/resources/templates/system/report/subjectday.html b/payapi/src/main/resources/templates/system/report/subjectday.html index c906e81f..8767b737 100644 --- a/payapi/src/main/resources/templates/system/report/subjectday.html +++ b/payapi/src/main/resources/templates/system/report/subjectday.html @@ -109,10 +109,26 @@ ], [ // {field: 'lastdaydrbal', title: '借方', align: 'center'}, // {field: 'lastdaycrbal', title: '贷方', align: 'center'}, - {field: 'dramt', title: '借方', align: 'center'}, - {field: 'cramt', title: '贷方', align: 'center'}, - {field: 'drbal', title: '借方', align: 'center'}, - {field: 'crbal', title: '贷方', align: 'center'} + { + field: 'dramt', title: '借方', align: 'center', templet: function (e) { + return parseFloat(e.dramt).toFixed(2); + } + }, + { + field: 'cramt', title: '贷方', align: 'center', templet: function (e) { + return parseFloat(e.cramt).toFixed(2); + } + }, + { + field: 'drbal', title: '借方', align: 'center', templet: function (e) { + return parseFloat(e.drbal).toFixed(2); + } + }, + { + field: 'crbal', title: '贷方', align: 'center', templet: function (e) { + return parseFloat(e.crbal).toFixed(2); + } + } ] ], // cols: [ diff --git a/payapi/src/main/resources/templates/system/report/subjectdetail.html b/payapi/src/main/resources/templates/system/report/subjectdetail.html index 0fffd7eb..3898f995 100644 --- a/payapi/src/main/resources/templates/system/report/subjectdetail.html +++ b/payapi/src/main/resources/templates/system/report/subjectdetail.html @@ -121,8 +121,16 @@ }, {field: 'voucherno', title: '凭证号', align: 'center', width: 100, sort: true}, {field: 'summary', title: '摘要', align: 'center'}, - {field: 'dramt', title: '借方发生额', align: 'center'}, - {field: 'cramt', title: '贷方发生额', align: 'center'}, + { + field: 'dramt', title: '借方发生额', align: 'center', templet: function (e) { + return parseFloat(e.dramt).toFixed(2); + } + }, + { + field: 'cramt', title: '贷方发生额', align: 'center', templet: function (e) { + return parseFloat(e.cramt).toFixed(2); + } + }, { field: 'balflag', title: '方向', align: 'center', width: 80, templet: function (d) { if (d.balflag == 1) { @@ -132,7 +140,11 @@ } } }, - {field: 'balance', title: '余额', align: 'center'}, + { + field: 'balance', title: '余额', align: 'center', templet: function (e) { + return parseFloat(e.balance).toFixed(2); + } + }, {field: 'oppname', title: '对方户名', align: 'center'} ] ] -- 2.17.1