|
@@ -339,8 +339,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: "5",
|
|
|
- label: "fGrossweight",
|
|
|
- name: "毛重",
|
|
|
+ label: "fNetweight",
|
|
|
+ name: "净重",
|
|
|
checked: 0,
|
|
|
width: 120,
|
|
|
show: true,
|
|
@@ -513,14 +513,14 @@ export default {
|
|
|
sums[index] = "合计";
|
|
|
return;
|
|
|
}
|
|
|
- if (column.property === "fGrossweight") {
|
|
|
- values = data.map((item) => Number(item["fGrossweight"]));
|
|
|
+ if (column.property === "fNetweight") {
|
|
|
+ values = data.map((item) => Number(item["fNetweight"]));
|
|
|
}
|
|
|
if (column.property === "fQty") {
|
|
|
values = data.map((item) => Number(item["fQty"]));
|
|
|
}
|
|
|
if (
|
|
|
- column.property === "fGrossweight" ||
|
|
|
+ column.property === "fNetweight" ||
|
|
|
column.property === "fQty"
|
|
|
) {
|
|
|
sums[index] = values.reduce((prev, curr) => {
|
|
@@ -531,7 +531,7 @@ export default {
|
|
|
return prev;
|
|
|
}
|
|
|
}, 0);
|
|
|
- if (column.property === "fGrossweight") {
|
|
|
+ if (column.property === "fNetweight") {
|
|
|
sums[index] = (sums[index] / 1000).toFixed(4) + "(吨)";
|
|
|
}
|
|
|
if (column.property === "fQty") {
|