fix: 修复#420 #416 检验申请单显示优化与布局调整

#420: 申请单项目列表显示"售价/单位"替代数据库ID
  - 从priceList取售价price,从AdviceBaseDto取单位unitCode_dictText
  - 诊疗类项目priceList不含unitCode,须从顶层item取单位
  - 同步修复检验、检查、输血、手术四个申请单

  #416: 申请单弹窗布局调整
  - 弹窗宽度 1000px → 1200px
  - transfer穿梭框面板 400px → 480px
  - 优化左右双栏视觉效果,减少滚动
This commit is contained in:
wangjian963
2026-04-30 16:48:59 +08:00
parent 4a01825a30
commit 7799282b86
5 changed files with 21 additions and 9 deletions

View File

@@ -36,7 +36,7 @@
<el-dialog <el-dialog
v-model="applicationFormDialogVisible" v-model="applicationFormDialogVisible"
destroy-on-close destroy-on-close
width="1000px" width="1200px"
:close-on-click-modal="false" :close-on-click-modal="false"
:title="applicationFormTitle" :title="applicationFormTitle"
@close="closeDialog" @close="closeDialog"

View File

@@ -121,10 +121,13 @@ const getList = () => {
if (res.code === 200) { if (res.code === 200) {
applicationListAll.value = res.data.records; applicationListAll.value = res.data.records;
applicationList.value = res.data.records.map((item) => { applicationList.value = res.data.records.map((item) => {
const priceInfo = item.priceList?.[0] || {};
const price = priceInfo.price != null ? Number(priceInfo.price).toFixed(2) : '0.00';
const unit = item.unitCode_dictText || item.unitCode || '';
return { return {
adviceDefinitionId: item.adviceDefinitionId, adviceDefinitionId: item.adviceDefinitionId,
orgId: item.orgId, orgId: item.orgId,
label: item.adviceName + item.adviceDefinitionId, label: item.adviceName + ' (¥' + price + '/' + unit + ')',
key: item.adviceDefinitionId, key: item.adviceDefinitionId,
}; };
}); });
@@ -310,7 +313,7 @@ defineExpose({ state, submit, getLocationInfo, getDiagnosisList });
} }
.el-transfer { .el-transfer {
--el-transfer-panel-width: 400px !important; --el-transfer-panel-width: 480px !important;
} }
.bloodTransfusion-form { .bloodTransfusion-form {

View File

@@ -122,10 +122,13 @@ const getList = () => {
if (res.code === 200) { if (res.code === 200) {
applicationListAll.value = res.data.records; applicationListAll.value = res.data.records;
applicationList.value = res.data.records.map((item) => { applicationList.value = res.data.records.map((item) => {
const priceInfo = item.priceList?.[0] || {};
const price = priceInfo.price != null ? Number(priceInfo.price).toFixed(2) : '0.00';
const unit = item.unitCode_dictText || item.unitCode || '';
return { return {
adviceDefinitionId: item.adviceDefinitionId, adviceDefinitionId: item.adviceDefinitionId,
orgId: item.orgId, orgId: item.orgId,
label: item.adviceName + item.adviceDefinitionId, label: item.adviceName + ' (¥' + price + '/' + unit + ')',
key: item.adviceDefinitionId, key: item.adviceDefinitionId,
}; };
}); });
@@ -312,7 +315,7 @@ defineExpose({ state, submit, getLocationInfo, getDiagnosisList });
} }
.el-transfer { .el-transfer {
--el-transfer-panel-width: 400px !important; --el-transfer-panel-width: 480px !important;
} }
.bloodTransfusion-form { .bloodTransfusion-form {

View File

@@ -122,10 +122,13 @@ const getList = () => {
if (res.code === 200) { if (res.code === 200) {
applicationListAll.value = res.data.records; applicationListAll.value = res.data.records;
applicationList.value = res.data.records.map((item) => { applicationList.value = res.data.records.map((item) => {
const priceInfo = item.priceList?.[0] || {};
const price = priceInfo.price != null ? Number(priceInfo.price).toFixed(2) : '0.00';
const unit = item.unitCode_dictText || item.unitCode || '';
return { return {
adviceDefinitionId: item.adviceDefinitionId, adviceDefinitionId: item.adviceDefinitionId,
orgId: item.orgId, orgId: item.orgId,
label: item.adviceName + item.adviceDefinitionId, label: item.adviceName + ' (¥' + price + '/' + unit + ')',
key: item.adviceDefinitionId, key: item.adviceDefinitionId,
}; };
}); });
@@ -311,7 +314,7 @@ defineExpose({ state, submit, getLocationInfo, getDiagnosisList });
} }
.el-transfer { .el-transfer {
--el-transfer-panel-width: 400px !important; --el-transfer-panel-width: 480px !important;
} }
.bloodTransfusion-form { .bloodTransfusion-form {

View File

@@ -122,10 +122,13 @@ const getList = () => {
if (res.code === 200) { if (res.code === 200) {
applicationListAll.value = res.data.records; applicationListAll.value = res.data.records;
applicationList.value = res.data.records.map((item) => { applicationList.value = res.data.records.map((item) => {
const priceInfo = item.priceList?.[0] || {};
const price = priceInfo.price != null ? Number(priceInfo.price).toFixed(2) : '0.00';
const unit = item.unitCode_dictText || item.unitCode || '';
return { return {
adviceDefinitionId: item.adviceDefinitionId, adviceDefinitionId: item.adviceDefinitionId,
orgId: item.orgId, orgId: item.orgId,
label: item.adviceName + item.adviceDefinitionId, label: item.adviceName + ' (¥' + price + '/' + unit + ')',
key: item.adviceDefinitionId, key: item.adviceDefinitionId,
}; };
}); });
@@ -312,7 +315,7 @@ defineExpose({ state, submit, getLocationInfo, getDiagnosisList });
} }
.el-transfer { .el-transfer {
--el-transfer-panel-width: 400px !important; --el-transfer-panel-width: 480px !important;
} }
.bloodTransfusion-form { .bloodTransfusion-form {