Merge remote-tracking branch 'origin/develop' into guanyu
This commit is contained in:
@@ -67,6 +67,11 @@ public class ElepMedicationInfoDto {
|
|||||||
/** 诊断id */
|
/** 诊断id */
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
private Long conditionId;
|
private Long conditionId;
|
||||||
|
/** 诊断定义id */
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long conditionDefId;
|
||||||
|
/** 慢病诊断编码 */
|
||||||
|
private String opspDiseCode;
|
||||||
/** 药品版本号 */
|
/** 药品版本号 */
|
||||||
private String version;
|
private String version;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -400,6 +400,8 @@
|
|||||||
T1.rx_type_code, --处方类别
|
T1.rx_type_code, --处方类别
|
||||||
T1.rx_item_type_code, --处方项目类别
|
T1.rx_item_type_code, --处方项目类别
|
||||||
T1.condition_id, --诊断id
|
T1.condition_id, --诊断id
|
||||||
|
T1.condition_def_id, --诊断定义id
|
||||||
|
T1.opsp_dise_code, --慢病诊断编码
|
||||||
T1.version --药品版本号
|
T1.version --药品版本号
|
||||||
FROM elep_medication_request AS T1
|
FROM elep_medication_request AS T1
|
||||||
LEFT JOIN yb_catalog_drug_info AS T2
|
LEFT JOIN yb_catalog_drug_info AS T2
|
||||||
@@ -427,6 +429,8 @@
|
|||||||
T1.rx_type_code,
|
T1.rx_type_code,
|
||||||
T1.rx_item_type_code,
|
T1.rx_item_type_code,
|
||||||
T1.condition_id,
|
T1.condition_id,
|
||||||
|
T1.condition_def_id,
|
||||||
|
T1.opsp_dise_code,
|
||||||
T1.version
|
T1.version
|
||||||
</select>
|
</select>
|
||||||
<select id="selectSaveInfo" resultType="com.healthlink.his.web.doctorstation.dto.ElepPrescriptionInfoParam">
|
<select id="selectSaveInfo" resultType="com.healthlink.his.web.doctorstation.dto.ElepPrescriptionInfoParam">
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="props.openPrescription"
|
:model-value="props.openPrescription"
|
||||||
:title="title"
|
@update:model-value="$emit('update:openPrescription', $event)"
|
||||||
width="1840px"
|
:title="dialogTitle"
|
||||||
|
width="95%"
|
||||||
teleported
|
teleported
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
@open="open"
|
@open="open"
|
||||||
@@ -227,7 +228,7 @@
|
|||||||
title="药品名称"
|
title="药品名称"
|
||||||
align="center"
|
align="center"
|
||||||
field="medicationName"
|
field="medicationName"
|
||||||
width="150"
|
min-width="110"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<template v-if="getRowDisabled(scope.row)">
|
<template v-if="getRowDisabled(scope.row)">
|
||||||
@@ -237,7 +238,7 @@
|
|||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:visible="scope.row.showPopover"
|
:visible="scope.row.showPopover"
|
||||||
trigger="manual"
|
trigger="manual"
|
||||||
:width="1200"
|
:width="800"
|
||||||
>
|
>
|
||||||
<prescriptionMedicineList
|
<prescriptionMedicineList
|
||||||
:search-key="medicineSearchKey"
|
:search-key="medicineSearchKey"
|
||||||
@@ -250,7 +251,6 @@
|
|||||||
@input="handleChange"
|
@input="handleChange"
|
||||||
@focus="handleFocus(scope.row, scope.rowIndex)"
|
@focus="handleFocus(scope.row, scope.rowIndex)"
|
||||||
/>
|
/>
|
||||||
<!-- @blur="handleBlur(scope.row)" -->
|
|
||||||
</template>
|
</template>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
title="药品规格"
|
title="药品规格"
|
||||||
align="center"
|
align="center"
|
||||||
field=""
|
field=""
|
||||||
width="100"
|
min-width="90"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item :prop="`medicationInfoList.${scope.rowIndex}.drugSpecification`">
|
<el-form-item :prop="`medicationInfoList.${scope.rowIndex}.drugSpecification`">
|
||||||
@@ -282,7 +282,8 @@
|
|||||||
title="生产厂家"
|
title="生产厂家"
|
||||||
align="center"
|
align="center"
|
||||||
field=""
|
field=""
|
||||||
width="220"
|
min-width="120"
|
||||||
|
:show-overflow="true"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item :prop="`medicationInfoList.${scope.rowIndex}.manufacturerName`">
|
<el-form-item :prop="`medicationInfoList.${scope.rowIndex}.manufacturerName`">
|
||||||
@@ -308,7 +309,7 @@
|
|||||||
title="药品剂量"
|
title="药品剂量"
|
||||||
align="center"
|
align="center"
|
||||||
field=""
|
field=""
|
||||||
width="80"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -331,7 +332,7 @@
|
|||||||
title="剂量单位"
|
title="剂量单位"
|
||||||
align="center"
|
align="center"
|
||||||
field="medDosageUnitCode"
|
field="medDosageUnitCode"
|
||||||
width="150"
|
min-width="90"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -371,7 +372,7 @@
|
|||||||
title="使用频次"
|
title="使用频次"
|
||||||
align="center"
|
align="center"
|
||||||
field="medFrequency"
|
field="medFrequency"
|
||||||
width="230"
|
min-width="130"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -404,7 +405,7 @@
|
|||||||
title="服药时间(开始)"
|
title="服药时间(开始)"
|
||||||
align="center"
|
align="center"
|
||||||
field="effectiveDoseStart"
|
field="effectiveDoseStart"
|
||||||
width="220"
|
min-width="140"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -429,7 +430,7 @@
|
|||||||
title="每次发药供应天数"
|
title="每次发药供应天数"
|
||||||
align="center"
|
align="center"
|
||||||
field="dispensePerDuration"
|
field="dispensePerDuration"
|
||||||
width="130"
|
min-width="140"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -450,7 +451,7 @@
|
|||||||
title="服药时间(结束)"
|
title="服药时间(结束)"
|
||||||
align="center"
|
align="center"
|
||||||
field="effectiveDoseEnd"
|
field="effectiveDoseEnd"
|
||||||
width="220"
|
min-width="140"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item :prop="`medicationInfoList.${scope.rowIndex}.effectiveDoseEnd`">
|
<el-form-item :prop="`medicationInfoList.${scope.rowIndex}.effectiveDoseEnd`">
|
||||||
@@ -472,7 +473,7 @@
|
|||||||
title="途径"
|
title="途径"
|
||||||
align="center"
|
align="center"
|
||||||
field="medRoute"
|
field="medRoute"
|
||||||
width="140"
|
min-width="90"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -502,6 +503,7 @@
|
|||||||
title="数量"
|
title="数量"
|
||||||
align="center"
|
align="center"
|
||||||
field="quantity"
|
field="quantity"
|
||||||
|
min-width="90"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -524,7 +526,7 @@
|
|||||||
title="单位"
|
title="单位"
|
||||||
align="center"
|
align="center"
|
||||||
field="medDosageUnitCode"
|
field="medDosageUnitCode"
|
||||||
width="150"
|
min-width="90"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@@ -702,7 +704,7 @@ const queryMedicationParams = ref({
|
|||||||
|
|
||||||
const dosageInputRefs = ref([]);
|
const dosageInputRefs = ref([]);
|
||||||
|
|
||||||
const title = ref('');
|
const dialogTitle = ref('');
|
||||||
|
|
||||||
const unitMap = ref({
|
const unitMap = ref({
|
||||||
dose: 'dose',
|
dose: 'dose',
|
||||||
@@ -720,6 +722,17 @@ function getInit(searchKey) {
|
|||||||
|
|
||||||
function open() {
|
function open() {
|
||||||
conditionId.value = props.prescriptionData.conditionId;
|
conditionId.value = props.prescriptionData.conditionId;
|
||||||
|
// 编辑/查看时回显诊断和慢病诊断
|
||||||
|
if (dialogTitle.value !== '新增处方') {
|
||||||
|
conditionDefId.value = props.prescriptionData.conditionDefId || '';
|
||||||
|
speConditionId.value = props.prescriptionData.opspDiseCode || '';
|
||||||
|
// 远程搜索诊断下拉框:加载当前已选诊断的选项,确保 label 正常显示
|
||||||
|
if (conditionDefId.value) {
|
||||||
|
getDiagnosisListEle('', infoForm.encounterId).then(res => {
|
||||||
|
diagnosisListOption.value = res.data || [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
getDiagnosisInfo();
|
getDiagnosisInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -728,22 +741,22 @@ function open() {
|
|||||||
*/
|
*/
|
||||||
function getPrescriptionNoInit() {
|
function getPrescriptionNoInit() {
|
||||||
reset();
|
reset();
|
||||||
title.value = '';
|
dialogTitle.value = '';
|
||||||
title.value = props.title;
|
dialogTitle.value = props.title;
|
||||||
console.log(props, 'props', title.value);
|
console.log(props, 'props', dialogTitle.value);
|
||||||
prescriptionTypeList.value = props.prescriptionType;
|
prescriptionTypeList.value = props.prescriptionType;
|
||||||
console.log(prescriptionTypeList.value, 'prescriptionTypeList');
|
console.log(prescriptionTypeList.value, 'prescriptionTypeList');
|
||||||
infoForm.patientId = props.patient.patientId;
|
infoForm.patientId = props.patient.patientId;
|
||||||
infoForm.encounterId = props.patient.encounterId;
|
infoForm.encounterId = props.patient.encounterId;
|
||||||
infoForm.validityDays = props.prescriptionData.validityDays;
|
infoForm.validityDays = props.prescriptionData.validityDays;
|
||||||
infoForm.extensionReason = props.prescriptionData.extensionReason;
|
infoForm.extensionReason = props.prescriptionData.extensionReason;
|
||||||
if (title.value != '新增处方') {
|
if (dialogTitle.value != '新增处方') {
|
||||||
form.rxTypeCode = props.prescriptionData.rxTypeCode;
|
form.rxTypeCode = props.prescriptionData.rxTypeCode;
|
||||||
infoForm.prescriptionNo = props.prescriptionData.prescriptionNo;
|
infoForm.prescriptionNo = props.prescriptionData.prescriptionNo;
|
||||||
}
|
}
|
||||||
console.log('infoForm.prescriptionNo (初始值):', infoForm.prescriptionNo, 'props.prescriptionData:', props.prescriptionData);
|
console.log('infoForm.prescriptionNo (初始值):', infoForm.prescriptionNo, 'props.prescriptionData:', props.prescriptionData);
|
||||||
// prescriptionInfo.value = props.prescriptionData;
|
// prescriptionInfo.value = props.prescriptionData;
|
||||||
if (title.value === '新增处方') {
|
if (dialogTitle.value === '新增处方') {
|
||||||
prescriptionNoInit().then((res) => {
|
prescriptionNoInit().then((res) => {
|
||||||
infoForm.prescriptionNo = res.data;
|
infoForm.prescriptionNo = res.data;
|
||||||
console.log('处方号初始化成功:', {
|
console.log('处方号初始化成功:', {
|
||||||
@@ -767,7 +780,7 @@ function getDiagnosisInfo() {
|
|||||||
});
|
});
|
||||||
if (diagnosisInfo.length > 0) {
|
if (diagnosisInfo.length > 0) {
|
||||||
diagnosisInfo.value = diagnosisInfo[0];
|
diagnosisInfo.value = diagnosisInfo[0];
|
||||||
if (title.value === '新增处方') {
|
if (dialogTitle.value === '新增处方') {
|
||||||
conditionId.value = diagnosisInfo[0].id;
|
conditionId.value = diagnosisInfo[0].id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -973,7 +986,7 @@ function submit() {
|
|||||||
* 双击药品行
|
* 双击药品行
|
||||||
*/
|
*/
|
||||||
function clickMedicineRowDb(row) {
|
function clickMedicineRowDb(row) {
|
||||||
if (title.value == '查看处方') {
|
if (dialogTitle.value == '查看处方') {
|
||||||
row.isEdit = false;
|
row.isEdit = false;
|
||||||
} else {
|
} else {
|
||||||
row.isEdit = true;
|
row.isEdit = true;
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
title="门诊号"
|
title="门诊号"
|
||||||
align="center"
|
align="center"
|
||||||
field="iptOtpNo"
|
field="iptOtpNo"
|
||||||
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -68,6 +69,8 @@
|
|||||||
title="病区"
|
title="病区"
|
||||||
align="center"
|
align="center"
|
||||||
field="departmentWard"
|
field="departmentWard"
|
||||||
|
min-width="90"
|
||||||
|
:show-overflow="true"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -79,7 +82,7 @@
|
|||||||
title="有效天数"
|
title="有效天数"
|
||||||
align="center"
|
align="center"
|
||||||
field="validityDays"
|
field="validityDays"
|
||||||
width="80"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -138,7 +141,7 @@
|
|||||||
title="取药状态"
|
title="取药状态"
|
||||||
align="center"
|
align="center"
|
||||||
field="medStatus"
|
field="medStatus"
|
||||||
width="80"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -150,6 +153,8 @@
|
|||||||
title="延长原因"
|
title="延长原因"
|
||||||
align="center"
|
align="center"
|
||||||
field="extensionReason"
|
field="extensionReason"
|
||||||
|
min-width="90"
|
||||||
|
:show-overflow="true"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -166,6 +171,8 @@
|
|||||||
title="撤销原因"
|
title="撤销原因"
|
||||||
align="center"
|
align="center"
|
||||||
field="quashReason"
|
field="quashReason"
|
||||||
|
min-width="90"
|
||||||
|
:show-overflow="true"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -177,6 +184,8 @@
|
|||||||
title="诊断"
|
title="诊断"
|
||||||
align="center"
|
align="center"
|
||||||
field="conditionName"
|
field="conditionName"
|
||||||
|
min-width="130"
|
||||||
|
:show-overflow="true"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
@@ -435,6 +444,8 @@ function handleView(row) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
prescriptionInfo.value.conditionId = response.data.records[0].conditionId;
|
prescriptionInfo.value.conditionId = response.data.records[0].conditionId;
|
||||||
|
prescriptionInfo.value.conditionDefId = response.data.records[0].conditionDefId;
|
||||||
|
prescriptionInfo.value.opspDiseCode = response.data.records[0].opspDiseCode;
|
||||||
openPrescriptionDialog();
|
openPrescriptionDialog();
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -458,6 +469,8 @@ function handleEdit(row) {
|
|||||||
medicationInfo.isEdit = false;
|
medicationInfo.isEdit = false;
|
||||||
});
|
});
|
||||||
prescriptionInfo.value.conditionId = response.data.records[0].conditionId;
|
prescriptionInfo.value.conditionId = response.data.records[0].conditionId;
|
||||||
|
prescriptionInfo.value.conditionDefId = response.data.records[0].conditionDefId;
|
||||||
|
prescriptionInfo.value.opspDiseCode = response.data.records[0].opspDiseCode;
|
||||||
openPrescriptionDialog();
|
openPrescriptionDialog();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user