fix(ui): use dict text from frontend for accurate display of frequency, usage, amount, dose and ordering doctor

This commit is contained in:
Ranyunqiao
2026-06-16 11:55:41 +08:00
parent f93bec967a
commit 41d05a1629

View File

@@ -235,19 +235,39 @@
field="singleDose"
width="100"
align="center"
/>
>
<template #default="scope">
{{ scope.row.singleDose ? scope.row.singleDose + ' ' + (scope.row.doseUnitCode_dictText || '') : '' }}
</template>
</vxe-column>
<vxe-column
title="总量"
field="totalAmount"
width="100"
align="center"
/>
>
<template #default="scope">
{{ scope.row.totalAmount }} {{ scope.row.unitCode_dictText || '' }}
</template>
</vxe-column>
<vxe-column
title="频次/用法"
field="frequencyUsage"
width="110"
width="130"
align="center"
/>
>
<template #default="scope">
{{
[
scope.row.rateCode_dictText,
scope.row.dispensePerDuration ? scope.row.dispensePerDuration + '天' : '',
scope.row.methodCode_dictText,
]
.filter(Boolean)
.join(' ')
}}
</template>
</vxe-column>
<vxe-column
title="皮试"
field="skinTestStatus"
@@ -283,10 +303,14 @@
</vxe-column>
<vxe-column
title="开嘱医生"
field="orderingDoctor"
field="requesterId_dictText"
width="100"
align="center"
/>
>
<template #default="scope">
{{ scope.row.requesterId_dictText || scope.row.orderingDoctor || '-' }}
</template>
</vxe-column>
<vxe-column
title="退回原因"
field="reasonText"