From 6d263f9d6573bbe898093fddc12d388840c9acac Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Tue, 17 Sep 2024 14:21:12 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E9=94=80=E5=94=AE=E5=AE=A2=E6=88=B7=E6=8A=A5=E4=BB=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E=EF=BC=9A?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E9=A1=B5=E8=84=9A=E6=98=BE=E7=A4=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=9B=E7=89=A9=E6=96=99=E5=90=88=E8=AE=A1=E3=80=81?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=90=88=E8=AE=A1=E3=80=81=E4=B8=8D=E5=90=AB?= =?UTF-8?q?=E7=A8=8E=E6=80=BB=E4=BB=B7(RMB)=E3=80=81=E5=90=AB=E7=A8=8E?= =?UTF-8?q?=E6=80=BB=E4=BB=B7(RMB)=E3=80=81=E4=B8=8D=E5=90=AB=E7=A8=8E?= =?UTF-8?q?=E6=80=BB=E4=BB=B7(=E7=BE=8E=E5=85=83)=E3=80=81=E5=90=AB?= =?UTF-8?q?=E7=A8=8E=E6=80=BB=E4=BB=B7(=E7=BE=8E=E5=85=83)=E3=80=81?= =?UTF-8?q?=E4=B8=8D=E5=90=AB=E7=A8=8E=E5=8D=95=E4=BB=B7(RMB)=E3=80=81?= =?UTF-8?q?=E5=90=AB=E7=A8=8E=E5=8D=95=E4=BB=B7(RMB)=E3=80=81=E4=B8=8D?= =?UTF-8?q?=E5=90=AB=E7=A8=8E=E5=8D=95=E4=BB=B7(=E7=BE=8E=E5=85=83)?= =?UTF-8?q?=E3=80=81=E5=90=AB=E7=A8=8E=E5=8D=95=E4=BB=B7(=E7=BE=8E?= =?UTF-8?q?=E5=85=83)=EF=BC=8C=E4=B8=8A=E9=9D=A2=E8=BF=99=E4=BA=9B?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=96=B0=E5=A2=9E=E5=89=8D=E7=AB=AF=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=90=88=E8=AE=A1=EF=BC=8C=E5=B9=B6=E4=B8=94=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=88=A4=E6=96=AD=E5=8A=A0=E4=B8=8A=E6=B2=A1=E5=80=BC?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE=E4=B8=BA0=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=87=BA=E7=8E=B0NaN=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/customerQuote/customerQuote.html | 103 ++++++++++++++++-- 1 file changed, 92 insertions(+), 11 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html index f1573e14..5c3a826e 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html +++ b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html @@ -131,6 +131,7 @@ exportUrl: prefix + "/export", modalName: "客户报价表", fixedColumns:true, + showFooter: true, fixedRightNumber:1, columns: [ {checkbox: true}, @@ -172,22 +173,102 @@ {title: '客户报价编号',field: 'supplierCode'}, {title: '客户编号',field: 'customerCode'}, {title: '客户名称',field: 'customerName'}, - {title: '物料合计',field: 'enterprise'}, - {title: '数量合计',field: 'enterpriseSum'}, + {title: '物料合计',field: 'enterprise', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].enterprise) || 0; + } + return "总物料合计: " + sum; + } + }, + {title: '数量合计',field: 'enterpriseSum', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].enterpriseSum) || 0; + } + return "总数量合计: " + sum; + } + }, {title: '报价币种',field: 'commonCurrency', formatter: function (value, row, index) {return $.table.selectDictLabel(currencyDatas, value);} }, {title: '国内汇率',field: 'rmbTax'}, {title: '美元汇率',field: 'usdTax'}, - {title: '不含税总价(RMB)',field: 'noRmbSum'}, - {title: '含税总价(RMB)',field: 'rmbSum'}, - {title: '不含税总价(美元)',field: 'noUsdSum'}, - {title: '含税总价(美元)',field: 'usdSum'}, - - {title: '不含税单价(RMB)',field: 'noRmb'}, - {title: '含税单价(RMB)',field: 'rmb'}, - {title: '不含税单价(美元)',field: 'noUsd'}, - {title: '含税单价(美元)',field: 'usd'}, + {title: '不含税总价(RMB)',field: 'noRmbSum', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].noRmbSum) || 0; + } + return "总不含税总价: " + sum.toFixed(2); + } + }, + {title: '含税总价(RMB)',field: 'rmbSum', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].rmbSum) || 0; + } + return "总含税总价: " + sum.toFixed(2); + } + }, + {title: '不含税总价(美元)',field: 'noUsdSum', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].noUsdSum) || 0; + } + return "总不含税总价: " + sum.toFixed(2); + } + }, + {title: '含税总价(美元)',field: 'usdSum', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].usdSum) || 0; + } + return "总含税总价: " + sum.toFixed(2); + } + }, + + {title: '不含税单价(RMB)',field: 'noRmb', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].noRmb) || 0; + } + return "总不含税单价: " + sum.toFixed(2); + } + }, + {title: '含税单价(RMB)',field: 'rmb', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].rmb) || 0; + } + return "总含税单价: " + sum.toFixed(2); + } + }, + {title: '不含税单价(美元)',field: 'noUsd', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].noUsd) || 0; + } + return "总不含税单价: " + sum.toFixed(2); + } + }, + {title: '含税单价(美元)',field: 'usd', + footerFormatter: function (value) { + var sum = 0; + for (var i in value) { + sum += parseFloat(value[i].usd) || 0; + } + return "总含税单价: " + sum.toFixed(2); + } + }, {title: '定价时间',field: 'pricingDate'}, {title: '录入人',field: 'createBy'}, {title: '录入时间',field: 'createTime'},