Browse Source

[feat] 销售管理

销售客户报价列表页面新增:开启页脚显示功能;物料合计、数量合计、不含税总价(RMB)、含税总价(RMB)、不含税总价(美元)、含税总价(美元)、不含税单价(RMB)、含税单价(RMB)、不含税单价(美元)、含税单价(美元),上面这些字段新增前端进行合计,并且进行判断加上没值默认设置为0,防止出现NaN问题
dev
liuxiaoxu 2 months ago
parent
commit
6d263f9d65
  1. 103
      ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html

103
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'},

Loading…
Cancel
Save