解决医嘱确定后中成药项目名消失
This commit is contained in:
@@ -908,7 +908,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="诊断" align="center" prop="diagnosisName" width="150">
|
<el-table-column label="诊断" align="center" prop="diagnosisName" width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
{{ scope.row.diagnosisName || scope.row.conditionDefinitionName }}
|
{{ scope.row.diagnosisName || scope.row.conditionDefinitionName }}
|
||||||
@@ -1468,7 +1468,7 @@ function selectAdviceBase(key, row) {
|
|||||||
} else {
|
} else {
|
||||||
// 没有 deviceId 或 deviceName,可能是中成药(药品)
|
// 没有 deviceId 或 deviceName,可能是中成药(药品)
|
||||||
// 根据 categoryCode 判断
|
// 根据 categoryCode 判断
|
||||||
if (row.categoryCode == '1') {
|
if (row.categoryCode == '1') {
|
||||||
finalAdviceType = 2; // 中成药
|
finalAdviceType = 2; // 中成药
|
||||||
} else {
|
} else {
|
||||||
// 默认认为是中成药
|
// 默认认为是中成药
|
||||||
@@ -1766,14 +1766,11 @@ function handleSave() {
|
|||||||
// 保存时,将前端的耗材类型(4)转换为后端需要的类型(2)
|
// 保存时,将前端的耗材类型(4)转换为后端需要的类型(2)
|
||||||
// 后端接口中:1=药品, 2=耗材, 3=诊疗
|
// 后端接口中:1=药品, 2=耗材, 3=诊疗
|
||||||
// 前端显示中:1=西药, 2=中成药, 3=诊疗, 4=耗材
|
// 前端显示中:1=西药, 2=中成药, 3=诊疗, 4=耗材
|
||||||
const saveAdviceType = parsedContent.adviceType == 4 ? 2 : parsedContent.adviceType;
|
const saveAdviceType = item.adviceType == 4 ? 2 : item.adviceType;
|
||||||
return {
|
return {
|
||||||
...parsedContent,
|
...item,
|
||||||
adviceType: saveAdviceType,
|
adviceType: saveAdviceType,
|
||||||
requestId: item.requestId,
|
dbOpType: item.requestId ? '2' : '1',
|
||||||
dbOpType: '1',
|
|
||||||
groupId: item.groupId,
|
|
||||||
uniqueKey: undefined,
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
savePrescriptionSign({
|
savePrescriptionSign({
|
||||||
|
|||||||
Reference in New Issue
Block a user