diff --git a/src/components/Modules/PaperRollWeightLengthCalculate.vue b/src/components/Modules/PaperRollWeightLengthCalculate.vue
index a6c27be..3f6c1bd 100644
--- a/src/components/Modules/PaperRollWeightLengthCalculate.vue
+++ b/src/components/Modules/PaperRollWeightLengthCalculate.vue
@@ -64,6 +64,7 @@
prepend-icon="mdi-refresh"
size="large"
variant="outlined"
+ @click="resetParameters"
>
{{ $t('reset') }}
@@ -141,6 +142,14 @@
paperThickness: createParam(paperThickness, 'mm'),
}
})
+
+ const resetParameters = () => {
+ paperCoreDiameter.value = createParam(76.2, 'mm')
+ paperRollExternalDiameter.value = createParam(200, 'mm')
+ paperRollWidth.value = createParam(100, 'mm')
+ paperDensity.value = createParam(0.76, 'g/cm³')
+ paperGrammage.value = createParam(420, 'g/m²')
+ }
+ const paperCoreDiameter = ref(createParam(76.2, 'mm'))
+ const paperRollWallThickness = ref(createParam(10, 'mm'))
+ const paperRollLength = ref(createParam(1000, 'mm'))
+ const paperDensity = ref(createParam(0.76, 'g/cm³'))
+ const innerPaperWidth = ref(createParam(105, 'mm'))
+ const workFrequency = ref(createParam(30, 'Hz'))
+ const workTime = ref(createParam(8, 'h'))
+ const workEfficiency = ref(createParam(85, '%'))
+
+ const result = computed(() => {
+ const paperRollExternalDiameter = paperCoreDiameter.value.value + 2 * paperRollWallThickness.value.value
+ const paperRollExternalRadius = paperRollExternalDiameter / 2
+ const paperCoreInnerRadius = paperCoreDiameter.value.value / 2
+
+ const feedPaperSpeed = 50 / 1400 * workFrequency.value.value / 30 * (215 * Math.PI)
+ const outputSpeed = feedPaperSpeed / (paperRollExternalDiameter * Math.PI) * innerPaperWidth.value.value
+ const productionAmountPerHour = outputSpeed / 100 * workEfficiency.value.value / (paperRollLength.value.value / 1000) * 60
+ const productionWeightPerHour = productionAmountPerHour * (Math.PI * (Math.pow(paperRollExternalRadius, 2) - Math.pow(paperCoreInnerRadius, 2)) * paperRollLength.value.value * paperDensity.value.value / 1_000_000)
+ const productionAmountPerDay = productionAmountPerHour * workTime.value.value
+ const productionWeightPerDay = productionWeightPerHour * workTime.value.value
+
+ return {
+ feedPaperSpeed: createParam(feedPaperSpeed, 'm/min'),
+ outputSpeed: createParam(outputSpeed, 'm/min'),
+ productionAmountPerHour: createParam(productionAmountPerHour, '支/h'),
+ productionWeightPerHour: createParam(productionWeightPerHour, 'kg/h'),
+ productionAmountPerDay: createParam(productionAmountPerDay, '支'),
+ productionWeightPerDay: createParam(productionWeightPerDay, 'kg'),
+ }
+ })
+
+ const resetParameters = () => {
+ paperCoreDiameter.value = createParam(76.2, 'mm')
+ paperRollWallThickness.value = createParam(10, 'mm')
+ paperRollLength.value = createParam(1000, 'mm')
+ paperDensity.value = createParam(0.76, 'g/cm³')
+ innerPaperWidth.value = createParam(105, 'mm')
+ workFrequency.value = createParam(30, 'Hz')
+ workTime.value = createParam(8, 'h')
+ workEfficiency.value = createParam(85, '%')
+ }
+
+
diff --git a/src/components/Modules/PaperTubeWeightCalculate.vue b/src/components/Modules/PaperTubeWeightCalculate.vue
index 5f75a8a..92163b9 100644
--- a/src/components/Modules/PaperTubeWeightCalculate.vue
+++ b/src/components/Modules/PaperTubeWeightCalculate.vue
@@ -64,6 +64,7 @@
prepend-icon="mdi-refresh"
size="large"
variant="outlined"
+ @click="resetParameters"
>
{{ $t('reset') }}
@@ -134,4 +135,12 @@
totalPaperTubeWeight: createParam(totalPaperTubeWeight, 'kg'),
}
})
+
+ const resetParameters = () => {
+ paperRollLength.value = createParam(1000, 'mm')
+ paperDensity.value = createParam(0.76, 'g/cm³')
+ productionAmount.value = createParam(1000, '支')
+ paperCoreDiameter.value = createParam(76.2, 'mm')
+ paperRollWallThickness.value = createParam(10, 'mm')
+ }
diff --git a/src/locale/en.json b/src/locale/en.json
index 96f1f9a..853f036 100644
--- a/src/locale/en.json
+++ b/src/locale/en.json
@@ -21,5 +21,15 @@
"paperRollWidth": "Paper Roll Width",
"paperThickness": "Paper Thickness",
"paperRollWeight": "Paper Roll Weight",
- "paperLength": "Paper Roll Length"
+ "paperLength": "Paper Roll Length",
+ "innerPaperWidth": "Inner Paper Width",
+ "workFrequency": "Work Frequency",
+ "workTime": "Work time",
+ "workEfficiency": "Work efficiency",
+ "feedPaperSpeed": "Feed speed",
+ "outputSpeed": "Output speed",
+ "productionAmountPerDay": "Daily output",
+ "productionAmountPerHour": "Hourly output",
+ "productionWeightPerDay": "Daily output",
+ "productionWeightPerHour": "Hourly output"
}
diff --git a/src/locale/zh.json b/src/locale/zh.json
index 079e2ff..feab888 100644
--- a/src/locale/zh.json
+++ b/src/locale/zh.json
@@ -21,5 +21,15 @@
"paperRollWidth": "纸卷宽度",
"paperThickness": "纸张厚度",
"paperLength": "纸卷长度",
- "paperRollWeight": "纸卷重量"
+ "paperRollWeight": "纸卷重量",
+ "innerPaperWidth": "里纸宽度",
+ "workFrequency": "工作频率",
+ "workTime": "工作时间",
+ "workEfficiency": "工作效率",
+ "feedPaperSpeed": "进纸速度",
+ "outputSpeed": "出管速度",
+ "productionAmountPerHour": "每小时产量",
+ "productionWeightPerHour": "每小时产量",
+ "productionAmountPerDay": "每天产量",
+ "productionWeightPerDay": "每天产量"
}