diff --git a/klp-ui/src/views/wms/report/js/calc.js b/klp-ui/src/views/wms/report/js/calc.js
index cd6b0939..79e6d870 100644
--- a/klp-ui/src/views/wms/report/js/calc.js
+++ b/klp-ui/src/views/wms/report/js/calc.js
@@ -1,12 +1,12 @@
-const calcSummary = (list) => {
+const calcSummary = (list, lossList) => {
// 总钢卷数量、总重、均重
const outCount = list.length
const outTotalWeight = list.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
const outAvgWeight = outCount > 0 ? (outTotalWeight / outCount)?.toFixed(2) : 0
// 损失钢卷数量、总重、均重
- const lossCount = list.length
- const lossTotalWeight = list.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
+ const lossCount = lossList.length
+ const lossTotalWeight = lossList.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
const lossAvgWeight = lossCount > 0 ? (lossTotalWeight / lossCount)?.toFixed(2) : 0
// 合计数量、总重、均重
const totalCount = outCount + lossCount
@@ -14,7 +14,7 @@ const calcSummary = (list) => {
const totalAvgWeight = totalCount > 0 ? (totalWeight / totalCount)?.toFixed(2) : 0
// 成品比率
- const passRate = outCount > 0 ? (outCount / lossCount) : 0
+ const passRate = outCount > 0 ? (outTotalWeight / lossTotalWeight) : 0
// 损失比率
const lossRate = totalCount > 0 ? (1 - passRate) : 0
// 异常率,成品在warehouseId在'2019583656787259393',
@@ -93,7 +93,25 @@ const calcAbSummary = (list) => {
]
}
+const calcTeamSummary = (list) => {
+ // 按照班组汇总信息
+ const teamSummary = {}
+ for (let i = 0; i < list.length; i++) {
+ const coil = list[i];
+ if (!teamSummary[coil.team]) {
+ teamSummary[coil.team] = {
+ count: 0,
+ weight: 0,
+ }
+ }
+ teamSummary[coil.team].count = teamSummary[coil.team].count + 1
+ teamSummary[coil.team].weight = teamSummary[coil.team].weight + parseFloat(coil.netWeight) || 0
+ }
+ return teamSummary
+}
+
export {
calcSummary,
calcAbSummary,
+ calcTeamSummary,
}
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/report/zha.vue b/klp-ui/src/views/wms/report/zha.vue
index 11782543..2826bf48 100644
--- a/klp-ui/src/views/wms/report/zha.vue
+++ b/klp-ui/src/views/wms/report/zha.vue
@@ -197,10 +197,10 @@ export default {
createBy: 'suanzhakuguan',
warehouseId: '2019583656787259393'
},
- '20195833325311414274': {
+ '2019583325311414274': {
selectType: 'product',
createBy: 'suanzhakuguan',
- warehouseId: '20195833325311414274'
+ warehouseId: '2019583325311414274'
},
'2019583429955104769': {
selectType: 'product',
diff --git a/klp-ui/src/views/wms/report/zha/day.vue b/klp-ui/src/views/wms/report/zha/day.vue
index 57ca4ad6..48ba02fc 100644
--- a/klp-ui/src/views/wms/report/zha/day.vue
+++ b/klp-ui/src/views/wms/report/zha/day.vue
@@ -71,7 +71,7 @@
-
+
@@ -186,7 +186,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 9999,
- date: currentDate, // 绑定日期选择器的默认值(当天)
+ // date: currentDate, // 绑定日期选择器的默认值(当天)
byCreateTimeStart: start, // 默认当天0点
byCreateTimeEnd: end, // 默认当天23:59:59
selectType: 'product',
@@ -266,7 +266,7 @@ export default {
},
computed: {
summary() {
- return calcSummary(this.list)
+ return calcSummary(this.list, this.lossList)
},
abSummary() {
return calcAbSummary(this.list)
diff --git a/klp-ui/src/views/wms/report/zha/month.vue b/klp-ui/src/views/wms/report/zha/month.vue
index 09ebf3b0..9aab130d 100644
--- a/klp-ui/src/views/wms/report/zha/month.vue
+++ b/klp-ui/src/views/wms/report/zha/month.vue
@@ -66,7 +66,7 @@
-
+
@@ -291,7 +291,7 @@ export default {
},
computed: {
summary() {
- return calcSummary(this.list)
+ return calcSummary(this.list, this.lossList)
}
},
methods: {
diff --git a/klp-ui/src/views/wms/report/zha/team.vue b/klp-ui/src/views/wms/report/zha/team.vue
index cc06fd2c..4890d803 100644
--- a/klp-ui/src/views/wms/report/zha/team.vue
+++ b/klp-ui/src/views/wms/report/zha/team.vue
@@ -2,9 +2,13 @@
-
-
+
+
+
+
+
@@ -54,25 +58,36 @@
{{ summary.outTotalWeight }}t
{{ summary.outAvgWeight }}t
- {{ summary.lossCount }}
+
- {{ summary.passRate }}
- {{ summary.lossRate }}
+
+
- {{ summary.abRate }}
+
+
+
+
+
+
+
+
+
+
-
-
+
@@ -99,8 +113,8 @@
-
-
+ -->
+
@@ -134,8 +148,8 @@
-
-
+
+
@@ -151,6 +165,7 @@ import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
import MemoInput from "@/components/MemoInput";
import MutiSelect from "@/components/MutiSelect";
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
+import { calcSummary, calcAbSummary, calcTeamSummary } from "@/views/wms/report/js/calc";
export default {
components: {
@@ -168,15 +183,45 @@ export default {
// 获取当前日期(默认选中当天)
const now = new Date()
- const currentDate = `${now.getFullYear()}-${addZero(now.getMonth() + 1)}-${addZero(now.getDate())}`
+ const currentDate = `${now.getFullYear()}-${addZero(now.getMonth() + 1)}`
- // 生成指定日期的 00:00:00 和 23:59:59 时间字符串
+ /**
+ * 生成指定日期/月份的时间范围字符串
+ * @param {string} dateStr - 支持格式:yyyy-MM(月份) 或 yyyy-MM-dd(具体日期)
+ * @returns {object} 包含start(开始时间)和end(结束时间)的对象
+ */
const getDayTimeRange = (dateStr) => {
- return {
- start: `${dateStr} 00:00:00`,
- end: `${dateStr} 23:59:59`
+ // 先校验输入格式是否合法
+ const monthPattern = /^\d{4}-\d{2}$/; // yyyy-MM 正则
+ const dayPattern = /^\d{4}-\d{2}-\d{2}$/; // yyyy-MM-dd 正则
+
+ if (!monthPattern.test(dateStr) && !dayPattern.test(dateStr)) {
+ throw new Error('输入格式错误,请传入 yyyy-MM 或 yyyy-MM-dd 格式的字符串');
}
- }
+
+ let startDate, endDate;
+
+ if (monthPattern.test(dateStr)) {
+ // 处理 yyyy-MM 格式:获取本月第一天和最后一天
+ const [year, month] = dateStr.split('-').map(Number);
+ // 月份是0基的(0=1月,1=2月...),所以要减1
+ // 第一天:yyyy-MM-01
+ startDate = `${dateStr}-01`;
+ // 最后一天:通过 new Date(year, month, 0) 计算(month是原始月份,比如2代表2月,传2则取3月0日=2月最后一天)
+ const lastDayOfMonth = new Date(year, month, 0).getDate();
+ endDate = `${dateStr}-${lastDayOfMonth.toString().padStart(2, '0')}`;
+ } else {
+ // 处理 yyyy-MM-dd 格式:直接使用传入的日期
+ startDate = dateStr;
+ endDate = dateStr;
+ }
+
+ // 拼接时间部分
+ return {
+ start: `${startDate} 00:00:00`,
+ end: `${endDate} 23:59:59`
+ };
+ };
const { start, end } = getDayTimeRange(currentDate)
@@ -267,47 +312,41 @@ export default {
},
computed: {
summary() {
- // 总钢卷数量、总重、均重
- const outCount = this.list.length
- const outTotalWeight = this.list.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
- const outAvgWeight = outCount > 0 ? (outTotalWeight / outCount)?.toFixed(2) : 0
+ return calcSummary(this.list, this.lossList)
+ },
+ // 合并两个汇总结果并转换为目标数组的方法
+ teamSummary() {
+ const teamOutSummary = calcTeamSummary(this.list);
+ // const teamLossSummary = calcTeamSummary(this.lossList);
- // 损失钢卷数量、总重、均重
- const lossCount = this.lossList.length
- const lossTotalWeight = this.lossList.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
- const lossAvgWeight = lossCount > 0 ? (lossTotalWeight / lossCount)?.toFixed(2) : 0
- // 合计数量、总重、均重
- const totalCount = outCount + lossCount
- const totalWeight = parseFloat((outTotalWeight + lossTotalWeight).toFixed(2))
- const totalAvgWeight = totalCount > 0 ? (totalWeight / totalCount)?.toFixed(2) : 0
+ const allTeams = [...new Set([
+ ...Object.keys(teamOutSummary),
+ // ...Object.keys(teamLossSummary)
+ ])];
- // 成品比率
- const passRate = outCount > 0 ? (outCount / lossCount) : 0
- // 损失比率
- const lossRate = 1 - passRate
- // 异常率,成品在warehouseId在'2019583656787259393',
- // '2019583325311414274',
- // '2019583429955104769',
- // '2019583137616310273',这四个库中的占比
- const abRate = this.list.filter(item => {
- return item.warehouseId == '2019583656787259393' || item.warehouseId == '2019583325311414274' || item.warehouseId == '2019583429955104769' || item.warehouseId == '2019583137616310273'
- }).length / totalCount
+ const result = allTeams.map(team => {
+ const outData = teamOutSummary[team] || { count: 0, weight: 0 };
+ // const lossData = teamLossSummary[team] || { count: 0, weight: 0 };
+ // 核心修复:先确保是有效数字,再保留两位小数
+ const formatWeight = (weight) => {
+ // 步骤1:转数字,非数字则置为0;步骤2:保留两位小数
+ return Number(weight || 0).toFixed(2);
+ // 如果需要返回数字类型(而非字符串),用这行:
+ // return Number(Number(weight || 0).toFixed(2));
+ };
- return {
- outCount,
- outTotalWeight: outTotalWeight.toFixed(2),
- outAvgWeight,
- lossCount,
- lossTotalWeight: lossTotalWeight.toFixed(2),
- lossAvgWeight,
- totalCount,
- totalWeight: totalWeight.toFixed(2),
- totalAvgWeight,
- passRate: passRate?.toFixed(2) * 100 + '%',
- lossRate: lossRate?.toFixed(2) * 100 + '%',
- abRate: (abRate?.toFixed(2) * 100) || 0 + '%',
- }
+ return {
+ team: team,
+ outCount: outData.count,
+ outWeight: formatWeight(outData.weight), // 格式化出库重量
+ // lossCount: lossData.count,
+ // lossWeight: formatWeight(lossData.weight), // 格式化损耗重量
+ // passRate: (outData.weight / lossData.weight * 100).toFixed(2) + '%' , // 计算成品率
+ };
+ });
+
+ return result;
}
},
methods: {
@@ -344,7 +383,7 @@ export default {
(a, b) => new Date(b.createTime) - new Date(a.createTime)
)
this.loading = false
- this.getLossList()
+ // this.getLossList()
}).catch(err => { // 增加错误处理
console.error('查询失败:', err)
this.loading = false
diff --git a/klp-ui/src/views/wms/report/zha/year.vue b/klp-ui/src/views/wms/report/zha/year.vue
index 72b36c89..50454f8b 100644
--- a/klp-ui/src/views/wms/report/zha/year.vue
+++ b/klp-ui/src/views/wms/report/zha/year.vue
@@ -66,7 +66,7 @@
-
+
@@ -275,7 +275,7 @@ export default {
},
computed: {
summary() {
- return calcSummary(this.list)
+ return calcSummary(this.list, this.lossList)
}
},
methods: {
diff --git a/klp-ui/src/views/wms/report/zinc.vue b/klp-ui/src/views/wms/report/zinc.vue
index 409a8ccf..127125ed 100644
--- a/klp-ui/src/views/wms/report/zinc.vue
+++ b/klp-ui/src/views/wms/report/zinc.vue
@@ -183,10 +183,10 @@ export default {
// createBy: 'suanzhakuguan',
warehouseId: '2019583656787259393'
},
- '20195833325311414274': {
+ '2019583325311414274': {
selectType: 'product',
// createBy: 'suanzhakuguan',
- warehouseId: '20195833325311414274'
+ warehouseId: '2019583325311414274'
},
'2019583429955104769': {
selectType: 'product',
diff --git a/klp-ui/src/views/wms/report/zinc/day.vue b/klp-ui/src/views/wms/report/zinc/day.vue
index f3d62365..3aa6d401 100644
--- a/klp-ui/src/views/wms/report/zinc/day.vue
+++ b/klp-ui/src/views/wms/report/zinc/day.vue
@@ -71,7 +71,7 @@
-
+
@@ -186,7 +186,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 9999,
- date: currentDate, // 绑定日期选择器的默认值(当天)
+ // date: currentDate, // 绑定日期选择器的默认值(当天)
byCreateTimeStart: start, // 默认当天0点
byCreateTimeEnd: end, // 默认当天23:59:59
selectType: 'product',
@@ -218,32 +218,32 @@ export default {
warehouseQueryMap: {
'1988150323162836993': {
selectType: 'product',
- // createBy: 'suanzhakuguan',
+ createBy: 'suanzhakuguan',
warehouseId: '1988150323162836993'
},
'1988150487185289217': {
selectType: 'raw_material',
- // createBy: 'suanzhakuguan',
+ createBy: 'suanzhakuguan',
warehouseId: '1988150487185289217'
},
'2019583656787259393': {
selectType: 'product',
- // createBy: 'suanzhakuguan',
+ createBy: 'suanzhakuguan',
warehouseId: '2019583656787259393'
},
- '20195833325311414274': {
+ '2019583325311414274': {
selectType: 'product',
- // createBy: 'suanzhakuguan',
- warehouseId: '20195833325311414274'
+ createBy: 'suanzhakuguan',
+ warehouseId: '2019583325311414274'
},
'2019583429955104769': {
selectType: 'product',
- // createBy: 'suanzhakuguan',
+ createBy: 'suanzhakuguan',
warehouseId: '2019583429955104769'
},
'2019583137616310273': {
selectType: 'product',
- // createBy: 'suanzhakuguan',
+ createBy: 'suanzhakuguan',
warehouseId: '2019583137616310273'
},
},
@@ -252,7 +252,7 @@ export default {
},
computed: {
summary() {
- return calcSummary(this.list)
+ return calcSummary(this.list, this.lossList)
},
abSummary() {
return calcAbSummary(this.list)
diff --git a/klp-ui/src/views/wms/report/zinc/month.vue b/klp-ui/src/views/wms/report/zinc/month.vue
index 066b16c1..3d1b64ea 100644
--- a/klp-ui/src/views/wms/report/zinc/month.vue
+++ b/klp-ui/src/views/wms/report/zinc/month.vue
@@ -66,7 +66,7 @@
-
+
@@ -256,10 +256,10 @@ export default {
// createBy: 'suanzhakuguan',
warehouseId: '2019583656787259393'
},
- '20195833325311414274': {
+ '2019583325311414274': {
selectType: 'product',
// createBy: 'suanzhakuguan',
- warehouseId: '20195833325311414274'
+ warehouseId: '2019583325311414274'
},
'2019583429955104769': {
selectType: 'product',
@@ -277,7 +277,7 @@ export default {
},
computed: {
summary() {
- return calcSummary(this.list)
+ return calcSummary(this.list, this.lossList)
}
},
methods: {
diff --git a/klp-ui/src/views/wms/report/zinc/team.vue b/klp-ui/src/views/wms/report/zinc/team.vue
index cb5fa558..6faa09d1 100644
--- a/klp-ui/src/views/wms/report/zinc/team.vue
+++ b/klp-ui/src/views/wms/report/zinc/team.vue
@@ -2,9 +2,13 @@
-
-
+
+
+
+
+
{{ summary.outTotalWeight }}t
{{ summary.outAvgWeight }}t
- {{ summary.lossCount }}
+
- {{ summary.passRate }}
- {{ summary.lossRate }}
+
- {{ summary.abRate }}
+
+
+
+
+
+
+
+
+
+
+
-
-
+
@@ -99,8 +114,8 @@
-
-
+ -->
+
@@ -134,8 +149,8 @@
-
-
+
+
@@ -151,6 +166,7 @@ import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
import MemoInput from "@/components/MemoInput";
import MutiSelect from "@/components/MutiSelect";
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
+import { calcSummary, calcAbSummary, calcTeamSummary } from "@/views/wms/report/js/calc.js";
export default {
components: {
@@ -168,15 +184,45 @@ export default {
// 获取当前日期(默认选中当天)
const now = new Date()
- const currentDate = `${now.getFullYear()}-${addZero(now.getMonth() + 1)}-${addZero(now.getDate())}`
+ const currentDate = `${now.getFullYear()}-${addZero(now.getMonth() + 1)}`
- // 生成指定日期的 00:00:00 和 23:59:59 时间字符串
+ /**
+ * 生成指定日期/月份的时间范围字符串
+ * @param {string} dateStr - 支持格式:yyyy-MM(月份) 或 yyyy-MM-dd(具体日期)
+ * @returns {object} 包含start(开始时间)和end(结束时间)的对象
+ */
const getDayTimeRange = (dateStr) => {
- return {
- start: `${dateStr} 00:00:00`,
- end: `${dateStr} 23:59:59`
+ // 先校验输入格式是否合法
+ const monthPattern = /^\d{4}-\d{2}$/; // yyyy-MM 正则
+ const dayPattern = /^\d{4}-\d{2}-\d{2}$/; // yyyy-MM-dd 正则
+
+ if (!monthPattern.test(dateStr) && !dayPattern.test(dateStr)) {
+ throw new Error('输入格式错误,请传入 yyyy-MM 或 yyyy-MM-dd 格式的字符串');
}
- }
+
+ let startDate, endDate;
+
+ if (monthPattern.test(dateStr)) {
+ // 处理 yyyy-MM 格式:获取本月第一天和最后一天
+ const [year, month] = dateStr.split('-').map(Number);
+ // 月份是0基的(0=1月,1=2月...),所以要减1
+ // 第一天:yyyy-MM-01
+ startDate = `${dateStr}-01`;
+ // 最后一天:通过 new Date(year, month, 0) 计算(month是原始月份,比如2代表2月,传2则取3月0日=2月最后一天)
+ const lastDayOfMonth = new Date(year, month, 0).getDate();
+ endDate = `${dateStr}-${lastDayOfMonth.toString().padStart(2, '0')}`;
+ } else {
+ // 处理 yyyy-MM-dd 格式:直接使用传入的日期
+ startDate = dateStr;
+ endDate = dateStr;
+ }
+
+ // 拼接时间部分
+ return {
+ start: `${startDate} 00:00:00`,
+ end: `${endDate} 23:59:59`
+ };
+ };
const { start, end } = getDayTimeRange(currentDate)
@@ -232,10 +278,10 @@ export default {
// createBy: 'suanzhakuguan',
warehouseId: '2019583656787259393'
},
- '20195833325311414274': {
+ '2019583325311414274': {
selectType: 'product',
// createBy: 'suanzhakuguan',
- warehouseId: '20195833325311414274'
+ warehouseId: '2019583325311414274'
},
'2019583429955104769': {
selectType: 'product',
@@ -253,47 +299,41 @@ export default {
},
computed: {
summary() {
- // 总钢卷数量、总重、均重
- const outCount = this.list.length
- const outTotalWeight = this.list.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
- const outAvgWeight = outCount > 0 ? (outTotalWeight / outCount)?.toFixed(2) : 0
+ return calcSummary(this.list, this.lossList)
+ },
+ // 合并两个汇总结果并转换为目标数组的方法
+ teamSummary() {
+ const teamOutSummary = calcTeamSummary(this.list);
+ // const teamLossSummary = calcTeamSummary(this.lossList);
- // 损失钢卷数量、总重、均重
- const lossCount = this.lossList.length
- const lossTotalWeight = this.lossList.reduce((acc, cur) => acc + (parseFloat(cur.netWeight) || 0), 0) // 增加容错
- const lossAvgWeight = lossCount > 0 ? (lossTotalWeight / lossCount)?.toFixed(2) : 0
- // 合计数量、总重、均重
- const totalCount = outCount + lossCount
- const totalWeight = parseFloat((outTotalWeight + lossTotalWeight).toFixed(2))
- const totalAvgWeight = totalCount > 0 ? (totalWeight / totalCount)?.toFixed(2) : 0
+ const allTeams = [...new Set([
+ ...Object.keys(teamOutSummary),
+ // ...Object.keys(teamLossSummary)
+ ])];
- // 成品比率
- const passRate = outCount > 0 ? (outCount / lossCount) : 0
- // 损失比率
- const lossRate = 1 - passRate
- // 异常率,成品在warehouseId在'2019583656787259393',
- // '2019583325311414274',
- // '2019583429955104769',
- // '2019583137616310273',这四个库中的占比
- const abRate = this.list.filter(item => {
- return item.warehouseId == '2019583656787259393' || item.warehouseId == '2019583325311414274' || item.warehouseId == '2019583429955104769' || item.warehouseId == '2019583137616310273'
- }).length / totalCount
+ const result = allTeams.map(team => {
+ const outData = teamOutSummary[team] || { count: 0, weight: 0 };
+ // const lossData = teamLossSummary[team] || { count: 0, weight: 0 };
+ // 核心修复:先确保是有效数字,再保留两位小数
+ const formatWeight = (weight) => {
+ // 步骤1:转数字,非数字则置为0;步骤2:保留两位小数
+ return Number(weight || 0).toFixed(2);
+ // 如果需要返回数字类型(而非字符串),用这行:
+ // return Number(Number(weight || 0).toFixed(2));
+ };
- return {
- outCount,
- outTotalWeight: outTotalWeight.toFixed(2),
- outAvgWeight,
- lossCount,
- lossTotalWeight: lossTotalWeight.toFixed(2),
- lossAvgWeight,
- totalCount,
- totalWeight: totalWeight.toFixed(2),
- totalAvgWeight,
- passRate: passRate?.toFixed(2) * 100 + '%',
- lossRate: lossRate?.toFixed(2) * 100 + '%',
- abRate: (abRate?.toFixed(2) * 100) || 0 + '%',
- }
+ return {
+ team: team,
+ outCount: outData.count,
+ outWeight: formatWeight(outData.weight), // 格式化出库重量
+ // lossCount: lossData.count,
+ // lossWeight: formatWeight(lossData.weight),
+ // passRate: (outData.weight / lossData.weight * 100).toFixed(2) + '%', // 计算成品率
+ };
+ });
+
+ return result;
}
},
methods: {
@@ -330,7 +370,7 @@ export default {
(a, b) => new Date(b.createTime) - new Date(a.createTime)
)
this.loading = false
- this.getLossList()
+ // this.getLossList()
}).catch(err => { // 增加错误处理
console.error('查询失败:', err)
this.loading = false
diff --git a/klp-ui/src/views/wms/report/zinc/year.vue b/klp-ui/src/views/wms/report/zinc/year.vue
index 60e90241..95e9f200 100644
--- a/klp-ui/src/views/wms/report/zinc/year.vue
+++ b/klp-ui/src/views/wms/report/zinc/year.vue
@@ -66,7 +66,7 @@
-
+
@@ -238,10 +238,10 @@ export default {
createBy: 'suanzhakuguan',
warehouseId: '2019583656787259393'
},
- '20195833325311414274': {
+ '2019583325311414274': {
selectType: 'product',
createBy: 'suanzhakuguan',
- warehouseId: '20195833325311414274'
+ warehouseId: '2019583325311414274'
},
'2019583429955104769': {
selectType: 'product',
@@ -259,7 +259,7 @@ export default {
},
computed: {
summary() {
- return calcSummary(this.list)
+ return calcSummary(this.list, this.lossList)
}
},
methods: {