diff --git a/src/lang/en-US.js b/src/lang/en-US.js index 49e83e0..cd14e33 100644 --- a/src/lang/en-US.js +++ b/src/lang/en-US.js @@ -659,6 +659,38 @@ export default { importSuccess: 'Import succeeded!', importFailed: 'Import failed!' }, + toolLife: { + stationLabel: 'Equipment/Station:', + selectAllPlaceholder: 'Leave empty to view all equipment/stations', + search: 'Search', + totalTools: 'Total Tools', + pieceUnit: 'pcs', + normalTools: 'Normal Tools', + warningTools: 'Warning Tools', + scrapTools: 'Scrap Tools', + statusOverview: 'Status Overview', + statusOverviewSubtitle: 'Tool status summary by equipment', + normalRate: 'Normal Rate', + warningRate: 'Warning Rate', + scrapRate: 'Scrap Rate', + detailTitle: 'Tool Details', + detailSubtitle: 'Life and status of each tool under the current equipment', + sequence: 'No.', + stationColumn: 'Equipment/Station', + toolCode: 'Tool Code', + ratedLife: 'Rated Life', + usedLife: 'Used Life', + warningValue1: 'Warning Value', + remainingLife: 'Remaining Life', + lifeProgress: 'Life Progress', + status: 'Status', + statusNormal: 'Normal', + statusWarning: 'Warning', + statusScrap: 'Scrap', + allStations: 'All Equipment/Stations', + noData: 'No tool life data in the current scope', + queryFailed: 'Failed to query tool life data' + }, tagsView: { refresh: 'Refresh', closeCurrent: 'Close Current', diff --git a/src/lang/zh-CN.js b/src/lang/zh-CN.js index 354c337..3bba2f9 100644 --- a/src/lang/zh-CN.js +++ b/src/lang/zh-CN.js @@ -659,6 +659,38 @@ export default { importSuccess: '导入成功!', importFailed: '导入失败!' }, + toolLife: { + stationLabel: '设备/工位:', + selectAllPlaceholder: '不选则统计全部设备/工位', + search: '查询', + totalTools: '刀具总数', + pieceUnit: '把', + normalTools: '正常刀具', + warningTools: '预警刀具', + scrapTools: '报废刀具', + statusOverview: '状态概览', + statusOverviewSubtitle: '按设备统计刀具状态', + normalRate: '正常占比', + warningRate: '预警占比', + scrapRate: '报废占比', + detailTitle: '刀具明细', + detailSubtitle: '该设备下每把刀的寿命与状态', + sequence: '序号', + stationColumn: '设备/工位', + toolCode: '刀具代码', + ratedLife: '额定寿命', + usedLife: '已用寿命', + warningValue1: '预警值', + remainingLife: '剩余寿命', + lifeProgress: '寿命进度', + status: '状态', + statusNormal: '正常', + statusWarning: '预警', + statusScrap: '报废', + allStations: '全部设备/工位', + noData: '当前范围没有刀具寿命数据', + queryFailed: '刀具寿命数据查询失败' + }, tagsView: { refresh: '重新加载', closeCurrent: '关闭当前', diff --git a/src/views/EquipmentOperationAnalysis/EquipmentToolLife/index.vue b/src/views/EquipmentOperationAnalysis/EquipmentToolLife/index.vue index ca4caec..a43baa3 100644 --- a/src/views/EquipmentOperationAnalysis/EquipmentToolLife/index.vue +++ b/src/views/EquipmentOperationAnalysis/EquipmentToolLife/index.vue @@ -3,15 +3,16 @@
- 设备/工位: + {{ $t('toolLife.stationLabel') }} + @change="handleMachineChange" + @clear="handleMachineChange"> 查询 + @click="searchData">{{ $t('toolLife.search') }}
@@ -37,29 +38,38 @@
-
刀具总数
-
{{ summaryInfo.totalCount }}
+
{{ $t('toolLife.totalTools') }}
+
+
{{ summaryInfo.totalCount }}
+
{{ $t('toolLife.pieceUnit') }}
+
-
正常刀具
-
{{ summaryInfo.normalCount }}
-
{{ normalRateText }}
+
{{ $t('toolLife.normalTools') }}
+
+
{{ summaryInfo.normalCount }}
+
{{ normalRateText }}
+
-
预警刀具
-
{{ summaryInfo.warningCount }}
-
{{ warningRateText }}
+
{{ $t('toolLife.warningTools') }}
+
+
{{ summaryInfo.warningCount }}
+
{{ warningRateText }}
+
-
报废刀具
-
{{ summaryInfo.scrapCount }}
-
{{ scrapRateText }}
+
{{ $t('toolLife.scrapTools') }}
+
+
{{ summaryInfo.scrapCount }}
+
{{ scrapRateText }}
+
@@ -69,8 +79,8 @@
- 状态概览 - 按设备统计刀具状态 + {{ $t('toolLife.statusOverview') }} + {{ $t('toolLife.statusOverviewSubtitle') }}
@@ -79,7 +89,7 @@
{{ summaryInfo.totalCount }}
-
刀具总数
+
{{ $t('toolLife.totalTools') }}
@@ -88,7 +98,7 @@
- 正常占比 + {{ $t('toolLife.normalRate') }} {{ normalRateText }}
- 预警占比 + {{ $t('toolLife.warningRate') }} {{ warningRateText }}
- 报废占比 + {{ $t('toolLife.scrapRate') }} {{ scrapRateText }}
- 刀具明细 - 该设备下每把刀的寿命与状态 + {{ $t('toolLife.detailTitle') }} + {{ $t('toolLife.detailSubtitle') }}
- - + + - + @@ -156,27 +166,27 @@ - + - + - + - + - + - +