Update index.vue
This commit is contained in:
@@ -419,9 +419,9 @@
|
||||
<div class="prescription-footer">
|
||||
<div class="footer-left">
|
||||
<div class="footer-dosage">
|
||||
服用{{ savedPrescription.usage_days || savedPrescription.dose_count }}天{{ savedPrescription.times_per_day ? ',每天' + savedPrescription.times_per_day + '次' : '' }}, {{ savedPrescription.prescription_type }}
|
||||
服用{{ savedPrescription.usage_days || savedPrescription.dose_count }}天{{ savedPrescription.times_per_day ? ',每天' + savedPrescription.times_per_day + '次' : '' }}{{ savedDosageDescText ? ',' + savedDosageDescText : '' }}, {{ savedPrescription.prescription_type }}
|
||||
{{ savedPrescription.usage_instruction }}
|
||||
|
||||
|
||||
</div>
|
||||
<div class="footer-dosage">
|
||||
服用时间: {{ savedPrescription.usage_time ?' ' + savedPrescription.usage_time : '' }}
|
||||
@@ -752,6 +752,20 @@ const hasPrescriptionOrderBlockVoid = computed(() => {
|
||||
|
||||
const drawerTitle = computed(() => (approvedPreviewOnly.value ? '查看处方' : '中医处方单'))
|
||||
|
||||
/** 处方笺底部"用量/袋数"展示文案:浓缩水丸显示"一次X袋(每袋Yg)",其它类型显示"一次Yg" */
|
||||
const savedDosageDescText = computed(() => {
|
||||
const v = savedPrescription.value
|
||||
if (!v) return ''
|
||||
if (v.dosage_amount == null || v.dosage_amount === '') return ''
|
||||
const amount = Number(v.dosage_amount)
|
||||
const unit = v.dosage_unit || 'g'
|
||||
if ((v.prescription_type || '浓缩水丸') === '浓缩水丸') {
|
||||
const bags = Number(v.dosage_bag_count) > 0 ? Number(v.dosage_bag_count) : 1
|
||||
return `一次${bags}袋(每袋${amount}${unit})`
|
||||
}
|
||||
return `一次${amount}${unit}`
|
||||
})
|
||||
|
||||
// 处方库相关
|
||||
const showLibraryDialog = ref(false)
|
||||
const libraryLoading = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user