Feature: 添加俄语、西班牙语支持 & 添加单位国际化

This commit is contained in:
2025-07-19 11:34:11 +08:00
parent 25d4dc7a7f
commit 38d10d7151
14 changed files with 299 additions and 151 deletions

View File

@ -26,49 +26,49 @@
<v-col cols="12">
<param-input-field
v-model="paperCoreDiameter"
:label="`${$t('paperCoreDiameter')}(${paperCoreDiameter.unit})`"
:label="$t('paperCoreDiameter')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="paperRollWallThickness"
:label="`${$t('paperRollWallThickness')}(${paperRollWallThickness.unit})`"
:label="$t('paperRollWallThickness')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="paperRollLength"
:label="`${$t('paperRollLength')}(${paperRollLength.unit})`"
:label="$t('paperRollLength')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="paperDensity"
:label="`${$t('paperDensity')}(${paperDensity.unit})`"
:label="$t('paperDensity')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="innerPaperWidth"
:label="`${$t('innerPaperWidth')}(${innerPaperWidth.unit})`"
:label="$t('innerPaperWidth')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="workFrequency"
:label="`${$t('workFrequency')}(${workFrequency.unit})`"
:label="$t('workFrequency')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="workTime"
:label="`${$t('workTime')}(${workTime.unit})`"
:label="$t('workTime')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="workEfficiency"
:label="`${$t('workEfficiency')}(${workEfficiency.unit})`"
:label="$t('workEfficiency')"
/>
</v-col>
</v-row>
@ -162,11 +162,11 @@
const paperCoreDiameter = ref<Param>(createParam(76.2, 'mm'))
const paperRollWallThickness = ref<Param>(createParam(10, 'mm'))
const paperRollLength = ref<Param>(createParam(1000, 'mm'))
const paperDensity = ref<Param>(createParam(0.76, 'g/cm³'))
const paperDensity = ref<Param>(createParam(0.76, 'g_per_cm3'))
const innerPaperWidth = ref<Param>(createParam(105, 'mm'))
const workFrequency = ref<Param>(createParam(30, 'Hz'))
const workTime = ref<Param>(createParam(8, 'h'))
const workEfficiency = ref<Param>(createParam(85, '%'))
const workFrequency = ref<Param>(createParam(30, 'hz'))
const workTime = ref<Param>(createParam(8, 'hour'))
const workEfficiency = ref<Param>(createParam(85, 'percent'))
const result = computed(() => {
const paperRollExternalDiameter = paperCoreDiameter.value.value + 2 * paperRollWallThickness.value.value
@ -181,12 +181,12 @@
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'),
feedPaperSpeed: createParam(feedPaperSpeed, 'm_per_min'),
outputSpeed: createParam(outputSpeed, 'm_per_min'),
productionAmountPerHour: createParam(productionAmountPerHour, 'pcs_per_hour'),
productionWeightPerHour: createParam(productionWeightPerHour, 'kg_per_hour'),
productionAmountPerDay: createParam(productionAmountPerDay, 'pcs_per_day'),
productionWeightPerDay: createParam(productionWeightPerDay, 'kg_per_day'),
}
})
@ -194,11 +194,11 @@
paperCoreDiameter.value = createParam(76.2, 'mm')
paperRollWallThickness.value = createParam(10, 'mm')
paperRollLength.value = createParam(1000, 'mm')
paperDensity.value = createParam(0.76, 'g/cm³')
paperDensity.value = createParam(0.76, 'g_per_cm3')
innerPaperWidth.value = createParam(105, 'mm')
workFrequency.value = createParam(30, 'Hz')
workTime.value = createParam(8, 'h')
workEfficiency.value = createParam(85, '%')
workFrequency.value = createParam(30, 'hz')
workTime.value = createParam(8, 'hour')
workEfficiency.value = createParam(85, 'percent')
}
</script>