优化混炼示方中换算系数和配方参数的数值展示与输入解析,调整相关字段的小数精度,增强用户交互体验。
This commit is contained in:
@@ -67,7 +67,9 @@
|
||||
<a-input-number
|
||||
v-model:value="sheetForm.convertFactor"
|
||||
:disabled="!showFooter"
|
||||
:precision="6"
|
||||
:precision="2"
|
||||
:formatter="formatConvertFactorInput"
|
||||
:parser="parseConvertFactorInput"
|
||||
:bordered="false"
|
||||
class="form-input"
|
||||
style="width: 100%"
|
||||
@@ -146,7 +148,15 @@
|
||||
<tr>
|
||||
<th class="formTitle">侧壁水温</th>
|
||||
<td class="formValue">
|
||||
<a-input-number v-model:value="sheetForm.sideWallWaterTemp" :disabled="!showFooter" :precision="6" :bordered="false" class="form-input" style="width: 100%" />
|
||||
<a-input-number
|
||||
v-model:value="sheetForm.sideWallWaterTemp"
|
||||
:disabled="!showFooter"
|
||||
:formatter="formatRecipeParamInput"
|
||||
:parser="parseRecipeParamInput"
|
||||
:bordered="false"
|
||||
class="form-input"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</td>
|
||||
<th class="formTitle">超时排胶时间</th>
|
||||
<td class="formValue">
|
||||
@@ -158,21 +168,53 @@
|
||||
</td>
|
||||
<th class="formTitle">超温排胶温度</th>
|
||||
<td class="formValue">
|
||||
<a-input-number v-model:value="sheetForm.overtempDischargeTemp" :disabled="!showFooter" :precision="6" :bordered="false" class="form-input" style="width: 100%" />
|
||||
<a-input-number
|
||||
v-model:value="sheetForm.overtempDischargeTemp"
|
||||
:disabled="!showFooter"
|
||||
:formatter="formatRecipeParamInput"
|
||||
:parser="parseRecipeParamInput"
|
||||
:bordered="false"
|
||||
class="form-input"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</td>
|
||||
<th class="formTitle">卸料门水温</th>
|
||||
<td class="formValue">
|
||||
<a-input-number v-model:value="sheetForm.doorWaterTemp" :disabled="!showFooter" :precision="6" :bordered="false" class="form-input" style="width: 100%" />
|
||||
<a-input-number
|
||||
v-model:value="sheetForm.doorWaterTemp"
|
||||
:disabled="!showFooter"
|
||||
:formatter="formatRecipeParamInput"
|
||||
:parser="parseRecipeParamInput"
|
||||
:bordered="false"
|
||||
class="form-input"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</td>
|
||||
<th class="formTitle">转子水温</th>
|
||||
<td class="formValue">
|
||||
<a-input-number v-model:value="sheetForm.rotorWaterTemp" :disabled="!showFooter" :precision="6" :bordered="false" class="form-input" style="width: 100%" />
|
||||
<a-input-number
|
||||
v-model:value="sheetForm.rotorWaterTemp"
|
||||
:disabled="!showFooter"
|
||||
:formatter="formatRecipeParamInput"
|
||||
:parser="parseRecipeParamInput"
|
||||
:bordered="false"
|
||||
class="form-input"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="formTitle">最高进料温度</th>
|
||||
<td class="formValue">
|
||||
<a-input-number v-model:value="sheetForm.maxFeedTemp" :disabled="!showFooter" :precision="6" :bordered="false" class="form-input" style="width: 100%" />
|
||||
<a-input-number
|
||||
v-model:value="sheetForm.maxFeedTemp"
|
||||
:disabled="!showFooter"
|
||||
:formatter="formatRecipeParamInput"
|
||||
:parser="parseRecipeParamInput"
|
||||
:bordered="false"
|
||||
class="form-input"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</td>
|
||||
<td class="formValue blank" colspan="10"></td>
|
||||
</tr>
|
||||
@@ -474,6 +516,10 @@ import {
|
||||
calcMixingMaterialAccumWeightTotal,
|
||||
buildMixingMaterialFooterCells,
|
||||
normalizeMixingConvertFactor,
|
||||
formatMixingConvertFactorDisplay,
|
||||
parseMixingConvertFactorValue,
|
||||
formatMixingRecipeParamDisplay,
|
||||
parseMixingRecipeParamValue,
|
||||
initMaterialBaseUnitWeights,
|
||||
applyConvertFactorToMaterialRows,
|
||||
syncMaterialBaseUnitWeightFromDisplay,
|
||||
@@ -682,6 +728,30 @@ function stripMaterialRowForSave(row: Recordable) {
|
||||
const { baseUnitWeight: _baseUnitWeight, ...rest } = row;
|
||||
return rest;
|
||||
}
|
||||
|
||||
//update-begin---author:cursor ---date:20260526 for:【XSLMES-20260526-A60】换算系数/配方参数数值展示优化-----------
|
||||
function formatConvertFactorInput(value: string | number, info?: { userTyping?: boolean }) {
|
||||
if (info?.userTyping) {
|
||||
return value == null ? '' : String(value);
|
||||
}
|
||||
return formatMixingConvertFactorDisplay(value);
|
||||
}
|
||||
|
||||
function parseConvertFactorInput(value: string) {
|
||||
return parseMixingConvertFactorValue(value);
|
||||
}
|
||||
|
||||
function formatRecipeParamInput(value: string | number, info?: { userTyping?: boolean }) {
|
||||
if (info?.userTyping) {
|
||||
return value == null ? '' : String(value);
|
||||
}
|
||||
return formatMixingRecipeParamDisplay(value);
|
||||
}
|
||||
|
||||
function parseRecipeParamInput(value: string) {
|
||||
return parseMixingRecipeParamValue(value);
|
||||
}
|
||||
//update-end---author:cursor ---date:20260526 for:【XSLMES-20260526-A60】换算系数/配方参数数值展示优化-----------
|
||||
//update-end---author:cursor ---date:20260525 for:【XSLMES-20260525-A43】换算系数联动明细单重实时计算-----------
|
||||
|
||||
function recalcMaterialAccumWeight() {
|
||||
|
||||
Reference in New Issue
Block a user