Browse Source

[feat] 销售管理

销售售后通知单:总物料合计、数量合计,上面这些字段新增前端进行合计,并且进行判断加上没值默认设置为0,防止出现NaN问题
dev
liuxiaoxu 2 months ago
parent
commit
d459af3daf
  1. 17
      ruoyi-admin/src/main/resources/templates/sales/afterSalesNotice/afterSalesNotice.html

17
ruoyi-admin/src/main/resources/templates/sales/afterSalesNotice/afterSalesNotice.html

@ -56,7 +56,7 @@
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
<table id="bootstrap-table" style="white-space:nowrap"></table>
</div>
</div>
</div>
@ -83,6 +83,7 @@
cancelUrl: prefix + "/cancel/{id}",
restoreUrl: prefix + "/restore/{id}",
exportUrl: prefix + "/export",
showFooter: true,
modalName: "售后通知单",
columns: [{
checkbox: true
@ -188,10 +189,24 @@
{
title: '物料数合计',
field: 'materialSum',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
sum += parseFloat(value[i].materialSum) || 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: '联系人',

Loading…
Cancel
Save