From 610a2e89a7846c27f5a803e556f4699444dfa104 Mon Sep 17 00:00:00 2001 From: huanshuo-W <15258427350@163.com> Date: Wed, 9 Jul 2025 15:48:30 +0800 Subject: [PATCH] =?UTF-8?q?Feature:=20=E7=BA=B8=E7=AE=A1=E9=87=8D=E9=87=8F?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PaperRollWeightLengthCalculate.vue | 156 +++++++++++++++++- .../Modules/PaperTubeWeightCalculate.vue | 9 +- src/components/ResultCard.vue | 2 +- src/locale/en.json | 24 +-- src/locale/zh.json | 23 +-- 5 files changed, 182 insertions(+), 32 deletions(-) diff --git a/src/components/Modules/PaperRollWeightLengthCalculate.vue b/src/components/Modules/PaperRollWeightLengthCalculate.vue index 1abb27b..d1ee7b2 100644 --- a/src/components/Modules/PaperRollWeightLengthCalculate.vue +++ b/src/components/Modules/PaperRollWeightLengthCalculate.vue @@ -1,11 +1,159 @@ + + - - diff --git a/src/components/Modules/PaperTubeWeightCalculate.vue b/src/components/Modules/PaperTubeWeightCalculate.vue index f9a7e60..0a5efb6 100644 --- a/src/components/Modules/PaperTubeWeightCalculate.vue +++ b/src/components/Modules/PaperTubeWeightCalculate.vue @@ -5,7 +5,7 @@ - - - {{ $t('results') }} diff --git a/src/components/ResultCard.vue b/src/components/ResultCard.vue index 6eb94a1..f8db4a4 100644 --- a/src/components/ResultCard.vue +++ b/src/components/ResultCard.vue @@ -19,7 +19,7 @@ size="large" variant="outlined" > - {{ value.value.toFixed(4) }} {{ value.unit }} + {{ value.value.toFixed(2) }} {{ value.unit }} diff --git a/src/locale/en.json b/src/locale/en.json index 9a7bd45..96f1f9a 100644 --- a/src/locale/en.json +++ b/src/locale/en.json @@ -1,23 +1,25 @@ { "appTitle": "Paper Tube Production Calculator", - "beltSpecificationCalculate": "Belt Specification Calculate", "multiLayerPaperTapeWidthAngleCalculate": "MultiLayer Paper Tape Width Angle Calculate", + "paperCoreDiameter": "Paper Core Diameter", + "paperDensity": "Paper Density", + "paperGrammage": "Grammage", + "paperRollExternalDiameter": "Paper Roll External Diameter", + "paperRollLength": "Paper Roll Length", + "paperRollWallThickness": "Paper Roll Wall Thickness", "paperRollWeightLengthCalculate": "Paper Roll Weight Length Calculate", "paperTapeWidthAngleCalculate": "Paper Tape Width Angle Calculate", "paperTubeProductionCalculate": "Paper Tube Production Calculate", "paperTubeWeightCalculate": "Paper Tube Weight Calculate", - "parameters": "Parameters", - "results": "Results", - - "paperRollLength": "Paper Roll Length", - "paperDensity": "Paper Density", "productionAmount": "Production Amount", - "paperCoreDiameter": "Paper Core Diameter", - "paperRollWallThickness": "Paper Roll Wall Thickness", + "reset": "Reset", + "results": "Results", "singlePaperTubeWeight": "Single Paper Tube Weight", "totalPaperTubeWeight": "Total Paper Tube Weight", - - "reset": "Reset" -} \ No newline at end of file + "paperRollWidth": "Paper Roll Width", + "paperThickness": "Paper Thickness", + "paperRollWeight": "Paper Roll Weight", + "paperLength": "Paper Roll Length" +} diff --git a/src/locale/zh.json b/src/locale/zh.json index 36df641..079e2ff 100644 --- a/src/locale/zh.json +++ b/src/locale/zh.json @@ -2,21 +2,24 @@ "appTitle": "纸管制作辅助生产工具", "beltSpecificationCalculate": "皮带规格计算", "multiLayerPaperTapeWidthAngleCalculate": "多层纸带宽度角度计算", + "paperCoreDiameter": "纸芯内径", + "paperDensity": "纸张密度", + "paperGrammage": "纸张克重", + "paperRollExternalDiameter": "纸卷外径", + "paperRollLength": "纸卷长度", + "paperRollWallThickness": "纸卷壁厚", "paperRollWeightLengthCalculate": "纸卷重量长度计算", "paperTapeWidthAngleCalculate": "纸带宽度角度计算", "paperTubeProductionCalculate": "纸管产能计算", "paperTubeWeightCalculate": "纸管重量计算", - "parameters": "参数", - "results": "结果", - - "paperRollLength": "纸卷长度", - "paperDensity": "纸张密度", "productionAmount": "生产数量", - "paperCoreDiameter": "纸芯内径", - "paperRollWallThickness": "纸卷壁厚", + "reset": "重置", + "results": "结果", "singlePaperTubeWeight": "单个纸管重量", "totalPaperTubeWeight": "总纸管重量", - - "reset": "重置" -} \ No newline at end of file + "paperRollWidth": "纸卷宽度", + "paperThickness": "纸张厚度", + "paperLength": "纸卷长度", + "paperRollWeight": "纸卷重量" +}