734 【住院医生站-临床医嘱】医嘱开具时,录入框右侧缺少最小单位与剂量单位的动态换算公式说明(如:2袋 = 30 g
This commit is contained in:
@@ -148,6 +148,13 @@
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
<!-- Bug #734: 剂量换算公式显示 -->
|
||||
<span
|
||||
v-if="row.unitConversionRatio > 0 && row.doseQuantity > 0"
|
||||
class="conversion-formula"
|
||||
>
|
||||
{{ row.doseQuantity }}{{ row.minUnitCode_dictText }} = {{ Number(row.doseQuantity * row.unitConversionRatio).toFixed(2).replace(/\.?0+$/, '') }} {{ row.doseUnitCode_dictText }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<el-form-item
|
||||
@@ -429,6 +436,13 @@
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
<!-- Bug #734: 剂量换算公式显示 -->
|
||||
<span
|
||||
v-if="row.unitConversionRatio > 0 && row.doseQuantity > 0"
|
||||
class="conversion-formula"
|
||||
>
|
||||
{{ row.doseQuantity }}{{ row.minUnitCode_dictText }} = {{ Number(row.doseQuantity * row.unitConversionRatio).toFixed(2).replace(/\.?0+$/, '') }} {{ row.doseUnitCode_dictText }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<el-form-item
|
||||
@@ -1172,6 +1186,14 @@ defineExpose({
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.conversion-formula {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #67C23A;
|
||||
white-space: nowrap;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user