Browse Source

[fix] 工程管理

修改物料详情前端页面:修改采购价历史所有数字相关的字段,添加最后一列为合计;修改销售价历史所有数字相关的字段,添加最后一列为合计,币种字段引用字典,根据值显示对应的中文
dev
liuxiaoxu 3 months ago
parent
commit
1c4d8eee8f
  1. 26
      ruoyi-admin/src/main/resources/templates/erp/material/detail.html

26
ruoyi-admin/src/main/resources/templates/erp/material/detail.html

@ -127,6 +127,9 @@
<script th:src="@{/ajax/libs/vue/vue.js}"></script>
<script th:src="@{/ajax/libs/element-ui/element-ui.js}"></script>
<script th:inline="javascript">
var commonCurrencyDatas = [[${@dict.getType('sys_common_currency')}]];
new Vue({
el: '#app',
data: function() {
@ -370,12 +373,13 @@
for (var i in value) {
sum += parseFloat(value[i].materialNum);
}
return sum;
return "总数量: " + sum;
}
},
{
field: 'commonCurrency',
title: '币种'
title: '币种',
formatter: function (value, row, index) {return $.table.selectDictLabel(commonCurrencyDatas, value)}
},
{
field: 'taxPrice',
@ -385,7 +389,7 @@
for (var i in value) {
sum += parseFloat(value[i].taxPrice);
}
return sum;
return "总含税价格: " +sum;
}
},
{
@ -396,7 +400,7 @@
for (var i in value) {
sum += parseFloat(value[i].noTaxPrice);
}
return sum;
return "总不含税价格: " +sum;
}
},
{
@ -407,7 +411,7 @@
for (var i in value) {
sum += parseFloat(value[i].taxSum);
}
return sum;
return "总含税总价: " +sum;
}
},
{
@ -418,7 +422,7 @@
for (var i in value) {
sum += parseFloat(value[i].noTaxSum);
}
return sum;
return "总不含税总价: " +sum;
}
},
{
@ -475,7 +479,7 @@
for (var i in value) {
sum += parseFloat(value[i].materialNum);
}
return sum;
return "总数量: " +sum;
}
},
{
@ -486,7 +490,7 @@
for (var i in value) {
sum += parseFloat(value[i].taxPrice);
}
return sum;
return "总含税价格: " +sum;
}
},
{
@ -497,7 +501,7 @@
for (var i in value) {
sum += parseFloat(value[i].noTaxPrice);
}
return sum;
return "总不含税价格: " +sum;
}
},
{
@ -508,7 +512,7 @@
for (var i in value) {
sum += parseFloat(value[i].taxSum);
}
return sum;
return "总含税总价: " +sum;
}
},
{
@ -519,7 +523,7 @@
for (var i in value) {
sum += parseFloat(value[i].noTaxSum);
}
return sum;
return "总不含税总价: " +sum;
}
},
{

Loading…
Cancel
Save